content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// Copyright (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.Data.Common; using System.Linq; using System.Linq.Expressions; using JetBrains.Annotations; using Microsoft.EntityFrameworkCo...
40.763158
116
0.585754
[ "Apache-2.0" ]
Alecu100/EntityFrameworkCore
src/EFCore.Relational/Query/Sql/Internal/FromSqlNonComposedQuerySqlGenerator.cs
4,647
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UniHttpScriptBehaviour : UniScriptBehaviour { public string scriptUrl; public void Awake() { if (string.IsNullOrEmpty(scriptUrl)) return; StartCoroutine(ReloadScript()); } IEnu...
20.888889
56
0.617021
[ "MIT" ]
TK-Aria/AriaUnity-HotReload
Runtime/UniScript/Scripts/UniHttpScriptBehaviour.cs
566
C#
using System; namespace lottery1 { class Program { static void Main(string[] args) { Console.WriteLine("Lotto"); Random rnd = new Random(); int[] lottery = new int[7]; for (int i = 0; i < lottery.Length;) { lottery[i] ...
27.938776
64
0.341125
[ "MIT" ]
Teropau/programming-basics-2018
Array_tasks/lottery1/lottery1/Program.cs
1,372
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime....
37.75
145
0.684157
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/Windows/um/mmeapi/AUXCAPS2W.cs
1,965
C#
using MC_Debug_Monitor.Properties; using MC_Debug_Monitor.utils; using System; using System.Collections.Generic; using System.Net; using System.Windows.Forms; namespace MC_Debug_Monitor.Controls { public partial class serverManager : UserControl { public serverManager() { Initializ...
32.381503
146
0.50482
[ "MIT" ]
kemo14331/MC-Debug-Monitor
MC Debug Monitor/Controls/ServerManager.cs
5,742
C#
using NiconicoToolkit.Mylist; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace NiconicoToolkit.Follow { public class FollowMylistResponse : ResponseWithMeta { [JsonPropertyName("data")] ...
23.657895
56
0.65406
[ "MIT" ]
tor4kichi/NiconicoToolkit
NiconicoToolkit.Shared/Follow/FollowMylistResponse.cs
901
C#
using System; namespace keeema.aquapcetraffic { class TrafficItem { public string Place { get; set; } public DateTime TimeStamp { get; set; } public int Count { get; set; } public override string ToString() { return $"Place: {this.Place}, Count: {this.Count...
20.888889
97
0.571809
[ "MIT" ]
keeema/aquapce-traffic
TrafficItem.cs
376
C#
namespace LeetCode.Naive.Problems; /// <summary> /// Problem: https://leetcode.com/problems/minimum-time-to-remove-all-cars-containing-illegal-goods/ /// Submission: https://leetcode.com/submissions/detail/635706432/ /// </summary> internal class P2167 { public class Solution { public int Minim...
25.686567
104
0.475886
[ "MIT" ]
viacheslave/algo
leetcode/c#/Problems/P2167.cs
1,721
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...
33.717949
167
0.679848
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/KeyVault/V20200401Preview/Outputs/VirtualNetworkRuleResponse.cs
1,315
C#
using System; using System.Collections.Generic; namespace ViennaNET.Messaging.Resources.Impl { /// <summary> /// Базовый класс хранилища ресурсов для сериализации сообщений /// </summary> public abstract class ResourcesStorage : IResourcesStorage { /// <inheritdoc /> public IDictionary<Type, IEnum...
30.758621
123
0.684978
[ "MIT" ]
Magicianred/ViennaNET
ViennaNET.Messaging/Resources/Impl/ResourcesStorage.cs
1,023
C#
//------------------------ // My Ideas // Endless runner // Avoid obstacles(Trees, you bounce back a bit if you hit it) // Pickup objects // Powerups(faster, higher highscore) // powerdowns( slower, less highscore, restart, reverse controlls) // or use the trees as real obstacles? // High score // using System.Collec...
29.441379
66
0.487936
[ "Unlicense" ]
adde9708/Scripts-unity
Playerscript_2dplatformer.cs
4,271
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PixelGridSnap : MonoBehaviour { [SerializeField] private float pixelsPerUnit = 16f; void LateUpdate () { var unitsPerPixel = 1f / pixelsPerUnit; var parentPos = transform.parent.position; ...
22.363636
63
0.624661
[ "MIT" ]
Chienoki/NitoriWare
Assets/Scripts/Generic Microgame Behaviors/Movement/PixelGridSnap.cs
740
C#
using System.Reflection; 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: AssemblyTitle("C&C AI Editor")] [assembly: Assembl...
41.183333
84
0.706597
[ "ISC" ]
E1Elite/aiedit
AssemblyInfo.cs
2,471
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.Diagnostics; namespace System.Net.Sockets { // OverlappedAsyncResult // // This class is used to take care of storage for async Socket operation // from...
33.848485
148
0.671441
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Net.Sockets/src/System/Net/Sockets/OverlappedAsyncResult.Unix.cs
1,117
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; namespace StrandedStringBuilder { [DebuggerStepThrough] internal sealed class Chunk { public object Value; private string _string; private bool _isCon...
24.333333
70
0.54735
[ "MIT" ]
ChaosPandion/StrandedStringBuilder
StrandedStringBuilder/Chunk.cs
1,681
C#
using System; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; using WebApiClientCore.Exceptions; namespace WebApiClientCore.JsonConverters { /// <summary> /// JsonString的类型转换器 /// </summary> class JsonStringConverter : JsonConverterFactory { /// <summary> ...
34.640449
112
0.53422
[ "MIT" ]
BarlowDu/WebApiClient
WebApiClientCore/JsonConverters/JsonStringConverter.cs
3,211
C#
#region License // Copyright (c) 2020 Jens Eisenbach // // 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, mo...
42.111111
101
0.727101
[ "MIT" ]
aalex675/BricklinkSharp
BricklinkSharp.Client/Cost.cs
2,655
C#
using System; using System.Linq; using System.Diagnostics.Contracts; /// <summary> /// Extensions for Tuples /// </summary> public static partial class TupleExtensions { public static long Sum<T1>(this Tuple<T1> value, Func<object, long> func) { Contract.Requires<ArgumentNullException>(value != null); ...
34.852459
115
0.680621
[ "MIT" ]
nicenemo/Noaber
Noaber/TupleExtensions/TupleExtensions.SumOfLong.cs
2,128
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BaseGeometryYVP.GeomObjects; namespace StepExtractor.EntityModels { public class CartesianPoint : Point3D, IEntityModel { /// <summary> /// Название сущности в STEP файле ...
23.83871
92
0.602165
[ "Apache-2.0" ]
iHandy/STEPOperations
StepExtractor/StepExtractor/EntityModels/CartesianPoint.cs
833
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 ...
40.5
99
0.601002
[ "Apache-2.0" ]
0xAAE/npoi
examples/hssf/NumberFormatInXls/Program.cs
5,615
C#
using System.Collections.Generic; using System.IO; public class ConfigFileFinder { public static List<string> FindWeaverConfigs(string solutionDirectoryPath, string projectDirectory, ILogger logger) { var files = new List<string>(); var solutionConfigFilePath = Path.Combine(solutionDirectoryP...
38.025641
291
0.669589
[ "MIT" ]
LaudateCorpus1/Fody
Fody/ConfigFileFinder.cs
1,483
C#
using System; using Newtonsoft.Json; using Stripe.Infrastructure; namespace Stripe { public class StripeToken : StripeObject { [JsonProperty("created")] [JsonConverter(typeof(StripeDateTimeConverter))] public DateTime? Created { get; set; } [JsonProperty("description")] public string Description { get; s...
26.076923
52
0.715339
[ "Apache-2.0" ]
iATN/stripe.net
src/Stripe/Entities/StripeToken.cs
1,358
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using BJJTrainer.Data; namespace BJJTrainer.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migratio...
33.442368
117
0.470517
[ "MIT" ]
blogue/BJJTrainer
src/BJJTrainer/Data/Migrations/20161004175901_AddVideoPropertyToDrill.Designer.cs
10,737
C#
namespace OmniSharp.Mef { public interface IRequestHandler { } }
11.142857
36
0.653846
[ "MIT" ]
333fred/omnisharp-roslyn
src/OmniSharp.Abstractions/Mef/IRequestHandler.cs
80
C#
// Copyright 2020 Energinet DataHub A/S // // Licensed under the Apache License, Version 2.0 (the "License2"); // 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 a...
35.607143
93
0.738215
[ "Apache-2.0" ]
Energinet-DataHub/geh-timeseries
source/GreenEnergyHub.TimeSeries/source/GreenEnergyHub.TimeSeries.Core/Enumeration/ExactValueNameComparisonStrategy.cs
999
C#
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ using BootstrapBlazor.Components; using BootstrapBlazor.Shared.Common; us...
33.668605
111
0.458125
[ "Apache-2.0" ]
O-o0O/BootstrapBlazor
src/BootstrapBlazor.Shared/Samples/Layouts.razor.cs
5,849
C#
using System; using System.IO; using SmartVideo.Transport; namespace SmartVideoHub { public class SmartVideoLocalServiceHandler : SmartVideoLocalService.Iface { public bool uploadMedia(MediaStruct media) { try { Console.WriteLine("Receiving media from : {0}, size : ...
26.043478
110
0.564274
[ "MIT" ]
zhen08/SmartHomeV1
SmartVideo/SmartVideoHub/SmartVideoLocalServiceHandler.cs
601
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...
49.055556
345
0.623757
[ "Apache-2.0" ]
aws/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Lightsail/Basic/Update-LSBucket-Cmdlet.cs
15,894
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.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading; using Microsoft.AspNetCore.Mvc.Abstra...
37.715789
128
0.63885
[ "Apache-2.0" ]
Elfocrash/Mvc
src/Microsoft.AspNetCore.Mvc.Core/Internal/ActionDescriptorCollectionProvider.cs
3,583
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OAuth2Manager.Common; namespace OAuth2Manager.Core.Methods.TwoLegged { public class OAuth2ResourceOwnerPassword : OAuth2Base { private string userName; private string passw...
34.984375
175
0.584636
[ "MIT" ]
IAmWaseem/oauth2-xamarin
Core/Methods/TwoLegged/OAuth2ResourceOwnerPassword.cs
2,241
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 ...
23.248408
124
0.669863
[ "Apache-2.0" ]
sdk-team/aliyun-openapi-net-sdk
aliyun-net-sdk-iot/Iot/Model/V20190730/GetPoolFunctionsByIdListForTmallGenieRequest.cs
3,650
C#
using io.odysz.anclient; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows; using System.Windows.Input; using TreeViewFileExplorer.ShellClasses; namespace TreeViewFileExplorer { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> ...
31.393939
105
0.552365
[ "Apache-2.0" ]
odys-z/jclient
examples/example.cs/album-wpf/album-sync/MainWindow.xaml.cs
4,146
C#
// ----------------------------------------------------------------------- // <copyright file="ContinuousFuture.cs" company=""> // Copyright 2013 Alexander Soffronow Pagonidis // </copyright> // ----------------------------------------------------------------------- using System; using System.ComponentModel.DataAnnot...
27.991803
124
0.454612
[ "BSD-3-Clause" ]
santoch/qdms
QDMS/EntityModels/ContinuousFuture.cs
6,832
C#
using System; using System.Collections; using System.Collections.Generic; ////REVIEW: switch to something that doesn't require the backing store to be an actual array? //// (maybe switch m_Array to an InlinedArray and extend InlinedArray to allow having three configs: //// 1. firstValue only, 2. firstValue + additio...
36.945274
237
0.566927
[ "Unlicense" ]
23SAMY23/Meet-and-Greet-MR
Meet & Greet MR (AR)/Library/PackageCache/com.unity.inputsystem@1.0.2/InputSystem/Utilities/ReadOnlyArray.cs
7,426
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using AtCoder; public static class SuffixArrayLong { public static long Calc(int n) { long ans = 0; ...
23.076923
57
0.6
[ "CC0-1.0" ]
kzrnm/ac-library-csharp
Test/AtCoderLibrary.Benchmark/Benchmark/SuffixArrayLong.cs
602
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity { using System.Collections.Generic; using System.ComponentModel; using System.Data.Common; using System.Data.Entity.Core.Objects; using S...
50.28858
180
0.656151
[ "Apache-2.0" ]
DenisBalan/ef6
src/EntityFramework/DbContext.cs
32,587
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.Device.Gpio; using System.Device.Gpio.Drivers; using System.IO; using System.Runtime.InteropServices; using System.Thread...
37.207161
238
0.563101
[ "MIT" ]
Manny27nyc/nanoFramework.IoT.Device
src/devices_generated/Gpio/Drivers/Sunxi/SunxiDriver.cs
14,548
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Zodziu_paieska { class Program { const string INPUT_FILE1 = @"../../../Trecias.txt"; const string INPUT_FILE2 = @"../../../Zodziai_1.txt"; static void Main(string[] args) { ...
30.654088
131
0.326016
[ "MIT" ]
Luj8n/ktug
LD/LD_05/C#/martynas-sm/Zodziu_paieska/Program.cs
4,876
C#
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. */ using System.Configuration; using Microsoft.Xrm.Client.Configuration; using Microsoft.Xrm.Portal.Cms.WebsiteSelectors; namespace Microsoft.Xrm.Portal.Configu...
32.548387
142
0.745292
[ "MIT" ]
Adoxio/xRM-Portals-Community-Edition
Framework/Microsoft.Xrm.Portal/Configuration/WebsiteSelectorElement.cs
2,018
C#
using FronApiUs.Core.Contracts; using FronApiUs.Core.Endpoints; using FronApiUs.Core.Models; using FronApiUs.Core.Parameters; using MediatR; namespace FronApiUs.Core.Requests; public class GetNowSensorData : IFronApiUsRequest, IRequest<List<NowSensorData>> { public GetNowSensorData(int deviceId) { va...
29.939394
110
0.771255
[ "MIT" ]
KingLurchi/FronApiUs
src/FronApiUs.Core/Requests/GetNowSensorData.cs
990
C#
using System.Web; using System.Web.Optimization; namespace MyLibrary { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptB...
38.6875
112
0.572698
[ "MIT" ]
alinawieczorek/my-library
MyLibrary/MyLibrary/App_Start/BundleConfig.cs
1,240
C#
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license */ using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Security.Claims; using Thinktecture.IdentityServer.Core.Connect.Models; using Thinktecture.IdentityServer.Core.Models; using Thin...
34.55
79
0.630487
[ "BSD-3-Clause" ]
dmorosinotto/Thinktecture.IdentityServer.v3
source/Core/Connect/Validation/ValidatedAuthorizeRequest.cs
2,075
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...
36.12766
319
0.608559
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Route53/Generated/Model/ChangeInfo.cs
5,094
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.878049
81
0.61402
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/AppPlatform/V20201101Preview/Inputs/CertificatePropertiesArgs.cs
1,184
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 24.09.2021. using Microsoft.EntityFrameworkCore.Migrations.Operations; using NUnit.Framework; namespace EFCore_Lcpi...
29.897959
126
0.497611
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Migrations/Generations/SET001/DataTypes/Clr/DateOnly/TestSet_005__def_DefaultValueSql.cs
2,932
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MyApp.Domain { public class Standard { public int Id { get; set; } [Ma...
23.307692
58
0.661716
[ "MIT" ]
antanta/MyApp
MyApp.Domain/Standard.cs
608
C#
using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Text; namespace BlazorTransitionableRoute { public class Transition { private Transition(RouteData routeData, bool intoView, bool backwards, bool firstRender) { RouteData ...
31.037037
110
0.638425
[ "MIT" ]
KieranFleckney/BlazorTransitionableRoute
src/BlazorTransitionableRoute/Transition.cs
840
C#
// // PointerType.cs // // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2010 Jb Evain // // 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, includ...
29.564516
73
0.717949
[ "Apache-2.0" ]
AmanArnold/dsharp
src/Core/Compiler/Importer/IL/PointerType.cs
1,833
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 23.09.2021. using Microsoft.EntityFrameworkCore.Migrations.Operations; using NUnit.Framework; namespace EFCore_Lcpi...
29.86
125
0.487609
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Migrations/Generations/SET001/DataTypes/Clr/Boolean/TestSet_002__def_ClrType_and_TypeName.cs
2,988
C#
using GraphicsComposerLib.PovRay.SDL.Modifiers; namespace GraphicsComposerLib.PovRay.SDL.Textures { public interface ISdlTexture : ISdlObjectModifier { } }
19.888889
53
0.731844
[ "MIT" ]
ga-explorer/GeometricAlgebraFulcrumLib
GraphicsComposerLib/GraphicsComposerLib.PovRay/SDL/Textures/ISdlTexture.cs
181
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.IO; using System.Linq; using System.Security.AccessControl; using System.Security.Princi...
44.664815
157
0.561093
[ "MIT" ]
pieths/dotnet_machinelearning
src/Microsoft.ML.TensorFlow/TensorflowUtils.cs
24,123
C#
using System; using System.Linq; using System.Diagnostics; using StackExchange.Redis; using System.Threading; namespace Redists.Tests.Fixtures { public class RedisServerFixture : IDisposable { private Process server; private ConnectionMultiplexer mux; private bool wasStarted = false; ...
28.81
132
0.471017
[ "MIT" ]
Cybermaxs/Redists
tests/Redists.Tests/Fixtures/RedisServerFixture.cs
2,883
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.Device.Spi; using Iot.Device.Adc; public class Volume : IDisposable { public stati...
21.989011
71
0.54023
[ "MIT" ]
HakanL/iot
samples/led-more-blinking-lights/Volume.cs
2,003
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.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; using OmniSharp.Extensions.LanguageServer.Protocol.Models; using...
38.470588
134
0.796636
[ "Apache-2.0" ]
devlead/aspnetcore-tooling
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/RazorFormattingService.cs
656
C#
using AspNetScaffolding.Controllers; using AspNetScaffolding.Extensions.RoutePrefix; using Microsoft.AspNetCore.Mvc; namespace AspNetScaffolding3.DemoApi.Controllers { [IgnoreRoutePrefix] public class ProxyController : BaseController { [HttpGet, HttpPost, HttpPut, HttpPatch, HttpDelete, HttpHead, ...
28.625
82
0.684134
[ "MIT" ]
ThiagoBarradas/aspnet-scaffolding3
AspNetScaffolding3.DemoApi/Controllers/ProxyController.cs
689
C#
using UniLife.Shared.DataModels; using UniLife.Shared.Dto.Sample; using System.Collections.Generic; using System.Threading.Tasks; namespace UniLife.Shared.DataInterfaces { public interface IToDoStore { Task<List<TodoDto>> GetAll(); Task<TodoDto> GetById(long id); Task<Todo> Create(To...
21.15
43
0.687943
[ "MIT" ]
ahmetsekmen/UniLife
src/UniLife.Shared/DataInterfaces/IToDoStore.cs
425
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 pu...
36.431034
79
0.659252
[ "Unlicense" ]
UnterrainerInformatik/MyStromRestApiCSharp
MyStromRestApiCSharp/DTOs/Switch/WifiDetailed.cs
2,115
C#
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license */ using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Web.Http; namespace Thinktecture.IdentityServer.Core.Assets { class EmbeddedHtmlResult : IHttpActionResult { HttpRequestMessag...
30.128205
123
0.657021
[ "BSD-3-Clause" ]
AscendXYZ/Thinktecture.IdentityServer.v3
source/Core/Assets/EmbeddedHtmlResult.cs
1,177
C#
using System; using System.Diagnostics; using System.Net.Http; using System.Security.Authentication; using System.Threading.Tasks; using TMDb.Client.Api; using TMDb.Client.Builders; using TMDb.Client.Configurations; using TMDb.Client.Logging; using TMDb.Client.Validators; namespace TMDb.Client { public abstract c...
34.581818
133
0.62408
[ "MIT" ]
joshuajones02/TMDb
TMDb.Client/HttpClientWrapper.cs
3,806
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ShopWebAPI.Models { public class Rating { public int Id { get; set; } public int ProductId { get; set; } public string UserId { get; set; } public string Username { get; set; } ...
24.190476
52
0.610236
[ "MIT" ]
kdadun/ShopAngular
ShopWebAPI/ShopWebAPI/Models/Rating.cs
510
C#
// <auto-generated /> using System; using Fakebook.Posts.DataAccess; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Fakebook.Posts.DataAccess.Migration...
37.702703
174
0.435603
[ "MIT" ]
revaturelabs/fakebook-posts
Fakebook.Posts/Fakebook.Posts.DataAccess/Migrations/FakebookPostsContextModelSnapshot.cs
8,372
C#
using RSDKv5; namespace ManiacEditor.Entity_Renders { public class TimeAttackGate : EntityRenderer { public override void Draw(Structures.EntityRenderProp Properties) { DevicePanel d = Properties.Graphics; Classes.Scene.EditorEntity e = Properties.EditorObject; ...
39.081081
145
0.644537
[ "MIT" ]
CarJem/ManiacEditor
ManiacEditor/Entity Renders/Normal Renders/Generic/TimeAttackGate.cs
1,448
C#
using ChartJs.Blazor.Common.Enums; namespace ChartJs.Blazor.Common { /// <summary> /// The model of the legend items which are displayed in the chart-legend. /// <para> /// As per documentation here: /// <a href="https://www.chartjs.org/docs/latest/configuration/legend.html#legend-item-interface"/...
40.020619
113
0.585265
[ "MIT" ]
Franz1960/ChartJs.Blazor
src/ChartJs.Blazor/Common/LegendItem.cs
3,884
C#
using UnityEngine; using System.Collections; public class SpriteCollection { public Sprite[] sprites; private string[] names; public SpriteCollection(string spritesheet) { sprites = Resources.LoadAll<Sprite>(spritesheet); names = new string[sprites.Length]; for (var i = 0; i < names.Length; i++) { names...
21.846154
52
0.68662
[ "Apache-2.0" ]
nerl/Biber17-lecker
Assets/SpriteCollection.cs
570
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace VKSaver.Core.Services.Interfaces { public interface IEmailService { Task SendSupportEmail(); } }
17.384615
42
0.734513
[ "Apache-2.0" ]
RomanGL/VKSaver
VKSaver2/Core/VKSaver.Core.Services.Shared/Interfaces/IEmailService.cs
228
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.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis;...
43.455471
229
0.645567
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/FrontEnd/CMake/CMakeWorkspaceResolver.cs
17,078
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.Inventory { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:c...
24.436275
136
0.7667
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Inventory/Goods_Delivery_Ticket_Request_CriteriaType.cs
4,985
C#
using UnityEngine; using UnityEditor; using UnityEngine.UIElements; using UnityEditor.UIElements; using GraphProcessor; using UnityEditor.Experimental.SceneManagement; using UnityEditor.SceneManagement; namespace Mixture { [NodeCustomEditor(typeof(PrefabCaptureNode))] public class PrefabCaptureNodeView : MixtureNode...
36.122951
116
0.618334
[ "MIT" ]
felixcantet/Mixture
Packages/com.alelievr.mixture/Editor/Views/PrefabCaptureNodeView.cs
4,407
C#
using System.Collections.Generic; namespace FluiTec.DatevSharp.Helpers { /// <summary> A string helper. </summary> public static class StringHelper { private static readonly Dictionary<string, string> ReplaceMap = new Dictionary<string, string> { {"\r\n", " "}, {"...
34.142857
110
0.536611
[ "MIT" ]
IInvocation/DatevSharp
src/FluiTec.DatevSharp/Helpers/StringHelper.cs
958
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace PersonDB { public class PersonDAO_JSON_Ex : APersonDao { private string pathToFile; public override string ConnectionString ...
22.721311
94
0.546898
[ "BSD-3-Clause" ]
OlehMarchenko95/ort_csharp_js
PersonDB/DAO/File/PersonDAO_JSON_Ex.cs
1,388
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using StateMechanic; namespace Samples { /// <summary> /// Examples from the README /// </summary> public static class Scenario1 { [Description("Quick Start")]...
47.119247
136
0.61617
[ "MIT" ]
edwincervantes/StateMechanic
Samples/Scenario3.cs
22,046
C#
using System; namespace SoftFluent.Windows { public interface ITypeResolver { Type ResolveType(string fullName, bool throwOnError); } }
15.8
61
0.696203
[ "MIT" ]
SoftFluent/SoftFluent.Windows
SoftFluent.Windows/SoftFluent.Windows/ITypeResolver.cs
160
C#
using System; using AGXUnity; using AGXUnity.Collide; using UnityEditor; namespace AGXUnityEditor.Editors { [CustomEditor( typeof( AGXUnity.Rendering.CableRenderer ) )] [CanEditMultipleObjects] public class AGXUnityRenderingCableRendererEditor : InspectorEditor { } }
21.307692
69
0.801444
[ "Apache-2.0" ]
Algoryx/AGXUnity
Editor/CustomEditors/AGXUnity+Rendering+CableRendererEditor.cs
277
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.Dingtalkyida_1_0.Models { public class LoginCodeGenResponse : TeaModel { [NameInMap("headers")] [Validation(Required=true)] public ...
21.869565
63
0.673956
[ "Apache-2.0" ]
aliyun/dingtalk-sdk
dingtalk/csharp/core/yida_1_0/Models/LoginCodeGenResponse.cs
503
C#
using System; namespace PodcastRadio.Core.Exceptions { public class NoInternetException : Exception { public NoInternetException() {} public NoInternetException(string message) : base(message) {} public NoInternetException(string message, Exception inner) : base(message, inner) {} }...
29.363636
93
0.702786
[ "MIT" ]
joaowd/PodcastRadio
PodcastRadio.Core/Exceptions/NoInternetException.cs
325
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.924837
531
0.592205
[ "Apache-2.0" ]
SamFent/webservice-clients
deprecated/csharp/EBIWS2_CSharp/EbiWS/WebReferences/FastaWs/Reference.cs
47,646
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...
61.093784
219
0.694762
[ "Apache-2.0" ]
diegodias/aws-sdk-net
sdk/src/Services/AuditManager/Generated/_bcl35/IAmazonAuditManager.cs
168,069
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using FilterLists.Archival.Infrastructure.Scheduling; using FilterLists.Directory.Api.Contracts; using MediatR; using Microsoft.Extensions.Logging; namespace FilterLists.Archival.Application.Commands { public static class Enque...
30.767857
148
0.595473
[ "MIT" ]
XY158/FilterLists
services/Archival/FilterLists.Archival.Application/Commands/EnqueueArchiveAllLists.cs
1,725
C#
using ColossalFramework.UI; using com.github.TheCSUser.HideItBobby.Features.Menu.Base; using com.github.TheCSUser.HideItBobby.Features.Menu.Shared; using com.github.TheCSUser.Shared.Common; namespace com.github.TheCSUser.HideItBobby.Features.Menu { internal sealed class HideMainMenuNewsPanel : HideMainMenuElement...
39.333333
107
0.675545
[ "MIT" ]
TheCSUser/HideItBOB
Features/Menu/HideMainMenuNewsPanel.cs
1,654
C#
using MemoScope.Core.Data; using MemoScope.Modules.Instances; using System; using WeifenLuo.WinFormsUI.Docking; using WinFwk.UICommands; using WinFwk.UIModules; namespace MemoScope.Modules.InstanceDetails { public class InstanceDetailsCommand : AbstractDataUICommand<ClrDumpObject> { public InstanceDe...
36.644444
125
0.615525
[ "Unlicense" ]
user2291296/MemoScope.Net
MemoScope/Modules/InstanceDetails/InstanceDetailsCommand.cs
1,651
C#
using System.Linq; using System.Collections.Generic; using System.Data.Entity.Core.Objects; using EF6TempTableKit.DbContext; using EF6TempTableKit.Extensions; namespace EF6TempTableKit.Utilities { /// <summary> /// Handles dependencies in a form of a tree. Root node doesn't exist - think of it as something im...
44.4
162
0.624024
[ "MIT" ]
zblago/EF6TempTableKit
src/EF6TempTableKit/Utilities/TempTableDependencyManager.cs
3,332
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.Composition; using System.Threading; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Utilities; using Microsof...
44.925532
161
0.662325
[ "Apache-2.0" ]
DustinCampbell/roslyn
src/EditorFeatures/Core/Shared/Utilities/ThreadingContext.cs
4,225
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Archivos; using Exepciones; namespace Entidades { public class Restaurant { #region Atributos static List<Producto> ventas; static List<Pedido> pedidos...
32.323024
152
0.516585
[ "Unlicense" ]
mikelanda14/Parcial-lab2D
SPProgramacion-Lab2/MiguelLandaeta_2D/Entidades/Restaurant.cs
9,408
C#
// (c) Copyright Crainiate Software 2010 using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Runtime.Serialization; using Crainiate.Diagramming.Flowcharting; namespace Crainiate.Diagramming.Flowcharting { public class FlowchartStencil: Stencil { #region Interface //Constructors ...
25.702041
116
0.610846
[ "BSD-3-Clause" ]
Mohllal/FlowchartConverter
Crainiate.Diagramming/Crainiate.Diagramming.Flowcharting/FlowchartStencil.cs
12,594
C#
using System; using System.Collections.Generic; using Cysharp.Threading.Tasks; using UniRx; using UnityEngine; using Random = UnityEngine.Random; [RequireComponent(typeof(Animator))] public class Spider : EnemyBase { [SerializeField, Header("一辺を移動する時間 (秒)")] private float moveSpeed; [SerializeField, Head...
27.219718
115
0.559661
[ "MIT" ]
letconst/gimmick-field-public
Assets/Users/Endo/Scripts/Character/Enemy/Spider.cs
10,708
C#
using Hevadea.Framework.Graphic; using Hevadea.GameObjects.Entities.Components.Actions; using Hevadea.GameObjects.Tiles; using Hevadea.Storage; using Hevadea.Utils; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; namespace Hevadea.GameObjects.Entities.Components.States {...
33.549133
135
0.5398
[ "MIT" ]
krisz2000/hevadea
src/Hevadea/GameObjects/Entities/Components/States/Health.cs
5,806
C#
using Uno.UI.Samples.Controls; using Uno.UI.Samples.Presentation.SamplePages; using Windows.UI.Xaml.Controls; namespace Uno.UI.Samples.Content.UITests.ButtonTestsControl { [SampleControlInfo("Button", "Simple_Button_With_CanExecute_Changing", typeof(ButtonTestsViewModel), ignoreInSnapshotTests: true)] public sealed...
28.529412
131
0.816495
[ "Apache-2.0" ]
06needhamt/uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Button/Simple_Button_With_CanExecute_Changing.xaml.cs
485
C#
using System.Collections.Generic; using System.Threading.Tasks; using agileways.usermgt.shared.server.Services; using agileways.usermgt.shared.Models.DirectoryObjects; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace agileways.usermgt.admin.client....
32.068966
99
0.634946
[ "MIT" ]
AgileDave/b2c-usermgt
agileways.usermgt.admin.client/Server/Controllers/DirectoryObjects/AppRoleController.cs
1,860
C#
// /* ********************************************************************************** // * // * Copyright (c) Sky Sanders. All rights reserved. // * // * This source code is subject to terms and conditions of the Microsoft Public // * License (Ms-PL). A copy of the license can be found in the license.htm file...
29.263158
105
0.464553
[ "MIT" ]
nh43de/csharp-utils
Csharp.Utilities/ConsoleTools/ControllableProcess.cs
13,346
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace JL { public class BodyPart : MonoBehaviour { Joint _joint; TargetJoint[] _myJoints; BodyPart[] _subParts; [SerializeField] GameObject[] _bloodCubes; public int health = 5; [System.NonSerialized] int _myHealth; p...
19.831169
83
0.684348
[ "MIT" ]
leorid/MurderLoop
Assets/BodyPart.cs
1,529
C#
using ActiveQueryBuilder.Core; using ActiveQueryBuilder.Web.Core; using ActiveQueryBuilder.Web.Server; using ActiveQueryBuilder.Web.Server.Services; using AspNetCoreCrossDomain.Providers; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; namespace A...
35.964912
123
0.618049
[ "MIT" ]
ActiveDbSoft/active-query-builder-3-asp-net-core-samples-csharp
CrossDomain/Controllers/QueryBuilderController.cs
2,052
C#
using System; using System.Collections; using UnityEngine; using UnityEngine.SceneManagement; // using UnityStandardAssets.CrossPlatformInput; namespace Coop { [Flags, Serializable] public enum PlayerInputMode { Game = 1, UI = 2, Disabled = 3 } [RequireComponent(typeof(CoopCharacter2D), typeof(He...
32.869023
162
0.611828
[ "Unlicense" ]
Seanharrs/coopjam
Assets/_Scripts/Character/CoopUserControl.cs
15,810
C#
using System; using Gtk; using UI = Gtk.Builder.ObjectAttribute; using SkyEditor.RomEditor.Domain.Rtdx; using SkyEditor.RomEditor.Domain.Rtdx.Models; using SkyEditorUI.Infrastructure; using SkyEditor.RomEditor.Domain.Rtdx.Constants; namespace SkyEditorUI.Controllers { class FixedPokemonController : Widget { ...
38.749235
111
0.559861
[ "MIT" ]
Blue587/DreamNexus
SkyEditor.UI/Controllers/FixedPokemon/FixedPokemonController.cs
12,671
C#
using SampleBase.Interfaces; using System; namespace SampleBase { public abstract class ConsoleTestBase : ITestBase { private readonly IMessagePrinter msgPrinter; public string Name { get; set; } protected ConsoleTestBase(string title) { Name = title; ...
24.855072
112
0.569679
[ "Apache-2.0" ]
AvenSun/opencvsharp_samples
SampleBase/Console/ConsoleTestBase.cs
1,717
C#
#region Copyright and License // Copyright 2010..2017 Alexander Reinert // // This file is part of the ARSoft.Tools.Net - C# DNS client/server and SPF Library (http://arsofttoolsnet.codeplex.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
37.64966
216
0.69645
[ "MIT" ]
zjccwboy/DnsServer
ARSoft.Tools.Dotnet/Dns/Resolver/RecursiveDnsResolver.cs
11,071
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Security; // // 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("RDL Engine")...
41.338983
84
0.707667
[ "Apache-2.0" ]
Art8m/My-FyiReporting
RdlEngine/AssemblyInfo.cs
2,439
C#
using System.Web.Mvc; namespace BasketGraphQLAPI { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.833333
80
0.656
[ "MIT" ]
jpreecedev/basket-graphql-scratch
backend/BasketGraphQLAPI/App_Start/FilterConfig.cs
252
C#
using QuantumHangar.HangarChecks; using Sandbox.Game.Entities; using Sandbox.Game.Entities.Character; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Torch.Commands; using Torch.Commands.Permissions; using VRage.Game.ModAPI; namespace QuantumHa...
38.208494
242
0.610651
[ "Apache-2.0" ]
BobDaRoss/QuantumHangar
Quantumhangar/Commands/HangarAdminCommands.cs
9,898
C#
namespace SpeedHero.Web.Areas.Administration.ViewModels.Posts { using System.ComponentModel.DataAnnotations; using System.Web.Mvc; using Common.Constants; using SpeedHero.Data.Models; using SpeedHero.Web.Areas.Administration.ViewModels.Base; using SpeedHero.Web.Infrastructure.Mapping; pub...
33.846154
126
0.682955
[ "MIT" ]
IvoSpasov/SpeedHero
Source/Web/SpeedHero.Web/Areas/Administration/ViewModels/Posts/ShowPostsViewModel.cs
882
C#
using System; using System.Collections; using System.Collections.Generic; using System.Xml; namespace _05.ExtractAllSongTitlesWithXmlReader { public class Program { public static void Main() { IList<string> listOfTitles = new List<string>(); using (XmlReader reader = X...
25.272727
81
0.472422
[ "MIT" ]
GoranGit/Database
Homework/03. Processing XML in .Net/05.ExtractAllSongTitlesWithXmlReader/Program.cs
836
C#