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
namespace _03.AnimalHierarchy { public interface ISound { string MakeSound(); } }
14.571429
30
0.617647
[ "Apache-2.0" ]
iliantrifonov/TelerikAcademy
OOP/4.OOPPrinciples/OOPPrinciples/03.AnimalHierarchy/ISound.cs
104
C#
namespace TrackerClient { partial class RfMain { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <par...
51.898345
160
0.614495
[ "MIT" ]
Raykazi/OT
TrackerClient/RadForm1.Designer.cs
43,908
C#
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using MyMovieDb.App.Controllers; using MyMovieDb.Common.Constants; namespace MyMovieDb.App.Areas.Moderator.Controllers { [Area("Moderator")] [Authorize(Roles = "Admin, Moderator")] public class HomeController : BaseController { ...
22.894737
51
0.671264
[ "MIT" ]
IvelinMarinov/CSharp.MVC.Project.Assignment
MyMovieDb/MyMovieDb.App/Areas/Moderator/Controllers/HomeController.cs
437
C#
namespace BashSoft.Contracts { using System.Collections.Generic; public interface IDataFilter { void FilterAndTake(Dictionary<string, double> studentsWithMarks, string wantedFilter, int studentToTake); } }
23.2
113
0.737069
[ "MIT" ]
maio246/BashSoft
BashSoft/Contracts/IDataFilter.cs
234
C#
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("GRASP2OptBest4QAP")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [a...
36.37037
82
0.744399
[ "MIT" ]
yasserglez/metaheuristics
Problems/QAP/GRASP2OptBest4QAP/AssemblyInfo.cs
982
C#
using System; using ETModel; using UnityEngine; namespace ETHotfix { [ObjectSystem] public class OperaComponentAwakeSystem : AwakeSystem<OperaComponent> { public override void Awake(OperaComponent self) { self.Awake(); } } [ObjectSystem] public class OperaComponentUpdateSystem ...
23.333333
108
0.601714
[ "MIT" ]
Tqqingtian/ETFlashTest
Unity/Assets/Hotfix/Module/Demo/OtherComponent/OperaComponent.cs
1,772
C#
using Kingmaker.Blueprints; using System.Collections.Generic; using System.Linq; using HarmonyLib; using Kingmaker.UnitLogic.Class.Kineticist; using Kingmaker.UnitLogic; using Kingmaker.EntitySystem.Entities; using Kingmaker.Items.Slots; using Kingmaker.UnitLogic.Buffs; using Kingmaker.UnitLogic.FactLogic; namespace ...
40.333333
254
0.657484
[ "MIT" ]
Truinto/DarkCodex
DarkCodex/Patches/Patch_KineticistAllowOpportunityAttack.cs
3,269
C#
#pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// <summary>Tab Bar class</summary> [Efl.Ui.TabBar.NativeMethods] public class TabBar : Efl.Ui.La...
42.040659
358
0.569569
[ "Apache-2.0" ]
dalinui/TizenFX
internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs
38,257
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Azure.AI.MetricsAdvisor.Models { /// <summary> /// Used by <see cref="MetricChangePointFeedback"/> to indicate whether or not a set of data points should /// be considered change points by the service...
39.068966
110
0.661959
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/MetricFeedback/ChangePointValue.cs
1,135
C#
namespace EasyCaching.Serialization.Protobuf { using EasyCaching.Core.Configurations; /// <summary> /// EasyCaching options extensions. /// </summary> public static class EasyCachingOptionsExtensions { /// <summary> /// Withs the protobuf. /// </summary> /// <re...
26.782609
86
0.616883
[ "MIT" ]
appman-agm/EasyCaching
src/EasyCaching.Serialization.Protobuf/Configurations/EasyCachingOptionsExtensions.cs
618
C#
//----------------------------------------------------------------------------- // Torque Game Engine // // Copyright (c) 2001 GarageGames.Com //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // Penalt...
30.130827
137
0.530768
[ "MIT" ]
PlatinumTeam/HaxPackage
marble/server/scripts/game.cs
20,037
C#
using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using ModernSlavery.BusinessDomain.Shared.Interfaces; using ModernSlavery.BusinessDomain.Shared.Models; using ModernSlavery.Core.Interfaces; using ModernSlavery.Core.Interfaces.Downloadable; using ModernSlavery.Core.Models; namespace M...
44.590164
275
0.719118
[ "MIT" ]
mccabesp/ModernSlavery-Beta
ModernSlavery.BusinessDomain.Admin/DownloadableFileBusinessLogic.cs
2,722
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace System { /// <summary> /// 表示一个异步任务的委托。 /// </summary> /// <param name="job">异步任务。</param> public delegate void AsyncJobHandler(IAsyncJob job); /// <summary> /// 表示一个异步任务的标识。 /// </summary>...
26.939394
124
0.514061
[ "Apache-2.0" ]
jeenlee/Aoite
src/core/Aoite/System/Core/IAsyncJob.cs
2,194
C#
using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Square; using Square.Utilities; namespace Square.Models { public class Ord...
35.266129
144
0.58541
[ "Apache-2.0" ]
HostMeApp/square-dotnet-sdk
Square/Models/OrderLineItemPricingBlocklists.cs
4,373
C#
namespace JWLMerge.Models { using System.Windows.Media; internal sealed class ColourDef { public ColourDef(int colourIndex, string name, string rgb) { ColourIndex = colourIndex; Name = name; RgbString = rgb; } public int ColourIndex { ge...
21.521739
81
0.587879
[ "MIT" ]
AntonyCorbett/JWLMerge
JWLMerge/Models/ColourDef.cs
497
C#
namespace jsdal_server_core.Performance.Bucket { public class BucketPerSecond { } }
13.714286
46
0.71875
[ "MIT" ]
pietie/jsdal-server-core
Performance/Bucket/BucketPerSecond.cs
96
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Hosting; using Orchard.Environment.Extensions.Loaders; using Orchard.FileSystems.VirtualPath; using Orchard.Logging; namespace Orchard.FileSystems.Dependencies { /// <summary> ...
42.131579
149
0.657402
[ "BSD-3-Clause" ]
Lombiq/Dojo-Course-Orchard-demo
src/Orchard/FileSystems/Dependencies/DynamicModuleVirtualPathProvider.cs
3,202
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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...
33.622754
100
0.5561
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v3
src/Gallio/Gallio.Tests/Framework/Pattern/FixtureMemberInvokerTest.cs
11,232
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.Diagnostics; using System.Drawing.Internal; using System.Runtime.InteropServices; namespace System.Dra...
41.990909
246
0.55774
[ "MIT" ]
dotnet40/corefx
src/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.cs
23,095
C#
using System.Linq; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.EntityFrameworkCore; using AmazonToo.Models; namespace AmazonToo.Models { public static class SeedData { public static void EnsurePopulated(IApplicationBuilder app) { ...
49.984536
222
0.442199
[ "Apache-2.0" ]
SheridanCS/AmazonToo
Models/SeedData.cs
19,402
C#
using Abp.EntityFramework; using CityQuest.Entities.GameModule.Games.GameTasks.Conditions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CityQuest.EntityFramework.Repositories.GameModule { public class ConditionRepository : CityQuestR...
30.705882
101
0.793103
[ "Apache-2.0" ]
elrondsoft/city-quest
CityQuest.EntityFramework/EntityFramework/Repositories/GameModule/ConditionRepository.cs
524
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 System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics.Cod...
32.653846
98
0.748528
[ "Apache-2.0" ]
Brightspace/elasticsearch-net
tests/Tests/ClientConcepts/ConnectionPooling/Sticky/Sticky.doc.cs
1,700
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org) // Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net) // Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp) // See the LICENSE.md file in the project root for full license information. u...
27.811321
96
0.567164
[ "MIT" ]
Ethereal77/stride
sources/engine/Stride.Graphics/ColorWriteChannels.cs
1,474
C#
using Academy.Models; using Academy.Models.Contracts; using Academy.Models.Enums; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace Academy.Tests.Models.SeasonTests { [TestClass] public class SeasonListUsers_Should { [TestMethod] public void ReturnListOfStudents_When...
28.360656
76
0.560116
[ "MIT" ]
albozhinov/TelerikTasks
UnitTestingWorkshopAcademy/Skeleton/Academy.Tests/Models/SeasonTests/SeasonListUsers_Should.cs
1,732
C#
using System.Collections; using UnityEngine; [RequireComponent(typeof(Rigidbody))] [RequireComponent(typeof(CollisionState))] public abstract class PlayerBehaviour : MonoBehaviour { protected static Rigidbody rb; protected static CollisionState collisionState; protected static PlayerSettings settings; ...
29.857143
73
0.683254
[ "MIT" ]
Wesselmast/UnityBugReportSystem
Assets/Scripts/Player/PlayerBehaviour/PlayerBehaviour.cs
1,047
C#
using System; using UnityEngine; namespace AgatePris.Apuu { [Serializable] public struct NullableUShort { [SerializeField] bool hasValue; [SerializeField] ushort value; public bool HasValue => hasValue; public ushort Value => !hasValue ? throw new InvalidOperationE...
39.137931
98
0.654626
[ "CC0-1.0" ]
agate-pris/Apuu
Scripts/NullableUShort.cs
1,137
C#
namespace Eventuous.EventStore; public static class StreamRevisionExtensions { public static StreamRevision AsStreamRevision(this ExpectedStreamVersion version) => StreamRevision.FromInt64(version.Value); public static StreamPosition AsStreamPosition(this StreamTruncatePosition position) => S...
42.333333
87
0.783465
[ "MIT" ]
Eventuous/eventuous
src/EventStore/src/Eventuous.EventStore/StreamRevisionExtensions.cs
508
C#
using System; using System.Collections.Generic; using System.Data; namespace Velentr.Localizations { /// <summary> /// Defines a language (a set of localized text and the locale it is a part of) /// </summary> internal class Localization { /// <summary> /// The cache ...
35.586957
218
0.529322
[ "MIT" ]
vonderborch/Velentr.Localizations
Velentr.Localizations/Localization.cs
6,550
C#
 using System; using System.Collections; using System.Collections.Generic; namespace Swifter.RW { internal sealed class DictionaryRW<T> : IDataRW<object>, IDirectContent where T : IDictionary { public const int DefaultCapacity = 3; internal T content; public T Content => content; ...
25.216783
124
0.509429
[ "MIT" ]
BenLampson/Swifter.Json
Swifter.Core/RW/Collection/DictionaryRW.cs
3,608
C#
using UnityEngine; using System.Collections; /// <summary> /// /// </summary> public class AnimNofity : ScriptableObject { }
11.727273
42
0.689922
[ "MIT" ]
kimsama/Unity-AnimatorEventHandler
Assets/AnimatorEventHandler/Scripts/AnimNofity.cs
131
C#
namespace FancyServer.Logging { public enum StdType { //Input = 0, Output = 1, Error = 2, } public struct StdStruct { public StdType type; public string process; public string content; } public static class StdClerk { public static StdType ...
24.333333
70
0.523973
[ "MIT" ]
MoeexT/FancyToys
Tools/FancyServer/Logging/StdClerk.cs
876
C#
/* * NatShare * Copyright (c) 2020 Yusuf Olokoba. */ namespace NatShare.Internal { using System; using System.Runtime.InteropServices; public static class Bridge { private const string Assembly = @"__Internal"; public delegate void CompletionHandler (IntPtr context, bool success); ...
47.193548
141
0.715653
[ "MIT" ]
Klipi/NatShare-API
Assets/NatShare/Plugins/Managed/Internal/Bridge.cs
1,463
C#
namespace GameEstate { public static class OpenGLPlatform { public static unsafe bool Startup() { try { EstatePlatform.Platform = "OpenGL"; EstatePlatform.GraphicFactory = source => new OpenGLGraphic(source); Esta...
34.526316
92
0.525915
[ "MIT" ]
smorey2/GameEstate
src/GameEstate.App.OpenGL/OpenGLPlatform.cs
658
C#
namespace Compiler.Instructions { class UnaryMinusInstruction : IInstruction { public void Execute(ExecutionEnvironment env) => env.PushNumber(env.PopNumber() * -1); } }
23.875
94
0.696335
[ "Apache-2.0" ]
SilasDerProfi/simple-compiler
Compiler/Compiler/Instructions/UnaryMinusInstruction.cs
193
C#
using System.Collections.Generic; namespace Bfar.Repository.Core { public interface IBulkRepository { string AdHocCommand { get; set; } int MinTimeOut { get; set; } void BulkInsert<T>(IList<T> Data, string Name) where T : class; } }
22.583333
71
0.645756
[ "Apache-2.0" ]
behnamfarnoushfar/Bfar
Bfar.Repository.Core/IBulkRepository.cs
273
C#
 namespace IgOutlook.Modules.Mail.Menus { /// <summary> /// Interaction logic for HomeTab.xaml /// </summary> public partial class HomeTab { public HomeTab() { InitializeComponent(); } } }
16.666667
42
0.54
[ "MIT" ]
Infragistics/wpf-samples
Applications/IGOutlook/IGOutlook/IgOutlook.Modules.Mail/Menus/HomeTab.xaml.cs
252
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...
44.625987
158
0.508397
[ "BSD-3-Clause" ]
AI-Grid/AI-Grid-2.0
OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs
62,164
C#
namespace SoftUni.Models { using System; using System.Collections.Generic; public class Address { public Address() { this.Employees = new HashSet<Employee>(); } public int AddressId { get; set; } public string AddressText { get; set; } pu...
20
60
0.56087
[ "MIT" ]
Ivelin153/SoftUni
C# DB/C# DB Advanced/IntroEfCore_DbFirst/Models/Address.cs
462
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Net.Http.Headers { /// <summary> /// Provides HTTP header quality factors. /// </summary> public static class HeaderQuality { /// <sum...
26.909091
71
0.603041
[ "MIT" ]
48355746/AspNetCore
src/Http/Headers/src/HeaderQuality.cs
592
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using Common.Models; using Newtonsoft.Json; using Serilog; namespace Common { public class IndexWorkspace : IIndexWorkspace { private readonly string _directory; private IndexWorkspace(Channel...
31.242678
137
0.52203
[ "MIT" ]
pauldotknopf/youtube-archiver
src/Common/IndexWorkspace.cs
7,467
C#
using System; using System.Collections.Generic; using System.Text; using FluentValidation; namespace YL.Core.Entity.Fluent.Validation { public class StockInFluent : AbstractValidator<Wms_stockin> { public StockInFluent() { //RuleFor(x => x.StockInNo).NotNull().NotEmpty().WithMessag...
29.625
125
0.672996
[ "MIT" ]
1176955595/KopSoft
src/Entity/Fluent.Validation/StockInFluent.cs
524
C#
// *** WARNING: this file was generated by pulumigen. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Kubernetes.Types.Ou...
49.55
697
0.694585
[ "Apache-2.0" ]
AaronFriel/pulumi-kubernetes
sdk/dotnet/Apps/V1Beta2/Outputs/ControllerRevision.cs
2,973
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("AngleSharp")] [assembly: AssemblyDescription("AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specificat...
68.25
396
0.849817
[ "MIT" ]
andmattia/AngleSharp
src/AngleSharp/Properties/AssemblyInfo.cs
1,095
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class DayItemView : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler { public Action<DayItemView> OnSelectDay; public Text dayNumberText; [Ser...
24.609756
85
0.621407
[ "Unlicense" ]
pacatum/Helmbet-RPS
Assets/Scripts/Utils/Calendar/DayItemView.cs
2,020
C#
using ParentLoadROSoftDelete.Business; namespace ParentLoadROSoftDelete.Business.ERLevel { public partial class E08Level1111 { #region Pseudo Event Handlers //partial void OnFetchRead(DataPortalHookArgs args) //{ // throw new System.Exception("The method or opera...
20.842105
89
0.626263
[ "MIT" ]
CslaGenFork/CslaGenFork
tags/DeepLoad sample v.1.0.0/ParentLoadROSoftDelete.Business/ERLevel/E08Level1111.cs
396
C#
using System; using System.Threading; using System.Threading.Tasks; using CSharpServer; using NDesk.Options; namespace SslMulticastServer { class MulticastSession : SslSession { public MulticastSession(SslServer server) : base(server) {} protected override bool OnSending(long size) { ...
33.174699
148
0.505175
[ "MIT" ]
chronoxor/CSharpServer
performance/SslMulticastServer/Program.cs
5,509
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.Internal; using System; u...
32.113734
117
0.448313
[ "MIT" ]
Johnesan/TheHotelApplication
TheHotelApp/Data/Migrations/ApplicationDbContextModelSnapshot.cs
14,967
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class SourceTypeHitPrereqCondition : BaseHitPrereqCondition { [Ordinal(0)] [RED("source")] public CName Source { get; set; } public SourceTypeHitPrereqCon...
25.75
115
0.725728
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/SourceTypeHitPrereqCondition.cs
397
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace System.Fabric { ...
32.357955
121
0.597893
[ "MIT" ]
AlkisFortuneFish/service-fabric
src/prod/src/managed/Api/src/System/Fabric/Common/CodePackageDebugParameters.cs
5,695
C#
using System; using System.Collections.Generic; using System.Text; using MediatR; using SplitThatBill.Backend.Business.Dtos; namespace SplitThatBill.Backend.Business.Requests.People { public class GetPeopleRequest: IRequest<List<PersonDto>> { } }
20.076923
60
0.777778
[ "MIT" ]
lhargil/split-that-bill-backend
src/SplitThatBill.Backend.Business/Requests/People/GetPeopleRequest.cs
263
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BaseStarShot.Services { public enum ProductType { Unknown = 0, NonConsumable = 1, Consumable = 2, } }
16.625
33
0.669173
[ "Apache-2.0" ]
StarshotSoftware/Base_XamarinForms
BaseStarShot/Services/InAppPurchase/ProductType.cs
268
C#
using System; using System.IO; using NUnit.Framework; using winsw; namespace winswTests.Util { /// <summary> /// Helper for WinSW CLI testing /// </summary> public static class CLITestHelper { public const string Id = "WinSW.Tests"; public const string Name = "WinSW Test Service"; ...
31.773438
114
0.570691
[ "MIT" ]
cjh0613/winsw
src/Test/winswTests/Util/CLITestHelper.cs
4,069
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using RA.SamplesForDocumentation; using RA.SamplesForDocumentation.Credentials; namespace RA.SamplePublishingProject { [TestClass] public class CredentialTesting { [TestMethod] public void DoAFormatRequest() { //using simple post new ...
26.547368
112
0.73632
[ "Apache-2.0" ]
CredentialEngine/Registry_Assistant
src/SamplePublishing/RA.SamplePublishingProject/CredentialTesting.cs
2,524
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
52.604478
197
0.704213
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/CodeCommit/Generated/Model/Internal/MarshallTransformations/AssociateApprovalRuleTemplateWithRepositoryResponseUnmarshaller.cs
7,049
C#
using System; namespace TruckManager.Application.Features.Motoristas { public partial class ConsultarMotoristasSemCarga { public class Query { public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } } } }
19.6
54
0.619048
[ "MIT" ]
gmurayama/truck-manager
src/Application/Features/Motoristas/ConsultarMotoristasSemCarga/Query.cs
296
C#
using System; using System.Diagnostics; using Org.BouncyCastle.Math.Raw; namespace Org.BouncyCastle.Math.EC.Custom.Sec { internal class SecT113Field { private const ulong M49 = ulong.MaxValue >> 15; private const ulong M57 = ulong.MaxValue >> 7; public static void Add(ulong[] x, ulon...
28.619469
106
0.376469
[ "Apache-2.0" ]
Arthurvdmerwe/-ISO-TC-68-SC-2-ISO20038
Crypto/src/math/ec/custom/sec/SecT113Field.cs
6,470
C#
// ----------------------------------------------------------------------- // <copyright file="TaskTime.cs" company="Nodine Legal, LLC"> // Licensed to Nodine Legal, LLC under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyr...
40.751678
101
0.461957
[ "Apache-2.0" ]
NodineLegal/OpenLawOffice
OpenLawOffice.Data/DBOs/Tasks/TaskTime.cs
6,074
C#
using System; using AlphaDev.Web.Models; using FluentAssertions; using Optional; using Xunit; namespace AlphaDev.Web.Tests.Unit.Models { public class BlogEditorViewModelTests { [Fact] public void ConstructorShouldInitializeAllProperties() { const string title = "title"; ...
26.931034
111
0.544174
[ "Unlicense" ]
OlegKleyman/AlphaDev
tests/unit/AlphaDev.Web.Tests.Unit/Models/BlogEditorViewModelTests.cs
783
C#
using System; using clojure.lang; namespace Arcadia { public static class ArrayHelper { public static T[] CountedArray<T>(Counted c){ T[] ar = new T[c.count()]; int i = 0; foreach (T x in (System.Collections.IEnumerable) c) { ar[i] = x; i++; } return ar; } } }
13.727273
56
0.582781
[ "Apache-2.0" ]
max-lv/Arcadia
Helpers/ArrayHelper.cs
304
C#
using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; namespace RSql4Net.Models.Queries { public class RSqlQueryModelBinderProvider : IModelBinderProvider { public IModelBinder GetBinder(ModelBinderProviderContext context) { if (!context....
37.608696
97
0.671676
[ "MIT" ]
gwendallg/RSql4Net
src/RSql4Net/Models/Queries/RSqlQueryModelBinderProvider.cs
867
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.Threading.Tasks; namespace Microsoft.Extensions.Logging.AzureAppServices.Test { internal class ManualIntervalControl { private TaskCompletionSource<obj...
31.2
105
0.694444
[ "MIT" ]
48355746/AspNetCore
src/Logging.AzureAppServices/test/ManualIntervalControl.cs
936
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using EdFi.Ods.AdminApp.Management.Database.Ods; ...
38.481481
152
0.736285
[ "Apache-2.0" ]
CSR2017/Ed-Fi-ODS-AdminApp
Application/EdFi.Ods.AdminApp.Management.Tests/Database/Queries/Ods/GetAllLocalEducationAgenciesQueryTests.cs
1,041
C#
using Godot; using System; public class IngredientEntryEditor : HBoxContainer { [Signal] public delegate void deleted(IngredientEntryEditor node); [Signal] public delegate void changed(IngredientEntryEditor node, string ingred, int amt); public override void _Ready() { GetNode<LineEdit>("LineEdit").Connect("t...
28.057143
98
0.750509
[ "MIT" ]
spacechase0/StardewEditor3
JsonAssets/IngredientEntryEditor.cs
982
C#
using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; namespace SpellAsYouTypeDemo { /// <summary> /// Summary description for AYTEditBox. /// </summary> public class AYTTextBox : System.Windows.Forms.TextBox { flo...
27.057441
106
0.44051
[ "MIT" ]
cristianst85/NetSpell
NetSpell/exp/SpellAsYouTypeDemo/AYTEditBox.cs
10,363
C#
using System; using System.ComponentModel; using System.Windows.Forms; namespace EUFA.Controls { public partial class TeamItem : UserControl { private TeamInGroup selected; public TeamItem() { InitializeComponent(); } public event EventHandler OnDropTeam; ...
23.426966
73
0.444125
[ "MIT" ]
thomasgassmann/2017_ICT_Championships_Appli_SAMPLE
EUFA/EUFA/Controls/TeamItem.cs
2,087
C#
using FluentAssertions; using Microsoft.AspNetCore.Mvc; using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Threading.Tasks; using Trailer.Search.Api.Controllers; using Trailer.Search.Data.Services; using Trailer.Search.Data.Services.SearchResults; namespace Trailer.Search.Ap...
32.029851
122
0.552889
[ "MIT" ]
claudiu-bruma/Trailer.SearchApi
Trailer.Search.Api/Trailer.Search.Api.UnitTests/Controllers/SearchTrailersControllerTests.cs
4,292
C#
using System; using System.ComponentModel.DataAnnotations; namespace Com.ChatR.Core.Dtos { public class ChatRoomDto { public Guid Id { get; set; } [StringLength(255)] [Required] public string Name { get; set; } [StringLength(50)] public string Secret...
23.176471
46
0.576142
[ "MIT" ]
davidsekar/ChatR
Com.ChatR.Core/Dtos/ChatRoomDto.cs
396
C#
using System.Runtime.Serialization; namespace GhostSharper.Models { /// <summary> /// Defines the conditions under which stat modifications will be applied to a Character while participating in an objective. /// </summary> [DataContract] public class DestinyObjectiveStatEntryDefinition { ...
31.413043
129
0.564706
[ "MIT", "BSD-3-Clause" ]
joshhunt/GhostSharper
BungieNetApi/Models/DestinyObjectiveStatEntryDefinition.cs
1,445
C#
// Copyright 2022 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 ...
43.511628
116
0.727953
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.EssentialContacts.V1/Google.Cloud.EssentialContacts.V1.GeneratedSnippets/EssentialContactsServiceClient.CreateContactResourceNames3Snippet.g.cs
1,871
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using VirtualVoid.Networking; using VirtualVoid.Networking.Client; public class MessageSender : MonoBehaviour { public ClientInstance client; private void Start() { client.OnConnectedToServer += SendMessage; } ...
20.190476
61
0.71934
[ "MIT" ]
Tobogganeer/VVNetworking
Examples/Client/Assets/Scripts/MessageSender.cs
426
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using TesteMVC.Models; namespace TesteMVC.Controllers { public class JogoController : Controller { private DBContext db = new DBCont...
27.573529
113
0.5008
[ "MIT" ]
andersonbellini/Teste-MVC
TesteMVC/Controllers/JogoController.cs
3,756
C#
using SoulsFormats; using System.Collections.Generic; using System.Numerics; namespace HKX2 { public partial class hclClothContainer : hkReferencedObject { public override uint Signature { get => 890409259; } public List<hclCollidable> m_collidables; public List<hclClothData> m...
31.206897
78
0.647514
[ "MIT" ]
SyllabusGames/DSMapStudio
HKX2/Autogen/hclClothContainer.cs
905
C#
 namespace Agridea.Reports { public enum ReportColors { None, Light, Dark } }
10.454545
28
0.504348
[ "MIT" ]
ni11c/AkkaJobs
AgrideaCore/Reports/ReportModel/Enums/ReportColors.cs
117
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TPLPipeline.TestApp.Implementation.Simple { public delegate void Completed(object sender, EventArgs e); class Job : BaseJob { public event Completed Completed; pu...
21.548387
63
0.586826
[ "MIT" ]
ThomasBleijendaal/TPLPipeLine
TPLPipeline.TestApp/Implementation/Simple/Job.cs
670
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using UnityEngine; public class Silhouette : MonoBehaviour { public Sprite[] SilhouetteTemplates; public float FailThreshold; SpriteRenderer sr; float match; publ...
28.267241
113
0.668801
[ "MIT" ]
renaudbedard/cooldogs_tojam10
Assets/Scripts/Silhouette.cs
3,281
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ApiCopListenerBase.cs" company="Catel development team"> // Copyright (c) 2008 - 2014 Catel development team. All rights reserved. // </copyright> // ---------------------------...
31.801205
120
0.490055
[ "MIT" ]
IvanKupriyanov/Catel
src/Catel.Core/Catel.Core.Shared/ApiCop/ApiCopListenerBase.cs
5,281
C#
// // Mono.Facebook.PeopleList.cs: // // Authors: // George Talusan (george@convolve.ca) // // 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 limita...
33.02381
73
0.740447
[ "MIT" ]
NguyenMatthieu/f-spot
src/Extensions/Exporters/FSpot.Exporters.Facebook/Mono.Facebook/PeopleList.cs
1,387
C#
// RTM.Tools // RTM.Component.CameraImageViewer // ImageProvider.cs // // Created by Bartosz Rachwal. // Copyright (c) 2015 Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan. All rights reserved. using System; using OpenRTM.Core; using RTM.Converter.CameraImage; using RTM....
24.883721
137
0.634579
[ "MIT" ]
rachwal/RTM-Tools
RTM.Component.CameraImageViewer/ImageProvider/ImageProvider.cs
1,070
C#
using API.Middleware; using Application.Activities; using Application.Interfaces; using AutoMapper; using Domain; using FluentValidation.AspNetCore; using Infrastructure.Photos; using Infrastructure.Security; using MediatR; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; ...
38.289474
143
0.617182
[ "MIT" ]
Huray-hub/Cyrple-Social-Network
API/Startup.cs
4,367
C#
class Class : System.Collections.Generic.IEnumerable<Interface> { System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => null; public System.Collections.Generic.IEnumerator<Interface> GetEnumerator() => null; }
59.5
87
0.815126
[ "MIT" ]
DevSnicket/Eunice
csharp/Tests/TestCases/MembersLevel/Valid/Generic/Class/Base/IEnumerable/Class.cs
238
C#
using System; using System.Collections.Generic; using System.Text; namespace StatisticsAlerter { public class EmailAlert : IAlerter { public bool emailSent = false; public EmailAlert() { emailSent = true; } public bool Alert() { return em...
18.3125
38
0.508532
[ "MIT" ]
Engin-Boot/stats-unit-shashibhushan00
Statistics Solution Folder/StatisticsAlerter/AlertClass.cs
588
C#
using System; using System.Collections.Generic; using System.Linq; namespace Maya.Amazon.Helpers { /// <summary> /// Map a file's extention to a MIME type /// </summary> public static class MimeTypeMap { private static readonly Lazy<IDictionary<string, string>> _mappings = new Lazy<IDictio...
48.367056
148
0.437961
[ "MIT" ]
multinerd/Maya
Maya.Amazon/Helpers/MimeTypeMap.cs
37,293
C#
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace toofz.Data { /// <summary> /// Contains extension methods for <see cref="ILeaderboardsStoreClient"/>. /// </summary> public static class ILeaderboardsStoreClientExtensions { /// ...
30.647059
79
0.607486
[ "MIT" ]
leonard-thieu/toofz-data
src/toofz.Data/ILeaderboardsStoreClientExtensions.cs
1,044
C#
 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace AkkaCLientApp { [Table("t1")] public class Product { [Key] public long Id { get; set; } public string Nam...
19.888889
51
0.511935
[ "MIT" ]
fzf003/dockerfordotnet5
dotnetapi/AkkaServer/AkkaCLientApp/Product.cs
1,971
C#
// Copyright (c) Costin Morariu. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Reflection; namespace MvvmToolkit.Utils { /// <summary> /// Helper methods for Type reflectio...
38.284483
101
0.568791
[ "MIT" ]
stonemonkey/Wontstop
MvvmToolkit/Utils/ReflectionExtensions.cs
4,441
C#
namespace Sportify.Services.Interfaces { using System.Collections.Generic; using Data.Models; using Data.ViewModels.Countries; using Data.ViewModels.Events; public interface IEventsService { Event Create(CreateEventViewModel model); IEnumerable<EventViewModel> GetAllEvents();...
27.4
88
0.72367
[ "MIT" ]
dobroslav-atanasov/Sportify
src/Services/Sportify.Services/Interfaces/IEventsService.cs
961
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace AttendanceRegisterService { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Servi...
32.030303
165
0.663198
[ "MIT" ]
georgesebastian/AttendanceRegister
AttendanceRegisterService/AttendanceRegister.svc.cs
1,059
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.IO; using Microsoft.DotNet.XHarness.Common.Logging; using Xunit; namespace Microsoft.Do...
34.589286
110
0.614868
[ "MIT" ]
billwert/xharness
tests/Microsoft.DotNet.XHarness.Common.Tests/Logging/ConsoleLogTest.cs
1,939
C#
using System; using System.Collections.Generic; using System.Text; namespace NiceHashMinerLegacy.Extensions { public static class DateTimeExt { private static readonly DateTime UnixStart = new DateTime(1970, 1, 1); public static ulong GetUnixTime(this DateTime time) { retu...
23.823529
82
0.681481
[ "MIT" ]
Danil2511/NiceHashMinerLegacy
src/NiceHashMinerLegacy.Extensions/DateTimeExt.cs
407
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace Form.Examples { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{...
24.208333
99
0.586919
[ "MIT" ]
matteoinno/Form.Examples
Form.Examples/App_Start/RouteConfig.cs
583
C#
using JetBrains.ReSharper.Plugins.Json.Psi.Tree; using JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve; using JetBrains.ReSharper.Psi.Resolve; using JetBrains.ReSharper.Psi.Tree; #nullable enable namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Psi.Resolve { public class AsmRefNameReferenceFactory : IReferenceFa...
39.517241
119
0.71815
[ "Apache-2.0" ]
rwx788/resharper-unity
resharper/resharper-unity/src/Unity/AsmDef/Psi/Resolve/AsmRefNameReferenceFactory.cs
1,148
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using UnityEngine; using UnityEngine.Events; public static class ChunkIO { public const char COMMA = ','; public const char NULL_ERROR = '?'; public static string GetFileName(int...
32.445076
206
0.480649
[ "MIT" ]
Epicguru/NotQuiteDead
Assets/Scripts/Map/Chunk/ChunkIO.cs
17,133
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using SignNow.Net.Internal.Extensions; using SignNow.Net.Model; using SignNow.Net.Test; using UnitTests; namespace AcceptanceTests { [TestClass] public partial class DocumentServiceTest : Auth...
33.680556
105
0.654845
[ "MIT" ]
question4ever/SignNow.NET
SignNow.Net.Test/AcceptanceTests/DocumentServiceTest.cs
2,425
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CurrencyConverter { class Program { static void Main(string[] args) { Console.Write("Enter Sum = "); double sum = double.Parse(Cons...
31.919192
60
0.333228
[ "MIT" ]
valkin88/Programming-Basics
Programming Basics - Simple Calculations/CurrencyConverter/CurrencyConverter/Program.cs
3,162
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. //...
34.846154
84
0.555188
[ "MIT" ]
aukgit/StoreManament
JustFood/Models/Garbage/QuantityConversation.cs
906
C#
// Amplify Shader Editor - Visual Shader Editing Tool // Copyright (c) Amplify Creations, Lda <info@amplify.pt> using UnityEngine; using UnityEditor; using System; namespace AmplifyShaderEditor { [Serializable] [NodeAttributes( "Component Mask", "Vector Operators", "Mask certain channels from vectors/color componen...
24.174935
141
0.635058
[ "MIT" ]
AzeeSoft/Forge-Networking-Test
Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/Operators/ComponentMaskNode.cs
9,259
C#
using System.Collections.Generic; namespace LinqFasterer { /// <summary> /// Provides a set of <see langword="static"/> methods for querying objects that implement <see cref="IList{T}"/>. /// </summary> public static partial class EnumerableF { } }
27
118
0.67037
[ "MIT" ]
Zaczero/LinqFaster
LinqFasterer/Enumerable.cs
272
C#
namespace Tekla.Structures { using System.Drawing; using Microsoft.Win32; /// <summary> /// Provides access to application registry keys and values. /// </summary> internal class Registry : IRegistry { #region Fields /// <summary> /// Registry key for current versi...
29.819588
110
0.460501
[ "Apache-2.0" ]
TeklaCorp/TeklaApplicationLibrary
Library/Registry.cs
5,785
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class TopicHandler : MonoBehaviour { public string topicName = ""; public abstract void OnTopic(OscMessage message); public abstract void OnDisconnect(); public abstract void OnConnect(); }
20.4
53
0.754902
[ "MIT" ]
gehnri/MqttOSC_UnityBridge
Mqtt_OSC_Bridge_Unity/Assets/OSC_MQTT_Bridge/TopicHandler.cs
308
C#
using StardewModdingAPI; using StardewModdingAPI.Events; using StardewValley; using System.IO; using System.Linq; using MailFrameworkMod; using System.Runtime.InteropServices.ComTypes; using Microsoft.Xna.Framework; using StardewValley.Objects; using System.Collections.Generic; namespace SDVMod { public class Mod...
45.185185
225
0.56694
[ "MIT" ]
Raik176/Lost-Woods
ModEntry.cs
7,322
C#