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 DfuSe.Core { public enum DfuCommands : byte { DFU_DETACH = 0x00, DFU_DNLOAD = 0x01, DFU_UPLOAD = 0x02, DFU_GETSTATUS = 0x03, DFU_CLRSTATUS = 0x04, DFU_GETSTATE = 0x05, DFU_ABORT = 0x06, } }
19.214286
34
0.550186
[ "MIT" ]
josesimoes/DfuSe.Net
DfuSe.Core/DfuCommands.cs
271
C#
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; [assembly: InternalsVisibleTo("IntelliTect.TestTools.Console.Tests")]
25.428571
69
0.825843
[ "MIT" ]
COsborn2/TestTools
IntelliTect.TestTools.Console/Properties/AssemblyInfo.cs
180
C#
//===================================================================================== // Developed by Kallebe Lins (https://github.com/kallebelins) //===================================================================================== // Reproduction or sharing is free! Contribute to a better world! //==============...
35.078261
117
0.529995
[ "MIT" ]
kallebelins/mvp24hours-netcore
src/Mvp24Hours.Infrastructure.Data.EFCore/Extensions/EFCoreServiceExtensions.cs
4,034
C#
using Microsoft.Extensions.Hosting; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Volo.Abp; namespace EShopOnAbp.CatalogService.HttpApi.Client.ConsoleTestApp { public class ConsoleTestAppHostedService : IHostedS...
31.263158
114
0.675084
[ "MIT" ]
271943794/eShopOnAbp
services/catalog/test/EShopOnAbp.CatalogService.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs
1,188
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Reflection; using Coevery.Logging; namespace Coevery.Environment { public interface IAssemblyLoader { Assembly Load(string assemblyName); } public class DefaultAssemblyLoader : IAs...
34.95122
161
0.608863
[ "BSD-3-Clause" ]
Coevery/Coevery-Framework
src/Coevery/Environment/IAssemblyLoader.cs
2,868
C#
using System.Threading.Tasks; namespace UnitTests.Grains { public class CodeGenTestPoco { public int SomeProperty { get; set; } } // This class forms a code generation test case. // If the code generator does generate any code for the async state machine in the Product // method, it m...
29.888889
123
0.654275
[ "MIT" ]
AmedeoV/orleans
test/Grains/TestGrains/MultipleGenericParameterInterfaceImpl.cs
809
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace ESS.Amanse.DAL { [Table("tblpractice")] public class practice { [Key] public long id { get; set; } [MaxLeng...
29.651163
54
0.595294
[ "MIT" ]
EssDevUi/AnamneseHomeDashboardApi
Anamnese/ESS.Amanse/DAL/practice.cs
1,277
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace _2.Book_Library { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
26.090909
70
0.707317
[ "MIT" ]
MihailDobrev/SoftUni
Tech Module/Software Technologies/11. C# ASP.NET MVC Overview- Exercises/2. Book Library/2. Book Library/Global.asax.cs
576
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Codeless.SharePoint { /// <summary> /// Providers a base class that visits a CAML expression. /// </summary> public abstract class CamlExpressionVisitor { /// <summary> /// Instant...
50.929825
184
0.70403
[ "MIT" ]
misonou/codeless
src/Codeless.SharePoint/SharePoint/CamlExpressionVisitor.cs
14,517
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
19.975728
122
0.640583
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-rds/Rds/Model/V20140815/DescribeLogBackupFilesRequest.cs
4,115
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace viewTitle { public partial class Form1 : Form { public Form1() { ...
23.971014
84
0.560459
[ "MIT" ]
Blueluby/VSStudy
viewTitle/viewTitle/Form1.cs
1,672
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Text; using Xfrogcn.BinaryFormatter.Serialization; namespace Xfrogcn.BinaryFormatter { [DebuggerDisplay("Path:{BinaryPath()} Current: ClassType.{Current.BinaryCla...
33.740566
175
0.485391
[ "MIT" ]
xfrogcn/Xfrogcn.BinaryFormatter
src/BinaryFormatter/Serialization/ReadStack.cs
14,308
C#
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * This source code contains proprietary and confidential information of * Valve ...
28.846154
79
0.713333
[ "Unlicense" ]
UAVXP/SharpLife-Wrapper
src/GoldSource.Shared/Engine/Config/ModAssemblyInfo.cs
752
C#
using System.IO; namespace TeleSharp.TL { [TLObject(512535275)] public class TLPostAddress : TLObject { public override int Constructor { get { return 512535275; } } public string StreetLine1 { get; set; } public st...
26.769231
61
0.561782
[ "MIT" ]
cobra91/TelegramCSharpForward
TeleSharp.TL/TL/TLPostAddress.cs
1,392
C#
using MinecraftMappings.Internal.Models.Block; namespace MinecraftMappings.Minecraft.Java.Models.Block { public class BirchSapling : JavaBlockModel { public BirchSapling() : base("Birch Sapling") { AddVersion("birch_sapling", "1.0.0") .WithPath("models/block") ...
27.3125
60
0.594966
[ "MIT" ]
null511/MinecraftMappings.NET
MinecraftMappings.NET/Minecraft/Java/Models/Block/BirchSapling.cs
439
C#
using System; using System.Collections.Generic; using System.Net.Http.Headers; using KeyPayV2.Nz.Models.Common; using Newtonsoft.Json.Converters; using Newtonsoft.Json; using KeyPayV2.Nz.Enums; namespace KeyPayV2.Nz.Models.Ess { public class NzFeaturesModel { public bool AllowEmployeeKiwiSa...
49
79
0.696197
[ "MIT" ]
KeyPay/keypay-dotnet-v2
src/keypay-dotnet/Nz/Models/Ess/NzFeaturesModel.cs
2,156
C#
using System; namespace CommunityPlugin.Objects.Interface { public interface ILoanClosing { void LoanClosing(object sender, EventArgs e); } }
16.4
53
0.70122
[ "MIT" ]
BPenPen/CommunityPlugin-1
CommunityPlugin/Objects/Interface/ILoanClosing.cs
166
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. namespace Microsoft.Telepathy.ServiceBroker.BrokerQueue { using System; /// <summary> /// the async token class. /// </summary> internal class BrokerQueueAsyncToken { #region private fields /// <summary...
25.34058
110
0.492994
[ "MIT" ]
dubrie/Telepathy
src/soa/CcpWSLB/BrokerQueue/BrokerQueueAsyncToken.cs
3,499
C#
using ESRI.ArcGIS.Client; using ESRI.ArcGIS.Client.Geometry; using ESRI.ArcGIS.Client.Tasks; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Browser; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Ima...
44.542553
142
0.607356
[ "Apache-2.0" ]
Esri/developer-support
web-sl/display-image-with-world-file/MainPage.xaml.cs
4,189
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GISModel.Enums { public enum ESeveridadeSeg { // Diária, com necessidade frequente de horas extras [Display(Name = "Muito A...
17.447368
60
0.571644
[ "Apache-2.0" ]
tonihenriques/SesmtTecnologico02
SESTEC/GISModel/Enums/ESeveridadeSeg.cs
668
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Repository.Entities { public class PartyMaster { public int Sr { get; } [Key] public string Id { get; set; } public string CompanyId { get; set; } p...
35.076923
64
0.599415
[ "Apache-2.0" ]
infologs/DTSolutions
src/BuildingBlocks/EFCore.Support/Repository.Entities/PartyMaster.cs
1,370
C#
using Abp.MultiTenancy; using Abp.Zero.Configuration; namespace HappyKids.Parties.Authorization.Roles { public static class AppRoleConfig { public static void Configure(IRoleManagementConfig roleManagementConfig) { // Static host roles roleManagementConfig.StaticRoles....
25.566667
80
0.554107
[ "MIT" ]
marcosmoski/HappyKidsSite
src/HappyKids.Parties.Core/Authorization/Roles/AppRoleConfig.cs
769
C#
using UnityEngine; using System; using System.Linq; using System.Collections; using System.Collections.Generic; [AddComponentMenu( "Daikon Forge/Examples/Game Menu/Achievements Grid" )] [Serializable] public class DemoAchievementsGrid : MonoBehaviour { #region Public events public delegate void SelectionChangedHa...
17.551429
120
0.632102
[ "Apache-2.0" ]
takemurakimio/missing-part-1
Assets/Daikon Forge/Examples/Game Menu/Scripts/DemoAchievementsGrid.cs
6,143
C#
using Bookkeeping.Common.Exceptions; using Bookkeeping.Common.Interfaces; using System; using System.IO; using System.Threading.Tasks; using System.Web.Mvc; namespace Bookkeeping.WebUi.Controllers { public class BaseController : Controller { protected readonly ILogger _logger; public BaseCont...
29.886364
100
0.387579
[ "MIT" ]
zhuchenko-w/legal-entities-checker
Bookkeeping.WebUI/Controllers/BaseController.cs
3,983
C#
using System; using System.Collections.Generic; public class PriorityQueue<T> { // I'm using an unsorted array for this example, but ideally this // would be a binary heap. There's an open issue for adding a binary // heap to the standard C# library: https://github.com/dotnet/corefx/issues/574 // ...
29.113636
88
0.612802
[ "Apache-2.0" ]
adidinchuk/GMTK-2021
Assets/Scripts/Search/PriorityQueue.cs
1,283
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
29.793103
221
0.608025
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Resources/V20191001/GetDeploymentAtTenantScope.cs
2,592
C#
using System; using Screna; using System.Drawing; namespace Captura.Models { public class WindowItem : NotifyPropertyChanged, IVideoItem { public IWindow Window { get; } public WindowItem(IWindow Window) { this.Window = Window; Name = Window.Title; } ...
23.419355
100
0.584022
[ "MIT" ]
ClsTe/CapturaKorean
src/Screna/VideoItems/WindowItem.cs
728
C#
using Android.Support.V7.Widget; using AView = Android.Views.View; namespace Xamarin.Forms.Platform.Android { internal abstract class EdgeSnapHelper : NongreedySnapHelper { protected static OrientationHelper CreateOrientationHelper(RecyclerView.LayoutManager layoutManager) { return layoutManager.CanScrollHori...
33.883333
107
0.772258
[ "MIT" ]
AlfonChitoSalano/Xamarin.Forms
Xamarin.Forms.Platform.Android/CollectionView/EdgeSnapHelper.cs
2,033
C#
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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...
30.125
76
0.706777
[ "Apache-2.0" ]
jeanluctritsch/CommunityServer
web/core/ASC.Web.Core/AddonContext.cs
723
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing; using System.Drawing.Drawing2D; using System.ComponentModel; namespace A_Friend.CustomControls { internal class ToggleButton : CheckBox { ...
29.45
98
0.522637
[ "BSD-3-Clause" ]
Mancitiss/AFriendChatApp
A Friend/A Friend/CustomControls/ToggleButton.cs
3,536
C#
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Net; using System.Text; using System.Threading.Tasks; namespace PSFramework.Utility { /// <summary> /// A scriptblock container item /// </summary> public class ScriptBlockItem { ...
28.661538
104
0.567901
[ "MIT" ]
Zhunya/psframework
library/PSFramework/Utility/ScriptBlockItem.cs
1,865
C#
namespace LLibrary { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Threading; internal sealed class OpenStreams : IDisposable { private readonly...
30.42
105
0.514793
[ "Unlicense" ]
tallesl/LogThis
L/OpenStreams.cs
3,044
C#
// FILE AUTOGENERATED. DO NOT MODIFY namespace Starfield.Core.Item.Items { [Item("minecraft:lodestone", 958, 64, 742)] public class ItemLodestone : BlockItem { } }
29.5
48
0.689266
[ "MIT" ]
StarfieldMC/Starfield
Starfield.Core/Item/Items/ItemLodestone.cs
177
C#
using System; namespace ListasEnlazadas { class Program { static void Main(string[] args) { int opcion = 0; String x = ""; Lista l = new Lista(); while (opcion != 4) { Console.Clear(); Console.WriteLine...
28.413043
73
0.368018
[ "MIT" ]
cmontellanob/programacionIII
ListasEnlazadas/ListasEnlazadas/Program.cs
1,309
C#
using eProdaja.Model.Requests; using eProdaja.Model.SearchObjects; using eProdaja.Services; namespace eProdaja.Controllers { public class VrsteProizvodumController : BaseCRUDController<Model.VrsteProizvodum, VrsteProizvodumSearchObject, VrsteProizvodumUpsertRequest, VrsteProizvodumUpsertRequest> { pub...
29.266667
175
0.763098
[ "MIT" ]
amelmusic/FIT-RS2-2022
eProdaja/Controllers/VrsteProizvodumController.cs
441
C#
using System.Collections.Generic; using System.Linq; using Unity.UIWidgets.foundation; using Unity.UIWidgets.material; using Unity.UIWidgets.painting; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; namespace UIWidgetsGallery.gallery { class TabsFabDemoUtils { public const string _explan...
38.168478
113
0.495942
[ "Apache-2.0" ]
Luciano-0/2048-Demo
Library/PackageCache/com.unity.uiwidgets@1.5.4-preview.12/Samples~/UIWidgetsGallery/demo/material/tabs_fab_demo.cs
7,023
C#
//////////////////////////////////////////////////////////////////////////////// //EF Core Provider for LCPI OLE DB. // IBProvider and Contributors. 25.04.2021. using Microsoft.EntityFrameworkCore.Migrations; namespace Lcpi.EntityFrameworkCore.DataProvider.LcpiOleDb.Basement.EF.Db...
31.734694
105
0.592926
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Code/Provider/Source/Basement/EF/Dbms/Firebird/V03_0_0/Migrations/FB_V03_0_0__MigrationsSqlGenerator-ForeignKeyAction.cs
1,557
C#
namespace SGson.Grammar.Number { public class NumberCharType { public static bool IsDigit(int c) { return c >= 0x30 && c <= 0x39; } public static bool IsBinaryDigit(int c) { return c == '0' || c =='1'; } public static bool IsOctDigit(int c) { return c >= 0x30 && c <= 0x37; } public sta...
16.777778
41
0.551876
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
zaobao/SGson
src/Grammar/Number/NumberCharType.cs
453
C#
namespace Crm.Admin { using System.Web.Mvc; internal static class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
18.083333
74
0.75576
[ "MIT" ]
VladimirSozinov/ROI-Web-School
CRM/Admin/App_Start/FilterConfig.cs
219
C#
using System.Collections; using System.Collections.Generic; using MoreMountains.Tools; using UnityEngine; using UnityEngine.SceneManagement; namespace MoreMountains.Feel { /// <summary> /// A simple class used to spawn snake food in Feel's Snake demo scene /// </summary> public class SnakeFoodSpawner :...
32.763636
78
0.59101
[ "MIT" ]
random-agile/slowmo_mobile
Assets/Amazing Assets/Feel/FeelDemos/Snake/Scripts/SnakeFoodSpawner.cs
1,802
C#
using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Xml; namespace WinSW.Util { public static class XmlHelper { /// <summary> /// Retrieves a single string element /// </summary> /// <param name="node">Parent node</param> /// <param name="...
41.74359
152
0.600328
[ "MIT" ]
UGreek/winsw
src/WinSW.Core/Util/XmlHelper.cs
4,886
C#
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2016 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software")...
38.119565
126
0.630739
[ "MIT" ]
ketangarala/core
Libraries/Hotcakes.CommerceDTO/v1/Catalog/ProductVolumeDiscountDTO.cs
3,509
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> //-----------------------------------------...
26.555556
80
0.559275
[ "MIT" ]
opc-cpvp/OPC.PowerApps
src/Compliance.EarlyBound/OptionSets/opc_pipedafileopc_PriorityIncident.cs
717
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.open.lottery.region.create /// </summary> public class AlipayOpenLotteryRegionCreateRequest : IAopRequest<AlipayOpenLotteryRegionCreateResponse> ...
23.563636
106
0.604938
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Request/AlipayOpenLotteryRegionCreateRequest.cs
2,608
C#
using System.Drawing; namespace mivcs.Rendering { public class DisplayCell { public Color Background { get; set; } public Color Foreground { get; set; } public char Char { get; set; } public static implicit operator DisplayCell(char value) { return n...
24.809524
63
0.537428
[ "MIT" ]
Desimis/mivcs
src/Rendering/DisplayCell.cs
521
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Components; using Skclusive.Material.Core; namespace Skclusive.Material.Card { public class CardActionsComponent : MaterialComponent { public CardActionsComponent() : base("CardActions") { } /// <summary> ///...
25.210526
70
0.539666
[ "MIT" ]
esso23/Skclusive.Material.Component
Card/src/CardActions/CardActions.cs
960
C#
// Copyright 2017 Google Inc. 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 applicabl...
46.217105
166
0.662064
[ "Apache-2.0" ]
GoogleCloudPlatform/google-cloud-visualstudio
GoogleCloudExtension/GoogleCloudExtension/Deployment/NetCoreAppUtils.cs
7,027
C#
using UnityEngine; using System.Collections; using System; public class Fire : MonoBehaviour { int life; GameObject woodPile; TimeSpan fireTimer; // Use this for initialization void Start () { life = 300; woodPile = GameObject.Find("Wood Pile"); InvokeRepeating("FireCountdown", 1.0f, 1.0f); } ...
20.25
70
0.537919
[ "MIT" ]
tgbonin/firekeeper
Assets/Scripts/Fire.cs
1,136
C#
using System.Threading.Tasks; using Abp.Application.Services; using MyProject.Authorization.Accounts.Dto; namespace MyProject.Authorization.Accounts { public interface IAccountAppService : IApplicationService { Task<IsTenantAvailableOutput> IsTenantAvailable(IsTenantAvailableInput input); Tas...
26.928571
86
0.785146
[ "MIT" ]
CadeXu/ABP
abpMySql/aspnet-core/src/MyProject.Application/Authorization/Accounts/IAccountAppService.cs
379
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // ANTLR Version: 4.7.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--------------...
41.639535
128
0.688634
[ "MIT" ]
jphilipps/NetCore.AntlrCodeCompletion
test/NetCore.UnitTestAntlrCodeCompletion/Generation/ExprListener.cs
3,581
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Net.Http { internal enum Http3SettingType : long { /// <summary> /// SETTINGS_QPACK_MAX_TABLE_CAPACITY /// The maximum dynamic table ...
38.423077
119
0.630631
[ "MIT" ]
Akarachudra/kontur-aspnetcore-fork
src/Shared/runtime/Http3/Http3SettingType.cs
1,998
C#
namespace DfESurveyTool.Web.Consts { public static class CookieNames { public const string CookieConsent = "CookieConsent"; public const string AntiForgery = "Antiforgery"; public const string AzureADLogin = "Login"; // Google Analytics public const string GA = "_ga"; ...
29.105263
60
0.636528
[ "MIT" ]
bryn500/GovTemplate
src/DfESurveyTool.Web/Consts/CookieNames.cs
555
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AreaAgent : Agent { public GameObject area; public override List<float> CollectState() { List<float> state = new List<float>(); Vector3 velocity = GetComponent<Rigidbody>().velocity; state.Add(...
37.446809
129
0.599716
[ "Apache-2.0" ]
spiez/unity-ml-trafficDemo
unity-environment/Assets/ML-Agents/Examples/Area/Scripts/AreaAgent.cs
3,522
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Http; using Microsoft.Net.Http.Headers; namespace Microsoft.AspNetCore.Rewrite.UrlActions { internal class...
36.393617
111
0.559193
[ "Apache-2.0" ]
belav/aspnetcore
src/Middleware/Rewrite/src/UrlActions/RedirectAction.cs
3,421
C#
//----------------------------------------------------------------------- // <copyright file="UseRoleIgnoredSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyrigh...
37.674419
159
0.531235
[ "Apache-2.0" ]
hueifeng/akka.net
src/core/Akka.Cluster.Tests.MultiNode/Routing/UseRoleIgnoredSpec.cs
16,202
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
30.313253
134
0.696741
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-retailcloud/Retailcloud/Model/V20180313/DescribeRdsAccountsRequest.cs
2,516
C#
namespace LeetCode.Impl.Template; internal class Solution { }
10.666667
34
0.78125
[ "MIT" ]
gdoct/LeetCodeExcercises
LeetCode.Impl/000_Template/Solution.cs
66
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("We...
36.103448
84
0.741165
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter16/WebViewDemo/WebViewDemo/WebViewDemo.UWP/Properties/AssemblyInfo.cs
1,050
C#
using NUnit.Framework; using SwfLib.Gradients; using SwfLib.Tests.Asserts; namespace SwfLib.Tests.Gradients { [TestFixture] public class FocalGradientRGBATest : BaseGradientTest<FocalGradientRGBA> { private readonly byte[] _etalon = new byte[] { 0x92, 0, //Ratio 0 1...
34.22
115
0.54588
[ "MIT" ]
SavchukSergey/SwfLib
SwfLib.Tests/Gradients/FocalGradientRGBATest.cs
1,713
C#
using System; using System.Collections.Generic; using System.IO; namespace I18NPortable { public interface ILocaleProvider : IDisposable { IEnumerable<Tuple<string, string>> GetAvailableLocales(); Stream GetLocaleStream(string locale); ILocaleProvider SetLogger(Action<string> logger); ...
25.642857
65
0.713092
[ "MIT" ]
enisn/I18N-Portable
I18NPortable/ILocaleProvider.cs
361
C#
using Avalonia; using Avalonia.Markup.Xaml; namespace SS14.Launcher; public class App : Application { public override void Initialize() { AvaloniaXamlLoader.Load(this); } }
16.166667
38
0.701031
[ "MIT" ]
Tomeno/SS14.Launcher
SS14.Launcher/App.xaml.cs
194
C#
/***********************************************************************************************\ * (C) KAL ATM Software GmbH, 2021 * KAL ATM Software GmbH licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. * * This file was created automatically as pa...
36.285714
394
0.591114
[ "MIT" ]
rajasekaran-ka/KAL
Framework/Core/Printer/Events/NoMediaEvent_g.cs
1,778
C#
//------------------------------------------------------------------------------ /// <copyright file="IVsCodeWindow.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //---------------------------...
34.890909
98
0.482543
[ "Unlicense" ]
bestbat/Windows-Server
com/netfx/src/framework/vsdesigner/designer/microsoft/visualstudio/interop/ivscodewindow.cs
1,919
C#
using System; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Text; using Elasticsearch.Net; using FluentAssertions; using Nest.Searchify.Converters; using Nest.Searchify.Queries; using Nest.Searchify.Utils; using Newtonsoft.Json; using Xunit; namespace Nest.S...
36.263158
128
0.560958
[ "Apache-2.0" ]
stormid/Nest-Searchify
tests/Nest.Searchify.Tests/GeoLocationTests/GeoLocationContext.cs
5,514
C#
using UnityEngine; using System.Collections; // <summary> // Maze generation by dividing area in two, adding spaces in walls and repeating recursively. // Non-recursive realisation of algorithm. // </summary> public class DivisionMazeGenerator : BasicMazeGenerator { public DivisionMazeGenerator(int row, int colum...
35.512821
119
0.551865
[ "MIT" ]
LilyHeAsamiko/Arena-BuildingToolkit
Assets/ArenaSDK/Prefabs/Playgrounds/MazeUtils/Scripts/DivisionMazeGenerator.cs
4,157
C#
namespace Sitecore.Feature.Demo.Models { public class Location { public string Country { get; set; } public string City { get; set; } public string BusinessName { get; set; } public string Url { get; set; } public string Latitude { get; set; } public string Longitude { get; s...
28.769231
48
0.609626
[ "Apache-2.0" ]
uwe-e/mch.habitat.v91
src/Feature/Demo/code/Models/Location.cs
374
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Text.RegularExpressions; using System.Web; using System.IO; using System.Net; using System.Web.Security; using System.Security.Policy; ...
33.787879
158
0.604883
[ "BSD-3-Clause" ]
hrvoje-grabusic/CMS
Kooboo.CMS/Kooboo/Drawing/MetroImage.cs
10,037
C#
using System.Data.Entity; using System.Data.Entity.SqlServer; namespace BohFoundation.EntityFrameworkBaseClass { public class AzureDbConfiguration : DbConfiguration { public AzureDbConfiguration() { SetExecutionStrategy("System.Data.SqlClient",() => new SqlAzureExecutionStrategy())...
24.285714
96
0.694118
[ "MIT" ]
Sobieck00/BOH-Bulldog-Scholarship-Application-Management
BohFoundation.EntityFrameworkBaseClass/AzureDbConfiguration.cs
342
C#
using Orderio.Domain.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace Orderio.Domain.Interfaces { public interface IOrderStatusRepository : IRepository<OrderStatus> { Task<List<OrderStatus>> GetAllOrderStatusesAsync(long orderId); } }
24.166667
71
0.768966
[ "MIT" ]
Yaroslav08/Orderio
Orderio/Orderio.Domain/Interfaces/IOrderStatusRepository.cs
292
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Description; using Kartverket.Register.Models; using Kartverket.Register.Models....
38.195652
138
0.600028
[ "MIT" ]
kartverket/Geonorge.Register
Kartverket.Register/Controllers/AlertApiController.cs
7,030
C#
using System.Collections.Generic; using JetBrains.Application.DataContext; using JetBrains.ReSharper.Feature.Services.Generate.Actions; namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Feature.Services.Generate { [GenerateProvider] public class GenerateUnityEventFunctionsWorkflowProvider : IGenerateWorkflowP...
34.933333
92
0.772901
[ "Apache-2.0" ]
20chan/resharper-unity
resharper/resharper-unity/src/CSharp/Feature/Services/Generate/GenerateUnityEventFunctionsWorkflowProvider.cs
524
C#
using NUnit.Framework; using System.Linq; using System.Net; namespace StackExchange.Redis.Tests { [TestFixture] public class DefaultPorts { [Test] [TestCase("foo", 6379)] [TestCase("foo:6379", 6379)] [TestCase("foo:6380", 6380)] [TestCase("foo,ssl=false", 6379)] ...
34.389831
102
0.576639
[ "Apache-2.0" ]
luberg/StackExchange.Redis
StackExchange.Redis.Tests/DefaultPorts.cs
2,031
C#
namespace Sqlbi.Bravo.Infrastructure.Extensions.DynamicLinq.Parser { internal static class Res { public const string DuplicateIdentifier = "The identifier '{0}' was defined more than once"; public const string ExpressionTypeMismatch = "Expression of type '{0}' expected"; public const st...
79.137255
118
0.702428
[ "MIT" ]
hanaseleb/Bravo
src/Infrastructure/Extensions/DynamicLinq/Parser/ParseConstants.cs
4,038
C#
using System.Web; using System.Web.Optimization; namespace IoTSensorPortal { public class BundleConfig { // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ...
39.285714
113
0.578909
[ "MIT" ]
CecoMilchev/IoTSensorPortal
IoTSensorPortal/App_Start/BundleConfig.cs
1,377
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")...
42.210526
84
0.779302
[ "MIT" ]
faugusto90/LiuProject
src/Liu.Infra.CrossCutting.Identity/Properties/AssemblyInfo.cs
804
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. // // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗...
28.072464
79
0.578214
[ "Apache-2.0" ]
SimonCropp/elasticsearch-net
src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTask.g.cs
2,383
C#
using System; using System.Xml.Serialization; namespace EZOper.NetSiteUtilities.AopApi { /// <summary> /// VoucherLiteInfo Data Structure. /// </summary> [Serializable] public class VoucherLiteInfo : AopObject { /// <summary> /// 发券时间,格式为:yyyy-MM-dd HH:mm:ss /// </summar...
23.594595
52
0.526919
[ "MIT" ]
erikzhouxin/CSharpSolution
NetSiteUtilities/AopApi/Domain/VoucherLiteInfo.cs
941
C#
namespace WoWCombatLogParser.Models { public enum Reaction { Neutral, Friendly, Hostile } public enum UnitType { Player, Pet, NPC, } public enum EnvironmentalType { Drowning, Falling, Fatigue, Fire, ...
19.382609
44
0.486765
[ "Apache-2.0" ]
ranky/WowCombatLogParser
WowCombatLogParser/Models/Enums.cs
2,231
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Charlotte.Games; namespace Charlotte.Tests.Games { public class WorldGameMasterTest { public void Test01() { using (new WorldGameMaster()) { WorldGameMaster.I.Perform(); } } public void Test02() { ...
17.730769
54
0.639913
[ "MIT" ]
soleil-taruto/Elsa
e20210103_YokoActTK_Demo2/Elsa20200001/Elsa20200001/Tests/Games/WorldGameMasterTest.cs
924
C#
using Microsoft.EntityFrameworkCore; namespace Votify.Api.Models { [Owned] public class PlayerState { public bool Paused { get; set; } public int Duration { get; set; } public int Position { get; set; } public string SpotifyTrackId { get; set; } public ...
26.833333
57
0.604555
[ "MIT" ]
villor/votify
Votify/Votify.Api/Models/PlayerState.cs
485
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using Control_Escolar.Context; namespace Control_Escolar { class AccionesAlumnos { public AccionesAlumnos() { } ...
37.677083
268
0.59248
[ "BSD-2-Clause" ]
Equipo-6/Gestion
Control Escolar/Control Escolar/AccionesAlumnos.cs
3,625
C#
namespace CRUDreborn.Migrations { using System; using System.Data.Entity.Migrations; public partial class vendatotal : DbMigration { public override void Up() { AddColumn("dbo.Vendas", "Total", c => c.Single(nullable: false)); } public override v...
21.368421
77
0.541872
[ "MIT" ]
diguifi/CRUDrelatedEntities
src/CRUDreborn.EntityFramework/Migrations/201803291123486_venda-total.cs
406
C#
using System; using NServiceBus; class Program { static void Main() { Console.Title = "Samples.Callbacks.Sender"; var busConfiguration = new BusConfiguration(); busConfiguration.EndpointName("Samples.Callbacks.Sender"); busConfiguration.UseSerialization<JsonSerialize...
30.475248
110
0.502924
[ "Apache-2.0" ]
A-Franklin/docs.particular.net
samples/callbacks/Core_5/Sender/Program.cs
2,978
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OfficeApi { /// <summary> /// DispatchInterface ThemeColor /// SupportByVersion Office, 12,14,15,16 /// </summary> /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vb...
30.862275
165
0.688203
[ "MIT" ]
NetOfficeFw/NetOffice
Source/Office/DispatchInterfaces/ThemeColor.cs
5,156
C#
using System; using System.CodeDom.Compiler; using System.Linq; using CSScriptCompilers; namespace CSSCodeProvider.Tests { class Program { static void Main(string[] args) { string[] files = new[] { @"E:\cs-script\Samples\hello.cpp" }; var cParams = new CompilerParamete...
40.827586
169
0.682432
[ "MIT" ]
cnark/cs-script
Source/CSSCodeProvider.v4.0/CSSCodeProvider.Tests/Program.cs
1,186
C#
using System; using System.Collections.Generic; using System.Data.Entity; using System.Text; namespace Mocktopus.Tests.Mocks.Models { public class TestDbContext : DbContext, ITestDbContext { public DbSet<Student> Students { get; set; } } }
20.153846
58
0.721374
[ "Apache-2.0" ]
boscoton87/Mocktopus
Mocktopus.Tests/Mocks/Models/TestDbContext.cs
264
C#
// <copyright file="HttpContext.cs" company="APIMatic"> // Copyright (c) APIMatic. All rights reserved. // </copyright> namespace Engine.Standard.Http.Client { using Engine.Standard.Http.Request; using Engine.Standard.Http.Response; /// <summary> /// Represents the contextual information of HTTP reques...
31.395349
84
0.583704
[ "MIT" ]
profyoni/ZmanimEngine
Engine.Standard/Http/Client/HttpContext.cs
1,350
C#
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace AccessibilityTest.Droid { [Activity(Label = "AccessibilityTest", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ...
26.84
166
0.703428
[ "Apache-2.0" ]
aliozgur/xamarin-forms-book-samples
Chapter05/AccessibilityTest/AccessibilityTest/AccessibilityTest.Droid/MainActivity.cs
671
C#
//----------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All Rights Reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; namespace Microso...
29.922693
120
0.529794
[ "Apache-2.0" ]
evincarofautumn/mono
mcs/tools/pdb2mdb/PdbFunction.cs
11,999
C#
using System.Drawing; using Newtonsoft.Json; using TriggersTools.CatSystem2.Json; using TriggersTools.CatSystem2.Structs; namespace TriggersTools.CatSystem2 { /// <summary> /// An attribute attached to an HG-3 frame which includes positioning and color information. /// </summary> public sealed class Hg3Attribute...
28.709677
103
0.656929
[ "MIT" ]
AtomCrafty/TriggersTools.CatSystem2
src/TriggersTools.CatSystem2.Shared/Hg3Attribute.cs
2,672
C#
//------------------------------------------------------------------------------ // <自動生成> // このコードはツールによって生成されました。 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします。 // </自動生成> //------------------------------------------------------------------------------ namespace WebForms_Sample.Aspx....
32.691589
92
0.540881
[ "Apache-2.0" ]
OpenTouryoProject/OpenTouryo
root/programs/CS/Samples/WebApp_sample/WebForms_Sample/WebForms_Sample/Aspx/Common/Master/testNest/rootMasterPage.master.designer.cs
9,938
C#
using System; using System.Collections.Generic; using UnityEngine; namespace VirtualVoid.Util.ObjectPooling { public abstract class PoolObject : MonoBehaviour { /// <summary> /// Called when the object has been spawned from the object pool. Called before the object is set active. /// <...
28.36
116
0.617772
[ "MIT" ]
Tobogganeer/VirtualVoid.Util
Utilities/Object Pooling/PoolObject.cs
711
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; namespace System.Collections { internal static partial class HashHelpers { ...
43.413043
122
0.579119
[ "MIT" ]
3F/coreclr
src/System.Private.CoreLib/shared/System/Collections/HashHelpers.cs
3,994
C#
using Carrotware.CMS.Core; using Carrotware.CMS.UI.Controls; using Carrotware.Web.UI.Controls; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; /* * CarrotCake CMS * http://www.carrotware.com/ * * Copyright 2011, Samantha Copeland ...
33.054054
163
0.673957
[ "MIT" ]
ninianne98/CarrotCakeCMS
CMSAdmin/c3-admin/SiteSkinEdit.aspx.cs
4,894
C#
using System; namespace DNFS.Api { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18.0625
69
0.595156
[ "MIT" ]
WillBrigida/DNFS
src/DNFS/DNFS.Api/WeatherForecast.cs
289
C#
using Game; using Mirror; using UnityEngine; using UnityEngine.Assertions; namespace UI { public class StartGameGUI : MonoBehaviour { public void StartGame() { Assert.IsTrue(NetworkClient.active); NetworkClient.Send(new StartGameMsg()); } } }
19.615385
44
0.74902
[ "MIT" ]
PsarTech-Shorii/Only-Gane
Assets/Scripts/UI/Game/StartGameGUI.cs
255
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 "li...
30.947368
102
0.650227
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/GetServiceSettingResponse.cs
1,764
C#
namespace VRAcademy.HttpBasic { public static partial class Utility { public const string HostName = "http://localhost:5678"; public const string LARGE_FILE_URL = "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe"; //public const string LARGE_FILE_URL = "https://releases.u...
29.588235
122
0.667992
[ "MIT" ]
tk-aria/vracademy-serverintegration-unity
Assets/Lesson/Examples/Utility.cs
503
C#
using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OrmTest { public partial class NewUnitTest { public static SqlSugarScope simpleDb => new SqlSugarScope(new ConnectionConfig() { DbType = Db...
32.437995
133
0.421588
[ "Apache-2.0" ]
390029659/SqlSugar
Src/Asp.Net/SqlServerTest/UnitTest/UThread.cs
12,296
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> //-----------------------------------------...
29.75
80
0.443277
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
web/studio/ASC.Web.Studio/UserControls/Management/GreetingSettings/GreetingLogoSettings.ascx.designer.cs
476
C#