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 Microsoft.Xna.Framework; using Quaver.Server.Client.Handlers; using Quaver.Server.Common.Objects.Multiplayer; using Quaver.Shared.Assets; using Quaver.Shared.Config; using Quaver.Shared.Database.Maps; using Quaver.Shared.Graphics; using Quaver.Sh...
32.617978
158
0.565966
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
YaLTeR/Quaver
Quaver.Shared/Screens/Lobby/LobbyScreenView.cs
8,711
C#
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using EditorUtils; using Microsoft.VisualStudio; using Microsoft.VisualStudio.OLE.Interop; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Te...
36.454829
166
0.577679
[ "Apache-2.0" ]
Kazark/VsVim
Src/VsVimShared/Implementation/Misc/TextManager.cs
11,704
C#
using System.Net; using System.Net.Http; using System.Text; using System.Web.Mvc; using TeaCommerce.Api.Serialization; using TeaCommerce.Api.Services; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi; namespace TeaCommerce.Umbraco.Application.Controllers { [PluginController( Constants.Applications.TeaCommerce )] ...
35.966667
154
0.76089
[ "MIT" ]
TeaCommerce/Tea-Commerce-for-Umbraco
Source/TeaCommerce.Umbraco.Application/Controllers/ShippingMethodsController.cs
1,081
C#
using Newtonsoft.Json; namespace Nest { [JsonObject] public class GetStats { [JsonProperty("current")] public long Current { get; set; } [JsonProperty("exists_time")] public string ExistsTime { get; set; } [JsonProperty("exists_time_in_millis")] public long ExistsTimeInMilliseconds { get; set; } [J...
22.918919
53
0.701651
[ "Apache-2.0" ]
Tchami/elasticsearch-net
src/Nest/CommonOptions/Stats/GetStats.cs
850
C#
using UnityEngine; namespace Amity { #if UNITY_EDITOR [ExecuteAlways] public class EdgeCollider2DDrawer : Collider2DDrawer { public EdgeCollider2D[] targets; private void Awake() { if (targets == null) targets = new EdgeCollider2D[0]; } private ...
26.4
71
0.481602
[ "MIT" ]
NicknEma/Amity
Assets/Physics/EdgeCollider2DDrawer.cs
924
C#
#pragma checksum "D:\jasonbranch2\TM1-Tues-4pm-JasonBranch2\builds\ehealthcare\Pages\Shared\_LoginPartial.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "42cc32914d4b807e6d7d67fc9bcc0a687a114939" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemA...
72.317972
356
0.748741
[ "MIT" ]
asdsadv/TM1-Tues-4pm
builds/ehealthcare/obj/Debug/netcoreapp3.1/Razor/Pages/Shared/_LoginPartial.cshtml.g.cs
15,693
C#
using System; using System.Reflection; using System.Threading.Tasks; using WebAnchor.RequestFactory; using WebAnchor.ResponseParser; namespace WebAnchor { public class Anchor : IDisposable { private readonly bool _shouldDisposeHttpClient; public Anchor(IHttpClient httpClient, HttpRequestFact...
36.170213
190
0.667059
[ "MIT" ]
mattiasnordqvist/Web-Anchor
WebAnchor/Anchor.cs
1,702
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.IO; using NUnit.Framework; using OpenTK; using OpenTK.Graphics; using osu.Game.Tests.Resources; using System.Linq; using osu.Game.Audio; using os...
45.055556
99
0.572133
[ "MIT" ]
EvanD7657/WIP-Clicking-Game
osu.Game.Tests/Beatmaps/Formats/LegacyBeatmapDecoderTest.cs
9,529
C#
using LibraryManagementSystem.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows....
22.136364
70
0.647844
[ "MIT" ]
GaneshIT/LibraryManagementWPF
LibraryManagementSystem/Views/BookUpdationWindow.xaml.cs
976
C#
using System; namespace xxAMIDOxx.xxSTACKSxx.CQRS.Commands { public class DeleteCategory : ICategoryCommand { public int OperationCode => (int)Common.Operations.OperationCode.DeleteCategory; public Guid CorrelationId { get; } public Guid MenuId { get; set; } public Guid Categ...
24.26087
88
0.632616
[ "MIT" ]
alexanderwjrussell/stacks-dotnet-cqrs-events
src/api/xxAMIDOxx.xxSTACKSxx.CQRS/Commands/DeleteCategory.cs
558
C#
#region License // The MIT License (MIT) // // Copyright (c) 2014 Emma 'Eniko' Maassen // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitati...
34.932203
80
0.649685
[ "MIT" ]
Enichan/textplayer
TextPlayer/ABC/ABCInfo.cs
2,063
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CricketScore { class Score { int CurrentScore; float NumOvers; Display[] displays = new Display[10]; int lastIndex = 0; public void addDisplay...
20.619048
60
0.501155
[ "MIT" ]
19251A05J0/Hacktoberfest2021
Contributions/CricketScore-ObserverPattern/Score.cs
868
C#
// Decompiled with JetBrains decompiler // Type: BlueStacks.Common.UnknownErrorException // Assembly: HD-Common, Version=4.250.0.1070, Culture=neutral, PublicKeyToken=null // MVID: 7033AB66-5028-4A08-B35C-D9B2B424A68A // Assembly location: C:\Program Files\BlueStacks\HD-Common.dll using System; using System.Runtime.S...
22.519231
82
0.691716
[ "MIT" ]
YehudaEi/Bluestacks-source-code
src/HD-Common/BlueStacks/Common/UnknownErrorException.cs
1,173
C#
using System; using Networking.Model.DataLink; namespace Networking.Model.Application { /// <summary> /// VXLAN : RFC7348 /// <see href="https://en.wikipedia.org/wiki/Virtual_Extensible_LAN"/> /// <see href="https://tools.ietf.org/html/rfc7348"/> /// </summary> public partial class VXLAN : Octe...
26.529412
100
0.518108
[ "MIT" ]
heshang233/networking
src/networking.model/Application/VXLAN.cs
1,373
C#
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using NUnit.Framework; namespace Orleankka.Features.Actor_behaviors { using Behaviors; namespace Hierarchical_state_machine { using System; [TestFixture] class Tests ...
35.333333
99
0.415222
[ "Apache-2.0" ]
Jubast/Orleankka
Tests/Orleankka.Tests/Features/Actor_behaviors/Hierarchical_state_machine.cs
7,846
C#
using eIDEAS.Models.Enums; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace eIDEAS.Models { public class ApplicationUserPresentationViewModel { public Guid ID { get; set; } [Display (Name = "First Name")] public string FirstName { ...
25.081081
53
0.607759
[ "MIT" ]
ShawnClake/IdeaManagementTool
src/eIDEAS/eIDEAS/Models/ApplicationUserPresentationViewModel.cs
930
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 r...
55.59
144
0.659291
[ "BSD-3-Clause" ]
mdickson/opensim
OpenSim/Region/PhysicsModules/BulletS/BSConstraintSpring.cs
5,559
C#
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. // BEGIN: Turret Sequences %this.addSequence("art/shapes/weapons/Turret/FP_Turret.DAE run", "Turret_run"); %this.addSequence("art/shapes/weapons/Turret/FP_Turret.DAE sprint", "Turret_spr...
55.375
97
0.733634
[ "MIT" ]
fr1tz/alux3d
Templates/Full/game/art/shapes/weapons/Turret/fp_turretAnims.cs
871
C#
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
53.239044
247
0.657786
[ "Apache-2.0" ]
PierrickVoulet/google-ads-dotnet
src/V3/Services/AdServiceClient.g.cs
26,726
C#
using System; using System.Collections.Generic; // Code scaffolded by EF Core assumes nullable reference types (NRTs) are not used or disabled. // If you have enabled NRTs for your project, then un-comment the following line: // #nullable disable namespace DataSynthesis.Data.EF.models { public partial c...
34.826087
96
0.669164
[ "Apache-2.0" ]
balanscott/DataSynthesis
DataTier-APIs/NetCore-APIs/src/DataSynthesis.Data.EF/models/DataexistingUpccodes.cs
803
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: AssemblyTi...
39.540541
85
0.72864
[ "MIT" ]
bazoocaze/VulkanCpu
VulkanCpu/Properties/AssemblyInfo.cs
1,466
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SFA.DAS.AssessorService.EpaoDataSync.Data.Types { public class SubmissionEvent { public long Id { get; set; } public string IlrFileName { get; set; } public Dat...
37.918919
59
0.628653
[ "MIT" ]
codescene-org/das-assessor-service
src/SFA.DAS.AssessorService.EpaoDataSync/Data/Types/SubmissionEvent.cs
1,405
C#
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Node.CLI.Services; using Node.Core.Models; namespace Node.CLI.Controllers { [Route("api/[controller]")] public class PeersController { private readonly PeerService _peerService; ...
23.096774
56
0.589385
[ "MIT" ]
alex687/BlockchainTech
src/Node.CLI/Controllers/PeersController.cs
718
C#
using Shadowsocks.Controller; using Shadowsocks.Properties; using Shadowsocks.Util; using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace Shadowsocks.Encryption { public class PolarSSL { const string DLLNAME = "libsscrypto";...
33.811594
140
0.653665
[ "Apache-2.0" ]
690486439/shadowsocks-windows
shadowsocks-csharp/Encryption/PolarSSL.cs
2,335
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V6301</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
40.491039
1,358
0.568381
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V6301/Generated/UKCT_MT121001UK01SystemSDS.cs
11,297
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.597222
177
0.603095
[ "MIT" ]
21pages/WPF-Samples
Speech and Media/UsingSpeech/Properties/Resources.Designer.cs
2,781
C#
using System.Threading.Tasks; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Refit; namespace Appmilla.Moneyhub.Refit.Identity { /// <summary> /// Response16 /// </summary> public class StandingOrdersGetResponse { /// <summary> /// Data ...
19.448276
54
0.56383
[ "MIT" ]
Appmilla/moneyhub-api-client
Moneyhub.ApiClient/Moneyhub.ApiClient/Identity/Models/StandingOrdersGetResponse.cs
566
C#
// TODO: Parallelize block-swap algorithm to speedup in-place merge, possibly using SSE with instruction to reverse order within an SSE Vector // Or, maybe SSE rotation/reverse order can be avoided, knowing that we'll be rotating it back in the following pass. // TODO: Parallelize block-swap algorithms to see if...
38.463542
152
0.465267
[ "Apache-2.0" ]
DragonSpit/HPCsharp
HPCsharp/BlockSwap.cs
7,387
C#
namespace WSE.Bff.Compras.Models { public class EnderecoDTO { public string Logradouro { get; set; } public string Numero { get; set; } public string Complemento { get; set; } public string Bairro { get; set; } public string Cep { get; set; } public string Cidade...
27.571429
47
0.580311
[ "MIT" ]
stanleydevbr/WebStoreEnterprise
src/api gateways/WSE.Bff.Compras/Models/EnderecoDTO.cs
388
C#
namespace CollectIt.Database.Abstractions.Account.Exceptions; public class UserAlreadyAcquiredResourceException : UserException { public UserAlreadyAcquiredResourceException(int resourceId, int userId, string message = "") : base(userId, message) { ResourceId = resourceId; } public int...
28.5
96
0.733918
[ "Apache-2.0" ]
Reb1azzze/collect-it
src/CollectIt.Database/CollectIt.Database.Abstractions/Account/Exceptions/UserAlreadyAcquiredResourceException.cs
342
C#
using System; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("ServerDataTEST")] namespace ServerData { internal class Smartphone: IProduct { public Smartphone(string name, float price, int count, ProductType type, int battery, int camera) { Name = name; ...
28.657143
105
0.555334
[ "Apache-2.0" ]
WDobies/TPUM
ServerData/Smartphone.cs
1,005
C#
// Plato.Core // Copyright (c) 2020 ReflectSoftware Inc. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Plato.Cache; using Plato.Miscellaneous; using Plato.Messaging.AMQ.Interfaces; using Plato.Messaging.Interfaces; using System; namespace Plato...
28.30303
154
0.534975
[ "Apache-2.0" ]
fntc/Plato.Core
src/Plato.Messaging.AMQ/Pool/AMQPoolContainerAsync.cs
2,804
C#
namespace PwnedClient.Tests { using FluentAssertions; using System; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class WhenGettingMatchesRaw { private PwnedClient passwordChecker; [TestInitialize] public void Setup() { this...
33.164179
80
0.60396
[ "Unlicense" ]
mjashton/PwnedClient
src/PwnedClient.Tests/WhenGettingMatchesRaw.cs
2,224
C#
// Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Azure.KeyVault.Models; using NLog; namespace DeviceBridge.Providers { public interface ISecretsProvider { Task PutSecretAsync(Logger logger, string secretName, ...
28.588235
88
0.730453
[ "MIT" ]
Azure/iot-central-bidirectional-device-bridge
DeviceBridge/Providers/ISecretsProvider.cs
974
C#
/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. unde...
29.9625
85
0.722153
[ "Apache-2.0" ]
opensearch-project/opensearch-net
tests/Tests/Mapping/Types/Core/SearchAsYouType/SearchAsYouTypeAttributeTests.cs
2,397
C#
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities; using OmniSharp.Extensions.LanguageServer.Protocol.Models; using System.Threading.Tasks; // ReSharper disable CheckNamespace namespace OmniSharp.Extensions.LanguageServer.Protocol.Server { using static WorkspaceNames; public static class ...
31.368421
111
0.781879
[ "MIT" ]
Bia10/csharp-language-server-protocol
src/Protocol/Workspace/Server/WorkspaceFoldersExtensions.cs
596
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.HumanResources { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "...
20.611111
136
0.728661
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.HumanResources/Annual_Income_DataType.cs
2,226
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.541667
175
0.602523
[ "MIT" ]
CNinnovation/WPFOct2018
StylesAndResources/StylesAndResourcesWPF/ShapesWPF/Properties/Resources.Designer.cs
2,777
C#
using System; namespace Xrpl.Client.Model.Transaction.Interfaces { public interface IPaymentChannelCreateTransaction : ITransactionCommon { string Amount { get; set; } DateTime? CancelAfter { get; set; } string Destination { get; set; } uint? DestinationTag { get; set; } ...
29.133333
74
0.622426
[ "Apache-2.0" ]
CASL-AE/Xrpl.C
Xrpl.C/Xrpl/Client/Model/Transaction/Interfaces/IPaymentChannelCreateTransaction.cs
439
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
39.631579
120
0.618099
[ "MIT" ]
danielbeckmann/DotNETJumpStart
06. Universal Windows Platform/01. Projektsetup/Quellcode/ImageApp/App.xaml.cs
5,275
C#
using System.Collections.Generic; namespace Wasm.Instructions { /// <summary> /// A collection of operator definitions. /// </summary> public static class Operators { static Operators() { opsByOpCode = new Dictionary<byte, Operator>(); Unreachable = Register...
46.862745
136
0.635032
[ "MIT" ]
jonathanvdc/cs-wasm
libwasm/Instructions/Operators.cs
52,580
C#
using Azure.Core; using Azure.Identity; using Azure.Sdk.Tools.CheckEnforcer.Configuration; using Azure.Sdk.Tools.CheckEnforcer.Integrations.GitHub; using Azure.Security.KeyVault.Keys; using Azure.Security.KeyVault.Keys.Cryptography; using Azure.Security.KeyVault.Secrets; using Microsoft.Extensions.Caching.Memory; usin...
41.877698
179
0.690088
[ "MIT" ]
AlexGhiondea/azure-sdk-tools
tools/check-enforcer/Azure.Sdk.Tools.CheckEnforcer/Integrations/GitHub/GitHubClientProvider.cs
5,823
C#
using Jil; using System; using System.Net.Http; using System.Threading.Tasks; using Xunit; namespace JsonHttpContentConverter.Jil.Tests { public class JilHttpContentConverterTests { [Fact] public void Constructor_Tests() { Assert.Throws<ArgumentNullException>(() => new JilH...
25.080808
90
0.490536
[ "MIT" ]
ttakahari/JsonHttpContentConverter
test/JsonHttpContentConverter.Jil.Tests/JilHttpContentConverterTests.cs
2,485
C#
namespace VinylExchange.Services.Data.HelperServices.Releases { using System; using System.Collections.Generic; using System.Threading.Tasks; using VinylExchange.Data.Models; public interface IReleaseFilesService { Task<List<ReleaseFile>> AddFilesForRelease(Guid? releaseId, Guid formSe...
30.333333
88
0.725275
[ "MIT" ]
HeLted/vinyl-exchange
Services/VinylExchange.Services.Data/HelperServices/Releases/IReleaseFilesService.cs
548
C#
using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using Rhinobyte.Extensions.Reflection.IntermediateLanguage; using Rhinobyte.Extensions.Reflection.Tests.Setup; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; using static FluentAssertions.FluentActions; nam...
31.601852
140
0.783768
[ "MIT" ]
RhinobyteSoftware/DependencyInjectionExtensions
tests/Rhinobyte.Extensions.Reflection.Tests/IntermediateLanguage/OpCodeHelperUnitTests.cs
3,415
C#
using System; using System.Text; using System.Linq; public class MatrixShuffle { public static char[] punctuationSigns = new char[] { ' ', '.', '!', '?', ',', '\'' }; public static void Main() { int n = int.Parse(Console.ReadLine()); var input = Console.ReadLine(); char[,] spiral...
30.188406
113
0.505281
[ "MIT" ]
sevdalin/Software-University-SoftUni
C-sharp-Web-Developer/C# Advanced/Exams/Exam Problems Practice - 21 Problems/14. Matrix Shuffle/MatrixShuffle.cs
4,168
C#
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. // This code is generated by tool. DO NOT EDIT. using System.Text.Json.Serialization; namespace AccelByte.Sdk.Api.Platform.Model { p...
30
64
0.722917
[ "MIT" ]
AccelByte/accelbyte-csharp-sdk
AccelByte.Sdk/Api/Platform/Model/TicketAcquireResult.cs
480
C#
using System.Runtime.CompilerServices; namespace DotNext.Threading; /// <summary> /// Various atomic operations for <see cref="int"/> data type /// accessible as extension methods. /// </summary> /// <remarks> /// Methods exposed by this class provide volatile read/write /// of the field even if it is not declared a...
49.396226
164
0.682073
[ "MIT" ]
dotnet/dotNext
src/DotNext/Threading/AtomicInt32.cs
15,710
C#
// Copyright (c) Converter Systems LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; namespace RobotApp.Views { /// <summary> /// Converts DateTime from UTC to LocalTime /// </summary> ...
29.846154
101
0.646907
[ "MIT" ]
SteffenLab/opc-ua-samples
RobotApp/Helpers/UtcToLocalStringConverter.cs
778
C#
// Copyright (c) 2019-2021 Buchelnikov Igor Vladimirovich. All rights reserved // Buchelnikov Igor Vladimirovich licenses this file to you under the MIT license. // The LICENSE file is located at https://github.com/IgorBuchelnikov/ObservableComputations/blob/master/LICENSE using System; using System.Collections; usin...
43.156977
309
0.780143
[ "MIT" ]
IgorBuchelnikov/ObservableCalculations
src/ObservableComputations/Collections/TakingWhile.cs
7,425
C#
using System; namespace BlueOrigin { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
13.692308
46
0.516854
[ "MIT" ]
A-Manev/SoftUni-CSharp-Advanced-january-2020
CSharp OOP/CSharp OOP - Exams/05. CSharp OOP Exam - 11 Aug 2019/BlueOrigin/StartUp.cs
180
C#
using System; using System.Collections.Generic; using System.Linq; using DFlow.Base; using DFlow.Base.Aggregate; using DFlow.Base.Events; using DFlow.Base.Exceptions; using DFlow.Interfaces; using DFlow.Example.Aggregates; using DFlow.Example.Commands; using DFlow.Example.Events; namespace DFlow.Example.Handlers { ...
34.115789
103
0.584079
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
roadtoagility/dflow
samples/DFlow.Example/Handlers/ProductServiceCommandHandler.cs
3,241
C#
using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace HttpReports.Web.Models { public class HttpReportsConfig { public HttpReportsConfig(IConfiguration co...
24.32
75
0.689145
[ "MIT" ]
MoFei12138/HttpReportsWeb
HttpReports.Web/Models/HttpReportsConfig.cs
610
C#
// Copyright Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; public class GGPOUE4 : ModuleRules { public GGPOUE4(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; PublicIncludePaths.AddRange( new string[] { // ... add public include paths required...
25.923077
113
0.676558
[ "MIT" ]
erebuswolf/ggpo
Source/GGPOUE4/GGPOUE4.Build.cs
1,685
C#
using System; namespace App.Models.Exceptions.Application { public class DocenteNotFoundException : Exception { public DocenteNotFoundException(string idDocente) : base($"Docente {idDocente} non trovato") { IdDocente = idDocente; } public string IdDocente { get; } ...
23.285714
100
0.647239
[ "MIT" ]
AepServerNet/AspNetCore-CentroFormazione
src/App/Models/Exceptions/Application/DocenteNotFoundException.cs
326
C#
namespace KnapsackProblem { public class Product { public Product(string name, int weigth, int cost) { this.Name = name; this.Weight = weigth; this.Cost = cost; } public string Name { get; private set; } public int Weight { get; priv...
23.458333
113
0.525755
[ "MIT" ]
danisio/DataStructuresAndAlgorithms-Homeworks
10.DynamicProgramming/01.KnapsackProblem/Product.cs
565
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using Comformation.IntrinsicFunctions; namespace Comformation.AppIntegrations.EventIntegration { /// <summary> /// AWS::AppIntegrations::EventIntegration EventIntegrationAssociation /// https://docs.aws.amazon.com/AWSCloudFormation/late...
35.432836
151
0.636057
[ "MIT" ]
stanb/Comformation
src/Comformation/Generated/AppIntegrations/EventIntegration/EventIntegrationAssociation.cs
2,374
C#
namespace NGUnityVersioner { public interface ISharedTable { int RegisterString(string content); string FetchString(int index); int RegisterAssembly(AssemblyMeta meta); AssemblyMeta FetchAssembly(int index); int RegisterType(TypeMeta meta); TypeMeta FetchType(int index); int RegisterE...
24.153846
45
0.743631
[ "MIT" ]
Mikilo/NG-Unity-Versioner
Editor/Misc/ISharedTable.cs
630
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; namespace VkApi.Wrapper.Objects { public class GroupsTokenPermissionSetting { [JsonProperty("name")] public String Name { get; set; } [JsonProperty("setting")] public int Setting { get; set; } } }
22.285714
45
0.657051
[ "MIT" ]
FrediKats/VkLibrary
VkApi.Wrapper/Objects/Groups/GroupsTokenPermissionSetting.cs
312
C#
#region Apache License // // 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 // (th...
33.836478
173
0.70632
[ "Apache-2.0" ]
kyllix/logging-log4net
src/log4net/Util/TypeConverters/ConversionNotSupportedException.cs
5,380
C#
using System; using Mono.Linker.Tests.Cases.Expectations.Assertions; namespace Mono.Linker.Tests.Cases.Attributes { [Foo (Val = typeof (A))] [KeptAttributeAttribute (typeof (FooAttribute))] class AttributeOnPreservedTypeWithTypeUsedInFieldIsKept { public static void Main () { } [KeptMember (".ctor()")] ...
16.4
56
0.672764
[ "MIT" ]
AlexanderSemenyak/linker
test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInFieldIsKept.cs
494
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // Ogólne informacje o zestawie są kontrolowane poprzez następujący // zestaw atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje // powiązane ...
45.5
108
0.714286
[ "MIT" ]
edenlandpl/SampleWPF
Properties/AssemblyInfo.cs
2,641
C#
using System; using Windows.Foundation; using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Shapes; namespace Neumann.TouchControls { public class Arrow : ContentControl { #region Private Fields private Path _path; ...
33.637097
147
0.614481
[ "MIT" ]
JoergNeumann/TouchControls
Neumann.TouchControls/Arrow.cs
4,173
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> //----------------------------------------...
36.542763
96
0.558646
[ "MIT" ]
groupdocs-merger/GroupDocs.Merger-for-.NET
Demos/LiveDemos/src/GroupDocs.Merger.Live.Demos.UI/Default.aspx.designer.cs
11,111
C#
namespace UrbanSketchers { /// <summary> /// App Constants /// </summary> public static class Constants { /// <summary> /// Azure Mobile App application URL /// </summary> public static string ApplicationUrl = @"https://urbansketchers.azurewebsites.net"; ...
24.846154
90
0.569659
[ "MIT" ]
mscherotter/UrbanSketchers
UrbanSketchers/UrbanSketchers/Constants.cs
325
C#
using clubweb.shared.interfaces; using System; using System.Collections.Generic; using System.Text; namespace clubweb.shared.models.user { public class UserRepository : IUserRepository { List<userModel> _users; public UserRepository() { _users = new List<userModel>(); ...
22.71831
79
0.485431
[ "MIT" ]
stevefabian/N3UG.ClubWeb
clubweb.server/Repositories/user/UserRepository.cs
1,615
C#
using System.Threading.Tasks; namespace Essensoft.AspNetCore.Payment.WeChatPay { public interface IWeChatPayClient { /// <summary> /// 执行 WeChatPay API请求。 /// </summary> /// <param name="request">具体的WeChatPay API请求</param> /// <param name="options">配置选项</param> ...
37.25641
120
0.612526
[ "MIT" ]
ekolios/payment
src/Essensoft.AspNetCore.Payment.WeChatPay/IWeChatPayClient.cs
1,599
C#
using ServerMonitor.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using Humanizer; namespace ServerMonitor.Web.Controllers.Base { public abstract class RepositoryControllerBase : Controller { private ICacheRepositor...
29.19697
91
0.552673
[ "MIT" ]
RedgumTechnologies/servermonitor
ServerMonitor.Web/Controllers/Base/RepositoryControllerBase.cs
1,929
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using Elastic.Elasticsearch.Xunit.XunitPlumbing; using Nest; using System.ComponentModel; namespace Examples.Cat ...
27.68
76
0.742775
[ "Apache-2.0" ]
JTOne123/elasticsearch-net
tests/Examples/Cat/IndicesPage.cs
692
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace KnowledgeBase.Areas.Admin { [Area("admin")] public class HomeController : Controller { public IActionResult Index() { return View(...
17.894737
44
0.638235
[ "MIT" ]
lic0914/KnowledgeBase
KnowledgeBase/Areas/Admin/Controllers/HomeController.cs
342
C#
using SharpDX; using SharpDX.Direct3D; using SharpDX.Direct3D11; using SharpDX.DXGI; //using _sc_core_systems.SC_Graphics.SC_Textures.SC_VR_Touch_Textures; using System.Linq; using System; using Jitter.Collision; using Jitter; using Jitter.Dynamics; using Jitter.DataStructures; using Jitter.Collision.Shapes; u...
40.789809
392
0.505726
[ "MIT" ]
ninekorn/SCCoreSystems-rerelease
sccsv10/_sc_graphics/_sc_models/human_rig/SC_modL_rght_upper_arm.cs
38,426
C#
using System; using System.IO; using System.Linq; using FluentAssertions; using LiteDB.Engine; using Xunit; namespace LiteDB.Issue1585 { public class PlayerDto { [BsonId] public Guid Id { get; } public string Name { get; } public PlayerDto(Guid id, string name) { ...
27.551402
65
0.454885
[ "MIT" ]
Protiguous/LiteDB
LiteDB.Tests/Issue1585.cs
2,950
C#
using System; using System.IO; using System.Linq; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Mono.Cecil; namespace MonoDevelop.Addins.Tasks { public class ResolveMonoDevelopInstance : Task { //use a custom user profile, typically set by $MONODEVELOP_TEST_PROFILE public string Profil...
36.502304
166
0.710769
[ "MIT" ]
nosami/MonoDevelop.AddinMaker
MonoDevelop.Addins.Tasks/ResolveMonoDevelopInstance.cs
7,923
C#
using System.Runtime.InteropServices; namespace VFXEditor.Structs { [StructLayout( LayoutKind.Sequential )] public struct Quat { public float X; public float Z; public float Y; public float W; public static implicit operator System.Numerics.Vector4( Quat pos ) => new( ...
27.352941
113
0.63871
[ "MIT" ]
0ceal0t/Dalamud-VFXEditor
VFXEditor/Structs/Quat.cs
465
C#
using System.Collections.Generic; using System.Collections.Specialized; namespace Excalibur.Shared.Collections { /// <summary> /// Interface for an Observable Collection /// </summary> /// <typeparam name="T">The type used within the collection</typeparam> public interface IObservableCollection<T>...
26.571429
82
0.712366
[ "Apache-2.0" ]
AbhayChandel/my-thai-star
net/xamarin/Excalibur/Excalibur.Shared/Collections/IObservableCollection.cs
374
C#
// copyright Runette Software Ltd, 2020. All rights reserved using System.Collections.Generic; using UnityEngine; using g3; using System.Linq; namespace Virgis { /// <summary> /// Controls an instance of a Polygon ViRGIS component /// </summary> public class Dataplane : Datashape { public ...
32.209677
101
0.584877
[ "Apache-2.0" ]
ViRGIS-Team/ViRGiS_v2
Runtime/Scripts/Geometries/Dataplane.cs
1,997
C#
using System.Collections.Generic; using UnityEditor; namespace UnityEngine.Seqence { public class XResources { class Asset : ISharedObject<Asset> { public Object asset; public uint refence; public Asset next { get; set; } public Asset() ...
25.869919
94
0.452231
[ "MIT" ]
Hengle/seqence
client/Assets/seqence/Runtime/help/XResources.cs
3,182
C#
using System.Linq; using Xunit; namespace FastInsert.Tests { public class EnumerableExtensionsTests { [Fact] public void EnumerableShouldBeProperlyPartitioned() { var list = new[] {1, 2, 3, 4, 5}; var partitioned = EnumerableExtensions.GetPartitions(list, parti...
22.52381
89
0.581395
[ "Apache-2.0" ]
klym1/DapperFastInsert
src/FastInsert.Tests/EnumerableExtensionsTests.cs
475
C#
using System; using Content.Client.UserInterface.Stylesheets; using Robust.Client.Graphics; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Shared.Input; using Robust.Shared.Maths; namespace Content.Client.UserInterface { public class ItemSlotButton : Control { ...
28.426573
76
0.524969
[ "MIT" ]
BulletGrade/space-station-14
Content.Client/UserInterface/ItemSlotButton.cs
4,067
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.Linq; using System.Threading; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; namespace System.N...
45.120344
163
0.629898
[ "MIT" ]
AndyAyersMS/runtime
src/libraries/System.Net.Sockets/tests/FunctionalTests/ReceiveMessageFrom.cs
15,747
C#
#if CSHotFix using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using CSHotFix.CLR.TypeSystem; using CSHotFix.CLR.Method; using CSHotFix.Runtime.Enviorment; using CSHotFix.Runtime.Intepreter; using CSHotFix.Runtime.Stack; using CSHotFix.Reflectio...
43.109244
211
0.675634
[ "MIT" ]
591094733/cshotfix
CSHotFix_SimpleFramework/Assets/CSHotFixLibaray/Generated/CLRGen1/UnityUI_SetPropertyAttribute_Binding.cs
5,130
C#
// Copyright (c) 2019 Lykke Corp. // See the LICENSE file in the project root for more information. using System; namespace MarginTrading.AccountsManagement.AccountHistoryBroker.Models { public class AccountHistory : IAccountHistory { public AccountHistory(string id, DateTime changeTimestamp, string ...
38.04
113
0.639327
[ "MIT-0" ]
LykkeBusiness/MarginTrading.AccountsManagement
src/MarginTrading.AccountsManagement.AccountHistoryBroker/Models/AccountHistory.cs
1,904
C#
using MenuPlanner.Business.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Text; using MenuPlanner.Business.BusinessObjects; using AutoMapper; using MenuPlanner.DataAccess.EntityFramework.Domain; using MenuPlanner.Utils.Helpers; using Profile = MenuPlanner.Business.Busines...
29.95082
100
0.605911
[ "MIT" ]
TomCortinovis/MenuPlanner
MenuPlanner.DataAccess/EntityFramework/Repositories/EntityProfileRepository.cs
1,829
C#
using UnityEngine; public class GameComplete : MonoBehaviour { public GameObject win; }
15.333333
41
0.771739
[ "MIT" ]
MetalBreaker/BGJ-Game
Assets/Scripts/GameComplete.cs
92
C#
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // /...
38.741935
81
0.696919
[ "Apache-2.0" ]
castleproject-deprecated/Castle.Windsor-READONLY
src/Castle.Windsor/Core/IDecommissionConcern.cs
1,203
C#
using System; using EntityFramework.VersionedSoftDeletable; using Microsoft.AspNet.Identity; namespace EntityFramework.VersionedIdentitySoftDeletable { public class VersionedIdentitySoftDeletable<TUserId, TVersionedUserDeleted> : VersionedUserSoftDeletable<TUserId, TVersionedUserDeleted> where TUserId : ICo...
37.692308
172
0.787755
[ "MIT" ]
NickStrupat/EntityFramework.SoftDeletable
EntityFramework.VersionedIdentitySoftDeletable/VersionedIdentitySoftDeletable.cs
492
C#
/** * Copyright 2013 Canada Health Infoway, 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...
36.172414
83
0.708294
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab_r02_04_03_shr/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_shr/Domainvalue/PerianalRoute.cs
1,049
C#
using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Text.RegularExpressions; using Microsoft.Recognizers.Definitions.Italian; namespace Microsoft.Recognizers.Text.Number.Italian { public class OrdinalExtractor : BaseNumberExtractor { ...
36.06383
121
0.648968
[ "MIT" ]
ZeroInfinite/Recognizers-Text
.NET/Microsoft.Recognizers.Text.Number/Italian/Extractors/OrdinalExtractor.cs
1,697
C#
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using System.Collections.Generic; using ImageMagick.Defines; namespace ImageMagick.Formats { /// <summary> /// Class for defines that are used when a <see cref="MagickFormat.Jxl"/> image is wr...
30.74359
130
0.576314
[ "Apache-2.0" ]
brianpopow/Magick.NET
src/Magick.NET/Formats/Jxl/JxlWriteDefines.cs
1,201
C#
using System; namespace PterodactylEngine { public class HorizontalLine { public string Create() { string reportPart = ""; string linePart = new string('-', 6); reportPart = Environment.NewLine + linePart + Environment.NewLine; return reportPar...
18.944444
78
0.557185
[ "MIT" ]
dilomo/Pterodactyl
PterodactylEngine/HorizontalLine.cs
343
C#
/* * Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using System...
29.015504
127
0.73417
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
yolpsoftware/seb-win-refactoring
SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenter/PowerSupplyControl.xaml.cs
3,746
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Micro...
62.857143
156
0.69072
[ "MIT" ]
Cosifne/roslyn
src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IChecksummedPersistentStorage.cs
5,282
C#
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UnityEngine_Texture2DWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UnityEngine.Texture2D), typeof(UnityEngine.Texture)); L.RegFunction("CreateExternalTexture", CreateExternalTe...
29.834965
194
0.688965
[ "Apache-2.0" ]
871041532/LuaProfiler-For-Unity
ToLuaClient/Assets/Source/Generate/UnityEngine_Texture2DWrap.cs
21,334
C#
using AutoMapper; namespace MudBlazorTemplate.Extended.Profiles { public class ModelProfile : Profile { } }
15.125
45
0.719008
[ "Apache-2.0" ]
ProgrammingGoldflash/mud-blazor-project-template
MudBlazorTemplate.Extended/MudBlazorTemplate.Extended/Profiles/ModelProfile.cs
123
C#
using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using WebHDFS.Kitty.DataModels; using WebHDFS.Kitty.DataModels.RequestParams; using WebHDFS.Kitty.DataModels.Responses; namespace WebHDFS.Kitty { public interface IWebHdfsClient { Task<Stream> OpenStream(string path, Open...
31.73913
178
0.709589
[ "MIT" ]
KasperskyLab/WebHDFS.Kitty
WebHDFS.Kitty/IWebHDFSClient.cs
1,462
C#
using System; using System.Drawing; using System.Media; using System.Windows.Forms; using KeePass.App; using KeePass.UI; using KeePassLib.Security; namespace KeePassPasswordPractice { public partial class PasswordPracticeForm : Form { public PasswordPracticeForm(ProtectedString password) { ...
29.932692
158
0.592997
[ "MIT" ]
Shayan-To/KeePassPasswordPractice
PasswordPracticeForm.cs
3,113
C#
using System; namespace Vertical.ConsoleApplications.Routing { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class CommandAttribute : Attribute { /// <summary> /// Creates a new instance of this type. /// </summary> /// <param name="route">The rou...
28.366667
76
0.573443
[ "MIT" ]
verticalsoftware/vertical-consoleapps
src/Routing/CommandAttribute.cs
851
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/amvideo.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { pu...
26.653846
145
0.689755
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/amvideo/VIDEOINFOHEADER.cs
695
C#
using System; using System.Collections.Generic; using System.Drawing.Imaging; using System.Globalization; using System.IO; using System.Linq; using SixLabors.ImageSharp; using static QRCoder.QRCodeGenerator; /* This renderer is inspired by RemusVasii: https://github.com/codebude/QRCoder/issues/223 */ /* namespace QRC...
37.64135
141
0.475059
[ "MIT" ]
Haarhoff/QRCoder
QRCoder/PdfByteQRCode.cs
8,923
C#
// ======================================== // Project Name : WodiLib // File Name : CommonEventName.cs // // MIT License Copyright(c) 2019 kameske // see LICENSE file // ======================================== using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using ...
32.424051
86
0.489362
[ "MIT" ]
kameske/WodiLib
WodiLib/WodiLib/Common/ValueObject/CommonEventName.cs
5,443
C#