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 Newtonsoft.Json; using System; using System.Collections.Generic; namespace Kentico.Kontent.Management.Models.Collections; /// <summary> /// Represents content collections /// </summary> public class CollectionsModel { /// <summary> /// Gets or sets the list of content collections /// </summary> ...
28.68
100
0.698745
[ "MIT" ]
Kentico/content-management-sdk-net
Kentico.Kontent.Management/Models/Collections/CollectionsModel.cs
719
C#
using Amplifier; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Siya { public partial class nd { internal static dynamic exec = null; public static void use_device(int id = 0) { ...
34.848
84
0.48393
[ "MIT" ]
csrakowski/Amplifier.NET
src/Siya/CompilerUtility.cs
4,358
C#
using System; using System.Net.Http.Headers; using System.Web.Http.Filters; namespace SharpDevelopWebApi.Helpers.JWT { public static class HttpAuthenticationChallengeContextExtensions { public static void ChallengeWith(this HttpAuthenticationChallengeContext context, string scheme) { ...
33.533333
126
0.691849
[ "MIT" ]
Mjjunco/ExamStudents
Helpers/JWT/HttpAuthenticationChallengeContextExtensions.cs
1,008
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...
29.907692
99
0.600823
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/ApiManagement/V20200601Preview/Inputs/BackendCredentialsContractArgs.cs
1,944
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.IO; using Microsoft.AspNetCore.Hosting; namespace FormatterWebSite; public class Program { public static void Main(string[] args) { var host = CreateW...
25
72
0.653846
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Mvc/test/WebSites/FormatterWebSite/Program.cs
652
C#
namespace BinaryDataSerialization.Test.WhenNot { public class WhenNotClass { [FieldOrder(0)] public bool ExcludeValue { get; set; } [FieldOrder(1)] [SerializeWhenNot(nameof(ExcludeValue), true)] public int Value { get; set; } } }
21.846154
54
0.612676
[ "MIT" ]
jackwakefield/BinaryDataSerializer
BinaryDataSerializer.Test/WhenNot/WhenNotClass.cs
286
C#
//This file contains all the signals that are dispatched between Contexts using System; using strange.extensions.signal.impl; namespace TeamBrookvale { public class StartSignal : Signal {} public class PlayerGotoSignal : Signal<TouchScreenPosition> {} public class PlayerActionSignal : Signal<TouchScreenPosi...
34.642857
129
0.772509
[ "Apache-2.0" ]
TeamBrookvale/Saboteur-Diver
Assets/Scripts/MVCS/Common/Config/CrossContextSignals.cs
1,455
C#
/******************************************************************************* * Copyright 2012-2019 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...
71.431791
491
0.725094
[ "Apache-2.0" ]
JekzVadaria/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/ApplicationAutoScaling/Basic/Set-AASScalingPolicy-Cmdlet.cs
60,221
C#
using System.ComponentModel.DataAnnotations.Schema; namespace AkshaySDemoModels.PostgreSQL { [Table("recipes")] public class Recipe { [Column("id")] public int ID { get; set; } [Column("name")] public string Name { get; set; } [Column("description")] publi...
22.254902
168
0.644053
[ "Apache-2.0" ]
akshays2112/AkshaySDemo
AkshaySDemoModels/PostgreSQL/Recipe.cs
1,137
C#
using System.Threading.Tasks; namespace privatetestrunner.shared.interfaces { public interface ITestRunner { Task Run(); } }
16.111111
45
0.689655
[ "MIT" ]
keyoke/AzureApplicationInsights
PrivateAvailabilityTests/src/privatetestrunner.shared/interfaces/ITestRunner.cs
145
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace pjank.BossaAPI.DTO { /// <summary> /// Obiekt transportowy do przekazywania (między modułami biblioteki) /// podstawowych danych nt. konkretnego rachunku klienta. /// </summary> public class AccountData ...
24.375
71
0.731624
[ "Apache-2.0" ]
L-Sypniewski/bossa-api.net
BossaAPI/src/Networking/DTO/AccountData.cs
589
C#
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1.PalindromicPrime { public abstract class BasePalindromicPrimePrinter { public abstract void PrintNumbers(); } }
18.583333
53
0.748879
[ "MIT" ]
shervinmontajam/PalindromicPrime
ConsoleApp1/PalindromicPrime/BasePalindromicPrimePrinter.cs
225
C#
using System; using System.Linq; class Program { static void Main(string[] args) { int[] arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); for (int i = 0; i < arr.Length-1; i++) { int count = 0; for (int j = i+1; j < arr.Length; j++) ...
21.882353
86
0.348118
[ "MIT" ]
aalishov/SoftUni
02-C-Sharp-Fundamentals---May-2019/03. CSharp-Fundamentals-Arrays-Exercises/05. Top Integers/Program.cs
746
C#
namespace Elders.Hystrix.NET.Example { using System; using System.Globalization; using System.Threading; using Hystrix.NET.MetricsEventStream; internal class CurrentTimeBackgroundWorker : StoppableBackgroundWorker { private const string ThreadName = "Hystrix-Example-Worker-{0}"; ...
31.131579
120
0.606932
[ "Apache-2.0" ]
Elders/Hystrix.NET
src/Elders.Hystrix.NET.Example/CurrentTimeBackgroundWorker.cs
1,185
C#
namespace Gecko.WebIDL { using System; internal class MozContactChangeEvent : WebIDLBase { public MozContactChangeEvent(nsIDOMWindow globalWindow, nsISupports thisObject) : base(globalWindow, thisObject) { } public string ContactID...
19.870968
90
0.465909
[ "MIT" ]
haga-rak/Freezer
Freezer/GeckoFX/__Core/WebIDL/Generated/MozContactChangeEvent.cs
616
C#
//////////////////////////////////////////////////////////////////////// // Copyright (c) 2011-2016 by Rob Jellinghaus. // // All Rights Reserved. // //////////////////////////////////////////////////////////////////////// using Holofunk.Core; using...
35.875
100
0.580139
[ "MIT" ]
RobJellinghaus/Holofunk
HolofunkBass/BassStream.cs
1,724
C#
using System; using System.Collections.Generic; using System.Linq; using Content.Server.GameObjects.EntitySystems; using Content.Shared.GameObjects; using Robust.Server.GameObjects.Components.Container; using Robust.Server.Interfaces.GameObjects; using Robust.Server.Interfaces.Player; using Robust.Shared.GameObjects; ...
37.705357
118
0.551504
[ "MIT" ]
rjarbour/space-station-14
Content.Server/GameObjects/Components/GUI/InventoryComponent.cs
12,671
C#
using System; using System.Collections.Generic; using System.Linq; using IdentityServer4.Contrib.HttpClientService.Infrastructure.IdentityServer.Interfaces; using IdentityServer4.Contrib.HttpClientService.Infrastructure.IdentityServer.Models; namespace IdentityServer4.Contrib.HttpClientService.Infrastructure.Identity...
44.690476
138
0.690464
[ "Apache-2.0" ]
SteffenHeidrich/IdentityServer4.Contrib.HttpClientService
src/IdentityServer4.Contrib.HttpClientService/Infrastructure/IdentityServer/IdentityServerHttpClientSelector.cs
1,879
C#
using AgateLib.Display; using AgateLib.Mathematics.Geometry; using AgateLib.Demo.Fakes; using AgateLib.UserInterface.Content; using FluentAssertions; using Microsoft.Xna.Framework; using Moq; using System.Linq; using Xunit; namespace AgateLib.UserInterface.Widgets { public class LabelTest { private re...
36.120968
113
0.590534
[ "MIT" ]
eylvisaker/AgateLib
tests/AgateLib.UnitTests/UserInterface/Widgets/LabelTest.cs
4,481
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Composition; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeAct...
36.016949
160
0.578353
[ "Apache-2.0" ]
PrimoDev23/Roslynator
src/Analyzers.CodeFixes/CSharp/CodeFixes/DocumentCodeFixProvider.cs
2,127
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FishAI : MonoBehaviour { [SerializeField] private float speed; public bool moveRight; public bool caught; public bool released; void Start() { caught = false; } void Update() {...
31.61039
182
0.58258
[ "MIT" ]
JBroughton2/COMP140Controller
COMP140ControllerGame/Assets/Scripts/FishAI.cs
2,436
C#
using Microsoft.EntityFrameworkCore; namespace GensouSakuya.Aria2.Desktop.Model { public class DbContext:Microsoft.EntityFrameworkCore.DbContext { protected override void OnConfiguring(DbContextOptionsBuilder builder) { base.OnConfiguring(builder); builder.UseSqlite("Da...
27.727273
78
0.662295
[ "MIT" ]
GensouSakuya/aria2-desktop
src/GensouSakuya.Aria2.Desktop.Model/DbContext.cs
612
C#
 using Crowdin.Api.Core.Converters; using JetBrains.Annotations; namespace Crowdin.Api.Reports { [PublicAPI] [StrictStringRepresentation] public enum ReportCurrency { USD, EUR, JPY, GBP, AUD, CAD, CHF, CNY, SEK, NZD, ...
14.029412
34
0.429769
[ "MIT" ]
crowdin/crowdin-api-client-dotnet
src/Crowdin.Api/Reports/ReportCurrency.cs
479
C#
using System; using NUnit.Framework; namespace XSerializer.Tests { public class JsonMiscellaneousTypesTests { [Test] public void CanSerializeEnum() { var serializer = new JsonSerializer<Foo1>(); var foo = new Foo1 { Bar = Garply.Fred }; var json = s...
25.825758
154
0.512174
[ "MIT" ]
QuickenLoans/XSerializer
XSerializer.Tests/JsonMiscellaneousTypesTests.cs
3,409
C#
/* * Copyright (c) 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://www.apache.org/licenses/LICENSE-2.0 * * or in the "li...
32.096774
119
0.695477
[ "Apache-2.0" ]
QPC-database/ion-object-mapper-dotnet
Amazon.IonObjectMapper/Serializer/Primitive/IonBigDecimalSerializer.cs
997
C#
using System; using System.Diagnostics; using SalamanderWamp.Configuration; using SalamanderWamp.UI; using System.Windows.Controls; using System.Windows.Media; using System.ComponentModel; using SalamanderWamp.Tool; namespace SalamanderWamp.Programs { public class WampProgram: INotifyPropertyChanged { ...
31.487654
106
0.526955
[ "MIT" ]
salamander-mh/SalamanderWamp
SalamanderWamp/Programs/WampProgram.cs
5,153
C#
// Copyright 2018 Esri. // // 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 writing, software ...
42.220779
153
0.665026
[ "Apache-2.0" ]
ChrisFrenchPDX/arcgis-runtime-samples-dotnet
src/Forms/Shared/Samples/MapView/ChangeTimeExtent/ChangeTimeExtent.xaml.cs
3,251
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace WebAppMvcFwork { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{r...
25.208333
100
0.566942
[ "MIT" ]
byrne8783/controlled
someComparisons/WebAppMvcFwork/App_Start/RouteConfig.cs
607
C#
#region License // Author: Roman Kravchik // Based on HttpBasicAuthenticator class by John Sheehan // // 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.o...
34.148148
113
0.645879
[ "Apache-2.0" ]
Arch/RestSharp
RestSharp/Authenticators/JwtAuthenticator.cs
1,844
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace Ink.WebEnd.Controllers { [Route("api/[controller]")] public class SampleDataController : Controller { private static string[] Summaries = new[] { ...
28.533333
110
0.530374
[ "MIT" ]
Officialjide/WhiteInk
Ink/Ink.WebEnd/Controllers/SampleDataController.cs
1,284
C#
#if UNITY_INPUT_SYSTEM_ENABLE_XR || PACKAGE_DOCS_GENERATION using System.Runtime.InteropServices; using UnityEngine.InputSystem.Utilities; using UnityEngine.InputSystem.LowLevel; namespace UnityEngine.InputSystem.XR.Haptics { public struct HapticCapabilities { public HapticCapabilities(uint numChannels...
32.436364
114
0.678251
[ "MIT" ]
Axedas/hex-game
New Unity Project (1)/Library/PackageCache/com.unity.inputsystem@1.0.0/InputSystem/Plugins/XR/Haptics/GetHapticCapabilitiesCommand.cs
1,784
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("Su...
45.333333
84
0.786765
[ "Apache-2.0" ]
ChuckFork/SuperSocket
Common/Properties/AssemblyInfo.cs
818
C#
using System.Collections.Generic; using System.Linq; using AutoFixture; using FluentAssertions; using Frank.Libraries.Extensions; using Xunit; namespace Frank.Libraries.Tests.Extensions { public class EnumerableExtensionsTests { private readonly Fixture _fixture = new Fixture(); private reado...
23.096154
60
0.549542
[ "MIT" ]
stzoran1/Frank.Libraries
Frank.Libraries.Tests/Extensions/EnumerableExtensionsTests.cs
1,203
C#
using TinyCsvParser.Mapping; namespace Members.Scraper { public class CsvMemberMapping : CsvMapping<Member> { // 0. Customer ID // 1. Name // 2. Company / In Care Of // 3. Addr L1 // 4. Addr L2 // 5. Addr L3 // 6. Addr L4 // 7. Addr L5 ...
28.846154
77
0.518222
[ "MIT" ]
FrancisGrignon/toastmasters-schedule
src/Functions/Members.Scraper/Members.Scraper/CsvMemberMapping.cs
1,127
C#
using Iyzipay.Model; using Iyzipay.Request; using Iyzipay.Tests.Functional; using Iyzipay.Tests.Functional.Builder.Request; using NUnit.Framework; namespace Iyzipay.Tests.Functional { public class CardManagementRetrieveCardTest : BaseTest { [SetUp] public void SetUp() { Init...
42.462963
137
0.688181
[ "MIT" ]
LazZiya/iyzipay-dotnet
Iyzipay.Tests/Functional/CardManagementRetrieveCardTest.cs
2,294
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("Car...
37.837838
84
0.747857
[ "MIT" ]
mdamyanova/C-Sharp-Web-Development
07.C# DB Fundamentals/07.02.Databases Advanced - Entity Framework/10.JSON Processing/CarDealer/CarDealer.Models/Properties/AssemblyInfo.cs
1,403
C#
using System; namespace DXFLib { [AttributeUsage(AttributeTargets.Property)] class TableAttribute : Attribute { public string TableName; public Type TableParser; public TableAttribute(string name, Type parser) { this.TableName = name; this.TablePar...
18.526316
55
0.602273
[ "MIT" ]
codingdna2/WPF-DXF-Viewer
DXFLib/TableAttribute.cs
354
C#
//------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se // o código for gerado...
47.938776
153
0.645381
[ "MIT" ]
lucasestevan/SistemaVendasC-
SistemaVendas/SistemaVendas/Properties/Settings.Designer.cs
2,360
C#
using UnityEditor; using UnityEngine; namespace LongMan.GameUtil.Editors { /// <summary> /// Original Source: https://github.com/upscalebaby/generic-serializable-dictionary /// Draws the generic dictionary a bit nicer than Unity would natively (not as many expand-arrows /// and better spacing between ...
42.84
107
0.657796
[ "MIT" ]
Youngchangoon/GameUtil
Editor/GenericDictionaryPropertyDrawer.cs
2,144
C#
using SqlSugar; using System; using System.Collections.Generic; using System.Linq; namespace Mir.WorkServer.DependencyInjection.Orm { public class SqlSugarDbContextFactory : ISqlSugarDbContextFactory { private readonly IEnumerable<MirSqlSugarClient> _clients; public SqlSugarDbContextFactory(I...
27.74359
118
0.592421
[ "Apache-2.0" ]
miryuan/Mir.WorkServerTemplate
Mir.WorkServerTemplate/DependencyInjection/Orm/SqlSugarDbContextFactory.cs
1,084
C#
namespace Sentry.Tests; public class AppDomainProcessExitIntegrationTests { private class Fixture { public IHub Hub { get; set; } = Substitute.For<IHub, IDisposable>(); public IAppDomain AppDomain { get; set; } = Substitute.For<IAppDomain>(); public Fixture() => Hub.IsEnabled.Returns(...
25.980392
81
0.658868
[ "MIT" ]
TawasalMessenger/sentry-dotnet
test/Sentry.Tests/AppDomainProcessExitIntegrationTests.cs
1,325
C#
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6365, generator: {generator}) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using Commvault.Powershell.Runtime.PowerShell; /// <summary>Dell EMC ECS (S3-comp...
87.381579
444
0.733549
[ "MIT" ]
Commvault/CVPowershellSDKV2
generated/api/Models/DellEmc.PowerShell.cs
13,282
C#
using System; using System.IO; using System.Reflection; using System.Collections.Generic; using System.Linq; using System.Text; using Excel = NetOffice.ExcelApi; namespace NetOffice { class Program { static void Main(string[] args) { Console.WriteLine("NetOffice Release 1.3 Perform...
38.188889
113
0.588013
[ "MIT" ]
igoreksiz/NetOffice
Tests/Performance Tests/Test1/NetOffice/Program.cs
3,439
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.Text; using System.Diagnostics; using System.Runtime.InteropServices; using Microsoft.Wi...
25.32
71
0.71722
[ "MIT" ]
333fred/corefx
src/System.Security.Cryptography.Pkcs/src/Interop/Windows/Crypt32/Interop.CRYPT_ALGORITHM_IDENTIFIER.cs
633
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.IO; namespace Task05BookLibrary { class Book { public string Title { get; set; } public string Author { get; set; } public stri...
27
118
0.543812
[ "MIT" ]
samuilll/BeginnerExams
PrgrammingFundametnalsFast/09_FilesAndExeptions/Task09BookLibrary/Task09BookLibrary.cs
2,216
C#
/* * Domain Public API * * See https://developer.domain.com.au for more information * * The version of the OpenAPI document: v2 * Contact: api@domain.com.au * Generated by: https://github.com/openapitools/openapi-generator.git */ using Xunit; using System; using System.Linq; using System.IO; using System.Col...
25.670455
99
0.595396
[ "MIT" ]
neildobson-au/InvestOz
src/Integrations/Domain/Domain.Api.V2/src/Domain.Api.V2.Test/Model/ListingsV2ListingMediaTests.cs
2,259
C#
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ // // 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 ...
27.491525
90
0.673243
[ "Apache-2.0" ]
111cctv19/Windsor
src/Castle.Windsor/Core/ParameterModelCollection.cs
3,244
C#
using System.Net; namespace CreativeCoders.Net.Servers.Http.SimpleImpl { internal class HttpListenerRequestWrapper : IHttpRequest { private readonly HttpListenerRequest _request; public HttpListenerRequestWrapper(HttpListenerRequest request) { _request = request; ...
26.47619
70
0.683453
[ "Apache-2.0" ]
CreativeCodersTeam/Core
source/Net/CreativeCoders.Net/Servers/Http/SimpleImpl/HttpListenerRequestWrapper.cs
558
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...
32.610169
108
0.694906
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/CloudFront/Generated/Model/CreateDistributionWithTagsRequest.cs
1,924
C#
namespace Res.Core.TcpTransport { public class ErrorEntry { public int ErrorCode { get; private set; } public string Message { get; private set; } public ErrorEntry(int errorCode, string message) { ErrorCode = errorCode; Message = message; } }...
23
56
0.574534
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
heartysoft/res
src/res/Res.Core/TcpTransport/ErrorEntry.cs
322
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using UnityEngine.AddressableAssets.ResourceLocators; using UnityEngine.Networking; using UnityEngine.ResourceManagement; using UnityEngine.ResourceManagement.AsyncOperations; using UnityEngine.ResourceManagement.ResourceLocat...
47.412148
172
0.537768
[ "MIT" ]
WeLikeIke/DubitaC
Source/Library/PackageCache/com.unity.addressables@1.19.17/Runtime/ResourceProviders/ContentCatalogProvider.cs
21,857
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Transactions; namespace gs { public class GenericGCodeParser { public GCodeFile Parse(TextReader input) { GCodeFile file = new GCodeFile(); int lines = ...
27.284884
99
0.549329
[ "MIT" ]
tg73/gsGCode
parsers/GenericGCodeParser.cs
9,388
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using TypeSqf.Model; namespace TypeSqf.Edit.Highlighting { public static class SyntaxHighlightingHandler { priva...
35.210643
216
0.572019
[ "MIT" ]
GHSid/Apps-TypeSqfEdit
TypeSqf/Highlighting/SyntaxHighlightingHandler.cs
47,642
C#
#region Copyright (c) 2006-2019 nHydrate.org, All Rights Reserved // -------------------------------------------------------------------------- * // NHYDRATE.ORG * // Copyright (c) 2006-2019 All Rights reserved * // ...
46.64486
129
0.550791
[ "MIT" ]
mtgibbs/nHydrate
Source/nHydrate.Generator.EFDAL/Generators/ComplexTypes/ComplexTypesExtenderGenerator.cs
4,991
C#
// // MessageEncodingBindingElement.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2005 Novell, Inc. http://www.novell.com // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal...
30.891892
73
0.757218
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/System.ServiceModel/System.ServiceModel.Channels/MessageEncodingBindingElement.cs
2,286
C#
using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Windows; using System.Windows.Input; using MahApps.Metro.Controls; using ReactiveUI; using ReactiveUI.Fody.Helpers; using ReactiveUI.Validation.Extensions; using ReactiveUI.Validation.Helpers; using ValidationHelper = Rea...
43.909091
125
0.616701
[ "BSD-3-Clause" ]
MartinBriza/toggldesktop
src/ui/windows/TogglDesktop/TogglDesktop/ui/ViewModels/PreferencesWindowViewModel.cs
7,245
C#
using FluentNHibernate.Mapping; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SmartCattle.Web.Domain { public class CattlesScoreTbl { public virtual int ID { get; set; } public virtual double BodyCondition { get; set; } public virtual do...
36.263158
63
0.578616
[ "Apache-2.0" ]
PooyaAlamirpour/SmartCattle
SmartCattle.Web/Domain/CattlesScoreTbl.cs
2,069
C#
using System; using System.Collections.Generic; using System.Text; using Snowflake.Services; namespace Snowflake.Extensibility { /// <summary> /// Represents an always-updated collection of plugins relative to /// a <see cref="IPluginManager"/> that always gets all the plugins loaded of type T. /// </...
32.208333
89
0.639069
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SnowflakePowered/snowflake
src/Snowflake.Framework.Primitives/Extensibility/IPluginCollection.cs
775
C#
namespace Try_More_On_IEnumerable { using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using FluentAssertions; /// <summary> /// https://dotnetfiddle.net/Widget/vShbOW /// </summary> public class T09获取一个链接字符串 { ...
31.116279
104
0.540359
[ "MIT" ]
newbe36524/Newbe.Demo
src/BlogDemos/Try-More-On-IEnumerable/Try-More-On-IEnumerable/T09获取一个链接字符串.cs
1,468
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; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.Build.Collections; using...
47.026002
282
0.575694
[ "MIT" ]
AlexanderSemenyak/msbuild
src/Build/BackEnd/Components/RequestBuilder/TargetEntry.cs
43,405
C#
using System; using System.Collections.Generic; using System.Text; namespace LeetCode_11 { public class Solution { public int MaxArea(int[] height) { var maxArea = 0; for(var i = 0; i < height.Length; i++) { for(var j = i + 1; j < height.Len...
23.678571
80
0.435897
[ "MIT" ]
sdlfly2000/LeetCode
LeetCode/LeetCode-11/Solution.cs
665
C#
using UnityEngine; public class SetUI : MonoBehaviour { private void Start() { if (SetAspectRatio.setAspectRatio.RightAspectRatio == false) { try { GameObject.Find("Tap To Retry text").GetComponent<RectTransform>().localPosition = new Vector3(-30, -500); } catch { } } ...
21.444444
136
0.562176
[ "MIT" ]
SolomonRosemite/Unity-FutureCube
FutureCube/Assets/Scripts/SetUI.cs
388
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ModelAllPublicSetReadOnlyListOfNullableParent.cs" company="OBeautifulCode"> // Copyright (c) OBeautifulCode 2018. All rights reserved. // </copyright> // <auto-generated> // S...
64.957143
229
0.729712
[ "MIT" ]
OBeautifulCode/OBeautifulCode.CodeGen
OBeautifulCode.CodeGen.ModelObject.Test/Models/Scripted/All/PublicSet/ReadOnlyListOfNullable/ModelAllPublicSetReadOnlyListOfNullableParent.cs
4,549
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.Diagnostics; using static Interop; namespace System.Windows.Forms.PropertyGridInte...
29.959184
93
0.493188
[ "MIT" ]
ArtemTatarinov/winforms
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/PropertyGridView.MouseHook.MouseHookObject.cs
1,470
C#
using System; using System.Linq; using System.Text; using System.Text.Encodings.Web; using System.Threading.Tasks; using SampleSite.Identity; using SampleSite.Identity.ManageViewModels; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Exten...
36.901923
149
0.585492
[ "MIT" ]
BuzzDee3000/AspNetCore.Identity.Mongo
SelfCheck/Controllers/ManageController.cs
19,191
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Changes to this file will be lost if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ usin...
29.412766
150
0.685909
[ "MIT" ]
havit/HavitFramework
BusinessLayerTest/_generated/RoleLocalizationCollectionBase.cs
7,072
C#
using Disqord.Models; namespace Disqord { public abstract class CachedNestedChannel : CachedGuildChannel, IGuildChannel { public CachedCategoryChannel Category { get { var categoryId = CategoryId; return categoryId != null ...
27.352941
127
0.541935
[ "MIT" ]
Anu6is/Disqord
src/Disqord/Entities/Channels/Guild/CachedNestedChannel.cs
932
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FindCaveRoute { class Extensions { } }
13.285714
33
0.709677
[ "Apache-2.0" ]
ArranSmedley/Dijkstras-algorithm-
FindCaveRoute/Extensions.cs
188
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
53.088889
219
0.646505
[ "MIT" ]
ScriptBox99/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/ProfilePhotoContentRequest.cs
4,778
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 Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Http.Connections; using Microsoft.AspNetCore.Http.Connections.Inter...
47.94702
247
0.714641
[ "MIT" ]
JackyFei/aspnetcore
src/SignalR/common/Http.Connections/src/ConnectionEndpointRouteBuilderExtensions.cs
7,240
C#
using AppDynamics.Extension.SDK; using AppDynamics.Extension.SDK.Model.Enumeration; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AppDynamics.Infrastructure.Framework.Extension { public class ExtensionActivator { private ...
37.367521
119
0.557868
[ "Apache-2.0" ]
Appdynamics/DotNetAgentExtensionManager
Source/AppDynamics.Extension.Manager/AppDynamics.Extension.Infrastructure/Framework/Extension/ExtensionActivator.cs
4,374
C#
using Core.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExampleManager { [ExampleClass(Description = "Lambda Method Running Example")] class TestLambdaMethod { [ExampleMethod] static void Main(...
20.545455
70
0.623894
[ "MIT" ]
geegee4iee/example-manager
ExampleManager/RuntimeSource/TestLambdaMethod.cs
454
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> //--...
38.458333
172
0.601661
[ "MIT" ]
izzettunc/dbscan
DBScan/Properties/Resources.Designer.cs
2,771
C#
using System.IdentityModel.Tokens.Jwt; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; namespace smart_app { public class Startup { // This method gets called by the runtime. Use this method to add services to the container. ...
32.83871
122
0.579568
[ "BSD-3-Clause" ]
brianpos/smart-on-fhir
src/smart-app/Startup.cs
2,038
C#
namespace TrinketDigitalSecurity { public partial class F_M_Four_05 : Form { public F_M_Four_05() { InitializeComponent(); } private void btn_exit_Click(object sender, EventArgs e) { Close(); } private void btn_next_Click(object ...
22.6875
63
0.520661
[ "MIT" ]
danhpaiva/bugiganga-digital-security
TrinketDigitalSecurity/forms/module_four/F_M_Four_05.cs
728
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
48.35755
233
0.609597
[ "MIT" ]
bganapa/azure-powershell
src/Storage/custom/Dataplane.v1/Blob/Cmdlet/StartAzureStorageBlobCopy.cs
33,248
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Intense { /// <summary> /// Defines a uniform contract for hierarchical data structures. /// </summary> public interface IHierarchyService<T> { /// <su...
26.142857
69
0.553279
[ "MIT" ]
mediaexplorer74/InteropTools
UI/Libs/Intense/IHierarchyService.cs
707
C#
using System.Collections.Generic; using System.Linq; using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.IO; namespace ICantBelieveItsNotVanilla.Items.Accessories { public class TheArtOfWar : MetaItem { public static string ToolTipTemplate = ModHelper.Tooltip( ...
31.137255
101
0.499055
[ "MIT" ]
Malexion/ICantBelieveItsNotVanilla
Items/Accessories/TheArtOfWar.cs
3,178
C#
using System; using System.Collections.Generic; using NUnit.Framework; using Rebus.Bus; using Rebus.Configuration; using Rebus.Persistence.InMemory; using Rebus.Tests.Persistence.Sagas; using Rhino.Mocks; using Shouldly; namespace Rebus.Tests.Unit { [TestFixture] public class TestDispatcher : Fix...
32.571429
132
0.529953
[ "Apache-2.0" ]
jacobbonde/Rebus
src/Rebus.Tests/Unit/TestDispatcher.cs
9,350
C#
{{- SKIP_GENERATE = DtoInfo.CreateTypeName == DtoInfo.UpdateTypeName -}} using System; using System.ComponentModel; {{~ for prop in EntityInfo.Properties ~}} {{~ if prop | abp.is_ignore_property; continue; end ~}} {{~ if prop.Type | string.starts_with "IEnumerable<" ~}} using System.Collections.Generic; {{~...
32.176471
90
0.548446
[ "MIT" ]
blyzer/AbpHelper.CLI
src/AbpHelper.Core/Templates/Crud/Groups/Service/src/{{ProjectInfo.FullName}}.Application.Contracts/{{EntityInfo.RelativeDirectory}}/Dtos/{{DtoInfo.UpdateTypeName}}.cs
1,094
C#
using System.Threading.Tasks; using CatFactory.EntityFrameworkCore; using CatFactory.ObjectRelationalMapping.Actions; using CatFactory.SqlServer; using Xunit; namespace CatFactory.AspNetCore.Tests { public class ScaffoldingTests { [Fact] public async Task ScaffoldingAPIFromOnlineStoreDatabaseA...
42.587444
160
0.5825
[ "MIT" ]
hherzl/CatFactory.AspNetCore
CatFactory.AspNetCore.Tests/ScaffoldingTests.cs
9,499
C#
using System.Collections.Generic; using System.Diagnostics.Contracts; using Algebraic.Numbers.Integers; // ReSharper disable once CheckNamespace namespace Algebraic.Numbers { public static partial class IntegerSequence { private static class A000007 { [Pure] public stat...
25.133333
63
0.525199
[ "MIT" ]
RSCorporation/Algebraic
Algebraic/src/Numbers/Integers/Sequences/A000007.cs
756
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Microsoft.ClearScript; using Microsoft.ClearScript.V8; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; namespace Handlebars...
37.506579
157
0.525522
[ "Apache-2.0" ]
james-andrewsmith/handlebars-net
src/Engine/ClearScriptEngine/ClearScriptEngine.cs
5,703
C#
using System; namespace SampleWebApp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
18.5
71
0.635135
[ "MIT" ]
kevinhillinger/azureadb2c-aspnetcore-sample
app/backend/SampleWebApp/Models/ErrorViewModel.cs
222
C#
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Threading.Tasks; //todo - save where stopped //todo - add a game menu namespace SnakeGame { class Snake { private static string snakeSign = "*"; private static string foodSi...
29.806452
111
0.433502
[ "MIT" ]
AleksandrinaGeorgieva/SnakeGame
SnakeGame/Snake.cs
8,318
C#
using UnityEngine; using TMPro; using UnityEngine.Localization.Components; public class UIInspectorDescription : MonoBehaviour { [SerializeField] private LocalizeStringEvent _textDescription = default; [SerializeField] private TextMeshProUGUI _textHealthRestoration = default; [SerializeField] private LocalizeStrin...
30.206897
82
0.783105
[ "Apache-2.0" ]
GFX5000i/open-project-1
UOP1_Project/Assets/Scripts/UI/Inventory/UIInspectorDescription.cs
878
C#
using System; using Myre.UI.InputDevices; namespace Myre.UI.Gestures { public class ScrollWheelMoved : Gesture<MouseDevice> { public ScrollWheelMoved() : base(false) { BlockedInputs.Add(1 + 5/*Enum.(typeof(MouseButtons)).Length*/); } protected o...
22.6
75
0.586283
[ "MIT" ]
martindevans/Myre
Myre/Myre.UI/Gestures/ScrollWheelMoved.cs
454
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("05....
37.837838
84
0.745
[ "MIT" ]
spiderbait90/Step-By-Step-In-C-Sharp
Programming Fundamentals/Lists/05. Bomb Numbers/Properties/AssemblyInfo.cs
1,403
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.SpacingRules { using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft...
47.445313
202
0.655689
[ "MIT" ]
angelobreuer/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers/SpacingRules/SA1013ClosingBracesMustBeSpacedCorrectly.cs
6,075
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 Xunit; namespace System.SpanTests { public static partial class ReadOnlySpanTests { [Fact] ...
41.274194
140
0.54787
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Memory/tests/ReadOnlySpan/IndexOfSequence.T.cs
5,118
C#
/* * File storage API * * Welcome to the file-storage. You can use this API to access all file-storage endpoints. ## Base URL The base URL for all API requests is `https://unify.apideck.com` ## GraphQL Use the [GraphQL playground](https://developers.apideck.com/graphql/playground) to test out the GraphQL API. ...
112.422764
18,155
0.617334
[ "MIT" ]
grexican/apideck
src/Apideck.FileStorage/Model/GetSharedLinkResponse.cs
27,679
C#
using AkshaySDemoModels; using System.Collections.Generic; using System.Linq; namespace AkshaySDemoMySQL.Data { public class AkshaySDemoMySQLDbOperations { private readonly AkshaySDemoMySQLContext rc = new AkshaySDemoMySQLContext(); public IEnumerable<Recipe> GetAllRecipes() { ...
22.970588
84
0.432138
[ "Apache-2.0" ]
akshays2112/AkshaySDemo
AkshaySDemoMySQL/Data/AkshaySDemoMySQLDbOperations.cs
1,564
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
33.736111
161
0.689172
[ "MIT" ]
kosmakoff/SuperShell
SuperShell/Properties/Resources.Designer.cs
2,431
C#
using System.Runtime.InteropServices; namespace Vulkan { [StructLayout(LayoutKind.Sequential)] public struct VkPhysicalDevice8BitStorageFeatures { public VkStructureType SType; [NativeTypeName("void *")] public nuint PNext; [NativeTypeName("Bool32")] public uint StorageBuffer8BitA...
25.684211
81
0.723361
[ "BSD-3-Clause" ]
trmcnealy/Vulkan
Vulkan/Structs/VkPhysicalDevice8BitStorageFeatures.cs
488
C#
using Facebook.Yoga; using ReactNative.Bridge; //using ReactNative.Reflection; using ReactNative.UIManager; using ReactNative.UIManager.Annotations; //using ReactNative.Views.Text; using System; using Tizen; using ReactNative.Common; using Newtonsoft.Json.Linq; namespace ReactNative.Views.TextInput { ...
36.903509
186
0.56299
[ "MIT" ]
MrDG79/react-native-tizen-dotnet
Framework/ReactNet/ReactNativeTizen/Views/TextInput/ReactTextInputShadowNode.cs
8,416
C#
using System.Collections.Generic; using System.IO; namespace Programmerare.CrsTransformations.TestData { // a better class name would be desirable (and then change it in the Kotlin project too) class ResultAggregator { private IList<FileWithRows> listOfFileWithRows = new List<FileWithRows>(); public void Add...
39.969697
176
0.657316
[ "MIT" ]
TomasJohansson/crsTransformations-dotnet
TestAndExampleProjects/Programmerare.CrsTransformations.Test/TestData/ResultAggregator.cs
2,638
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using benchmark; using System.Globalization; namespace oop_c_ { class Program { static double TRAIN_TEST_SPLIT = 0.1; static double LEARNING_RATE = 0.3; static int N_EPOCHS = 500; ...
36.305687
132
0.491221
[ "MIT" ]
lrecht/ParadigmComparison
benchmarks/NN/oop_c#/Program.cs
15,327
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using ET; using System; using System.Reflection; namespace EGamePlay.Combat { public static class ConfigHelper { public static T Get<T>(int id) where T : class, IConfig { return ConfigManageComponent.Ins...
33.968254
107
0.597664
[ "MIT" ]
ErQing/EGamePlay
Assets/EGamePlay/Component/ConfigManageComponent.cs
2,142
C#
namespace Shuhari.WinTools.Core.Features.SysOptimize { /// <summary> /// 系统优化 /// </summary> public class Feature : BaseFeature { } }
15.9
53
0.591195
[ "MIT" ]
shuhari/Shuhari.WinTools
Shuhari.WinTools.Core/Features/SysOptimize/Feature.cs
169
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespac...
39.861502
225
0.480455
[ "MIT" ]
Pivojak/EvidenceZvirat
Classes/SpravceZvirat.cs
85,839
C#