content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; public partial class Edit_Retroalimentacion : System.Web.UI.Page { private int identificador; protected void Page_Load(obje...
55.585507
301
0.528863
[ "MIT" ]
wolfghost9898/Proyectos
IPC2/IPC FASE II/Edit_Retroalimentacion.aspx.cs
19,179
C#
using System; namespace Etimo.Cli { public class OptionNameAttribute : Attribute { public string Name { get; } public OptionNameAttribute(string name) { Name = name.ToLowerInvariant(); } } }
16.6
48
0.582329
[ "MIT" ]
Etimo/etimo-cli
Etimo.Cli/Attributes/OptionNameAttribute.cs
249
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.708333
80
0.645855
[ "Apache-2.0" ]
nsxr51/CoreWebApi
CoreWbAPi/CoreWbAPi/obj/Debug/netcoreapp2.0/CoreWbAPi.AssemblyInfo.cs
977
C#
#region License // Copyright (c) 2007 James Newton-King // // 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, /...
40.044517
204
0.519482
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
nerai/Nibbler
src/lib/Newtonsoft.Json/JsonValidatingReader.cs
36,883
C#
// <auto-generated /> namespace CarSystem.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 clas...
26.9
90
0.614622
[ "MIT" ]
Azonic89/My-ASP.NET-MVC-Project
CarSystem/Data/CarSystem.Data/Migrations/201703140329083_Initial.Designer.cs
807
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.707317
117
0.777027
[ "Apache-2.0" ]
pengweiqhca/aliyun-openapi-net-sdk
aliyun-net-sdk-nas/NAS/Transform/V20170626/CreateRecycleBinRestoreJobResponseUnmarshaller.cs
1,628
C#
namespace JenkinsObserver.Test { public static class ConstJson { public const string NODEJS_SERVER_NORMAL = #region Json @"{ ""assignedLabels"" : [ { } ], ""mode"" : ""NORMAL"", ""nodeDescription"" : ""the master Jenkins node"", ""nodeName"" : """", ""numExecutors"" : 1, ...
24.268519
99
0.502289
[ "MIT" ]
haroldhues/JenkinsObserver
Test/ConstJson.cs
10,486
C#
#pragma checksum "C:\Users\Piotrek\source\repos\BlazorPong\BlazorPong3\Client\Shared\MainLayout.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f30d17c414b59cf5f764b5c45dcec884d64c2318" // <auto-generated/> #pragma warning disable 1591 namespace BlazorPong3.Client.Shared { #line hidden using System; using ...
30.861111
186
0.680768
[ "MIT" ]
brzezinol/blazorpong
BlazorPong3/Client/obj/Debug/netstandard2.1/Razor/Shared/MainLayout.razor.g.cs
3,333
C#
using CallManagerPanel.Business.Abstract; using CallManagerPanel.Business.DependencyResolvers.Ninject; using CallManagerPanel.Business.ValidationRules.FluentValidation.Abstract; using CallManagerPanel.Entities.Concrete; using FluentValidation; namespace CallManagerPanel.Business.ValidationRules.FluentValidation { ...
33.451613
99
0.639344
[ "MIT" ]
furkanisitan/call-manager-panel
CallManagerPanel.Business/ValidationRules/FluentValidation/CallValidator.cs
1,039
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MovieShop.DTOs { public class ListRentsDTO { public string MovieTitle { get; set; } public string UserName { get; set; } public string Genre { get; set; } } }
20.785714
46
0.656357
[ "MIT" ]
clubbed/MovieShop
MovieShop/MovieShop/DTOs/ListRentsDTO.cs
293
C#
namespace javax.net.ssl { [global::MonoJavaBridge.JavaInterface(typeof(global::javax.net.ssl.SSLSession_))] public partial interface SSLSession : global::MonoJavaBridge.IJavaObject { global::java.lang.Object getValue(java.lang.String arg0); byte[] getId(); global::java.lang.String getProtocol(); void putVa...
63.695946
315
0.781479
[ "MIT" ]
JeroMiya/androidmono
MonoJavaBridge/android/generated/javax/net/ssl/SSLSession.cs
9,427
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Red.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Red.Formats.Red.Records.Enums; namespace GameEstate.Red.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CAIMonsterDefeated : CAIMonst...
35.296296
130
0.739769
[ "MIT" ]
bclnet/GameEstate
src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CAIMonsterDefeated.cs
953
C#
using System; using System.IO; using UnaryHeap.Utilities.D2; namespace UnaryHeap.Utilities.Apps { /// <summary> /// Represents the logic behind a console utility application that can convert /// JSON-formatted Graph2D objects to SVG. /// </summary> public abstract class GraphRendererApp ...
37.974603
97
0.560609
[ "MIT" ]
SheepNine/UnaryHeap
source/UnaryHeap.Utilities/UnaryHeap.Utilities/Apps/GraphRendererApp.cs
11,964
C#
using System; using System.Runtime.InteropServices; namespace Steamworks { [global::Steamworks.CallbackIdentity(201)] [global::System.Runtime.InteropServices.StructLayout(global::System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] public struct GSClientApprove_t { public const int k_iCallback = 201...
25.294118
126
0.797674
[ "CC0-1.0" ]
FreyaFreed/mordheim
Assembly-CSharp/Steamworks/GSClientApprove_t.cs
432
C#
using System.Threading.Tasks; namespace ApprovalUtilities.Persistence; public class SaverAsyncWrapper<T> : ISaverAsync<T> { readonly ISaver<T> saver; public SaverAsyncWrapper(ISaver<T> saver) { this.saver = saver; } public Task<T> Save(T objectToBeSaved) { ret...
21.722222
73
0.644501
[ "Apache-2.0" ]
skalinets/ApprovalTests.Net
src/ApprovalUtilities/Persistence/SaverAsyncWrapper.cs
376
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...
34.146341
84
0.616786
[ "MIT" ]
BME-MIT-IET/iet-hf2021-gitgud
Libraries/dotNetRDF.Query.Spin/Core/SPINLabels.cs
2,800
C#
// <copyright file="ListExtensions.cs" company="improvGroup, LLC"> // Copyright © improvGroup, LLC. All Rights Reserved. // </copyright> namespace SharedCode.Core.Collections { using System.Collections.Generic; using JetBrains.Annotations; /// <summary> /// The list extensions class /// </su...
40.344828
129
0.591026
[ "MIT" ]
JTOne123/SharedCode
SharedCode.Core/Collections/ListExtensions.cs
2,343
C#
#region [License] // The MIT License (MIT) // // Copyright (c) 2017, Unity Technologies // Copyright (c) 2018, Cristian Alexandru Geambasu // // 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 Softw...
38.273616
190
0.6
[ "MIT-0", "MIT" ]
Chillu1/InputManager
Assets/InputManager/Addons/UIInputModule/Runtime/StandaloneInputModule.cs
23,502
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Torshia.Web.App_Start { public static class ViewEngineConfig { public static void RegisterViewEngines() { ViewEngines.Engines.Clear(); ViewEngines.Engine...
21.588235
59
0.66485
[ "MIT" ]
svetlimladenov/ASP.NET-MVC-5
Homeworks/TorshiaHomework/Torshia/Web/Torshia.Web/App_Start/ViewEngineConfig.cs
369
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespac...
32.494118
90
0.604996
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/ApiManagement/Management.ApiManagement/Generated/Models/CertificateCreateOrUpdateParameters.cs
2,762
C#
using System; using System.Collections.Generic; using System.Linq; using StackExchange.Status.Models; using StackExchange.Status.Models.Dashboard; using StackExchange.Status.Models.HAProxy; using StackExchange.Status.Models.SQL; namespace StackExchange.Status.Helpers { public static class AppCache { #...
49.228758
165
0.409851
[ "MIT" ]
ghuntley/Opserver
Opserver/Helpers/Cache.cs
7,534
C#
using System.Xml.Serialization; namespace OctoAwesome.Model { [XmlInclude(typeof(BoxItem))] [XmlInclude(typeof(TreeItem))] public abstract class Item { public Vector2 Position { get; set; } } }
17.307692
45
0.662222
[ "MIT" ]
Krishnait86/OctoAwesome
OctoAwesome/Model/Item.cs
227
C#
// This file is part of Core WF which is licensed under the MIT license. // See LICENSE file in the project root for full license information. namespace System.Activities.XamlIntegration { using System; using System.Text; using System.Activities; using System.Activities.Statements; using System.Act...
44.096786
242
0.611138
[ "MIT" ]
lvama/corewf
src/UiPath.Workflow/XamlIntegration/TextExpressionCompiler.cs
120,737
C#
namespace EF_Test.Migrations { using System.Data.Entity.Migrations; public partial class CarObject : DbMigration { public override void Up() { CreateTable( "Cars", c => new { Id = c.Int(nullable: fal...
23.464286
68
0.371385
[ "MIT" ]
Jorriss/Demo.EFDataProfessionals
EF Test/EF Test/Migrations/201309120209095_Car Object.cs
657
C#
using System.Collections; using UnityEngine; using UnityEngine.UI; using TMPro; using UnityEngine.Events; namespace Michsky.UI.ModernUIPack { public class ModalWindowManager : MonoBehaviour { // Resources public Image windowIcon; public TextMeshProUGUI windowTitle; public TextM...
26.039683
109
0.487656
[ "CC0-1.0" ]
00010023/waifu.run
assets/Modern UI Pack/Scripts/Modal Window/ModalWindowManager.cs
3,283
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Acn.Rdm.Packets.Power { /// <summary> /// This parameter is used to retrieve or change the current operating state of the lamp. /// </summary> public class LampState { public enum LampStates ...
22.490741
93
0.492795
[ "MIT" ]
HakanL/ACN
Acn/Rdm/Packets/Power/LampState.cs
2,431
C#
// Released under the MIT License. // // Copyright (c) 2018 Ntreev Soft co., Ltd. // Copyright (c) 2020 Jeesu Choi // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, i...
39.423729
121
0.711522
[ "MIT" ]
s2quake/JSSoft.Crema
share/JSSoft.Crema.Commands/Consoles/KickCommand.cs
2,328
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using Microsoft.Extensions.Logging; using Steeltoe.Messaging.RabbitMQ.Connection; using Steeltoe.Messaging.Ra...
43.417178
219
0.689275
[ "Apache-2.0" ]
SteeltoeOSS/steeltoe
src/Messaging/src/RabbitMQ/Retry/RepublishMessageRecoverer.cs
7,077
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
35.209524
145
0.630782
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/Lightsail/Generated/Model/Internal/MarshallTransformations/ReleaseStaticIpRequestMarshaller.cs
3,697
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using SimplCommerce.Module.Core.Data; namespace SimplCommerce.WebHost.Migrations { [DbContext(typeof(SimplDbContext))...
33.079273
117
0.457875
[ "Apache-2.0" ]
ChauHoe/SimplCommerce
src/SimplCommerce.WebHost/Migrations/20170217035116_AddedVendor.Designer.cs
45,486
C#
////css_dbg /t:winexe, /args:/prj "e:\cs-script\Dev\Dictionary\Dictionary\dictionary.cs"; ////css_args /dbg; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windo...
43.052226
184
0.48414
[ "Apache-2.0" ]
findlayit/base-project
libraries/buildsupport/cs-script/lib/debugVS10.0.cs
72,543
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using SagaImpl.OrderService.Entities; namespace SagaImpl.OrderService.Database.EntityConfiguration { public class OrderConfiguration : IEntityTypeConfiguration<OrderEntity> { public void Configure(EntityTypeBui...
29.519231
81
0.570684
[ "MIT" ]
IvanJevtic9/SagaPatternImpl
src/SagaImpl.OrderService/Database/EntityConfiguration/OrderConfiguration.cs
1,537
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace LetsEncrypt.ACME.Simple { public class Target { public static Dictionary<string, Plugin> Plugins = new Dictionary<string, Plugin>(); static Target() { foreach ( ...
30.432432
120
0.579929
[ "Apache-2.0" ]
etiifa/letsencrypt-win-simple
letsencrypt-win-simple/Target.cs
1,128
C#
using Newtonsoft.Json; namespace MdsLibrary.Model { /// <summary> /// Response object for subscription to periodic 6-axis (with magnetometer) IMU measurements. /// </summary> public class IMU6Data { /// <summary> /// Response object for subscription to periodic 6-axis (with magnetom...
25.77193
101
0.427161
[ "MIT" ]
AndyCW/MovesenseDotNet
src/Movesensedotnet/Movesense/Shared/Model/IMU6Data.cs
2,938
C#
using UnityEngine; public class StreamSpell : Spell { [SerializeField] public float thrustAcceleration = 12f; [SerializeField] public float minTakeoffFactor = 0.7f; public ParticleSystem streamParticleSystem; public ParticleSystem indicatorParticleSystem; public Quaternion rotationOffset; ...
24.233766
88
0.620579
[ "Apache-2.0" ]
LevyMatthew/vrmagic
_Spells/StreamSpell.cs
1,866
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Net.Http.Headers; using System.Web; namespace StagPj { public class In : Action { private string cvalue; private Source source; public string cValue...
25.573529
115
0.53824
[ "BSD-3-Clause" ]
AninossII/StagPJ
StagPj/In.cs
1,741
C#
// Copyright 2022 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 ...
43.309524
140
0.721825
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.GeneratedSnippets/KeyManagementServiceClient.GetCryptoKeyResourceNamesAsyncSnippet.g.cs
1,819
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; using Microsoft.Extensions.Logging; namespace iBlog.Pages { [ResponseCache(Duration = 0, Location = Respon...
26.15625
89
0.654719
[ "MIT" ]
invoteco/iBlog
Pages/Error.cshtml.cs
837
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. #nullable disable using System; using System.Reflection; using Roslyn.Test.Utilities; using Xunit; namespace Micr...
56.890145
202
0.607809
[ "MIT" ]
FPCSharpUnity/roslyn
src/Compilers/Core/CodeAnalysisTest/MetadataReferences/AssemblyIdentityDisplayNameTests.cs
35,217
C#
namespace advisor.Persistence { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using HotChocolate; [GraphQLName("Alliance")] public class DbAlliance : InGameContext { [GraphQLIgnore] [Key] public long Id { get; set; } [GraphQLIgnore] ...
23.68
69
0.597973
[ "MIT" ]
valdisz/atlantis-economy-advisor
server/Persistence/DbAlliance.cs
592
C#
using MongoDB.Bson; using MongoDB.Driver; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using TinyIoC; namespace InMemoryMongoDb { class InMemoryDatabase : IMongoDatabase { ...
45.225641
258
0.700193
[ "MIT" ]
BinaryWorrier/InMemoryMongoDb
src/InMemoryMongoDb/InMemoryDatabase.cs
8,821
C#
using GroupDocs.Merger.Cloud.Sdk.Api; using GroupDocs.Merger.Cloud.Sdk.Client; using GroupDocs.Merger.Cloud.Sdk.Model.Requests; using System; using GroupDocs.Merger.Cloud.Sdk.Model; using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo; namespace GroupDocs.Merger.Cloud.Examples.CSharp { /// <summary> /// ...
29.130435
67
0.603731
[ "MIT" ]
groupdocs-merger-cloud/groupdocs-merger-cloud-dotnet-samples
Examples/GroupDocs.Merger.Cloud.Examples.CSharp/SecurityOperations/UpdateDocumentPassword.cs
1,340
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.178571
84
0.697085
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Solutions/V20190701/Outputs/ApplicationBillingDetailsDefinitionResponse.cs
789
C#
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.Encodings.Web; using Action.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; namespace Action.Controllers { [Route("api/relationship-factors")] ...
29.06383
101
0.560761
[ "Apache-2.0" ]
luizhmcarvalho/influencers-api
src/Action/Controllers/RelationshipController.cs
1,368
C#
using System; namespace IntComSys.Computing { public abstract class Vec<T> where T : struct { public readonly int size; public readonly T[] elements; private Vec() { } public Vec(int size) { this.size = size; elements = new T[size]; } public abstract Vec<T> Copy(); public override string T...
15.158879
55
0.549938
[ "Apache-2.0" ]
cutzsc/IntComSys
Computing/Vec.cs
1,624
C#
#region Copyright Syncfusion Inc. 2001-2018. // Copyright Syncfusion Inc. 2001-2018. All rights reserved. // Use of this code is subject to the terms of our license. // A copy of the current license can be obtained at any time by e-mailing // licensing@syncfusion.com. Any infringement will be prosecuted under // applic...
32.714286
187
0.715284
[ "MIT" ]
eruptiq/monowallet
Monowallet.UI.Android/MainActivity.cs
1,145
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Reflection; using UnityEngine; namespace InControl { public class InputManager { public static readonly VersionInfo Version = VersionInfo.InControlVersio...
24.108014
181
0.679867
[ "MIT" ]
KeikakuB/experiments
2015/08/dark-dash-and-bash/Assets/InControl/Source/InputManager.cs
13,838
C#
using System; namespace NSim { public class ScheduleEmptyException : Exception { } }
12.25
51
0.673469
[ "BSD-2-Clause" ]
youknowjack0/nsim
NSim/ScheduleEmptyException.cs
100
C#
using System; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; using NHapi.Model.V251.Datatype; using NHapi.Base.Log; namespace NHapi.Model.V251.Segment{ ///<summary> /// Represents an HL7 APR message segment. /// This segment has the following fields:<ol> ///<li>APR-1: Time Selection Criteria (SCV...
36.352159
121
0.666423
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V251/Segment/APR.cs
10,942
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Reactive.Subjects; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; namespace HybridDb.Queue { public class HybridDbMessageQueue : IDisposable ...
37.334746
148
0.533311
[ "Unlicense" ]
asgerhallas/HybridDb
src/HybridDb/Queue/HybridDbMessageQueue.cs
8,811
C#
using System.Collections.ObjectModel; namespace BandoMIA.Api.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public Collect...
27.571429
80
0.704663
[ "MIT" ]
smetly/BandoMIA
BandoMIA.Api/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
386
C#
// *********************************************************************** // Assembly : BI.Interface // Author : Anugoon Leelaphattarakij // Created : 04-20-2015 // // Last Modified By : Anugoon Leelaphattarakij // Last Modified On : 04-27-2015 // ************************************...
39.567568
111
0.527322
[ "MIT" ]
anugoon1374/WVEF
MM-WebUI/BI.Interface/Infrastructure/Mappers/NullablesToNormal.cs
1,467
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Fakultet.Models; namespace Fakultet.Controllers { public class StudsController : Controller { ...
32.53012
134
0.520556
[ "MIT" ]
AlgebraC-2020/AlgebraC-2020
Fakultet/Controllers/StudsController.cs
5,402
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 Avalonia.Markup.Xaml.Templates; using System; using Xunit; namespace Avalonia.Markup.Xaml.UnitTests.Templates { public class MemberSelectorTest...
29.679245
104
0.521297
[ "MIT" ]
Beffyman/Avalonia
tests/Avalonia.Markup.Xaml.UnitTests/Templates/MemberSelectorTests.cs
4,719
C#
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { List<int> nums = Console.ReadLine() .Split(' ') .Select(int.Parse) .ToList(); int index = 0; int counter = 0; int tempIndex = 0; ...
21.510638
58
0.403561
[ "MIT" ]
aalishov/School
IT-Career-V4/M04-ASDBasics/S01-DataStructures/P17-LongestSequence/Program.cs
1,013
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
48.179245
155
0.650676
[ "MIT" ]
AzureMentor/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IWorkbookRangeBorderRequest.cs
5,107
C#
// Copyright (c) Peter Vrenken. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia namespace EtAlii.Ubigia.Infrastructure.Transport.Rest { using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Threading.Tasks; using EtAlii.Ubig...
38.883495
119
0.65618
[ "MIT" ]
vrenken/EtAlii.Ubigia
Source/Infrastructure/EtAlii.Ubigia.Infrastructure.Transport.Rest/Serialization/PayloadMediaTypeOutputFormatter.cs
4,007
C#
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT license. See License.txt in the project root for license information. using BookApp.Books.Domain; using Microsoft.EntityFrameworkCore; namespace BookApp.Books.Persistence.CosmosDb { public class...
37.057143
97
0.578258
[ "MIT" ]
JonPSmith/BookApp.All
BookApp.Books.Persistence.CosmosDb/CosmosDbContext.cs
1,299
C#
using System; using System.Collections.Generic; using System.Diagnostics; using NUnit.Framework; [TestFixture] public class PerfTests03 { [Test] public void GetAtIndex_With100000Elements_ShouldWorkFast() { // Arrange IOrganization org = new Organization(); const int count = 100_000...
24.914286
62
0.558486
[ "MIT" ]
IvanBerov/C-DataStructuresFundamentals
DataStructuresExam02July2017/Organization.Tests/Performance/PerfTests03.cs
874
C#
using UnityEditor; using UnityEngine; using UnityEngine.SceneManagement; using UnityEditor.SceneManagement; namespace Unity.LEGO.Tutorials { /// <summary> /// Contains all the callbacks needed for checking if a user has saved a scene. /// </summary> [CreateAssetMenu(fileName = "SaveSceneCrite...
31.093023
106
0.62902
[ "MIT" ]
TermiSenpai/MicroLego
Assets/LEGO/Tutorials/Criteria/SaveSceneCriteria.cs
1,337
C#
using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NSubstitute; using NSubstitute.Core; namespace Affecto.Logging.Tests { [TestClass] public class LoggerTests { private ILogWriter logWriter; private ICorrelation correlation; private Logger su...
36.498233
134
0.644787
[ "MIT" ]
gregorypilipenko/dotnet-Logging-nlog-support
Logging.Tests/LoggerTests.cs
10,331
C#
using System; namespace GrocerySupplyManagementApp.Entities { public class CompanyInfo { public string Name { get; set; } public string ShortName { get; set; } public string Type { get; set; } public string Address { get; set; } public long ContactNo { get; set; } ...
33.72
52
0.601423
[ "MIT" ]
amanandhar/SamyuktaManabSoftwares
SamyuktaManabSoftwares/GrocerySupplyManagementApp/Entities/CompanyInfo.cs
845
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // As informações gerais sobre um assembly são controladas por // conjunto de atributos. Altere estes valores de atributo para modificar as informações // associada a um assembly. [assembly: AssemblyTitle("PixSnapsho...
38.108108
95
0.752482
[ "MIT" ]
LuizZak/PixSnapshot
PixSnapshot/Properties/AssemblyInfo.cs
1,435
C#
using MeshyDB.SDK.Attributes; using MeshyDB.SDK.Models; using System; namespace MeshyForums.Models { [MeshName("BlogPost")] public class Item : MeshData { public string Text { get; set; } public string Description { get; set; } public string CreatedById { get; set; } public...
26.1875
55
0.644391
[ "MIT" ]
yetisoftworks/MeshyDB.Samples
Xamarin/Blog/MeshyForums/MeshyForums/Models/Item.cs
421
C#
using Ryujinx.Graphics.Shader.Decoders; using Ryujinx.Graphics.Shader.IntermediateRepresentation; using System.Collections.Generic; using static Ryujinx.Graphics.Shader.IntermediateRepresentation.OperandHelper; namespace Ryujinx.Graphics.Shader.Translation { class EmitterContext { public Block CurrBl...
32.64486
118
0.507443
[ "MIT" ]
6Fer6/Ryujinx
Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
6,986
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.567568
85
0.723896
[ "Apache-2.0" ]
SharpKit/corex
src/Corex.Web/Properties/AssemblyInfo.cs
1,430
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Threading.Tasks; using BuildXL.Cache.ContentStore.Distributed.Redis; using BuildXL.Cache.ContentStore.Interfaces.Distributed; using BuildXL.Cache.ContentStore.Interfaces.Tracing; using ContentStoreTest.Test; ...
37.634615
195
0.670414
[ "MIT" ]
Microsoft-Android/BuildXL
Public/Src/Cache/ContentStore/DistributedTest/Redis/RedisConnectionMultiplexerTests.cs
1,957
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> //--...
39.962963
151
0.583874
[ "MIT" ]
RonaldCarter/PHPManager
Setup/PHPManagerSetupHelper/Properties/Settings.Designer.cs
1,081
C#
using NUnit.Framework; namespace Twitterizer2.TestCases { [TestFixture] public class NUnitSampleTests { [Test] public void SomeFailingTest() { Assert.Greater(5, 7); } [Test] public void SomePassingTest() { Asse...
17.95
38
0.490251
[ "MIT", "BSD-3-Clause" ]
HemantNegi/Twitterizer
Twitterizer2.TestCases/NUnitSampleTests.cs
359
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XData.Data.Objects.Oracle { internal static class OracleExtensions { public static string DecorateDateTimeValue(this DateTime value, string sqlDbType) { ...
28.83871
98
0.563758
[ "MIT" ]
sundy39/xf
ElementFramework.Oracle/OracleExtensions.cs
896
C#
using System; /* * Quick Sort : Quick sort is Divide and Conquer algorithm. * It picks an element as pivot and partitions the given array around the piked pivot. * */ namespace ConsoleApp169 { internal static class Program { public static void Main() { var arr = new int[] { 2, 5, -4, 11, 0, 18, ...
19.536585
87
0.468165
[ "MIT" ]
hraverkar/DSA
CSharp/QuickSort.cs
1,602
C#
using Aragas.Extensions.Options.FluentValidation.Extensions; using FluentValidation; using System.Net.Http; namespace P3D.Legacy.Server.Infrastructure.Options { public sealed class PokeAPIOptionsValidator : AbstractValidator<PokeAPIOptions> { public PokeAPIOptionsValidator(HttpClient httpClient) ...
28.619048
145
0.715474
[ "MIT" ]
P3D-Legacy/P3D-Legacy-Server
src/P3D.Legacy.Server.Infrastructure/Options/PokeAPIOptions.cs
603
C#
using System; using Handelabra.Sentinels.Engine.Controller; using Handelabra.Sentinels.Engine.Model; using System.Collections; using Handelabra.Sentinels.Engine.Controller.TheSentinels; using System.Collections.Generic; using Handelabra; namespace Workshopping.TheSentinels { public class WrattleCharacterCardContr...
35.306667
351
0.743202
[ "MIT" ]
Handelabra/WorkshopSample
MyMod/TheSentinels/WrattleCharacterCardController.cs
2,650
C#
using System.Collections.Generic; using System.Linq; using NML.Parser.Contexts; using NML.Parser.Objects.Options; using NML.Parser.Objects.Values; using NML.Parser.Visitors; namespace NML.Parser.Objects.Elements { public class ImageElement : NamedElement, IElement, IElementOptions { public ImageElement() { At...
20.961538
68
0.733945
[ "MIT" ]
nml-lang/sdk
src/NML.Parser/objects/elements/ImageElement.cs
545
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.Threading.Tasks; using CommunityToolkit.WinUI; using CommunityToolkit.WinUI.UI.Controls; using Microsof...
30.616667
95
0.560152
[ "MIT" ]
ehtick/Uno.WindowsCommunityToolkit
UnitTests/UnitTests.XamlIslands.UWPApp/XamlIslandsTest_Eyedropper.cs
1,837
C#
using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Reddit.Controllers; using Reddit2Kindle.Contracts; using Reddit2Kindle.Functions.Contracts.Templates; using static Reddit2Kindle.Functions.Utils.RedditUtils; namespace Reddit2Kindle.Functions.Services { public cla...
45.535211
140
0.683576
[ "MIT" ]
JamieMagee/reddit2kindle
src/Reddit2Kindle.Functions/Services/Reddit2KindleService.cs
3,235
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace PhonePong.GameScreens { class TwoPlayerGameScreen : MainGameScreen { public override void Update(GameTime gameTime) { base.Update(gameTime); int topBarMoveme...
19.483871
62
0.721854
[ "Apache-2.0" ]
davidov541/WP7Pong
PhonePong/PhonePong/TwoPlayerGameScreen.cs
604
C#
using System; using System.Diagnostics; #nullable enable namespace HotChocolate.Types.Descriptors { public abstract class Convention<TDefinition> : Convention where TDefinition : class { private TDefinition? _definition; protected virtual TDefinition? Definition { ...
25.148148
91
0.572165
[ "MIT" ]
Alxandr/hotchocolate
src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/Convention`1.cs
1,358
C#
namespace DVFSModeling.Core.Algorithms { public class SPSATwoOnePhase : SPSAOne { const int UP_THRESHOLD = 64; const int FREQUENCY_PENALTY = 1000; Random r = new Random(DateTime.Now.Millisecond); double upscale; public SPSATwoOnePhase(int[] frequencies, long alpha, ...
30.283019
123
0.609969
[ "MIT" ]
Stanislav-Sartasov/DVFSModeling
DVFSModeling.Core/Algorithms/SPSATwoOnePhase.cs
1,607
C#
using System; using System.Collections.Generic; namespace ToDo { public class ToDoCardList { public static List<Card> toDoCardList {get; set;} static ToDoCardList() { toDoCardList = new List<Card>(); } public static void WriteToDoCardData() { ...
25.558824
67
0.490219
[ "MIT" ]
MuhammetFatihYilmaz/ToDo
ToDoCardList.cs
878
C#
using ErisLib.Server.Packets.Models; namespace ErisLib.Server.Packets.Server { public class TradeAcceptedPacket : Packet { public bool[] MyOffers; public bool[] YourOffers; public override PacketType Type => PacketType.TRADEACCEPTED; public override void Read(PacketReader r) ...
29.030303
68
0.544885
[ "MIT" ]
Azukee/Eris
ErisLib/Server/Packets/Server/TradeAcceptedPacket.cs
960
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
65.873874
266
0.690235
[ "MIT" ]
Agazoth/azure-powershell
src/DataBox/generated/api/Models/Api20210301/TransferConfigurationTransferAllDetails.json.cs
7,202
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.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Aw...
42.730435
172
0.636956
[ "ECL-2.0", "Apache-2.0" ]
dixler/pulumi-aws
sdk/dotnet/Ec2/SpotDatafeedSubscription.cs
4,914
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; namespace System.Text.Json.Serialization.Tests { public static partial class NullTests { [Fact] public static ...
44.528986
166
0.566314
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Text.Json/tests/Serialization/Null.WriteTests.cs
12,290
C#
using Kerberos.NET; using Kerberos.NET.Crypto; using Microsoft.Owin; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using NextFunc = System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>; namespa...
29.277778
126
0.603416
[ "MIT" ]
AlexanderSemenyak/Kerberos.NET
Samples/KerberosWebSample/KerberosEndToEndMiddleware.cs
2,110
C#
// <auto-generated/> // Contents of: hl7.fhir.r4.core version: 4.0.1 using System; using System.Buffers; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using Hl7.Fhir.Model; using Hl7.Fhir.Model.JsonExtensions; using Hl7.Fhir.Serializ...
32.970024
231
0.607884
[ "MIT" ]
QPC-database/fhir-codegen
test/perfTestCS/SystemTextJsonExt/Model/MessageDefinition.cs
27,497
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...
38.838983
193
0.649138
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CodeDeploy/Generated/Model/Internal/MarshallTransformations/GetDeploymentResponseUnmarshaller.cs
4,583
C#
// // Copyright (c) 2008-2011, Kenneth Bell // // 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, modify, m...
33.526316
114
0.60675
[ "MIT" ]
ChaplinMarchais/DiscUtils
src/Ntfs/DirectoryEntry.cs
2,548
C#
namespace PropertyInformationApi.V1.UseCase { public interface IValidatePostcode { bool Execute(string postcode); } }
17.25
43
0.702899
[ "MIT" ]
LBHackney-IT/property-information-api
PropertyInformationApi/V1/UseCase/Interfaces/IValidatePostcode.cs
138
C#
namespace Exemplum.Infrastructure.Persistence.Configurations; using Domain.Todo; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; public class TodoListConfiguration : IEntityTypeConfiguration<TodoList> { public void Configure(EntityTypeBuilder<TodoList> builder) { ...
27.434783
71
0.638669
[ "MIT" ]
ForrestTech/Exemplum
src/Infrastructure/Persistence/Configurations/TodoListConfiguration.cs
633
C#
/* * convertapi * * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Ge...
44.606061
281
0.608152
[ "Apache-2.0" ]
Cloudmersive/Cloudmersive.APIClient.NETCore.DocumentAndDataConvert
client/src/Cloudmersive.APIClient.NETCore.DocumentAndDataConvert/Model/RemovePptxSlidesRequest.cs
7,360
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CryptoGatherer { public enum CodeLanguage { Csharp, C_Cpp, Go, Java, JavaScript, PHP, Python, Ruby, Rust } ...
18.47561
100
0.522112
[ "MIT" ]
dilanbhalla/OSSGadget
src/CryptoGatherer/Types.cs
1,518
C#
using Mirror; using System.Collections; using System.Collections.Generic; using UnityEngine; public class CircleRulerTool : NetworkBehaviour { public GameObject rulerObject; public Camera mainCamera; GameObject activeRuler; private void Start() { if (mainCamera == null) mainCame...
34.277778
144
0.649514
[ "MIT" ]
BenThrelfall/DungeonTool
Assets/Scripts/CircleRulerTool.cs
2,468
C#
using System; using ClearHl7.Helpers; namespace ClearHl7.V290.Types { /// <summary> /// HL7 Version 2 VR - Value Range. /// </summary> public class ValueRange : IType { /// <inheritdoc/> public bool IsSubcomponent { get; set; } /// <summary> /// VR.1 - First Data C...
35.689655
119
0.571014
[ "MIT" ]
kamlesh-microsoft/clear-hl7-net
src/ClearHl7/V290/Types/ValueRange.cs
2,072
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.Collections.Generic; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFramewo...
57.487365
136
0.636963
[ "Apache-2.0" ]
garfbradaz/EntityFrameworkCore
src/EFCore/Extensions/ConventionModelExtensions.cs
15,924
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using AutoMapper; using Locadora.Filmes.Dados.Entity.Context; using Locadora.Filmes.Dominio; using Locadora.Filmes.Repositorios.Comum; using Locadora...
32.942029
130
0.587769
[ "MIT" ]
m4sterin/Locadora-Filmes
Locadora.Filmes.Web/Controllers/AlbunsController.cs
4,552
C#
using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting; namespace SignalR.Samples.SimpleChat { public class Startup { // This method gets called by the runtime. Use this method to add services ...
33.2
123
0.604991
[ "MIT" ]
radu-matei/dotnetcore-samples
simple-chat/Startup.cs
1,164
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...
31.746835
120
0.615231
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/MachineLearningServices/V20180301Preview/Outputs/DataFactoryResponse.cs
2,508
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace TaskManager { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
25.909091
70
0.707018
[ "MIT" ]
TclasenITVT/Modbus.Net
Samples/TaskManager/Global.asax.cs
572
C#
// *********************************************************************** // Assembly : ACBr.Net.Sat // Author : RFTD // Created : 04-29-2016 // // Last Modified By : RFTD // Last Modified On : 05-02-2016 // *********************************************************************** // <copyrigh...
40.25
115
0.605738
[ "MIT" ]
ACBrNet/ACBr.Net.Sat
src/ACBr.Net.Sat/ImpostoCofinsAliq.cs
3,381
C#