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; class TheBiggestOf3 { static void Main() { Console.WriteLine("enter three real numbers"); double a = double.Parse(Console.ReadLine()); double b = double.Parse(Console.ReadLine()); double c = double.Parse(Console.ReadLine()); double biggest = 0; if...
25.35
64
0.546351
[ "MIT" ]
ivannk0900/Telerik-Academy
C# 1/ConditionalStatements/TheBiggestOf3/TheBiggestOf3.cs
509
C#
/***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * http://reogrid.net/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF...
25.582319
147
0.622364
[ "MIT" ]
SlightPlus/ReoGrid
ReoGrid/IO/ExcelReader.cs
79,872
C#
namespace Starfield.Core.Networking.Packet.Server.Play { [Packet(0x29, ProtocolState.Play, PacketSide.Server)] public class SP29EntityRotation : MinecraftPacket { public int EntityId { get; } public float Yaw { get; } public float Pitch { get; } public bool OnGround { ...
37.166667
128
0.620329
[ "MIT" ]
StarfieldMC/Starfield
Starfield.Core/Networking/Packet/Server/Play/SP29EntityRotation.cs
671
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated w...
42.482143
98
0.709962
[ "MIT" ]
uzairrj/Custom-SpreadSheet
Custom Spreadsheet/Properties/AssemblyInfo.cs
2,382
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
48.393258
230
0.623868
[ "MIT" ]
SpillChek2/azure-powershell
src/ResourceManager/TrafficManager/Commands.TrafficManager2/Endpoint/RemoveAzureTrafficManagerEndpoint.cs
4,221
C#
using System; using System.Globalization; using System.Windows; using System.Windows.Data; using FontAwesome.WPF; namespace EdgeManager.Gui.Converters { public sealed class BoolToEdgeDeviceIconConverter : IValueConverter { public BoolToEdgeDeviceIconConverter() { this.TrueValue = F...
28
105
0.643878
[ "MIT" ]
evopro-ag/EdgeManager
EdgeManager.Gui/Converters/BoolToEdgeDeviceIconConverter.cs
982
C#
using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace CodeContractsRemover.CS { public class CSharpStatsCollector : SyntaxWalker { public static Dictionary<string, int> Stats = new Dictionary<string, int...
25.3
94
0.646527
[ "MIT" ]
deniszykov/code-contracts-remover
src/CodeContractsRemover/CS/CSharpStatsCollector.cs
1,771
C#
using System.Collections.Generic; using System.Runtime.Serialization; using Stranne.VasttrafikNET.ApiModels.JourneyPlanner; namespace Stranne.VasttrafikNET.ApiModels.TrafficSituations { /// <summary> /// Line. /// </summary> public class LineApiModel { /// <summary> /// List of <se...
32.652778
109
0.573373
[ "MIT" ]
stranne/Vasttrafik.NET
src/Stranne.VasttrafikNET/ApiModels/TrafficSituations/LineApiModel.cs
2,356
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
51.230337
317
0.64478
[ "BSD-3-Clause" ]
NMFCode/NMF
IntegrationTests/ComponentBasedSoftwareArchitectures/Pcm/Core/Composition/RequiredInfrastructureDelegationConnector.cs
36,478
C#
using System.ComponentModel.DataAnnotations; using System.Configuration; namespace FRTools.Web.Models { public class DressModelViewModel { [Display(Name = "Scry image URL")] [Required] public string ScryerUrl { get; set; } [Display(Name = "Dressing image URL")] [Require...
27.190476
85
0.654991
[ "MIT" ]
Nensec/FRSkinTester
FRTools.Web/Models/ScryerModels.cs
573
C#
using System; using System.Collections.Generic; using System.Text; namespace DataLayer { public abstract class Event { public String Id { get; set; } public DateTime dateTime { get; } public StateOfSHOP state { get; set; } public Customer customer { get; set; } //const...
23.411765
88
0.545226
[ "MIT" ]
224088/zustyna
DoNutShopLibrary/DataLayer/Event.cs
798
C#
using NationalInstruments.Shell; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Svn.Plugin.UserPreferences { /// <summary> /// User preferences page factory export /// </summary> [ExportUserPreferences()] public class S...
22.96875
68
0.613605
[ "MIT" ]
benhysell/nxg-svn
Svn.Plugin/UserPreferences/SvnPropertiesPageProvider.cs
737
C#
using System; namespace Server { public class DocEvents { public event Action<DocDto> OnNewDoc; public event Action<DocDto> OnUpdatedDoc; public event Action<DocDto> OnDeletedDoc; public void NewDoc(DocDto dto) => OnNewDoc?.Invoke(dto); public void UpdateDoc(DocDto dto) ...
30.714286
72
0.669767
[ "MIT" ]
askleon/BlazorDocs
src/Server/Services/DocEvents.cs
430
C#
using System.Windows.Controls; namespace Xe.Tools.Components.KernelEditor.Views { /// <summary> /// Interaction logic for TabActorDropItems.xaml /// </summary> public partial class TabActorDropItems : UserControl { public TabActorDropItems() { InitializeComponent(); } } }
18.125
53
0.727586
[ "MIT" ]
XeEngine/XeTools
Xe.Tools.Components.KernelEditor/Views/TabActorDropItems.xaml.cs
292
C#
using System; namespace Spyder.Console.Modules { public class SegmentEncoder : Segment { public SegmentEncoder(int portID) : base(portID, SegmentType.Encoder) { display.Startup(40, 2); this.display.DisplayText = "Encoder"; } } }
17.5
71
0.714286
[ "MIT" ]
dsmithson/Vista.Controllers.ScreenMaster3.SpyderTranslator
src/SpyderConsoleLibrary/Modules/SegmentEncoder.cs
245
C#
using System; using Microsoft.EntityFrameworkCore; namespace Eon.Data.EfCore.Metadata.Edm { public class EfCoreModelBuilderArgs { readonly ModelBuilder _builder; readonly Type _contextType; readonly IDbProviderInfoProps _storeProviderInfo; public EfCoreModelBuilderArgs(ModelBuilder builder, Type contex...
25.18
113
0.737093
[ "MIT" ]
vitalik-mironov/eon-lib
src/eon-lib.ef-core/Data.EfCore.Metadata.Edm/EfCoreModelBuilderArgs.cs
1,261
C#
using Assets.Scripts.Components.Events; using Assets.Scripts.UI; using SubjectNerd.Utilities; using System; using System.Collections.Generic; using System.Linq; using Unity.Entities; using Unity.Mathematics; using UnityEngine; public class AudioManager : MonoBehaviour, IEventObserver<PlayAudioEvent> { [Reorderabl...
27.059322
86
0.598497
[ "MIT" ]
jeffvella/UnityEcsEvents.Example
EventsExample/Assets/Game.Scripts/AudioManager.cs
3,195
C#
using System.Collections.Generic; using EvolveDb.Tests.Infrastructure; using Xunit; using Xunit.Abstractions; using static EvolveDb.Tests.TestContext; namespace EvolveDb.Tests.Integration.Cassandra { [Collection("Cassandra collection")] public class MigrationTest { private readonly CassandraFixtur...
38.112676
119
0.622321
[ "MIT" ]
JayDZimmerman/Evolve
test/Evolve.Tests/Integration/Cassandra/MigrationTest.cs
2,708
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...
30.477419
111
0.579382
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ElastiCache/Generated/Model/LogDeliveryConfiguration.cs
4,724
C#
using System; using BookN; using CargoN; using ClientN; using ActiveElements; namespace BookShopN { namespace UI { static class Validator { static public bool IsEmail(string str) { bool sob = false; foreach (char i in str) { if (i == '@') sob = true; if (sob && i == '.') return tr...
34.122862
174
0.583018
[ "MIT" ]
Team-on/works
0_homeworks/C#/1 Console/6/BookShop/UI.cs
22,081
C#
 namespace Serene.Administration { using Serenity.Services; public class RolePermissionListRequest : ServiceRequest { public int? RoleID { get; set; } public string Module { get; set; } public string Submodule { get; set; } } }
22.416667
59
0.639405
[ "MIT" ]
EitanBlumin/generic-api-platform
generic-api-platform/Serene/Serene.Web/Modules/Administration/RolePermission/RolePermissionListRequest.cs
271
C#
/* Copyright 2013-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
32.16092
115
0.600071
[ "MIT" ]
naivetang/2019MiniGame22
Server/ThirdParty/MongoDBDriver/MongoDB.Driver.Core/Core/Events/ConnectionPoolAddedConnectionEvent.cs
2,798
C#
using System; using System.Linq; public class SumBigNumbers { public static void Main() { var firstNum = Console.ReadLine(); var secondNum = Console.ReadLine(); var maxLen = Math.Max(firstNum.Length, secondNum.Length); firstNum = firstNum.PadLeft(maxLen + 1, '0'); secon...
30.314286
84
0.523091
[ "Apache-2.0" ]
Warglaive/TechModuleSeptember2017
Strings and Text Processing - Exercises/06. Sum big numbers/06. Sum big numbers.cs
1,063
C#
using CalendarPlus.Product.Contracts.Repositories.Shared; using CalendarPlus.Product.Contracts.Services; using CalendarPlus.Product.Contracts.Services.Shared; using CalendarPlus.Product.Contracts.Shared; using CalendarPlus.SystemObjects; using CalendarPlus.SystemObjects.Interfaces; using System.Collections.Generic; us...
34.705882
162
0.622518
[ "MIT" ]
luca0898/calendar-plus
new_project/backend/CalendarPlus.Services/Shared/GenericCachedEntityService.cs
4,132
C#
namespace Zoo.Rpc.Abstractions.Constants { /// <summary> /// Parameter names, these names will be used in the URI query parameters. /// </summary> public static class ParameterNames { /// <summary> /// Node type. /// </summary> public const string NodeType = nameof(No...
26.73913
78
0.565854
[ "Apache-2.0" ]
aguang-xyz/zoo
src/Zoo.Rpc.Abstractions/Constants/ParameterNames.cs
615
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace kryon_graphology_challenge { public class S...
32.741935
123
0.670936
[ "MIT" ]
wjeremies/challenge2019-master
kryon-graphology-challenge/Startup.cs
1,017
C#
/* Copyright 2013-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
39.898917
206
0.649747
[ "Apache-2.0" ]
BorisDog/mongo-csharp-driver
tests/MongoDB.Driver.Core.Tests/Core/Operations/ListCollectionsUsingCommandOperationTests.cs
11,054
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; using System.Threading.Tasks; using Roslyn.Utilities; using LSP = Microsoft.VisualStudio.La...
48.240741
127
0.719386
[ "MIT" ]
mbpframework/roslyn
src/Features/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHandler.cs
2,607
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Newtonsoft.Json; namespace Couchbase.UnitTests.Utils { public static class ResourceHelper { private static readonly Assembly Assembly = typeof(ResourceHelper).GetTypeInfo().Assembly; ...
30.797101
105
0.536941
[ "Apache-2.0" ]
jeffrymorris/dotnet-couchbase-client
tests/Couchbase.UnitTests/Utils/ResourceHelper.cs
2,127
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { public float Speed = 20f; private Transform target; private int waypointIndex = 0; // Start is called before the first frame update void Start() { target = Waypoints....
21.5
88
0.609937
[ "MIT" ]
Nerensio/TowerDefense
Assets/Scripts/Enemy.cs
948
C#
using System.Collections; using UnityEngine; namespace DefaultNamespace.Tricks { public abstract class ASpecialTrick : ISpecialTrick { protected bool success; protected Plane plane; protected PlaneMovement planeMovement; protected TrickManager trickManager; protected f...
23.475728
100
0.538875
[ "MIT" ]
mikhomak/Samarium
Samarium/Assets/Scripts/Tricks/ASpecialTrick.cs
2,420
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using DbExtensions; using MySql.Data.MySqlClient; using Netcorex.Common; using Netcorex.Interfaces; using Netcorex.Localizations; using Netcorex.Models; ...
33.521411
225
0.72633
[ "BSD-3-Clause" ]
hlavacm/WPCG
WPCG/ViewModels/WpViewModelBase.cs
13,310
C#
using UnityEngine; using System.Collections; public class iPrinter : MonoBehaviour { public bool output = false; // Use this for initialization void Start () { } // Update is called once per frame void Update () { TextMesh tm = GetComponent<TextMesh>(); if (output) { tm.color = Color.cyan; //tm...
19.371429
47
0.610619
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
sqrlab/robobug
RoboBUG v2/Assets/Scripts/Oldscripts/iPrinter.cs
680
C#
using Silky.Rpc.Messages; namespace Silky.Rpc.Diagnostics { public class RpcInvokeEventData { public string MessageId { get; set; } public long? OperationTimestamp { get; set; } public string ServiceId { get; set; } public bool IsGateWay { get; set; } public RemoteInvok...
27.235294
56
0.637149
[ "MIT" ]
scjjcs/silky
framework/src/Silky.Rpc/Diagnostics/RpcInvokeEventData.cs
463
C#
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Groundbeef.Drawing.ColorX { public class XyzColor : ColorBase<XyzColorData>, IEquatable<XyzColor?> { public XyzColor(byte a, float x, float y, float z) : this(new XyzColorData(a, x, y, z)) ...
37.193798
118
0.552105
[ "MIT" ]
ProphetLamb-Organistion/Groundbeef
src/Drawing/ColorX/XyzColor.cs
4,801
C#
using UnityEngine; using System.Collections; public class ControllerBehaviour : MonoBehaviour { void Update () { if (Input.GetMouseButtonDown(0)) { // Raycast to find if user input hit a 3D object Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); Raycas...
33.326531
145
0.518677
[ "MIT" ]
glorion13/spacegame
Assets/Scripts/Player/ControllerBehaviour.cs
1,633
C#
using Avanade.PapoDeDev.UnitTest.Domain.Aggregates.Customer.Entities; using Avanade.PapoDeDev.UnitTest.Domain.Aggregates.Customer.Interfaces.Repositories; using Avanade.PapoDeDev.UnitTest.Domain.Aggregates.Customer.ValueObject; using Microsoft.Extensions.Options; using MongoDB.Driver; using System; using System.Thread...
35.781818
92
0.700711
[ "Apache-2.0" ]
felipementel/Avanade.PapoDeDev.UnitTest
src/Avanade.PapoDeDev.UnitTest.Infra.Data/Repositories/CustomerRepository.cs
1,970
C#
using System; namespace Drawmasters.Levels.Order { [Serializable] public class LevelWeight { public int levelsCount = default; public int chance = default; } }
15
41
0.641026
[ "Unlicense" ]
TheProxor/code-samples-from-pg
Assets/Scripts/GameFlow/Level/Order/LevelWeight.cs
197
C#
using System; using Xamarin.Forms; namespace TK.CustomMap.Overlays { /// <summary> /// Base overlay class /// </summary> public abstract class TKOverlay : TKBase { Color _color; /// <summary> /// Gets/Sets the main color of the overlay. /// </summary> publi...
28.081081
76
0.53128
[ "MIT" ]
TorbenK/TK.CustomMap
Source/TK.CustomMap/Overlays/TKOverlay.cs
1,041
C#
using MvvmCross.Forms.Presenters.Attributes; using Rocks.Wasabee.Mobile.Core.ViewModels.Operation; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Rocks.Wasabee.Mobile.Core.Ui.Views.Operation { [XamlCompilation(XamlCompilationOptions.Compile)] [MvxTabbedPagePresentation(Position = TabbedPosition.Tab, ...
33.148148
104
0.706145
[ "Apache-2.0" ]
ruharen/Wasabee-Mobile-Xamarin
Rocks.Wasabee.Mobile.Core.Ui/Views/Operation/ChecklistPage.xaml.cs
895
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.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using...
41.597468
185
0.592782
[ "Apache-2.0" ]
0x53A/roslyn
src/Compilers/Core/Portable/DiagnosticAnalyzer/SuppressMessageAttributeState.cs
16,433
C#
namespace LockDotNet.Cassandra.Tests { using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using global::Cassandra; using LockDotNet.Cassandra; using LockDotNet.Tests; using Xunit; public class CassandraLockSourceTests : BaseLockSourceTe...
32.170455
98
0.59343
[ "MIT" ]
johnyk87/distributed-lock-poc
tests/LockDotNet.Cassandra.Tests/CassandraLockSourceTests.cs
2,831
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using Example.src.controller.rendering; using Example.src.model; using Example.src.model.entitys; using Example.src.model.graphics.camera; using Example.s...
37.557229
206
0.556741
[ "Apache-2.0" ]
amadron/FinalProject_ShaderProg
ShaderProgAbgabe/src/controller/Game.cs
12,471
C#
namespace P07.InfernoInfinity.Enums { public enum ClarityLevel { Chipped = 1, Regular = 2, Perfect = 5, Flawless = 10 } }
15.181818
36
0.526946
[ "MIT" ]
kovachevmartin/SoftUni
CSharp-OOP/07-REFLECTION_ATTRIBUTES/Exercise/P07.InfernoInfinity/Enums/ClarityLevel.cs
169
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using IdentityServer4.Extensions; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Skoruba.IdentityServer4.Admin.Busin...
38.326577
170
0.631251
[ "MIT" ]
vbegroup/IdentityServer4.Admin
src/Skoruba.IdentityServer4.Admin.UI/Areas/AdminUI/Controllers/IdentityController.cs
17,019
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GameManagerArchivalObject : MonoBehaviour { #region Serialized Variables #region Datas [Space, Header("Datas")] [SerializeField] [Tooltip("GameManager Scriptable Object")] private ...
26.575
147
0.637608
[ "MIT" ]
GRENADEable/CPS
RMIT_CPS/Assets/Scripts/Managers/GameManagerArchivalObject.cs
9,567
C#
using System; namespace ClickHouse.Ado.Impl.Settings { internal class UInt64SettingValue : SettingValue { public UInt64SettingValue(ulong value) => Value = value; public ulong Value { get; set; } protected internal override void Write(ProtocolFormatter formatter) => formatter.WriteUInt((...
31.166667
113
0.643494
[ "MIT" ]
Fabuza/ClickHouse-Net
ClickHouse.Ado/Impl/Settings/UInt64SettingValue.cs
563
C#
using System.Data; using LibDBConnect; namespace LibDataLayer { public static class DalNews { private static readonly SqlHelper Cls = new SqlHelper(); #region[Get-Data] public static DataTable GetNews(string keywords, int TotalTop) { Cls.CreateNewSqlComma...
32.230769
71
0.556086
[ "Apache-2.0" ]
chungthanhphuoc1990/SocialNetwork
SocialNetWork/LibDataLayer/DAL_News.cs
2,097
C#
using Instagram.Response; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Instagram { class Program { static void Main(string[] args) { InstagramAPI api = new InstagramAPI(new TokenManager(_consumerKey: "...
23.45
116
0.665245
[ "MIT" ]
gokhangirgin/InstaNET
InstaNET/Program.cs
471
C#
namespace CleanArchitecture.Application.TodoLists.Queries.ExportTodos; public class ExportTodosVm { public ExportTodosVm(string fileName, string contentType, byte[] content) { FileName = fileName; ContentType = contentType; Content = content; } public string FileName { get; se...
24.235294
77
0.677184
[ "MIT" ]
azarmehri/clean-architecture
api/src/Application/TodoLists/Queries/ExportTodos/ExportTodosVm.cs
414
C#
using GitTfs.Commands; using NDesk.Options; using StructureMap; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace GitTfs.Core { using System.Collections.Concurrent; using System.Thread...
35.887363
153
0.519253
[ "Apache-2.0" ]
AndradeMatheus/git-tfs
src/GitTfs/Core/Ext.cs
13,063
C#
global using System; global using System.Collections.Generic; global using System.Linq;
29.333333
40
0.829545
[ "MIT" ]
egorozh/Chilite
src/Frontend/Mobile/maui/Chilite.MobileClient/GlobalUsings.cs
90
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...
42.843373
311
0.646513
[ "MIT" ]
0xced/azure-sdk-for-net
src/SDKs/RecoveryServices.Backup/Management.RecoveryServices.Backup/Generated/IBackupResourceVaultConfigsOperations.cs
3,556
C#
using System.IO; using System.Runtime.Serialization; using System.Xml.Linq; using Revenj.Extensibility; namespace Revenj.Serialization { public static class Setup { public static void ConfigureSerialization(this IObjectFactoryBuilder builder) { builder.RegisterType<GenericDataContractResolver>(Ins...
54.391304
158
0.811351
[ "BSD-3-Clause" ]
hperadin/revenj
csharp/Core/Revenj.Serialization/Setup.cs
1,253
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
32.304348
162
0.584455
[ "MIT" ]
10thmagnitude/fhir-server
src/Microsoft.Health.Fhir.Core/Features/Operations/Export/Models/ExportJobProgress.cs
2,974
C#
namespace Hookr.Telegram.Operations.Commands.Administration.Hookahs.Photos { public static class Constants { public const string ProductCacheKeyFormat = "shp{0}"; } }
26.714286
75
0.721925
[ "Apache-2.0" ]
mrlldd/hookr-rent-service
Hookr/Hookr.Telegram/Operations/Commands/Administration/Hookahs/Photos/Constants.cs
189
C#
// ----------------------------------------------------------------------- // <copyright file="AuditController.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace Microsoft.Store....
36.982143
121
0.577982
[ "MIT" ]
Bhaskers-Blu-Org2/Partner-Center-Explorer
src/Explorer/Controllers/AuditController.cs
2,073
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Signum.Utilities; using Signum.Entities.DynamicQuery; using System.Threading; using System.Collections.Concurrent; using System.Globalization; using Signum.Entities.Authorization; using Signum.Entiti...
34.851852
156
0.55357
[ "MIT" ]
ControlExpert/extensions
Signum.Entities.Extensions/Omnibox/OmniboxParser.cs
10,351
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
32.119048
126
0.475908
[ "MIT" ]
MartijnDijkgraaf/squidex
backend/src/Squidex.Infrastructure/Orleans/Indexes/UniqueNameGrain.cs
1,351
C#
using System.Collections.Generic; using System.Threading.Tasks; using Catalog.API.Data; using Catalog.API.Entities; using MongoDB.Driver; namespace Catalog.API.Repository { public class ProductRepository : IProductRepository { private readonly ICatalogContext _context; public ProductRepositor...
32.31746
105
0.641454
[ "MIT" ]
JThurling/AspnetMicroservices
src/Services/Catalog/Catalog.API/Repository/ProductRepository.cs
2,038
C#
/* * Copyright (c) 2018, FusionAuth, 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 required by appli...
26.564103
68
0.715251
[ "Apache-2.0" ]
FusionAuth/fusionauth-netcore-client
fusionauth-netcore-client/domain/io/fusionauth/domain/event/UserCreateEvent.cs
1,036
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> //--...
54.185567
182
0.593064
[ "MIT" ]
sabatex/PUB_ZIK
Source/PUBReferences.Designer.cs
37,703
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BalloonsPops { class Program { static void Main(string[] args) { igra.Start(); } } }
11.647059
33
0.686869
[ "MIT" ]
ElenaStaykova/High-Quality-Code
Teamwork/Baloons-Pop/Baloons-Pop-2/Program.cs
200
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
65.019324
459
0.689539
[ "MIT" ]
Agazoth/azure-powershell
src/Migrate/generated/api/Models/Api20210210/MasterTargetServer.cs
26,505
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.ComponentModel; namespace Azure.Messaging.EventHubs.Producer { /// <summary> /// The set of options that can be specified to influence the way in which events /// are published to the Event Hu...
37.866667
140
0.612676
[ "MIT" ]
Cardsareus/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/src/Producer/EnqueueEventOptions.cs
1,706
C#
using Microsoft.AspNetCore.Mvc; namespace vLibrary.API.Controllers { [ApiController] [Route("api/[controller]")] public class TestController : ControllerBase { [HttpGet] public string Get(){ return "Hello from test!"; } } }
20
48
0.603571
[ "MIT" ]
arnel-k/VirtualLibrary
vLibrary.API/Controllers/TestController.cs
280
C#
// original code from GitHub Reactive-Extensions/Rx.NET // some modified. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #if (NET_4_6 || UNITY_WSA) using System; using System.Threading; namespace UniRx { /// <summary> ///...
35.402985
202
0.631113
[ "MIT" ]
dykarohora/HoloAzureSample
Assets/Plugins/UniRx/Scripts/Disposables/CancellationDisposable.cs
2,374
C#
//------------------------------------------------------------ // Author: 烟雨迷离半世殇 // Mail: 1778139321@qq.com // Data: 2020年9月7日 15:35:42 //------------------------------------------------------------ using ET.EventType; using Sirenix.OdinInspector; namespace ET { /// <summary> /// 会检查一次是否达到指定层数,然后再决定是否触发事件 ...
32.121212
112
0.537736
[ "MIT" ]
futouyiba/ClubET
Unity/Assets/Hotfix/NKGMOBA/Battle/SkillSystem/BuffSystem/ListenBuffEvents/ListenBuffEvent_CheckOverlay.cs
1,138
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 ...
43.082707
149
0.599127
[ "Apache-2.0" ]
Zingasoft/Lean
Algorithm.CSharp/PortfolioRebalanceOnInsightChangesRegressionAlgorithm.cs
5,730
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerScript : MonoBehaviour { public Transform ARMainCamera; public GameObject teapot; private GameObject Environment; private bool isEnvironmentKnown = false; void Start () { } // Update is called o...
33.796875
140
0.638927
[ "MIT" ]
rajandeepsingh13/6DOF-Mobile-VR
Assets/Dodge/Scripts/PlayerScript.cs
2,165
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Grappachu.Briscola.Model; namespace Grappachu.Briscola.Players.zaninig.Model { class CardInfo { public Card Card { get; set; } public decimal Weight { get; set; } } }
19.9375
50
0.705329
[ "MIT" ]
grappachu/Briscola
src/Grappachu.Briscola.Players/zaninig/Model/CardInfo.cs
321
C#
using CodingCat.Mq.Abstractions.Interfaces; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace CodingCat.Mq.Abstractions.Tests.Impls { public class SimpleSubscriber<T> : BaseProcessor<T>, ISubscriber { private object lockable { get; } = new ...
28.154639
68
0.450384
[ "BSD-2-Clause" ]
CodingCatHongKong/dotnet-CodingCat.Mq.Abstractions
CodingCat.Mq.Abstractions/CodingCat.Mq.Abstractions.Tests/Impls/SimpleSubscriber.cs
2,733
C#
using System; using System.Reflection; using System.Runtime.InteropServices; 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: Asse...
80.084746
510
0.787725
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/CognitoIdentity/Properties/AssemblyInfo.cs
4,725
C#
using System; using System.Collections.Generic; using System.Data; using System.Dynamic; using System.Linq; using System.Threading.Tasks; using Dapper; using Humanizer; using SqlKata.Compilers; namespace SqlKata.Execution { public class QueryFactory : IDisposable { public IDbConnection Connection { get...
33.343607
160
0.509227
[ "MIT" ]
Magicianred/querybuilder
SqlKata.Execution/QueryFactory.cs
29,209
C#
using RabbitMQ.Client; namespace InstrumentedRabbitMqDotNetClient.Connection { internal class ChannelProvider : IChannelProvider { private readonly IModel _channel; public ChannelProvider(RabbitMQConfiguration configuration, IConnectionFactory connectionFactory) { var conn...
32.555556
105
0.708191
[ "MIT" ]
JoanComasFdz/dotnet-rabbitmq-client-instrumentation-app-insights
InstrumentedRabbitMqDotNetClient/Connection/ChannelProvider.cs
588
C#
using System.ComponentModel; using System.Runtime.Serialization; namespace EncompassApi.Loans.Enums { /// <summary> /// FreddieARMIndexType /// </summary> public enum FreddieARMIndexType { /// <summary> /// LIBOROneYearWSJDaily /// </summary> LIBOROneYearWSJDaily = ...
31.615385
68
0.621249
[ "MIT" ]
fairwayindependentmc/EncompassApi
src/EncompassApi/Loans/Enums/FreddieARMIndexType.cs
1,235
C#
class StreetExtraordinaire : Cat { // public string Name { get; set; } public double DecibelsOfMeows { get; set; } public override string ToString() { return $"StreetExtraordinaire {Name} {DecibelsOfMeows}"; } }
20.166667
64
0.644628
[ "MIT" ]
ignatovg/Software-University
C#-Fundamentals/02_OOP_Basics/01_Defining_Classes/Defining_Classes_Exercises/CatLady/StreetExtraordinaire.cs
244
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: A...
40.351351
106
0.760884
[ "BSD-2-Clause" ]
JulianVo/SumpfkrautOnline-Khorinis
WinApi.changed/Properties/AssemblyInfo.cs
1,511
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 * ...
29.843137
83
0.637976
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Cdb/V20170320/Models/DeleteAuditPolicyRequest.cs
1,538
C#
using System; using System.Collections.Generic; using System.Linq; namespace ModernSlavery.Core.Extensions { public static class Numeric { public static Random Random = new Random(VirtualDateTime.Now.Millisecond); /// <summary> /// Returns a randam value between two ranges (inclus...
35.695122
108
0.556543
[ "MIT" ]
UKHomeOffice/Modern-Slavery-Alpha
ModernSlavery.Core.Extensions/Numeric.cs
2,929
C#
// *********************************************************************** // <copyright file="WriteExpressionCommandExtensions.cs" company="ServiceStack, Inc."> // Copyright (c) ServiceStack, Inc. All Rights Reserved. // </copyright> // <summary>Fork for YetAnotherForum.NET, Licensed under the Apache License,...
44.580542
175
0.572159
[ "Apache-2.0" ]
YAFNET/YAFNET
yafsrc/ServiceStack/ServiceStack.OrmLite/Expressions/WriteExpressionCommandExtensions.cs
27,954
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ShardingCore.Core.EntityMetadatas; using ShardingCore.Test3x.Domain.Entities; using ShardingCore.VirtualRoutes.Months; namespace ShardingCore.Test3x.Shardings { public class LogMonthLongvirtua...
27.545455
107
0.70187
[ "Apache-2.0" ]
ChangYinHan/sharding-core
test/ShardingCore.Test3x/Shardings/LogMonthLongvirtualRoute.cs
911
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.UI; using DlibFaceLandmarkDetector; using OpenCVForUnity; using OpenCVForUnity.RectangleTrack; #if UNITY_5_3 || UNITY_5_3_OR_NEWER using UnityEngine.SceneManagement; #endif namespace FaceMa...
39.269781
251
0.517138
[ "MIT" ]
PacktPublishing/Complete-Virtual-Reality-and-Augmented-Reality-Development-with-Unity
Chapter16/Assets/FaceMaskExample/VideoCaptureFaceMaskExample/VideoCaptureFaceMaskExample.cs
41,204
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("LanboostPathFindingTest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LanboostPathFindingTest")] [as...
30.761905
56
0.763158
[ "MIT" ]
Lanboost/LanboostPathfindingSharp
LanboostPathFindingTest/Properties/AssemblyInfo.cs
647
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / using NSubstitute; using NSubstitute.ExceptionExtensions; using NUnit.Framework; using System; using System.Collections.Generic; using Twilio.Clients; using Twilio.Converters; using Twilio.Exceptions; using ...
171.662162
6,647
0.696686
[ "MIT" ]
BrimmingDev/twilio-csharp
test/Twilio.Test/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsResourceTest.cs
25,406
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
25.918182
191
0.596282
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapXLuaDelegateBridgeBaseWrapWrapWrapWrap.cs
2,853
C#
using System; using System.Collections.Generic; using System.Text; namespace Ch01._06 { public interface IExamApplication { public Subject Subject { get; } public Professor Admin { get; } public Student Candidate { get; } } }
18.857143
41
0.655303
[ "MIT" ]
hhko/Books
3.Lectures/FP/DefensiveProgramming/DefensiveProgramming/Ch03/_06/IExamApplication.cs
266
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text.RegularExpressions; using Silky.Core.Configuration; using Silky.Core.Extensions; namespace Silky.Core { public class AppDomainTypeFinder : ITypeFinder { private bool _i...
35.982143
519
0.526352
[ "MIT" ]
microserviceframe/silky
framework/src/Silky.Core/AppDomainTypeFinder.cs
10,077
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cs_game.Db.Models { public class Save : BaseDataObject { [ForeignKey("Player")] public int PlayerId { get; set; } ...
34.021739
95
0.594888
[ "MIT" ]
adrienvaucard/cs-game
cs-game.Db/Models/Save.cs
1,567
C#
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Trakx.Coinbase.Custody.Client.Interfaces; using Trakx.Coinbase.Custody.Client.Models; using Trakx.Common.Interfaces.Transaction; using T...
32.626506
92
0.6274
[ "MIT" ]
fakecoinbase/trakxslashtrakx-tools
src/Trakx.IndiceManager.Server/Managers/WrappingService.cs
2,710
C#
namespace WebGYM.ViewModels { public class MemberRequest { public string MemberName { get; set; } } public class MemberResponse { public string MemberNo { get; set; } public string MemberName { get; set; } } public class MemberNoRequest { public string Mem...
20.411765
46
0.599424
[ "MIT" ]
Gajendrajangid/CrudusingAngular7
WebGYM/WebGYM.ViewModels/MemberRequest.cs
349
C#
/* * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors (See NOTICE.md) * * 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/licen...
42.675781
218
0.612357
[ "Apache-2.0" ]
santedb/santedb-dc-core
SanteDB.DisconnectedClient.Core/Services/ServiceHandlers/ImsiService.Acts.cs
10,927
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.GenbiL.Parser.Valuable { public interface IValuable { string Display { get; } string GetValue(DataRow data); } public enu...
17.863636
39
0.615776
[ "Apache-2.0" ]
CoolsJoris/NBi
NBi.genbiL/Parser/Valuable/IValuable.cs
395
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; namespace Microsoft.Extensions.Logging.Test.Console { public class ConsoleSink { public List<ConsoleContext> Writes { get; set; } =...
25.611111
86
0.67462
[ "MIT" ]
2m0nd/runtime
src/libraries/Microsoft.Extensions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/Console/ConsoleSink.cs
461
C#
// // Encog(tm) Core v3.1 - .Net Version // http://www.heatonresearch.com/encog/ // // Copyright 2008-2012 Heaton Research, Inc. // // 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 // // htt...
29.719388
100
0.515365
[ "BSD-3-Clause" ]
mpcoombes/MaterialPredictor
encog-core-cs/App/Analyst/Script/Normalize/AnalystNormalize.cs
5,825
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.IO; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.Web; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; using DocumentFormat.OpenXml;...
38.719424
153
0.530286
[ "MIT" ]
64075898/Asset
src/TygaSoft/Converter/ExcelHelper.cs
10,814
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 Microsoft.Win32.SafeHandles; using System.Collections.Generic; using System.Runtime.InteropServices; using Xun...
55.485649
215
0.633153
[ "MIT" ]
ARhj/corefx
src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateFromFile.Tests.cs
48,328
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
40.47561
173
0.589937
[ "MIT" ]
GuOrg/Gu.Roslyn.Asserts
TestApps/WpfApp1/Properties/Resources.Designer.cs
3,321
C#
using System; using System.Collections.Generic; using System.ComponentModel; /* Copyright 2017 Enkhbold Nyamsuren (http://www.bcogs.net , http://www.bcogs.info/) 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 th...
29.2
84
0.661387
[ "Apache-2.0" ]
E-Nyamsuren/SeriousRPG-Proof-of-Concept
SeriousRPG/Editor/RuleNS/RuleForm.cs
2,338
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Mvc; using System.Xml.Linq; using Sdl.Web.Common; using Sdl.Web.Common.Logging; using SDL.DXA.AlpacaForms.DBHandler.Models; using SDL.DXA.Modules.Forms; using SDL.DXA.Mo...
41.899497
132
0.511274
[ "Apache-2.0" ]
NiclasCedermalm/dxa-alpaca-forms
dotnet/SDL.DXA.AlpacaForms.DBHandler/DBFormsRepository.cs
8,340
C#