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.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace NineMensMorris.GameLogic { /// <summary> /// Represents a human player /// </summary> public class HumanPlayer : IPlayer { public int...
32.84375
174
0.499524
[ "Apache-2.0" ]
YanickZengaffinen/AI
NineMensMorris/GameLogic/Players/HumanPlayer.cs
3,155
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using NUnit.Framework; using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.Core.UnitTests; namespace Microsoft.Maui.Controls.Xaml.UnitTests { public class Dict : Dictionary<string, stri...
28
87
0.706169
[ "MIT" ]
pictos/maui
src/Controls/tests/Xaml.UnitTests/Issues/Gh8936.xaml.cs
1,232
C#
using System; using System.Collections.Generic; namespace generic_list { class Program { static void Main(string[] args) { //List<T> class //System.Collections.Generic //T -> object türündedir. List<int> sayiListesi = new List<int>(); ...
29.330579
76
0.513384
[ "MIT" ]
elifsirin42/Kodluyoruz-Csharp-101-Patikasi
Pratikler/generic-list/Program.cs
3,575
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager;...
59.561497
312
0.709822
[ "MIT" ]
AntonioVT/azure-sdk-for-net
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs
11,138
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using Microsoft.Extensions.Hosting; using Vostok.Logging.Abstractions; using Vostok.Logging.Console; using Vostok.Logging.Context; using Vostok.Logging.File; using Vostok.Logging.File.Configuration; namespace Vektonn.Hosting { publ...
33.705882
112
0.530977
[ "Apache-2.0" ]
vektonn/vektonn
src/Vektonn.Hosting/LoggingConfigurator.cs
2,292
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...
28.505263
101
0.587888
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/AuditTaskMetadata.cs
2,708
C#
using FluentMigrator.Infrastructure.Extensions; namespace FluentMigrator.Runner.Generators.DB2 { using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using FluentMigrator.Model; using FluentMigrator.Runner.Generators.Base; internal c...
29.207692
186
0.561759
[ "Apache-2.0" ]
quesadaao/fluentmigrator
src/FluentMigrator.Runner.Db2/Generators/Db2/Db2Column.cs
3,797
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileStats : MonoBehaviour { public Sprite standardSprite; public Sprite mineSprite; public Sprite flagSprite; public List<Sprite> numberedSprites; public bool isMine=false; public int mineCount=0; public bool tileReve...
24.888889
162
0.71689
[ "MIT" ]
PacktPublishing/2D-Game-Programming-in-Unity
2.10/TileStats.cs
2,690
C#
//----------------------------------------------------------------------- // <copyright file="PathUtilities.cs" company="Sirenix IVS"> // Copyright (c) 2018 Sirenix IVS // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ob...
34.54717
96
0.549427
[ "Apache-2.0" ]
johnbrandle/odin-serializer
OdinSerializer/Utilities/Extensions/PathUtilities.cs
1,831
C#
using System; using System.Collections; using System.Collections.Immutable; using System.ComponentModel.DataAnnotations; using System.Linq; using AutoFixture; using AutoFixture.Xunit2; using Maxisoft.Utils.Empties; using Xunit; namespace Maxisoft.Utils.Tests.Empties { public class EmptyListTests { [Fa...
28.099174
83
0.500882
[ "MIT" ]
sucrose0413/Maxisoft.Utils
Maxisoft.Utils.Tests/Empties/EmptyListTests.cs
3,402
C#
using GraphQL.Types; using Ianitor.Osp.Common.Shared.DataTransferObjects; #pragma warning disable 1591 namespace Ianitor.Osp.Backend.CoreServices.GraphQL.Types { public class SearchFilterDtoType : InputObjectGraphType<SearchFilterDto> { public SearchFilterDtoType() { Name = "Search...
30.894737
88
0.65247
[ "MIT" ]
ianitor/ObjectServicePlatform
Osp/Backend/Ianitor.Osp.Backend.CoreServices/GraphQL/Types/SearchFilterDtoType.cs
587
C#
using System; using System.Runtime.InteropServices; namespace hds { public class AttributeClass1728 :GameObject { public Attribute Orientation = new Attribute(16, "Orientation"); public Attribute Position = new Attribute(24, "Position"); public Attribute HalfExtents = new Attribute(12, "HalfExtents"...
24.166667
68
0.677586
[ "MIT" ]
hdneo/mxo-hd
hds/resources/gameobjects/definitions/AttributeClasses/AttributeClass1728.cs
580
C#
// Decompiled with JetBrains decompiler // Type: Game.Server.Quests.TimeHelper // Assembly: Game.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: 7994645F-6854-4AAC-A332-C61842D2DD9F // Assembly location: C:\Users\Pham Van Hungg\Desktop\Decompiler\Road\Game.Server.dll using System; namespace Ga...
29.85
85
0.721943
[ "MIT" ]
HuyTruong19x/DDTank4.1
Source Server/Game.Server/Server/Quests/TimeHelper.cs
599
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace Servidor { class Program { // Datos Recibidos Desde ElCliente. public static string data = null; public static vo...
35.672727
91
0.456167
[ "Apache-2.0" ]
cdanna5696/ProgramacionIIIdcs
Tarea Final/Servidor/Servidor/Program.cs
3,929
C#
using System; using System.Collections.Generic; using System.Text; namespace MarsRover_Core.Extensions { public static class EnumerationHelper { public static T ToEnum<T>(this string text) where T : struct { if (!Enum.TryParse(text, out T result)) throw n...
27.75
94
0.552124
[ "MIT" ]
N0bleA/MarsRover
MarsRover/MarsRover_Core/Extensions/EnumerationHelper.cs
779
C#
using Cauldron; using Cauldron.Activator; using Cauldron.Localization; using Cauldron.Reflection; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace Cauldron.Consoles { /// <summary> /// Parses the parameters passed to the application ///...
44.094118
249
0.572505
[ "MIT" ]
Capgemini/Cauldron
Shared/Cauldron.Consoles/ParameterParser.cs
14,994
C#
using System; using System.Collections.Generic; using System.Text; namespace LumiSoft.Net.IMAP { /// <summary> /// This class represents FETCH request BODY[] argument(data-item). Defined in RFC 3501. /// </summary> public class IMAP_t_Fetch_i_Body : IMAP_t_Fetch_i { private stri...
28.202128
108
0.49189
[ "MIT" ]
bhuebschen/feuerwehrcloud-deiva
Mail/Net/IMAP/IMAP_t_Fetch_i_Body.cs
2,653
C#
using GalaSoft.MvvmLight; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using YouiToolkit.Models; namespace YouiToolkit.ViewModels { public class PageMaintainViewModel : ViewModelBase { /// <summary> ...
21.76
63
0.669118
[ "Unlicense" ]
MaQaQu/Tool
YouiToolkit/ViewModels/Maintain/PageMaintainViewModel.cs
552
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace InventoryManagementSystemAPI.DTOs { public class FindBarcodeItemDTO { [Required] public string Barcode { get; set; } public bool IsLo...
20.375
51
0.618405
[ "MIT" ]
Celestialy/Lagersystem-Vue-Preview
InventoryManagementSystemAPI/DTOs/Request/ItemBarcodeDTOs.cs
817
C#
// <auto-generated> // 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 // re...
35.296875
127
0.63745
[ "MIT" ]
216Giorgiy/azure-sdk-for-net
src/SDKs/HDInsight/Management.HDInsight/Generated/Models/ClusterMonitoringResponse.cs
2,259
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.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.CommandLineUtils; using Microsoft.Web.Librar...
36.597403
129
0.598652
[ "Apache-2.0" ]
RobJohnston/LibraryManager
src/libman/Commands/CacheCleanCommand.cs
2,820
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. #if STRIDE_GRAPHICS_API_DIRECT3D11 using System; us...
37.140351
165
0.643836
[ "MIT" ]
DeZomB/stride
sources/engine/Stride.VirtualReality/OculusOVR/OculusOverlay.cs
2,117
C#
using Newtonsoft.Json; using System.ComponentModel; namespace Yandex.Weather.Data { /// <summary> /// Прогнозы по времени суток и 12-часовые прогнозы /// </summary> public class Parts { /// <summary> /// Прогноз на ночь. /// </summary> [DisplayName("Ночь")] [...
27.984615
196
0.55635
[ "MIT" ]
bankoViktor/yandex.weather
Data/Parts.cs
2,241
C#
using System; using System.Collections.Generic; using System.Linq; namespace School { public class School { private List<Student> students; private List<Course> courses; private List<Student> Students { get { return students; ...
24.677686
96
0.439384
[ "MIT" ]
d-georgiev-91/TelerikAcademy
Programming/HighQualityProgrammingCode/Unit-Test/School/School.cs
2,988
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 ...
18.704871
136
0.620251
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-domain/Domain/Model/V20180129/VerifyContactFieldRequest.cs
6,528
C#
using System; namespace AutomationAssessment.DataAccess { public class Class1 { } }
10.888889
41
0.683673
[ "MIT" ]
philmcgaw/AutomationAssessment
AutomationAssessment.DataAccess/Class1.cs
100
C#
using Microsoft.Phone.Controls; using SuperMap.WindowsPhone.Core; namespace PhoneApp1 { public partial class MainPage : PhoneApplicationPage { // 构造函数 public MainPage() { InitializeComponent(); MyMap.ViewBounds = new Rectangle2D(-180, -90, 90, 180); } ...
18.222222
67
0.597561
[ "Apache-2.0" ]
SuperMap/iClient-for-Win8
iClient60ForWP8/WP8_test/Map_test/Map_ViewBounds_test/MainPage.xaml.cs
338
C#
using MathLibrary; using System; using System.Collections.Generic; using System.Text; namespace MathForGames { class Scene { private Actor[] _actors; private Matrix3 _transform = new Matrix3(); public bool Started { get; private set; } public Matrix3 World ...
31.243243
81
0.418685
[ "MIT" ]
Noaheasley/AWeekOfZeds
MathForGames/Scene.cs
5,782
C#
using System; namespace Callbag.Basics.Sink { public static class SinkExtension { public static void ForEach<T>(this ISource<T> source, in Action<T> operation) { source.Greet(new ForEach<T>(operation)); } } }
21.5
85
0.612403
[ "CC0-1.0" ]
mr-rampage/csharp-callbags
Callbag.Basics/Sink/Sink.cs
260
C#
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apa...
44.82716
135
0.624621
[ "Apache-2.0" ]
AhmerRaza/Google-Dotnet-Samples
Samples/Cloud Video Intelligence API/v1beta1/APIKey.cs
3,633
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Tags { public static readonly ushort SpawnPlayerTag = 0; public static readonly ushort MovePlayerTag = 1; public static readonly ushort DespawnPlayerTag = 2; public static readonly ushort SpawnFoodTag =...
25.294118
55
0.755814
[ "MIT" ]
DarkRiftNetworking/AgarUnityComplete
Assets/Tags.cs
432
C#
//----------------------------------------------------------------------- // <copyright> // // Copyright (c) TU Chemnitz, Prof. Technische Thermodynamik // Written by Noah Pflugradt. // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
43.231405
145
0.632575
[ "MIT" ]
kyleniemeyer/LoadProfileGenerator
WpfApplication1/Presenters/SpecialViews/AffordancesWithRealDevicesPresenter.cs
5,237
C#
using Synuit.Toolkit.AuditLogging.EntityFramework.Entities; using Synuit.Toolkit.AuditLogging.Events; using Synuit.Toolkit.AuditLogging.Helpers.JsonHelpers; namespace Synuit.Toolkit.AuditLogging.EntityFramework.Mapping { public static class AuditMapping { public static TAuditLog MapToEntity<TAuditLog>...
42.857143
152
0.6675
[ "MIT" ]
Synuit-Platform/Synuit.Toolkit
Synuit.Toolkit.AuditLogging/src/Synuit.ToolkitAuditLogging.EntityFramework/Mapping/AuditMapping.cs
1,202
C#
using System.Linq; using MedicalExaminer.Common.ConnectionSettings; using MedicalExaminer.Common.Queries.Permissions; using MedicalExaminer.Common.Services.Permissions; using MedicalExaminer.Models; using MedicalExaminer.Models.Enums; using Xunit; namespace MedicalExaminer.API.Tests.Services.Permission { public c...
33.335294
112
0.548615
[ "MIT" ]
neiltait/medex_api_pub
MedicalExaminer.API.Tests/Services/Permission/InvalidUserPermissionUpdateServiceTests.cs
5,669
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 System.Diagnostics; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; namespace Microsoft.EntityFrameworkCore.Metadata.I...
46.470085
133
0.653669
[ "MIT" ]
aayjaychan/efcore
src/EFCore.Relational/Metadata/Internal/StoreFunction.cs
5,437
C#
using System.Runtime.Serialization; using System.Xml.Serialization; namespace API.RareCarat.Example.Model { /// <summary> /// Certificated grading for the diamond's fluorescence. /// </summary> public enum FluorescenceGrade { /// <summary> /// No fluorescence. /// </summary...
23.571429
60
0.483838
[ "Apache-2.0" ]
RareCarat/api-example-dotnet
src/Web/Model/Diamond/FluorescenceGrade.cs
992
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...
38.808219
392
0.614543
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/StorageCache/Inputs/NfsAccessRuleArgs.cs
2,833
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; namespace Ninject.AzureFunctions.Tests.Utility { public class FakeHttpRequest<T> : HttpRequest,IDispo...
33.416667
122
0.638404
[ "MIT" ]
SebastianAtWork/AzureFunctions.Plus
source/Ninject.AzureFunctions.Tests/Utility/FakeHttpRequest.cs
2,007
C#
/* ============================================================================== * 功能描述:TreeNode * 创 建 者:gz * 创建日期:2017/4/19 12:20:32 * ==============================================================================*/ using System; namespace Tree.TreeLib { /// <summary> /// TreeNode /// Definition ...
21.7
83
0.37788
[ "MIT" ]
Devin-X/leetcode-csharp
Tree/Tree.TreeLib/TreeNode.cs
1,115
C#
using Suigetsu.Core.Extensions; namespace Suigetsu.Core.Util { /// <summary> /// Utility methods for the <see cref="T:System.Type" /> class and generic objects. /// </summary> public static class TypeUtils { /// <summary> /// <para>Tries to instantiate the given value/primi...
32.058824
111
0.605505
[ "MIT" ]
fc1943s/Suigetsu
v1-cs/Core/Suigetsu.Core/Util/TypeUtils.cs
547
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using System.Data.Linq; namespace WcfServer { public sealed class NWindMtomService : NWindService { } public sealed class NWindTextService : NWind...
24
71
0.545082
[ "Apache-2.0" ]
0xec/protobuf-net
WcfPerfTest/WcfServer/NWindService.svc.cs
1,466
C#
using UnityEngine; using System.Collections; public class FlyMovement : Movement { public override IEnumerator Traverse (Tile tile) { // Store the distance between the start tile and target tile float dist = Mathf.Sqrt(Mathf.Pow(tile.pos.x - unit.tile.pos.x, 2) + Mathf.Pow(tile.pos.y - unit.tile.pos.y, 2)); ...
33.609756
115
0.706821
[ "MIT" ]
Spex130/TacticsPunk
Assets/Scripts/View Model Component/Movement Types/FlyMovement.cs
1,380
C#
using System; using System.Collections.Generic; namespace Seekatar.Interfaces { /// <summary> /// Factory for discovering types from assemblies then creating them on demand /// </summary> /// <typeparam name="T">type of object to serve up</typeparam> public interface IObjectFactory<T> where T : c...
31.205882
82
0.606032
[ "MIT" ]
Seekatar/Tools-DotNet
src/Tools/Interfaces/IObjectFactory.cs
1,061
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CustomObject : MonoBehaviour, IPhylloEffected { protected Vector3 _currentPos; protected Vector3 _targetPos; protected float _posLerpSpeed; public static CustomObject Create(GameObject prefab) { Cust...
20.510638
99
0.674274
[ "MIT" ]
EvgenyTimoshin/Game-Engines-1-Assignment-Procedural-Audio-Visuals
ProceduralSoundViz/Assets/Scripts/CustomObject.cs
966
C#
using System; using System.Collections.Generic; using System.Text; namespace puck.core.Abstract { public interface I_BaseModel { public Guid Id { get; set; } public Guid ParentId { get; set; } public String NodeName { get; set; } public string LastEditedBy { get; set; } ...
31.925926
52
0.597448
[ "MIT" ]
jules-source/puck-core
core/Abstract/I_BaseModel.cs
864
C#
using OpenQA.Selenium; using System.Collections.Generic; using Website.PageObjects.Controls; namespace Website.PageObjects { /// <summary> /// Step3 page Object /// </summary> public class Step3 : BasePage { private readonly IWebDriver webDriver; private readonly string...
35.363636
104
0.630848
[ "MIT" ]
darrenudaiyan/SeleniumFramework
Selenium.Framework/Website.PageObjects/Pages/Step3.cs
1,947
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using System.Linq; using System.Net.Http.Formatt...
39.015873
119
0.722945
[ "Apache-2.0" ]
gmcelhanon/Ed-Fi-ODS-1
Application/EdFi.Ods.Api.Startup/HttpConfigurators/ProfilesHttpConfigurator.cs
2,460
C#
using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace DancingGoat.Models { public class ConfirmSubscriptionModel { [Required] public string SubscriptionHash { get; set; } public string DateTime { get; set; } [Bindable(false)] public str...
20.222222
54
0.667582
[ "MIT" ]
Kentico/xperience-module-intercom
src/DancingGoatCore/Models/Subscription/ConfirmSubscriptionModel.cs
366
C#
using System.Net; using FubuCore; using FubuMVC.Core.Continuations; namespace FubuMVC.Core.Resources.Etags { public class ETagHandler<T> { private readonly IEtagCache _cache; //private readonly IETagGenerator<T> _generator; //, IETagGenerator<T> generator public ETa...
32.777778
88
0.599153
[ "Apache-2.0" ]
ketiko/fubumvc
src/FubuMVC.Core/Resources/Etags/ETagHandler.cs
1,180
C#
// <auto-generated> // 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 // re...
46.622754
621
0.645004
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GoogleCloudStorageReadSettings.cs
7,786
C#
using Framework.Jab.Jab.Factory; using Jab; namespace Framework.Jab.Jab; [ServiceProviderModule] [Import(typeof(IFactoryModule))] internal interface IJabModule { }
16.6
33
0.801205
[ "BSD-3-Clause" ]
byCrookie/Framework
src/Framework.Jab/Jab/IJabModule.cs
168
C#
using System.Collections; using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace Tests { public class CrosshairControllerUnitTest { CrossHairController crossHairController; RayCastControllerMock rayCastControllerMock; [SetUp]...
34.896104
144
0.65054
[ "MIT" ]
paulrus123/MeasAR
MeasAR/Assets/UnitTests/CrosshairControllerUnitTest.cs
2,689
C#
 using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Web; using Microsoft.WindowsAzure.Mobile.Service; using Microsoft.WindowsAzure.Mobile.Service.Security; using Newtonsoft.Json.Linq; using Owin; namespace AzureForMobile.Sample.Back...
29.779661
108
0.626636
[ "MIT" ]
Ideine/Apptracktive-Plugins
AzureForMobile/AzureForMobile.Sample/AzureForMobile.Sample.Backend/Utils/CustomLoginProvider.cs
1,759
C#
using CodeTweet.IdentityDal; using CodeTweet.IdentityDal.Model; using CodeTweet.Queueing; using CodeTweet.Queueing.ZeroMQ; using CodeTweet.TweetsDal; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; usi...
33.593023
116
0.626514
[ "MIT" ]
spikecannon/FirstRepo
CodeTweet/CodeTweet.Web/Startup.cs
2,891
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; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
43.078913
297
0.602553
[ "ECL-2.0", "Apache-2.0" ]
EladGabay/pulumi-oci
sdk/dotnet/Database/ExadataInfrastructure.cs
33,332
C#
using System; using System.IO; using System.Linq; using EventStore.Core.Index; using EventStore.Core.Util; using NUnit.Framework; namespace EventStore.Core.Tests.Index.IndexVAny { [TestFixture] public class saving_empty_index_to_a_file : SpecificationWithDirectoryPerTestFixture { private string _filename; privat...
26.929825
87
0.708795
[ "Apache-2.0", "CC0-1.0" ]
JasonKStevens/EventStoreRx
src/EventStore.Core.Tests/Index/IndexVAny/saving_empty_index_to_a_file.cs
1,535
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/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using S...
34.490196
145
0.681637
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/ShlObj_core/IShellDetailsTests.cs
1,761
C#
using System; using Xunit; using static PrimeFuncPack.UnitTest.TestData; namespace PrimeFuncPack.Tests; partial class ThreeDependencyTest { [Theory] [MemberData(nameof(ServiceProviderTestSource.NullableProviders), MemberType = typeof(ServiceProviderTestSource))] public void ResolveThird_ExpectResolvedValu...
27.84
117
0.712644
[ "MIT" ]
pfpack/pfpack-dependency-pipeline
src/dependency-core/Core.Tests/Tests.Dependency.03/Resolve/Resolve.T3.cs
696
C#
using System.Collections; using System.Collections.Generic; using Levels.Music; using UnityEngine; [CreateAssetMenu(fileName = "Audio", menuName = "ScriptableObjects/BeatMapData", order = 1)] public class BeatMapData : ScriptableObject { public List<int> timestampList; public BeatMap beatMapBase; public ...
24.787879
92
0.656479
[ "MIT" ]
TurnipXenon/GameDevMama
Assets/Scripts/ScriptableObjects/BeatMapData.cs
820
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/objidl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
36.480769
145
0.630996
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/objidl/IInitializeSpyTests.cs
1,899
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Mono.Linker; using Mono.Linker.Steps; #if NET5_LINKER using Microsoft.Android.Sdk.ILLink; #endif using Mono.Tuner; using Mobile.Tuner; using Mono.Cecil; namespace MonoDroid.Tuner { public class RemoveAttributes : R...
28.447368
107
0.753469
[ "MIT" ]
Mhtshum/xamarin-android
src/Xamarin.Android.Build.Tasks/Linker/MonoDroid.Tuner/RemoveAttributes.cs
2,162
C#
// <copyright file="AbstractRandomNumberGenerator.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // http://mathnetnumerics.codeplex.com // // Copyright (c) 2009-2010 Math.NET // // Permission is hereby granted...
43.925234
349
0.638936
[ "MIT" ]
ivan-alles/poker-acpc
lib/algorithms/trunk/src/main/net/ai.lib.algorithms/random/AbstractRandomNumberGenerator.cs
4,702
C#
using PhotoApp.Data; using PhotoApp.Data.Models; using PhotoApp.Services.Models.Photo; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PhotoApp.Services.PhotoService { public class PhotoService : IPhotoService { private read...
25.474359
102
0.5692
[ "MIT" ]
Mirkoniks/PhotoApp
src/Services/PhotoApp.Services/PhotoService/PhotoService.cs
1,989
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; interface IBaseLogic<T> where T : new() { /// <summary> /// 条件查询实例 /// </summary> /// <param name="entity">条件实例</param> /// <returns></returns> IList<T> Select(T entity); /// <summary> /// 查询所有实例 ...
18.571429
41
0.571795
[ "Unlicense" ]
xzssws/Code-Generate
DynamicFramework/Basic/DynamicFramework_Independent/SingleDaoTemplate/Base/IBaseLogic.cs
424
C#
using System.Collections.Generic; using System.Linq; using System.Security.Claims; using Newtonsoft.Json.Linq; namespace IdentityServer3.Core.Services.Default { /// <summary> /// Claims filter for facebook. /// </summary> public class FacebookClaimsFilter : ClaimsFilterBase { /// <summary>...
35.447368
97
0.536006
[ "Apache-2.0" ]
DomainGroupOSS/IdentityServer3
source/Core/Services/ExternalClaimsFilter/FacebookClaimsFilter.cs
2,696
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Datahub.Core.Migrations.Core { public partial class oboardingOtherField : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Project_Engagem...
29.458333
71
0.609618
[ "MIT" ]
NRCan/datahub-portal
Datahub.Core/Migrations/Core/20211115184452_oboardingOtherField.cs
709
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using JetBrains.Annotations; using lib.Commands; using lib.Primitives; namespace lib.Utils { public static class Compressor { [NotNull] public static string SerializeSolutionToStri...
41.672
126
0.582261
[ "MIT" ]
igorlukanin/icfpc2018-kontur-ru
lib/Utils/CommandSerializer.cs
5,209
C#
using DeliveryService.Data.Interface; using DeliveryService.Data.Model; using System.Linq; namespace DeliveryService.Data.Repository { public class RouteRepository : Repository<Route>, IRouteRepository { public RouteRepository(DeliveryServiceContext context) : base(context) { } } }
25.416667
82
0.763934
[ "MIT" ]
rtarantelli/DeliveryService
DeliveryService.Data/Repository/RouteRepository.cs
307
C#
using System; using System.Windows.Forms; using System.Security.Permissions; namespace SmallSharpToolscom.CompositePackage { public partial class EditorTextBox : RichTextBox { private bool m_FilterMouseClickMessages; public bool FilterMouseClickMessages { get ...
29.393443
102
0.555494
[ "Apache-2.0" ]
Listers/SmallSharpToolsDotNet
VisualStudioPlugins/CompositePackage/EditorTextBox.cs
1,793
C#
using Easy_Playable_Maker.Engine; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Windows.Forms; using System.Threading.Tasks; namespace Easy_Playable_Maker { static class Program { //Version.txt and BuildDat...
21.103448
59
0.736928
[ "MIT" ]
KidoHyde/EasyPlayableMaker
Easy Playable Maker/Program.cs
614
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using SEDC.PizzaApp.Models; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; namespace SEDC.PizzaApp.Controllers { public class HomeController : Controller { pr...
25.563636
112
0.602418
[ "MIT" ]
sedc-codecademy/skwd9-net-08-aspnetmvc
G2/Class04 - Views pt.1/SEDC.PizzaApp/SEDC.PizzaApp/Controllers/HomeController.cs
1,408
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> //--...
44.1875
198
0.617751
[ "MIT" ]
SmartPluginsCommunity/RedButton
src/Common/RedButton.Common.TeklaStructures/Properties/Resources.Designer.cs
2,830
C#
using Orchard.ContentManagement; using Orchard.ContentManagement.Drivers; using Orchard.ContentManagement.Handlers; using Orchard.Fields.Fields; using Orchard.Fields.Settings; using Orchard.Fields.ViewModels; using Orchard.Localization; using System; using System.Collections.Generic; using System.Globalization; names...
47.470588
199
0.602762
[ "BSD-3-Clause" ]
Codinlab/Orchard
src/Orchard.Web/Modules/Orchard.Fields/Drivers/NumericFieldDriver.cs
5,651
C#
using System.Security.Claims; using Microsoft.IdentityModel.Tokens; namespace Devon4Net.Infrastructure.JWT.Handlers { public interface IJwtHandler { string CreateJwtToken(List<Claim> clientClaims); List<Claim> GetUserClaims(string jwtToken); string GetClaimValue(List<Claim> claimList, ...
37.1875
114
0.739496
[ "Apache-2.0" ]
MelaniaOgalla/devon4net
source/Modules/Devon4Net.Infrastructure.JWT/Handlers/IJwtHandler.cs
597
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { partial struct RP { /// <summary> /// Defines the literal '...
32.212121
79
0.400753
[ "BSD-3-Clause" ]
0xCM/z0
src/root/src/render/literals/SlotDot.cs
1,063
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
48.759259
154
0.660653
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IWindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest.cs
5,266
C#
using Playnite.SDK; using Playnite.SDK.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReviewViewer { public class ReviewViewerSettings : ObservableObject { [DontSerialize] private bool useMatchingSteamApiLang ...
30.427536
166
0.5618
[ "MIT" ]
azuravian/PlayniteExtensionsCollection
source/Generic/ReviewViewer/ReviewViewerSettings.cs
4,201
C#
using PrisonBack.Domain.Repositories; using PrisonBack.Domain.Services; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PrisonBack.Services { public class InviteCodeService : IInviteCodeService { private readonly IInviteCodeRepository _inviteC...
24.057143
76
0.669834
[ "MIT" ]
KamilMaciuszek/PrisonBack
PrisonBack/PrisonBack/Services/InviteCodeService.cs
844
C#
using System; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json; using UnityEngine; using UnityEngine.UI; using Random = UnityEngine.Random; public class OnlineRoomSelection : MonoBehaviour { public GameObject NameInputField; public GameObject RoomsGameObject; public Text P...
35.325243
191
0.565755
[ "MIT" ]
henrysun18/Renju_Unity3D
Online/OnlineRoomSelection.cs
7,279
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-generate...
39.117647
192
0.555075
[ "Apache-2.0" ]
jeanluctritsch/CommunityServer
web/studio/ASC.Web.Studio/Products/Projects/Resources/ImportResource.Designer.cs
5,322
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SQLiteTool.Util { public static class FocusExtension { public static bool GetIsFocused(DependencyObject obj) { return (bo...
28.102564
76
0.597628
[ "Apache-2.0" ]
zhaotianff/SQLiteTool
Util/FocusExtension.cs
1,098
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace E4d.Wapi { public class Program { public stat...
21.038462
57
0.720293
[ "MIT" ]
eDyablo/handicraft
csharp/wapi/Program.cs
547
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.Collections.Generic; using System.Collections.Immutable; using BenchmarkDotNet.Attributes; using Bench...
35.971698
123
0.608445
[ "MIT" ]
BruceForstall/performance
src/benchmarks/micro/libraries/System.Collections/Contains/ContainsTrueComparer.cs
3,815
C#
using System; using System.Threading; using System.Net.Sockets; using System.Text; using System.Linq; using System.Numerics; using NetworkServices; namespace ChatClient { class Program { private static Client client; static void Main(string[] args) { try { ...
21.461538
90
0.512545
[ "MIT" ]
Sunshine-ki/BMSTU7_NETWORK_CP
src/ChatClient/ChatClient/Program.cs
855
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
42.361905
176
0.642311
[ "MIT" ]
ScriptBox99/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerPkcsCertificateProfile.cs
4,448
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/ObjIdl.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime....
50.285714
491
0.671875
[ "MIT" ]
john-h-k/terrafx.interop.windows
sources/Interop/Windows/um/ObjIdl/IUrlMon.cs
2,114
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...
26.175
107
0.58787
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CodeBuild/Generated/AmazonCodeBuildConfig.cs
2,094
C#
using System; using System.Collections.Concurrent; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using MediatR; using Newtonsoft.Json.Linq; using OmniSharp.Extensions.DebugAdapter.Protocol.Requests; using OmniSharp.Extensions.JsonRpc; using OmniSharp.Extensions.JsonRpc.Cli...
38.094203
148
0.579989
[ "MIT" ]
kamit9171/csharp-language-server-protocol
src/Dap.Shared/DapResponseRouter.cs
5,257
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 SpanTests { [Fact] pu...
38.691011
125
0.506171
[ "MIT" ]
CliffordOzewell/corefx
src/System.Memory/tests/Span/SequenceCompareTo.T.cs
6,887
C#
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace AnimalShelter.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( ...
43.276596
114
0.515733
[ "MIT" ]
an12346/AnimalShelter
AnimalShelter/Migrations/20220121174343_Initial.cs
2,036
C#
using System; using System.IO; using System.Text; using QQ.Framework.Utils; namespace QQ.Framework.Packets.PCTLV { [TlvTag(TlvTags.AccountBasicInfo)] internal class TLV0108 : BaseTLV { public TLV0108() { Command = 0x0108; Name = "SSO2::TLV_AccountBasicInfo_0x108"; ...
33.230769
113
0.530671
[ "MIT" ]
0nise/PCQQ-Agreement
QQ.Framework/Packets/PCTLV/TLV_0108.cs
1,744
C#
namespace UAlbion.Api { public interface IEvent { } }
14.5
31
0.689655
[ "MIT" ]
mrwillbarnz/ualbion
Api/IEvent.cs
60
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using AutoMapper; using Covid19Api.Presentation.Response; using Covid19Api.Repositories.Abstractions; using Covid19Api.UseCases.Abstractions.Queries.CountryStatisticsAggregates; using MediatR; names...
42.846154
111
0.766607
[ "MIT" ]
alsami/Covid-19-API
src/Covid19Api.UseCases/Queries/CountryStatisticsAggregates/LoadCountryStatisticsAggregatesForCountryInYearQueryHandler.cs
1,671
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
30.454545
81
0.666418
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Privatedns/V20201028/Models/DeletePrivateZoneResponse.cs
1,398
C#
using System.Collections.Generic; namespace WorkshopManager.Forms.ToolsForRequestVIew { public class RequestUnderModification { public static Request Value { get; set; } private static readonly RequestUnderModification instance = new RequestUnderModification(); private RequestUnderMo...
23.68
99
0.581081
[ "MIT" ]
BartoszBaczek/WorkshopRequestsManager
Project/WorkshopManager/WorkshopManager/Forms/RequestUnderModification.cs
594
C#
using ScottPlot.Config; using ScottPlot.Diagnostic.Attributes; using ScottPlot.Drawing; using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Linq; using System.Runtime.InteropServices; namespace ScottPlot { #pragma warning disable CS0618 // Type or member is ...
46.794521
191
0.601093
[ "MIT" ]
54dg007/ScottPlot
src/ScottPlot/plottables/PlottableHeatmap.cs
10,254
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.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.Tags; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Completio...
33.423077
161
0.558688
[ "Apache-2.0" ]
Iscgx/roslyn
src/Features/Core/Portable/Completion/CommonCompletionItem.cs
3,478
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...
35.860656
135
0.605714
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/MachineLearning/Generated/Model/Internal/MarshallTransformations/DeleteTagsRequestMarshaller.cs
4,375
C#
using BattleshipGame.UI; using UnityEditor; using UnityEngine; namespace BattleshipGame.Editor { [CustomEditor(typeof(GridNumbersBuilder))] public class GridNumbersBuilderEditor : UnityEditor.Editor { public override void OnInspectorGUI() { DrawDefaultInspector(); v...
28.444444
64
0.658203
[ "MIT" ]
MusapKahraman/Battleship
Battleship-Client/Assets/Scripts/Editor/GridNumbersBuilderEditor.cs
514
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Grades")] [assembly: AssemblyDescription("...
37.25
84
0.741984
[ "MIT" ]
pirocorp/Programming-Basics
ProgrammingBasicsExamPreparation/Grades/Properties/AssemblyInfo.cs
1,344
C#