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; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using Assets.Scripts.Missions; using Assets.Scripts.Props; using UnityEngine; /// <summary>Encapsulates an ongoing game, with all its bombs, module cameras, HUDs etc.</sum...
32.153937
386
0.717867
[ "MIT" ]
samfun123/KtaneTwitchPlays
TwitchPlaysAssembly/Src/TwitchGame.cs
27,403
C#
// // asmr: Coffee Beans Management Solution // © 2021 Pandora Karya Digital. All right reserved. // // Written by Danang Galuh Tegar Prasetyo [connect@danang.id] // // JsonContent.cs // using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text.Json; using System.Threadi...
22.625
99
0.770166
[ "BSD-3-Clause" ]
danang-id/ASMR
ASMR.Common/Net/Http/JsonContent.cs
906
C#
using System.Collections.Generic; using ESRI.ArcGIS.Geodatabase; using ProSuite.QA.Container; using ProSuite.QA.Tests.Test.TestRunners; using NUnit.Framework; using ProSuite.Commons.AO.Geodatabase; using ProSuite.Commons.AO.Licensing; using ProSuite.Commons.Essentials.CodeAnnotations; using ProSuite.QA.Tests.Test.TestD...
32.666667
106
0.655187
[ "MIT" ]
ProSuite/ProSuite
src/ProSuite.QA.Tests.Test/QaSchemaFieldNameRegexTest.cs
4,706
C#
using UIKit; namespace TestAppNative.iOS { public class Application { static void Main(string[] args) { UIApplication.Main(args, null, nameof(AppDelegate)); } } }
17.666667
64
0.580189
[ "MIT" ]
FabriBertani/Plugin.XamarinAppRating
TestAppNative/TestAppNative.iOS/Main.cs
214
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MinecraftClient.ChatBots { /// <summary> /// In-Chat Hangman game /// </summary> public class HangmanGame : ChatBot { private int vie = 0; private int vie_param = 10; private in...
35.777778
154
0.363946
[ "MIT" ]
IsaacJuracich/Replay-MCBot
ChatBots/HangmanGame.cs
6,777
C#
/// <summary> /// This class is responsible for the creation of HR_Monitors. /// </summary> public sealed class HR_Factory { private static HR_Factory _instance = null; private HR_Factory() { } public static HR_Factory Instance() { if (_instance == null) { _instance = new ...
23.24
85
0.526678
[ "MIT" ]
kingfreir/tenumbra
Assets/Scripts/Connectors/Heart Rate/HR_Factory.cs
1,164
C#
/* * Copyright (c) 2019-2021 Angouri. * AngouriMath is licensed under MIT. * Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. * Website: https://am.angouri.org. */ using static AngouriMath.Entity.Boolean; namespace AngouriMath { partial record Entity { partial recor...
36.870588
124
0.39515
[ "MIT" ]
jclapis/AngouriMath
Sources/AngouriMath/Functions/Evaluation/Evaluation.Discrete/Evaluation.Discrete.Classes.cs
15,672
C#
 namespace BookShop.Data { using BookShop.Data.Models; using Microsoft.EntityFrameworkCore; public class BookShopDbContext : DbContext { public BookShopDbContext(DbContextOptions<BookShopDbContext> options) : base(options) { } public DbSet<Book> Books { ge...
27.319149
78
0.523364
[ "MIT" ]
LuGeorgiev/CSharpSelfLearning
ASP.Core.SelfLearning/BookShop/BookShop.Data/BookShopDbContext.cs
1,286
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using CommandLine; #if NET40Plus using System.Threading.Tasks; #endif namespace System.Doors.Drive { class Program { class AppAr...
36.565714
275
0.475543
[ "MIT" ]
undersoft-org/NET.Undersoft.Doors.Fwk.Devel
Undersoft.Doors.Fwk/Drive/Examples/SingleProcess/Program.cs
6,401
C#
using Sitecore.Globalization; using Sitecore.Web.UI.HtmlControls; using Sitecore.Web.UI.Sheer; namespace Cognifide.PowerShell.Client.Controls { public class EditExtended : Edit { public string PlaceholderText { get { return GetViewStateString("Placeholde...
26.36
90
0.552352
[ "MIT" ]
dsolovay/Console
Cognifide.PowerShell/Client/Controls/EditExtended.cs
661
C#
using MercadoLivre.Domain.Entities; namespace MercadoLivre.Domain.Interfaces { public interface IProdutoPerguntaRepository : IBaseRepository<ProdutoPergunta> { } }
22.125
82
0.785311
[ "Apache-2.0" ]
YatoEbisu/Desafio-MercadoLivreAPI
MercadoLivre/src/MercadoLivre.Domain/Interfaces/IProdutoPerguntaRepository.cs
179
C#
// *********************************************************************** // Copyright (c) 2011 Charlie Poole // // 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, incl...
42.576923
95
0.629329
[ "MIT" ]
Schumix/nunit-framework
src/NUnitFramework/nunitlite.runner/Runner/OutputWriters/OutputWriter.cs
3,323
C#
using PPDCoreModel; using PPDCoreModel.Data; using PPDFramework; using PPDFramework.PPDStructure; using PPDFramework.PPDStructure.EVDData; using PPDFrameworkCore; using System.Collections.Generic; using System.IO; namespace PPDCore { public class EventManager : UpdatableGameComponent, IEventManager { ...
33.012987
133
0.464359
[ "Apache-2.0" ]
KHCmaster/PPD
Win/PPDCore/EventManager.cs
12,712
C#
namespace Lazy.Core.Enums { public enum ElementType { Assignment = 1, Fix = 2, Bug = 3, Other = 4, } }
13.454545
27
0.459459
[ "Apache-2.0" ]
MarioZisov/Lazy
Lazy.Core/Enums/ElementType.cs
150
C#
#region Copyright & License // Copyright © 2012 - 2021 François Chabot // // 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 r...
38.768116
111
0.770093
[ "Apache-2.0" ]
icraftsoftware/Be.Stateless.BizTalk.Pipeline.MicroComponents
src/Be.Stateless.BizTalk.Pipeline.MicroComponents/MicroComponent/MultipartFormDataContentEncoder.cs
2,679
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using LuaInterface; namespace CSharpLua { [LuaAutoWrap] public sealed class BridgeMonoBehaviour : MonoBehaviour { private static readonly YieldInstruction[] updateYieldInstructio...
25.931034
157
0.621201
[ "MIT" ]
DukeChiang/CSharpLuaForUnity
Assets/LuaRuntime/CSharpLua/CSharpLuaClient.cs
5,266
C#
using System; using System.IO; using System.Linq; using System.Reflection; using System.Reflection.Emit; using Jetsons.JSON.Internal; using Jetsons.JSON.Internal.Emit; namespace Jetsons.JSON { // NonGeneric API public static partial class JsonSerializer { public static class NonGeneric { ...
44.987805
199
0.535737
[ "MIT" ]
jetsons/JetPack.Data.Net
JSON/JsonSerializer.NonGeneric.cs
22,136
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.Runtime.Serialization; using System.ServiceModel; namespace WcfService { [ServiceCo...
36.207792
123
0.781205
[ "MIT" ]
crummel/dotnet_wcf
src/System.Private.ServiceModel/tools/IISHostedWcfService/App_code/ISessionTests.cs
2,790
C#
using System; using CCompiler.Tokenizer; namespace CCompiler.Parser { public interface IParseResult { public bool IsSuccess { get; } public Node ResultNode { get; } public string ErrorMessage { get; } public bool IsNullStat(); } public class SuccessParseResult : IParse...
26.666667
113
0.6125
[ "MIT" ]
ALMikhai/CCompiler
CCompiler/Parser/ParseResult.cs
1,282
C#
using System.Collections.Generic; using System.Data; using System.Data.SqlClient; namespace SimpleAPI { public class DataLayer { private readonly ConnectionFactory _connectionFactory; public DataLayer() { _connectionFactory = new ConnectionFactory(); } pub...
28
107
0.647465
[ "MIT" ]
CodeUpManchester/SimpleAPI
SimpleAPI/SimpleAPI/DataLayer.cs
870
C#
using Messages.Core; using System.Threading.Tasks; using HouseModel = Make.Magic.Challenge.Domain.House.Models.House; namespace Make.Magic.Challenge.Domain.House.Services.Contracts { public interface IHouseService { Task<Response<HouseModel>> GetHouseAsync(string houseId); } }
25
66
0.76
[ "MIT" ]
leo-oliveira-eng/Make-Magic-Challenge
Make.Magic.Challenge.Domain/House/Services/Contracts/IHouseService.cs
302
C#
using System.Data.Entity; namespace Chapter_1.Core { public class UserContext : DbContext { public DbSet<User> Users { get; set; } public UserContext() : base("DbConnection") { } } }
18.75
56
0.591111
[ "Apache-2.0" ]
verloka/EF6FromZero
src/Chapter_1/Chapter_1/Core/UserContext.cs
227
C#
using System.Text.Json; using System.Threading.Tasks; using Flurl.Http; using Flurl.Http.Configuration; namespace NemligSharp { public class NemligClient : INemligClient { public const string NemligBaseUrl = "https://www.nemlig.com/"; private readonly IFlurlClient _flurlClient; private CookieJar _cookieJar = ...
42.166667
167
0.768116
[ "MIT" ]
kimipsen/NemligSharp
src/NemligClient.cs
3,038
C#
namespace ZI.Properties { // 通过此类可以处理设置类上的特定事件: // 在更改某个设置的值之前将引发 SettingChanging 事件。 // 在更改某个设置的值之后将引发 PropertyChanged 事件。 // 在加载设置值之后将引发 SettingsLoaded 事件。 // 在保存设置值之前将引发 SettingsSaving 事件。 internal sealed partial class Settings { public Settings() { ...
32.62069
115
0.599366
[ "MIT" ]
lymuxh/Price-index-simulation-tool
code/Settings.cs
1,220
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Web.Syndication { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public enum Syndi...
28.5625
63
0.704595
[ "Apache-2.0" ]
06needhamt/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Web.Syndication/SyndicationErrorStatus.cs
914
C#
using AutoMapper; using Synchronization.Application.AutoMapper; using Xunit; namespace Synchronization.Application.Tests.Tests.AutoMapper; public class AutoMapperProfileTests { [Fact] public void ProfileIsValid() { // Arrange var configuration = new MapperConfiguration(cfg => cfg.AddProfi...
22.684211
96
0.714617
[ "MIT" ]
nmshd/bkb-synchronization
Synchronization.Application.Tests/Tests/AutoMapper/AutoMapperProfileTests.cs
433
C#
using Microsoft.Toolkit.Uwp; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FluentHub.Models { public class DefaultLanguageModel { public string ID { get; set; } public string Name { get...
26.194444
129
0.585366
[ "MIT" ]
esibruti/FluentHub
src/FluentHub/Models/DefaultLanguageModel.cs
945
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using CoreUserIdentity._UserIdentity; using CoreUserIdentity.Models; using FridgeServer.Data; using FridgeServer.Helpers; using FridgeServer.Models; using FridgeServer.Models.Dto; using Fridge...
29.648649
135
0.545488
[ "MIT" ]
MoustafaMohsen/fridge-notes-Api
FridgeServer/Controllers/AdminController.cs
5,487
C#
using Polyglot; using UnityEngine; using System.Collections.Generic; using IPA.Config.Stores.Converters; using IPA.Config.Stores.Attributes; namespace SiraUtil { public class Config { public virtual int MajorVersion { get; set; } public virtual int MinorVersion { get; set; } public vir...
36.257576
135
0.616799
[ "MIT" ]
ErisApps/SiraUtil
SiraUtil/Config.cs
2,395
C#
using Abp.EntityFrameworkCore.Configuration; using Abp.IdentityServer4; using Abp.Modules; using Abp.Reflection.Extensions; using Abp.Zero.EntityFrameworkCore; using StroudwaterIdentity.EntityFrameworkCore.Seed; namespace StroudwaterIdentity.EntityFrameworkCore { [DependsOn( typeof(StroudwaterIdentityCore...
34.150943
127
0.623204
[ "MIT" ]
ITconsultants247/StroudwaterIdentity
aspnet-core/src/StroudwaterIdentity.EntityFrameworkCore/EntityFrameworkCore/StroudwaterIdentityEntityFrameworkModule.cs
1,812
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace viva { public partial class PauseMenu : UIMenu { public enum Menu { NONE, ROOT, KB_CONTROLS, VR_CONTROLS, MAP, ...
34.364407
157
0.53732
[ "MIT" ]
Foxify52/OpenViva
Assets/Scripts/PauseMenu.cs
24,332
C#
using System; namespace demo_15.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.166667
70
0.660194
[ "MIT" ]
mahendra-shinde/docker-k8s-july-2020
demos/demo-15/Models/ErrorViewModel.cs
206
C#
using OilStationCoreAPI.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace OilStationCoreAPI.IServices { public interface IAspNetRolesServices { ResponseModel<IEnumerable<RolesViewModel>> Roles_Get(); ResponseModel<bool> Role...
24.95
68
0.761523
[ "MIT" ]
Asylumrots/OilStation
OilStationCoreAPI/OilStationCoreAPI/IServices/IAspNetRolesServices.cs
501
C#
using System; namespace Bing.Datas.Sql.Builders { /// <summary> /// From子句 /// </summary> public interface IFromClause { /// <summary> /// 克隆 /// </summary> /// <param name="builder">Sql生成器</param> /// <param name="register">实体别名注册器</param> IFromClau...
26.079365
92
0.494218
[ "MIT" ]
brucehu123/Bing.NetCore
framework/src/Bing/Bing/Datas/Sql/Builders/IFromClause.cs
1,789
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("IT...
38.189189
84
0.746638
[ "Apache-2.0" ]
italabs/ITA.Common
SOURCE/ITA.WizardsUITest/Properties/AssemblyInfo.cs
1,416
C#
/****************************************************************************** * Spine Runtimes Software License * Version 2 * * Copyright (c) 2013, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable and * non-transferable license to install, execute an...
45.511111
79
0.698242
[ "MIT" ]
herman-rogers/Relic
RelicGame/Assets/spine-csharp/src/Attachments/Attachment.cs
2,048
C#
using COLID.SearchService.Services.Implementation; using COLID.SearchService.Services.Interface; using COLID.MessageQueue.Services; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace COLID.SearchService.Services { public static class ServicesModule { //...
43.75
122
0.712857
[ "BSD-3-Clause" ]
Bayer-Group/COLID-Search-Service
COLID.SearchService.Services/ServicesModule.cs
1,402
C#
// Copyright (c) 2022 TrakHound Inc., All Rights Reserved. // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace MTConnect.Observations.Events.Values { /// <summary> /// A setting or operator selection that changes the behavi...
36.777778
135
0.654834
[ "Apache-2.0" ]
TrakHound/MTConnect
src/MTConnect.NET-Common/Observations/Events/Values/ControllerModeOverrideValueDescriptions.cs
1,324
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...
47.382979
215
0.627301
[ "MIT" ]
Andrean/azure-powershell
src/ServiceManagement/Compute/Commands.ServiceManagement/Model/VhdUploaderModel.cs
2,183
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must ...
39.783217
160
0.590438
[ "BSD-3-Clause" ]
WhiteCoreSim/WhiteCore-Merger
OpenSim/Framework/Communications/Clients/AuthClient.cs
5,691
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.387443
323
0.574428
[ "MIT" ]
Cardsareus/azure-sdk-for-net
sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/Generated/BackupResourceVaultConfigsOperations.cs
30,291
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediatR; using OasysNet.Application.Weather.Queries; using OasysNet.Domain.Models; namespace OasysNet.Application.Weather.Handlers { public class GetAllWeatherForecastQueryHandler : IRequ...
33.513514
129
0.645161
[ "MIT" ]
Dakianth/OasysNet
OasysNet.Application/Weather/Handlers/GetAllWeatherForecastQueryHandler.cs
1,242
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IDEG_DiaTrainer.Messages { /// <summary> /// Signal message for injecting carbohydrates into simulation /// </summary> public class InjectCarbsMessage { ...
27.538462
69
0.636872
[ "MIT" ]
MartinUbl/IDEG-DiaTrainer
App/IDEG-DiaTrainer/Messages/InjectCarbsMessage.cs
718
C#
using System; using System.ComponentModel.DataAnnotations; using System.Linq; namespace vueAdminAPI.Models { public class Base_metadata_base { [Newtonsoft.Json.JsonIgnore] public int isid { get; set; } [Newtonsoft.Json.JsonProperty(Order = 1)] //[Required(ErrorMessage = "主键不能为...
22.058824
49
0.653333
[ "MIT" ]
GarsonZhang/GZAdmin_API
GZAdminAPI/Models/Base_metadata_base.cs
389
C#
//************************************************************************************************ // Copyright © 2021 Steven M Cohn. All rights reserved. //************************************************************************************************ namespace River.OneMoreAddIn.Commands { using OneMoreAddIn.Mod...
28.630607
308
0.638052
[ "MIT" ]
stevencohn/OneMore
OneMore/Commands/Tools/AnalyzeCommand.cs
21,707
C#
/// <summary> /// Creates a deck of 52 cards and places them on the screen in random /// positions. /// </summary> using System.Collections; using System.Collections.Generic; using UnityEngine; public class Deck : MonoBehaviour { #region Variables public List<Card> myDeck = new List<Card>(); private Rules...
31.890625
94
0.471093
[ "MIT" ]
crav12345/Quack-Studios
Queens Cup/Assets/Scripts/Deck.cs
4,084
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.Collections.Generic; using System.Diagnostics; using System.Linq; using StarkPlatform.CodeAnalysis; using StarkPlatform.CodeAnalys...
37.685714
293
0.567746
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/VisualStudio/Core/Impl/CodeModel/CodeModelProjectCache.cs
9,235
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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...
34.128378
218
0.574738
[ "Apache-2.0" ]
alexotsu/Lean
Tests/Engine/AlgorithmManagerTests.cs
15,155
C#
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package syscall -- go2cs converted at 2020 October 09 05:02:04 UTC // import "syscall" ==> using syscall = go.syscall_package // Original source: C:\Go\src\s...
28.371429
69
0.619335
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/syscall/types_windows_arm.cs
993
C#
using StreamCompanion.Contract; using StreamCompanion.Contract.Json; using System; using System.Collections.Generic; namespace StreamCompanion.JsonConverter { public class SerializedRoot : IConverterRoot { public SerializedRoot(Guid id, IEnumerable<ISerie> currentlyWatching, IEnumerable<ISerie> comple...
34.090909
198
0.666667
[ "MIT" ]
dreanor/StreamCompanion
src/jsonconverter/SerializedRoot.cs
1,127
C#
using System; namespace Simplic.Cloud.API.DataHub { /// <summary> /// Queue count result /// </summary> public class QueueCountResult { /// <summary> /// Gets or sets the id /// </summary> public Guid Id { get; set; } /// <summary> /// Gets or sets ...
19.333333
40
0.5
[ "MIT" ]
simplic/simplic-cloud-api
src/Simplic.Cloud.API.DataHub/Model/EventQueue/QueueCountResult.cs
408
C#
using System.Threading; using NUnit.Framework; using WPILib.Commands; namespace WPILib.IntegrationTests.Commands { [TestFixture] public class CommandTimeoutTest : AbstractCommandTest { [Test] public void TestTwoSecondTimeout() { ASubsystem subsystem = new ASubsystem(); ...
29.23913
57
0.569517
[ "MIT" ]
Team-1922/OzWPILib.NET
WPILib.IntegrationTests/Commands/CommandTimeoutTest.cs
1,347
C#
using BuildIt.Auth; using System; using System.Diagnostics; using System.Net; using Xamarin.Forms; namespace Authentication { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } private OAuthManager AzureManager { get; } ...
38.706522
184
0.540719
[ "MIT" ]
builttoroam/BuildIt
src/BuildIt.Auth/Samples/Authentication/MainPage.xaml.cs
7,124
C#
using System; namespace exemplo { class Program { static void Main(string[] args) { DateTime dt = new DateTime(2018, 11, 16, 8, 10, 45); Console.WriteLine(dt.ElapsedTime()); } } }
17.285714
64
0.520661
[ "MIT" ]
Maxel-Uds/Curso-C-Sharp
Extension_Methods/exemplo/Program.cs
244
C#
using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.VisualBasic; using Microsoft.VisualBasic.CompilerServices; using NSubstitute.Analyzers.Tests.Shared.CodeFixProviders; namespace NSubstitute.Analyzers.Tests.VisualBasic.CodeFixProvidersTests { public abstract class...
38.166667
122
0.731878
[ "MIT" ]
Acidburn0zzz/NSubstitute.Analyzers
tests/NSubstitute.Analyzers.Tests.VisualBasic/CodeFixProvidersTests/VisualBasicSuppressDiagnosticSettingsVerifier.cs
1,118
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...
36.576923
178
0.739222
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-yandex
sdk/dotnet/Inputs/StorageBucketServerSideEncryptionConfigurationRuleGetArgs.cs
951
C#
using System; using System.Collections.Generic; using System.Numerics; using Veldrid.Sdl2; namespace Veldrid.NeoDemo { public static class InputTracker { private static HashSet<Key> _currentlyPressedKeys = new(); private static HashSet<Key> _newKeysThisFrame = new(); private static Ha...
29.028037
86
0.551513
[ "MIT" ]
JoeTwizzle/veldrid
src/NeoDemo/InputTracker.cs
3,108
C#
using System; using System.Linq; using Ploeh.AutoFixture.Kernel; using Ploeh.TestTypeFoundation; using Xunit; namespace Ploeh.AutoFixture.Xunit2.UnitTest { public class FavorEnumerablesAttributeTest { [Fact] public void SutIsAttribute() { // Fixture setup // Exe...
32.306122
138
0.606443
[ "MIT" ]
TeaDrivenDev/AutoFixture
Src/AutoFixture.xUnit.net2.UnitTest/FavorEnumerablesAttributeTest.cs
1,585
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.Diagnostics; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using static Roslynat...
31.557692
160
0.599025
[ "Apache-2.0" ]
ADIX7/Roslynator
src/CSharp/CSharp/Syntax/AsExpressionInfo.cs
3,284
C#
namespace ShoppingCart.WebApi { using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(st...
23.944444
76
0.61949
[ "MIT" ]
djamseed/shopping-cart
src/ShoppingCart.WebApi/Program.cs
433
C#
#if ((UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX) && !UNITY_EDITOR) #define APPLE_AUTH_MANAGER_NATIVE_IMPLEMENTATION_AVAILABLE #endif using AppleAuth.Enums; using AppleAuth.Interfaces; using System; namespace AppleAuth { public class AppleAuthManager : IAppleAuthManager { static AppleAuthManager(...
38.489676
165
0.579093
[ "MIT" ]
Kezzo/apple-signin-unity
AppleAuth/AppleAuthManager.cs
13,048
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Gerenciador_Financeiro.Migrations { public partial class CreateValor : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<decimal>( name: "Valor", ...
27.235294
71
0.531317
[ "MIT" ]
alcyonjr/GerenciadorFinanceiro
Gerenciador_Financeiro/Migrations/20190221050630_CreateValor.cs
928
C#
namespace ControlTower.Printer.Messages { /// <summary> /// Message used to disconnect the protocol layer /// </summary> public class DisconnectProtocol { /// <summary> /// Initializes a new instance of <see cref="DisconnectProtocol" /> /// </summary> private ...
27.85
86
0.567325
[ "Apache-2.0" ]
wmeints/controltower
src/ControlTower/Printer/Messages/DisconnectProtocol.cs
557
C#
using Nop.Web.Framework.Models; using Nop.Web.Framework.Mvc.ModelBinding; namespace Nop.Web.Areas.Admin.Models.Settings { /// <summary> /// Represents an admin area settings model /// </summary> public partial record AdminAreaSettingsModel : BaseNopModel, ISettingsModel { #region Propertie...
32.571429
120
0.725146
[ "CC0-1.0" ]
peterthomet/BioPuur
nopCommerce 4.4/src/Presentation/Nop.Web/Areas/Admin/Models/Settings/AdminAreaSettingsModel.cs
686
C#
using System; using System.Collections.Generic; using System.Text; namespace Stopwatch.View { using System.Threading; using ViewModel; class StopwatchView { private StopwatchViewModel _viewModel = new StopwatchViewModel(); private bool _quit = false; /// <summar...
35.470588
108
0.494196
[ "MIT" ]
JoyfulReaper/fourth-edition
Code/MVVM_WPF/Stopwatch/Stopwatch/View/StopwatchView.cs
3,017
C#
using System; using System.Collections.Generic; namespace VotingIrregularities.Domain.Models { public partial class Raspuns { public int IdObservator { get; set; } public int IdRaspunsDisponibil { get; set; } public int IdSectieDeVotare { get; set; } public DateTime DataUltimei...
34.333333
84
0.678225
[ "MPL-2.0" ]
levinineiasi/monitorizare-vot
private-api/app/src/VotingIrregularities.Domain/Models/Raspuns.cs
723
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace chunked_upload_api { public class WebApiApplication : System.Web.HttpApplication { protected void Applica...
27.875
70
0.715994
[ "MIT" ]
sul-patompong/chunked-upload
api/chunked-upload-api/chunked-upload-api/Global.asax.cs
671
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vowel_or_Digit { class Program { static void Main(string[] args) { char symbol = char.Parse(Console.ReadLine()); if (symbol>'\u002f' && symbol<'...
24.103448
118
0.467811
[ "MIT" ]
SimeonShterev/2017.09.21-2017.11.05-ProgramingFundamentals
2017.09.29 - H4 DATA TYPES AND VARS/Vowel or Digit/Program.cs
701
C#
// // Copyright (c) Microsoft and contributors. 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 // // Unless requi...
27.981132
76
0.623736
[ "Apache-2.0" ]
dud5/azure-sdk-for-net
src/RemoteApp/Generated/Models/RemoteAppOperationStatus.cs
1,483
C#
using ADS.Algorithms.Graphs; using ADS.DataStructures; using System.Linq; using Xunit; namespace ADS.UnitTests.Algorithms.Graphs { public class TopologicalSortDfs_Order { [Fact] public void HappyPathUnweighted_OrderedCorrectly() { //Arrange (int, int)[] edges = ...
34.644068
141
0.515166
[ "MIT" ]
MarkoPapic/ADS
Tests/ADS.UnitTests/Algorithms/Graphs/TopologicalSortDfs_Order.cs
2,046
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DbConnector.Tests.Entities { [Table("Currency", Schema = "Sales")] public partial class Currency { public Currency() { Coun...
37.382353
101
0.693155
[ "Apache-2.0" ]
SavantBuffer/DbConnector
DbConnector.Tests/Entities/Currency.cs
1,273
C#
using System.ComponentModel; namespace GBT35255.ProtoBase { /// <summary> /// 消息ID枚举。 /// </summary> [Description("消息ID")] public enum MessageId : ushort { #region 配置命令 /// <summary> /// 配置命令。 /// </summary> [Description("配置")] ConfigurationComma...
23.056156
62
0.465574
[ "Apache-2.0" ]
li2008kui/GBT35255
src/GBT35255.ProtoBase/MessageId.cs
13,471
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using STM.Implementation.Lockbased; namespace STM.Collections { public class SingleItemBuffer<T> { private readonly TMVar<T> _item; private readonly TMVar<bool> _full; p...
22.568966
63
0.468296
[ "MIT" ]
Felorati/Thesis
code/STM/STM/STM/Collections/SingleItemBuffer.cs
1,311
C#
using System.IO; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Firestorm.Client.Content { internal class JsonContentSerializer : IContentSerializer { private readonly JsonSerializer _jsonSerializer; ...
35.833333
125
0.617571
[ "MIT" ]
connellw/Firestorm
src/Firestorm.Client/Content/JsonContentSerializer.cs
1,937
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 11.12.2020. using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.S...
26.170569
203
0.555399
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/Or/Complete/Int16/Int64/TestSet_001__fields.cs
7,827
C#
namespace CSharpAlgo.DataStructure.Graph { public class AdjacencyMatrix { public int[,] Value; public int N { get; set; } public bool IsDirected { get; set; } public AdjacencyMatrix(int[,] graph) { Value = graph; N = graph.GetLength(0); }...
21.704545
70
0.419895
[ "MIT" ]
yiweishen1988/CSharpAlgo
DataStructure/Graph/AdjacencyMatrix.cs
957
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell; /// <summary>Operations discovery class.</summary> [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryTypeConverter))] public partia...
95.088435
453
0.748104
[ "MIT" ]
Amrinder-Singh29/azure-powershell
src/ResourceMover/generated/api/Models/Api202101/OperationsDiscovery.PowerShell.cs
13,832
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
33.219512
94
0.589574
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSModules/Integration/Pages/Administration/OutcomingTasks/List.aspx.designer.cs
1,364
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BookStore.Models; using BookStore.Models.Repositories; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace BookStore.Controllers { public class AuthorController : Controller { ...
25.770642
73
0.502314
[ "MIT" ]
AhmedSaber999/BookStore
BookStore/Controllers/AuthorController.cs
2,811
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class DigitAsWord { static void Main() { string digit = Console.ReadLine(); string text = ""; switch (digit) { case "0": text = "zero"; ...
24.04878
42
0.402637
[ "MIT" ]
zachdimitrov/Homework
CSharp-Part-1/05.Conditional-Statements/08.Digit as Word/DigitAsWord.cs
988
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace Id4Server { public class ExternalProvider { public string DisplayName { get; set; } public string Authentic...
29.416667
107
0.699717
[ "Apache-2.0" ]
mgx0612/quickstart
src/Id4Server/Quickstart/Account/ExternalProvider.cs
355
C#
namespace Spring.Expressions.Parser.antlr { internal class SupportClass { public static int URShift(int number, int bits) { if (number >= 0) return number >> bits; else return (number >> bits) + (2 << ~bits); } public stati...
24.375
58
0.478205
[ "Apache-2.0" ]
18502079446/cusss
Sys.Expression/Expressions/Parser/antlr/SupportClass.cs
780
C#
using System; class ExtractBit3 { static void Main() { //Using bitwise operators, write an expression for finding the value of the bit #3 of a given unsigned integer. //The bits are counted from right to left, starting from bit #0. //The result of the expr...
36.323529
123
0.587045
[ "MIT" ]
pkindalov/beginner_exercises
OperatorsAndExpressionsHomework/11.ExtractBit3/ExtractBit3.cs
1,237
C#
namespace P03_JediGalaxy { public class Player { private int row; private int col; private long starsCollected; public Player() { StarsCollected = 0; } public Player(int row, int col) : this() { Row = row; Col ...
23.765625
90
0.420776
[ "MIT" ]
teodortenchev/C-Sharp-Advanced-Coursework
C# OOP Basics/Refactoring/P03_JediGalaxy/Player.cs
1,523
C#
// Copyright (c) Josef Pihrt and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysi...
36.387597
156
0.631231
[ "Apache-2.0" ]
onexey/Roslynator
src/Refactorings/CSharp/Refactorings/DuplicateSwitchSectionRefactoring.cs
4,696
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Threading.Tasks; using System.Xml; using ExchangeRateProvider.Models; namespace ExchangeRateProvider.Providers.Czk { public class CzechNationalBankProvider : IExchangeProvider { private const string ApiUrl = "http://www.cnb.c...
30.466667
129
0.7345
[ "Apache-2.0" ]
anydot/StatementParser
StatementParser/ExchangeRateProvider/Providers/Czk/CzechNationalBankProvider.cs
1,373
C#
using System; using System.Collections.Generic; using System.Threading; using BitcoinUtilities.P2P; using NLog; namespace BitcoinUtilities.Threading { /// <summary> /// <p>Manages starting and stopping of services that consume events, and distributes events between them.</p> /// <p>Uses differen...
31.583607
157
0.409841
[ "MIT" ]
yu-kopylov/bitcoin-utilities
BitcoinUtilities/Threading/EventServiceController.cs
9,331
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="OverlapRemovalGlobalConfiguration.cs" company="Microsoft"> // (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // MSAGL class for Overlap removal glo...
50.086957
136
0.621528
[ "MIT" ]
0xbeecaffe/MSAGL
GraphLayout/MSAGL/Core/Geometry/OverlapRemoval/OverlapRemovalGlobalConfiguration.cs
2,304
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 ...
36.375
92
0.761512
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-rds/Rds/Transform/V20140815/AddTagsToResourceResponseUnmarshaller.cs
1,455
C#
namespace AutoRepair { #if DEBUG using AutoRepair.Catalogs; #endif using AutoRepair.Lists; using AutoRepair.Util; using ColossalFramework; using ColossalFramework.UI; using ICities; using System.Collections.Generic; using UnityEngine; /// <summary> /// Renders the settings UI. ...
37.527132
129
0.549473
[ "MIT" ]
CitiesSkylinesMods/AutoRepair
AutoRepair/AutoRepair/SettingsUI.cs
4,841
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Prism.Events; namespace IronText2.Events { public class CutTextEvent:PubSubEvent { } }
14.933333
41
0.754464
[ "MIT" ]
JayConnerGhost/IronText2
IronText2/Events/CutTextEvent.cs
226
C#
#pragma checksum "C:\Users\cna\Desktop\SmashTheBlock\BeeHive\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "66202B2DFDDA4CABB5E1FD80DFA8CA94" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4...
45.253247
152
0.648874
[ "Apache-2.0" ]
liteboho123/Smash_Block_Game
SmashTheBlock/BeeHive/obj/Debug/MainPage.g.cs
6,971
C#
using System; using NpcService.Ai.NpcType; namespace NpcService.Ai.NpcCitizen { public class InnadrileDfTeleporter1 : Citizen { } }
14.5
49
0.731034
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dr3dd/L2Interlude
NpcService/Ai/NpcCitizen/InnadrileDfTeleporter1.cs
145
C#
namespace OneTwoOne.Infrastructure.Models { public abstract class EntityBaseWithTypedId<TId> : ValidatableObject, IEntityWithTypedId<TId> { public virtual TId Id { get; protected set; } } }
26.375
97
0.720379
[ "Apache-2.0" ]
microcapital/one2one
src/OneTwoOne.Infrastructure/Models/EntityBaseWithTypedId.cs
213
C#
 namespace Consumption.EFCore { using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; /// <summary> /// Extension methods for setting up unit of work related services in an <see cref="IServiceCollection"/>. /// </summary> public static class UnitOfWorkServiceCol...
52.336134
132
0.647238
[ "MIT" ]
AngelBye/WPF-Examples
src/Consumption/Consumption.EFCore/UnitOfWorkServiceCollectionExtensions.cs
6,230
C#
using System.Linq; using NBitcoin; using Xels.Bitcoin.Features.RPC; using Xels.Bitcoin.Features.Wallet; using Xels.Bitcoin.IntegrationTests.Common; using Xels.Bitcoin.IntegrationTests.Common.EnvironmentMockUpHelpers; using Xels.Bitcoin.IntegrationTests.Common.ReadyData; using Xels.Bitcoin.Networks; using Xels.Bitcoin....
45.486239
173
0.62616
[ "MIT" ]
xels-io/SideChain-SmartContract
src/Xels.Bitcoin.IntegrationTests/RPC/RawTransactionTests.cs
9,918
C#
/*---------------------------------------------------------------- Copyright (C) 2001 R&R Soft - All rights reserved. author: Roberto Oliveira Jucá ----------------------------------------------------------------*/ //----- Include using System.ComponentModel.Composition; using rr.Library.Infrastructure; usi...
26.540984
124
0.594812
[ "MIT" ]
robjuca/Suite
Layout/Drawer/Suite.Layout.Drawer/Shell/Pattern/ViewModels/ShellFactoryViewModel.cs
1,622
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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.PooledObjects; usi...
26.078125
161
0.553925
[ "Apache-2.0" ]
Therzok/roslyn
src/Compilers/CSharp/Portable/Symbols/DynamicTypeSymbol.cs
6,678
C#
using UnityEngine; namespace UnityStandardAssets.ImageEffects { [ExecuteInEditMode] [RequireComponent(typeof(Camera))] [AddComponentMenu("Image Effects/Edge Detection/Edge Detection")] public class EdgeDetection : PostEffectsBase { public enum EdgeDetectMode { TriangleDe...
32.674157
121
0.614512
[ "MIT" ]
CDAGaming/RetroTVFX
Assets/Standard Assets/Effects/ImageEffects/Scripts/EdgeDetection.cs
2,908
C#
namespace MAVN.Service.WalletManagement.Settings { public class Constants { public string TokenSymbol { get; set; } public string TokenFormatCultureInfo { get; set; } public int TokenNumberDecimalPlaces { get; set; } public string TokenIntegerPartFormat { get; set; } } }
22.785714
58
0.664577
[ "MIT" ]
HannaAndreevna/MAVN.Service.WalletManagement
src/MAVN.Service.WalletManagement/Settings/Constants.cs
319
C#