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
// Copyright 2017 the original author or authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
38.640449
162
0.673742
[ "ECL-2.0", "Apache-2.0" ]
DrDao/Discovery
test/Steeltoe.Discovery.EurekaBase.Test/DiscoveryManagerTest.cs
3,441
C#
using Tweetinvi.Models; namespace Tweetinvi.Parameters { /// <summary> /// For more information read : https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode /// </summary> public interface IGeoSearchReverseParameters : ICustomRequestParameters { ...
34.245283
136
0.609917
[ "MIT" ]
IEvangelist/tweetinvi
src/Tweetinvi.Core/Public/Parameters/HelpClient/GeoSearchReverseParameters.cs
1,821
C#
// ----------------------------------------------------------------------- // <copyright file="ServiceBase.cs" company="OSharp开源团队"> // Copyright (c) 2014 OSharp. All rights reserved. // </copyright> // <last-editor>郭明锋</last-editor> // <last-date>2014-07-17 3:42</last-date> // -------------------------...
26.194444
76
0.505832
[ "Apache-2.0" ]
J-W-Chan/osharp
src/OSharp.Core/ServiceBase.cs
993
C#
using System; using System.IO; using System.Linq; using McMaster.Extensions.CommandLineUtils; using static Bullseye.Targets; using static SimpleExec.Command; namespace build { class Program { private const string Prefix = "AspNetIdentity"; private const bool RequireTests = false; priv...
33.598291
174
0.509285
[ "Apache-2.0" ]
cboyce428/IdentityServer4
src/AspNetIdentity/build/Program.cs
3,933
C#
using Game.Controllers; using Game.Signals.Base; namespace Game.Signals { public enum EUnitSignalType { Moved, Dragged, StartDragged } public class UnitSignal : SignalBase<UnitSignalData, UnitController> { public UnitSignal(UnitSignalData value, UnitController owner...
21.34375
90
0.626647
[ "MIT" ]
redmoon-games/SimpleMergeSource
Assets/Scripts/Game/Signals/UnitSignal.cs
683
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace WebPoll { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathI...
25.043478
101
0.586806
[ "MIT" ]
redarrowlabs/pubnub-c-sharp
demos/ePoll/WebPoll/App_Start/RouteConfig.cs
578
C#
using System; using System.Linq; using BattleSystem.Core.Moves; using BattleSystem.Core.Random; using Moq; using NUnit.Framework; namespace BattleSystem.Core.Tests.Moves { /// <summary> /// Unit tests for <see cref="MoveSet"/>. /// </summary> [TestFixture] public class MoveSetTests { [...
28.163399
89
0.507774
[ "MIT" ]
phrasmotica/BattleSystem
BattleSystem.Core.Tests/Moves/MoveSetTests.cs
4,311
C#
using System; using Shiny; using Shiny.BluetoothLE; using Shiny.Logging; using Shiny.Locations; using Shiny.Notifications; using Shiny.Sensors; using Shiny.SpeechRecognition; using Shiny.Net.Http; using Microsoft.Extensions.DependencyInjection; using Samples.Settings; using Samples.Loggers; namespace Samples.ShinySet...
32.631579
81
0.643548
[ "MIT" ]
DanielCauser/shiny
Samples/Samples/ShinySetup/SampleStartup.cs
1,862
C#
using Guu.Utils; using VikDisk.Core; namespace VikDisk.Game { internal class Chapter1 : Injector { internal override void SetupMod() { //+------------------------------- //+ GENERATE LARGO IDs //+------------------------------- //SlimeUtils.Gener...
43.34
116
0.504384
[ "MIT" ]
RicardoTheCoder/ViktorsDiskoveries
Project/VikDisk/Game/Chapters/Chapter1.cs
2,169
C#
using System; namespace Day_of_the_Programmer { class Program { static string dayOfProgrammer(int year) { DateTime date = new DateTime(year, 8, 31); do { date = date.AddDays(1); } while (date.DayOfYear != 256); if (...
21.35
80
0.454333
[ "MIT" ]
ggriffo/HackerRank
Day of the Programmer/Program.cs
856
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using TMSA.SistemaEducacional.Domain.Pessoas; using TMSA.SistemaEducacional.Infra.Data.Extensions; namespace TMSA.SistemaEducacional.Infra.Data.Mappings { public class PessoaJuridicaMapping : EntityTypeConfiguration<Pessoa...
30.447368
80
0.609334
[ "MIT" ]
ThiagoMSArrais/Sistema-Educacional
SistemaEducacional/src/TMSA.SistemaEducacional.Infra.Data/Mappings/PessoaJuridicaMapping.cs
1,159
C#
using FluentValidation; using System; using System.Text.RegularExpressions; namespace LyncNinja.Domain.Extensions { public static class RuleBuilderExtensions { #region Fields private const string URL_REGEX = @"^[a-zA-Z0-9].*(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:\/?#[\]@!\$&'\(\)\*\...
35.622222
150
0.559576
[ "MIT" ]
lukecusolito/LyncNinja
LyncNinja.Domain/Extensions/RuleBuilderExtensions.cs
1,605
C#
namespace Team.Blogging.Settings { public static class BloggingSettings { private const string Prefix = "Blogging"; //Add your own setting names here. Example: //public const string MySetting1 = Prefix + ".MySetting1"; } }
26
66
0.653846
[ "MIT" ]
lwqwag/Team.Bloging
src/Team.Bloging.Domain/Settings/BloggingSettings.cs
262
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Objects.Types { /// <summary> /// A HitObject that has a starting X-position. /// </summary> public interface IHasXP...
27.941176
93
0.595789
[ "MIT" ]
AtomCrafty/osu
osu.Game/Rulesets/Objects/Types/IHasXPosition.cs
461
C#
namespace DotNetBungieAPI.Models.Forum; [Flags] [JsonConverter(typeof(JsonStringEnumConverter))] public enum ForumTopicsCategoryFiltersEnum { None = 0, Links = 1, Questions = 2, AnsweredQuestions = 4, Media = 8, TextOnly = 16, Announcement = 32, BungieOfficial = 64, Polls = 128 }
19.875
48
0.676101
[ "MIT" ]
EndGameGl/.NetBungieAPI
DotNetBungieAPI/Models/Forum/ForumTopicsCategoryFiltersEnum.cs
320
C#
#pragma checksum "..\..\..\..\Views\SearchResultView.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "54247AB02E48135C7F3C82B4EC7BDD56D132D0EE" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319....
39.097826
143
0.658882
[ "Apache-2.0" ]
dashwort/MarketWatch
WpfUiCore/obj/Debug/netcoreapp3.0/Views/SearchResultView.g.i.cs
3,599
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using Microsoft.Data.Sqlite; using FDK; namespace DTXMania2.old.RecordDBRecord { class v006_RecordDBRecord { public const int VERSION = 6; /// <summary> /// ユーザを一意に識別するID。 ...
28.5
104
0.475709
[ "MIT" ]
DTXMania/DTXMania2
DTXMania2/保存データ/RecordDB/old/v006_RecordDBRecord.cs
3,306
C#
using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; namespace Nohros.Toolkit.DnsLookup { public class NoResponseException : SystemException { public NoResponseException() { } public NoResponseException(Exception inner_exception) : bas...
36.25
110
0.748276
[ "MIT" ]
nohros/must
src/platform/toolkit/dnslookup/noresponseexception.cs
580
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using Micro...
48.40751
332
0.617431
[ "Apache-2.0" ]
KlausLoeffelmann/VBPS-pub
src/Compilers/CSharp/Test/Symbol/Compilation/ReferenceManagerTests.cs
157,278
C#
using GrammarNazi.Core.Extensions; using GrammarNazi.Domain.BotCommands; using GrammarNazi.Domain.Constants; using GrammarNazi.Domain.Enums; using GrammarNazi.Domain.Services; using GrammarNazi.Domain.Utilities; using System.Text; using System.Threading.Tasks; using Telegram.Bot.Types; namespace GrammarNazi.Core.BotC...
35.940299
167
0.634551
[ "MIT" ]
Jadhielv/grammar-nazi-bot
GrammarNazi.Core/BotCommands/Telegram/LanguageCommand.cs
2,410
C#
// **************************************************************************************** // **************************************************************************************** // Programmer: Paul F. Sirpenski // FileName: RssChannelSkipHours.cs // Copyright: Copyright 2019. Paul F. Sirpenski. // // Licensed...
36.390244
124
0.553619
[ "Apache-2.0" ]
sirpenski/sirpenski-syndication-rss20
Sirpenski.Syndication.Rss20/Rss20/RssChannelSkipHours.cs
1,494
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Turmerik.WebApi.TestApp.Migrations { public partial class FirstCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AspNetRol...
45.236364
108
0.496282
[ "MIT" ]
dantincu/turmerik
dotnet/__EXT__/Turmerik.WebApi.TestApp/Migrations/20210709071112_First-Create.cs
9,954
C#
using System; namespace OurUmbraco.Repository.Models { internal class PackageVersionSupport : IEquatable<PackageVersionSupport> { private readonly int _fileId; public PackageVersionSupport(int fileId, System.Version packageVersion, System.Version minUmbracoVersion) { _file...
29.944444
113
0.602968
[ "MIT" ]
AaronSadlerUK/OurUmbraco
OurUmbraco/Repository/Models/PackageVersionSupport.cs
1,619
C#
using System; using System.Collections.Generic; using System.Text; namespace PhotoOrganizer.Core { /// <summary> /// Utility class useful for giving descriptive, non-throwing reports on operations. /// </summary> public class Result { /// <summary> /// The message explaing the erro...
30.832258
126
0.538816
[ "MIT" ]
greatest-gatsby/photo-organizer
PhotoOrganizer.Core/Result.cs
4,781
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Microsoft.AspNet.SignalR.Hubs { public class ReflectedHubDescriptorProvider : I...
36.920455
177
0.547245
[ "Apache-2.0" ]
AlaShiban/SignalR
src/Microsoft.AspNet.SignalR.Core/Hubs/Lookup/ReflectedHubDescriptorProvider.cs
3,251
C#
using System.Threading.Tasks; using SmartHotel.Clients.Core.Services.Hotel; using SmartHotel.Clients.Core.ViewModels.Base; using System.Collections.Generic; using System; using System.Windows.Input; using Xamarin.Forms; using System.Net.Http; using System.Diagnostics; using MvvmHelpers; using SmartHotel.Clients.Core.E...
31.794872
118
0.550538
[ "MIT" ]
ATH89/SmartHotel360_w8bghybo
Source/SmartHotel.Clients/SmartHotel.Clients/ViewModels/BookingHotelsViewModel.cs
3,722
C#
using System; using System.Collections.Specialized; using System.ComponentModel; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Media; using Xamarin.Forms.Internals; using Xamarin.Forms.PlatformConfiguration.WindowsSpecific; using ...
29.532588
136
0.723879
[ "MIT" ]
Sinthya01/Xamarin.Forms
Xamarin.Forms.Platform.UAP/TabbedPageRenderer.cs
15,861
C#
using System; using System.Windows.Media; using PassWinmenu.Utilities; using YamlDotNet.Core; using YamlDotNet.Core.Events; using YamlDotNet.Serialization; #nullable enable namespace PassWinmenu.Configuration { internal class BrushConverter : IYamlTypeConverter { public bool Accepts(Type type) { return type =...
23.129032
82
0.751743
[ "MIT" ]
P4ll/pass-winmenu
pass-winmenu/src/Configuration/BrushConverter.cs
717
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/msctf.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime.C...
46.485714
190
0.663337
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/msctf/ITfCandidateListUIElement.cs
6,510
C#
using System; using System.Diagnostics; using Xamarin.Forms; namespace TextSample { public class LabelPageCode : ContentPage { public LabelPageCode () { var layout = new StackLayout{ Padding = new Thickness (5, 10) }; layout.Children.Add (new Label { Text =...
60.047619
271
0.634946
[ "Apache-2.0" ]
772801206/xamarin-example
UserInterface/Text/TextSample/Views/LabelPageCode.cs
3,785
C#
using IL2Asm.BaseTypes; using System; namespace Plugs { public static class SystemPlugs { [AsmPlug("System.Char.ToString_String", Architecture.X86)] private static void CharToStringAsm(IAssembledMethod assembly) { assembly.AddAsm("push 12"); // 8 bytes for array metadata, t...
44.791667
125
0.568372
[ "MIT" ]
giawa/GiawaOS
RedPandaOS/Plugs/SystemPlugs.cs
5,377
C#
using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using PnP.Core.Auth.Services.B...
44.382883
150
0.520146
[ "MIT" ]
pnp/pnpscanning
src/PnP.Scanning/PnP.Scanning.Process/Program.cs
9,855
C#
using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Semmle.Extraction.CSharp.Populators { internal class DirectiveVisitor : CSharpSyntaxWalker { private readonly Context cx; ...
34.717105
110
0.615501
[ "MIT" ]
Bhagyanekraje/codeql
csharp/extractor/Semmle.Extraction.CSharp/Populators/DirectiveVisitor.cs
5,277
C#
using Auth; using Common; using BL; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace Backend.Controllers { [Authorize] [Route("api/record")] public class RecordController : Controller { private IA...
32.228571
93
0.623227
[ "MIT" ]
rostrastegaev/Directory
Directory/Backend/Controllers/RecordController.cs
2,258
C#
using System; using System.Collections.Generic; using System.Linq; using Accord.Extensions.Math; using Accord.Math; using Accord.Math.Optimization; using QuantConnect; using QuantConnect.Algorithm; using QuantConnect.Data; using QuantConnect.Data.Consolidators; using QuantConnect.Data.Market; using QuantConnect.Indica...
38.132013
139
0.543362
[ "MIT" ]
AnTeater-dev/Quant_HighFrequencyTrading_
Strategies C#/VolatilityAlgorithm.cs
11,556
C#
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using JsonSubTypes; using Newtonsoft.Json; using Bitmovin.Api.Sdk.Common; using Bitmovin.Api.Sdk.Models; namespace Bitmovin.Api.Sdk.Models { /// <summary> /// AnalyticsGreaterThanFilter /// </summ...
23.642857
69
0.669184
[ "MIT" ]
bitmovin/bitmovin-api-sdk-dotnet
src/Bitmovin.Api.Sdk/Models/AnalyticsGreaterThanFilter.cs
662
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
36.941909
121
0.536224
[ "MIT" ]
belav/runtime
src/tests/JIT/HardwareIntrinsics/X86/Avx/AndNot.Double.cs
26,709
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.Collections.Generic; using Microsoft.EntityFrameworkCore.Diagnostics; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.E...
36.016949
111
0.610353
[ "Apache-2.0" ]
0b01/efcore
src/EFCore/Storage/IDatabaseFacadeDependencies.cs
2,125
C#
using System.Runtime.CompilerServices; namespace OpenMLTD.MilliSim.Core { /// <summary> /// Caller helper constants. /// </summary> internal static class CallerHelper { /// <summary> /// An empty string for <see cref="CallerMemberNameAttribute"/>. /// </summary> public ...
22.375
72
0.606145
[ "MIT" ]
hozuki/MilliSim
src/OpenMLTD.MilliSim.Runtime/Core/CallerHelper.cs
358
C#
using Unity.Entities; using Unity.Physics; namespace $rootnamespace$ { public struct $safeitemname$<T> : ICollector<T> where T : struct, IQueryResult { public bool EarlyOutOnFirstHit => false; public float MaxFraction => 1f; public int NumHits { get; private set; } /// T...
30.06
119
0.594145
[ "MIT" ]
osobeso/Unity-DOTS-VS-Templates
src/Templates/HitCollector/GenericHitCollector.cs
1,505
C#
using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using UnityEditor; using UnityEngine; using UnityEngine.Profiling; namespace Wanderer.GameFramework { [CustomModuleEditor("FSM Module", 0.141f, 0.408f, 0.635f)] public class FSModuleEditor : ModuleE...
39.453237
113
0.470642
[ "MIT" ]
coding2233/UnityGameFramework
Editor/GameMode/Module/FSModuleEditor.cs
5,560
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Routing; using System.Web.Mvc; namespace LineBotSDK { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pa...
25.086957
99
0.587522
[ "MIT" ]
jackru6g6/LineBot
LineBotSDK/App_Start/RouteConfig.cs
579
C#
using System; using System.Buffers; using System.Collections.Generic; using System.IO; using System.IO.Pipelines; using System.Net.Http; using System.Net.Http.QPack; using System.Reflection; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; using Microsoft.AspNetCore.Connections; us...
39.788679
191
0.608498
[ "Apache-2.0" ]
DavidKlempfner/aspnetcore
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3TestBase.cs
21,088
C#
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Jobs; namespace BenchmarkDotNet.Samples.Other { // Math.Sqrt method uses different ASM instruction of different JIT versions: // LegacyJit x86: fsqrt (FPU) // LegacyJit x64: sqrtsd (SSE2) // RyuJIT x64: vsqrtsd (AVX...
33.321429
126
0.658092
[ "MIT" ]
ivandrofly/BenchmarkDotNet
samples/BenchmarkDotNet.Samples/Other/Math_DoubleSqrt.cs
935
C#
using System; using System.Reflection; namespace YamlDotNet.Serialization { /// <summary> /// A simple container for <see cref="PropertyInfo"/> and <see cref="MemberInfo"/>, exposing some common methods /// for both types. /// </summary> internal sealed class PropertyOrField { public Prop...
32.270968
116
0.4996
[ "MIT" ]
hozuki/YamlDotNet.DataContract
YamlDotNet.DataContract/PropertyOrField.cs
5,004
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 BenchmarkDotNet.Attributes; using MicroBenchmarks; using System.Threading.Tasks; namespace System.Threading....
34.660377
166
0.661404
[ "MIT" ]
Cosifne/performance
src/benchmarks/micro/libraries/System.Threading/Perf.CancellationToken.cs
1,839
C#
using System; using OpenQA.Selenium; using Xunit.Gherkin.Quick; namespace bdd_tests { public abstract partial class TestBase : Feature, IDisposable { [And(@"I request a temporary change to hours of sale")] public void TemporaryChangeToHoursOfSale() { /* Page Ti...
30.970588
95
0.596391
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
functional-tests/bdd-tests/TestBaseTemporaryChangeToHoursOfSale.cs
2,108
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.Collections; using System.Collections.Generic; using Bridge.ClientTest.Collections.Generi...
32.066667
128
0.584389
[ "Apache-2.0" ]
Drake53/CSharp.lua
test/BridgeNetTests/Batch1/src/Collections/Generic/SortedDictionary/SortedDictionary.Tests.cs
5,291
C#
using Aurora.Profiles; using CSScriptLibrary; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.IO; using System.Threading; namespace Aurora.Devices { public class DeviceContainer { public Device Devi...
37.061453
159
0.489901
[ "MIT" ]
boristomas/Aurora
Project-Aurora/Project-Aurora/Devices/DeviceManager.cs
12,913
C#
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Unleashed Mod Manager")] [assembly: AssemblyDescription("Unleashed Mod Manager")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Unleashed Mod Manager")] [assembly: AssemblyCopyr...
38.125
78
0.768852
[ "MIT" ]
HyperPolygon64/Unleashed-Mod-Manager
Unleashed-Mod-Manager/Properties/AssemblyInfo.cs
613
C#
using SimpleInjector; using XRayBuilder.Core.Config; using XRayBuilder.Core.Libraries.Bootstrap.Model; namespace XRayBuilderGUI.Config { public sealed class BootstrapConfig : IBootstrapSegment, IContainerSegment { public void Register(IBootstrapBuilder builder) { } public void ...
25.5
81
0.701525
[ "MIT" ]
Ephemerality/xray-builder.gui
XRayBuilder/src/Config/BootstrapConfig.cs
459
C#
namespace BESL.Application { using System; using System.Reflection; using AutoMapper; using MediatR; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using BESL.Application.Infrastructure; using BESL.Application.Infrastructure.AutoMapper; u...
37.40625
124
0.727652
[ "MIT" ]
SonnyRR/BESL
BESL.Application/DependencyInjection.cs
1,199
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace FacebookLoginDemo { static class Program { /// <summary> /// アプリケーションのメイン エントリ ポイントです。 /// </summary> [STAThread] static void Main() ...
21.869565
65
0.614314
[ "MIT" ]
peace098beat/Facebook-Login-Demo
FacebookLoginDemo/Program.cs
551
C#
namespace CefSharp.Puppeteer.Messaging { internal class SecurityHandleCertificateErrorResponse { public int EventId { get; set; } public string Action { get; set; } } }
19.8
57
0.666667
[ "MIT" ]
cefsharp/Puppeteer
lib/PuppeteerSharp/Messaging/SecurityHandleCertificateErrorResponse.cs
198
C#
using System; using System.Collections.Generic; using System.Data; using System.Text; namespace BusinessLogic.Entities { public interface IEntity<E> { E Construct(DataRow row); } }
15.615385
33
0.704433
[ "MIT" ]
IfElseRun/Tigerspike-Test
BusinessLogic/Entities/IEntity.cs
205
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; using System.Net.Sockets; using System.Net; namespace IPZ_Salary_System_NEW { public partial class Aut...
30.053435
128
0.605283
[ "Apache-2.0" ]
DIma-Kush/salary_system_project_2016
client/Autorization.cs
4,438
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; namespace VSX.UniversalVehicleCombat { /// <summary> /// This class provides a control script for an AI space fighter. /// </summary> public class AISpaceFighterControl : MonoBehaviour, IVehicleInput { ...
26.565401
137
0.668679
[ "MIT" ]
jackdarker/Spaceshooter1
Assets/SpaceCombatKit/Scripts/SpaceCombat/AI/AISpaceFighterControl.cs
6,298
C#
using HTTP.Enums; using System; namespace MvcFramework.Attributes.Http { public abstract class BaseHttpAttribute : Attribute { public string ActionName { get; set; } public string Url { get; set; } public abstract HttpRequestMethod Method { get; } } }
19.466667
57
0.664384
[ "MIT" ]
emilia98/CSharpWebSoftUni
C# Web Basics/10. MVC Introduction - Exercise/SIS/WebServer/Attributes/Http/BaseHttpAttribute.cs
294
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace UsbScreen { class Convert { } /// <summary> /// 打开串口 /// </summary> [ValueConversion(typeof(bool), typeof(str...
25.388889
103
0.592451
[ "Apache-2.0" ]
chenxuuu/USB-Screen
ProjectCDC/Client/UsbScreen/Convert.cs
1,864
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Applications.Containers.Models { public partial class ContainerAppLog...
39.570248
190
0.523183
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/containerapps/Azure.ResourceManager.Applications.Containers/src/Generated/Models/ContainerAppLogin.Serialization.cs
4,788
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 WardrobeApp.Models; namespace WardrobeApp.Controllers { public class BottomsController : Controller { private ClothingProjectE...
33.773723
134
0.562135
[ "Unlicense" ]
JuliePretzlaff/JavaScriptWardrobe
WardrobeApp/Controllers/BottomsController.cs
4,629
C#
using Abp.Authorization; using LLMall.Authorization.Roles; using LLMall.Authorization.Users; namespace LLMall.Authorization { public class PermissionChecker : PermissionChecker<Role, User> { public PermissionChecker(UserManager userManager) : base(userManager) { } } }
21.266667
66
0.689655
[ "MIT" ]
sunven/LLMall
aspnet-core/src/LLMall.Core/Authorization/PermissionChecker.cs
321
C#
using System; using System.Collections.Generic; using System.Linq; namespace BookLibrary { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); Library lib = new Library { Name = "bookStorage", books = ...
26.112903
79
0.409512
[ "MIT" ]
fastline32/TechModule
Objects and Classes - Exercises/05.BookLibrary/Program.cs
1,621
C#
using Starlight.Models.Core; using System; using System.Collections.Generic; using System.Text; namespace Starlight.Models { public class MapAttribute : CoreDataModel { public int X { get; set; } public int Y { get; set; } public MapAttributeType Type { get; set; } } }
19.3125
50
0.656958
[ "MIT" ]
Eclipse-Origins/Starlight
src/Starlight/Models/MapAttribute.cs
311
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using WhatSport.Domain.Models; namespace WhatSport.Infrastructure.EntityConfigurations { internal class ScoreEntityTypeConfiguration : IEntityTypeConfiguration<Score> { public void Configure(EntityTypeBuilder<S...
35.222222
129
0.695584
[ "MIT" ]
SergioMorenoFernandez/WhatSport
WhatSport.Infrastructure/EntityConfigurations/ScoreEntityTypeConfiguration.cs
636
C#
using Cake.Core; using Cake.Core.IO; using Cake.Testing; using Moq; namespace Cake.SevenZip.Tests.Fixtures; public class SevenZipAliasesFixture : SevenZipRunnerFixture { internal ICakeContext Context { get; } public SevenZipAliasesFixture() { var argumentsMoq = new Mock<ICakeArguments>(); ...
23.647059
59
0.614428
[ "MIT" ]
nils-a/Cake.7zip
src/Cake.7zip.Tests/Fixtures/SevenZipAliasesFixture.cs
804
C#
using System; namespace MeetingBlog.POOP { internal class BadDateException : Exception { public BadDateException(string message) :base(message) { } } }
18.090909
63
0.59799
[ "Apache-2.0" ]
gurmitteotia/meetings-blog
MeetingBlog/POOP/BadDateException.cs
201
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208 { using Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Runtime.PowerShell; /// <summary> /// A PowerShell PSTypeConverter to support converting to an instance of <see cref="HealthBotUpdateParameters" /> /// </summary> pu...
52.169014
249
0.588418
[ "MIT" ]
3quanfeng/azure-powershell
src/HealthBot/generated/api/Models/Api20201208/HealthBotUpdateParameters.TypeConverter.cs
7,267
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....
32.923077
85
0.522196
[ "MIT" ]
mhkarazeybek/.NET
ECommerceExample/EntityLayer/OrderDetail.cs
856
C#
using System.Collections.Generic; using System.Xml; using JetBrains.Metadata.Reader.API; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Modules; using JetBrains.ReSharper.Psi.Resolve; using JetBrains.ReSharper.Psi.Tree; using JetBrains.Util; using JetBrains.Util.DataStructures; namespace JetBrains.ReShar...
39.884615
136
0.795082
[ "Apache-2.0" ]
DedSec256/fsharp-support
ReSharper.FSharp/src/FSharp.Psi/src/Impl/DeclaredElement/FSharpDeclaredElementBase.cs
2,074
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.Collections.Generic; using System.IO; using System.Net.Test.Common; using System.Threading; using Syste...
39.824561
144
0.692952
[ "MIT" ]
Drawaes/runtime
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTestBase.cs
4,540
C#
namespace Graph { /// <summary> /// Represents a collection of SkipListNodes. This class differs from the base class - NodeList - /// in that it contains an internal method to increment or decrement the height of the SkipListNodeList. /// Incrementing the height adds a new neighbor to the list, decrem...
36.6
109
0.607338
[ "MIT" ]
xandronus/datastruct
SkipListNodeList.cs
1,281
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.243243
81
0.659889
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/BotService/V20171201/Outputs/DirectLineChannelResponse.cs
1,082
C#
using System; using System.Collections.Generic; using System.Text; namespace Pangea.Domain { /// <summary> /// Extract the country code of the phone number /// </summary> public interface ICountryCodeProvider { /// <summary> /// Return the country calling code when it can be found....
36.222222
105
0.656442
[ "MIT" ]
rubenrorije/Pangea.Domain
Pangea.Domain/ICountryCodeProvider.cs
980
C#
using WG.Entities; using Common; using System; using System.Linq; using System.Collections.Generic; namespace WG.Controllers.payment_method.payment_method_master { public class PaymentMethodMaster_PaymentMethodDTO : DataDTO { public long Id { get; set; } public string Code { get; set;...
28.815789
80
0.632877
[ "MIT" ]
blyzer/CodeGenerator
CodeGeneration/Controllers/payment-method/payment-method-master/PaymentMethodMaster_PaymentMethodDTO.cs
1,095
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated w...
42.321429
98
0.709283
[ "MIT" ]
CADindustries/viewcad_wpf
viewcad_wpf/Properties/AssemblyInfo.cs
2,373
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("Re...
38.081081
84
0.747339
[ "MIT" ]
fr0wsTyl/TelerikAcademy-2015
Telerik - C# OOP/Practicing/ReadOnlyPracticing/Properties/AssemblyInfo.cs
1,412
C#
namespace CookBeyondLimits.Data.Models { public class RecipeAllergen { public int RecipeId { get; set; } public virtual Recipe Recipe { get; set; } public int AllergenId { get; set; } public virtual Allergen Allergen { get; set; } } }
20.214286
54
0.614841
[ "MIT" ]
tAtanas0va/CookBeyondLimits
Data/CookBeyondLimits.Data.Models/RecipeAllergen.cs
285
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.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.Edi...
46.118421
174
0.722967
[ "MIT" ]
AlekseyTs/roslyn
src/EditorFeatures/Core.Wpf/Interactive/InteractiveDocumentNavigationService.cs
3,507
C#
using System.Collections.Generic; using System.Linq; using SmartValley.Domain.Entities; namespace SmartValley.WebApi.Estimates.Responses { public class ScoringCriteriaGroupResponse { public string Key { get; set; } public int Order { get; set; } public IReadOnlyCollection...
32.32
118
0.602723
[ "MIT" ]
SmartValleyEcosystem/smartvalley
SmartValley.WebApi/Estimates/Responses/ScoringCriteriaGroupResponse.cs
810
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 ...
42.538462
120
0.782399
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-live/Live/Transform/V20161101/DescribeLiveMixNotifyConfigResponseUnmarshaller.cs
1,659
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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. [a...
34.555556
78
0.734191
[ "MIT" ]
agspires/Xamarin.Android.Huawei.Hms-master
HmsNetworkCommon/Properties/AssemblyInfo.cs
934
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.Data.Entity.ChangeTracking.Internal; using Microsoft.Data.Entity.Metadata; using Moq; using Xunit; namespace Microsoft...
44.425926
130
0.667361
[ "Apache-2.0" ]
craiggwilson/EntityFramework
test/EntityFramework.Core.Tests/ChangeTracking/Internal/SimpleEntityKeyTest.cs
2,399
C#
using System; namespace ContaBancaria { public class Cliente { public Cliente() { this.Id = 0; this.Nome = ""; this.Cpf = ""; } public int Id { get; set; } public string Nome { get; set; } public string Cpf { get; set; } ...
16.25
40
0.449231
[ "MIT" ]
camilasmarques/fundamentals-OOP
ContaBancaria/Cliente.cs
327
C#
using Aiursoft.Handler.Models; using System.Collections.Generic; namespace Aiursoft.Wrapgate.SDK.Models.ViewModels { public class ViewMyRecordsViewModel : AiurProtocol { public string AppId { get; set; } public List<WrapRecord> Records { get; set; } } }
23.666667
54
0.704225
[ "MIT" ]
gaufung/Infrastructures
src/Infrastructure/Wrapgate.SDK/Models/ViewModels/ViewMyRecordsViewModel.cs
286
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities; using Microsoft.MixedReality.Toolkit.Utilities.Editor; using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Events; namespace Microsoft.MixedRe...
33.861111
163
0.581898
[ "MIT" ]
AdrianaMusic/MixedRealityToolkit-Unity
Assets/MRTK/SDK/Features/UX/Interactable/Scripts/Events/InteractableEvent.cs
3,659
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable la...
28.047619
101
0.499717
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
module/ASC.Mail.Autoreply/ASC.Mail.Core/Net/SIP/Message/SIP_t_Event.cs
5,301
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Monster : MonoBehaviour { public float ReflectAmplitude = 10; public Vector3 Reflect(Vector3 targetPosition){ if (this.gameObject.GetComponent<Life> () && this.gameObject.GetComponent<Life> ().IsDead()) { return Vecto...
26.3125
96
0.760095
[ "MIT" ]
pixel-stuff/LD41-NoName
Assets/Monster.cs
423
C#
using System.Collections; using UnityEngine; public class BloodSpatterEffect : MonoBehaviour { [SerializeField] private Texture2D bloodTexture = null; [SerializeField] private Texture2D bloodNormalMap = null; [SerializeField] [Range(0.0f, 1.0f)] private float bloodAmount = 0.0f; [SerializeField] [Rang...
31.795918
81
0.633504
[ "MIT" ]
csci4160u/examples
10b_and_11a_Interaction/Assets/Scripts/BloodSpatterEffect.cs
1,560
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using PlayEngine.Helpers; namespace librpc.Packets { public class ProcessInfoResponsePacket : IPacket { public UInt32 memorySectionsCount; public List<MemorySection> listMemorySections; public override Byte[] ...
38.542857
110
0.638251
[ "MIT" ]
berkay2578/PlayEngine
PlayEngine/Helpers/librpc/Packets/ProcessInfoResponsePacket.cs
1,351
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Linq.Expressions; using AntData.ORM; using AntData.ORM.Common; using AntData.ORM.Data; using AntData.ORM.DataProvider; using AntData.ORM.Expressions; using AntData.ORM.Extensions; using AntData.ORM.Mapping; using ...
43.481818
140
0.68064
[ "MIT" ]
yuzd/AntData.ORM
AntData/AntData.ORM/DataProvider/Oracle/OracleDataProvider.cs
19,134
C#
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the root of the repo. /* This file provides controller methods to get data from MS Graph. */ using Microsoft.Identity.Client; using System.Configuration; using System.Linq; using System.Security.Claims; using S...
39.817308
165
0.638976
[ "MIT" ]
ElizabethSamuel-MSFT/PnP-OfficeAddins
Samples/auth/Office-Add-in-ASPNET-SSO/Complete/Office-Add-in-ASPNET-SSO-WebAPI/Controllers/ValuesController.cs
4,143
C#
using OrchardCore.ContentManagement.Metadata; using OrchardCore.ContentManagement.Metadata.Settings; using OrchardCore.Data.Migration; namespace OrchardCore.Html { public class Migrations : DataMigration { IContentDefinitionManager _contentDefinitionManager; public Migrations(IContentDefinitio...
29.04
92
0.680441
[ "BSD-3-Clause" ]
AlexGuedes1986/FutbolCubano
src/OrchardCore.Modules/OrchardCore.Html/Migrations.cs
726
C#
// This class is based on NuGet's NuGetVersionFactory class from https://github.com/NuGet/NuGet.Client // NuGet is licensed under the Apache license: https://github.com/NuGet/NuGet.Client/blob/dev/LICENSE.txt using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.T...
34.608108
130
0.505467
[ "Apache-2.0" ]
BlythMeister/OctopusClients
source/Octopus.Server.Client/Model/Versioning/SemanticVersionFactory.cs
5,124
C#
using SmartTraitsDefs; namespace SmartTraits.Tests.Stage5 { [TraitInterface] interface IAddress { string Address { get; set; } string City { get; set; } string State { get; set; } string ZipCode { get; set; } string GetAddress(); } }
18.3125
36
0.576792
[ "MIT" ]
baskren/smarttraits
SmartTraits.Demo/Stage5/Interfaces/IAddress.cs
295
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Rtsp.Messages; namespace Rtsp.Messages.Tests { [TestFixture] public class RtspMessageTest { //Put a name on test to permit VSNunit to handle them. [Test] [TestCase("OP...
42.97619
151
0.701385
[ "MIT" ]
CurtHubb/SharpRTSP_Xamarin
RTSP.Tests/Messages/RTSPMessageTest.cs
1,807
C#
// <copyright> // Copyright 2013 by the Spark Development Network // // 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 b...
46.126783
207
0.579588
[ "Apache-2.0", "Unlicense" ]
ThursdayChurch/rockweb.thursdaychurch.org
Blocks/CheckIn/CheckinConfiguration.ascx.cs
58,214
C#
using System; using System.Runtime.Serialization; using System.Text.Json.Serialization; using Allocine.ExtensionMethods; namespace AlloCine { [DataContract(Name = "period")] public class Period { [JsonPropertyName("dateStart")] private string DateStartString { get { thr...
24.689655
56
0.599162
[ "Apache-2.0" ]
gromez/allocine-api
CS/AlloCineAPI/Period.cs
718
C#
#region LICENSE /* Sora - A Modular Bancho written in C# Copyright (C) 2019 Robin A. P. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License...
29.857143
76
0.724402
[ "MIT" ]
Tiller431/yes
Sora/Sora/EventArgs/BanchoEventArgs/BanchoSendUserStatusArgs.cs
1,045
C#
using Azure; using Azure.Core; using Azure.Storage; namespace Audit.AzureStorageBlobs.ConfigurationApi { public interface IAzureBlobCredentialConfiguration { /// <summary> /// The azure storage service URL /// </summary> IAzureBlobCredentialConfiguration Url(string url); ...
31.444444
92
0.664311
[ "MIT" ]
CesarSP99/Audit.NET
src/Audit.NET.AzureStorageBlobs/ConfigurationApi/IAzureBlobCredentialConfiguration.cs
851
C#