content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.IO; namespace E2eTests; [TestClass] public class TheE2eTests : E2eTest { [TestMethod] public async Task HelloWorld() { var output = await BuildAndRunAsync(nameof(HelloWorld)); Assert.AreEqual("hello world", output); } [TestMethod] public async Task M...
22.901961
71
0.63613
[ "MIT" ]
srmagura/Tungsten
E2eTests/TheE2eTests.cs
1,168
C#
using Microsoft.AspNetCore.Mvc; using ProductsArchive.Application.Common.Interfaces; using ProductsArchive.Application.Identity.Queries; namespace ProductsArchive.WebUI.Controllers; public class IdentityController : ApiControllerBase { private readonly ICurrentUserService _currentUser; public IdentityContro...
24.214286
62
0.725664
[ "MIT" ]
MatteoZampariniDev/ProductsArchive
src/WebUI/Controllers/IdentityController.cs
680
C#
// ----------------------------------------------------------------------- // <copyright file="DataSetContainer.cs" company="JetCoders Solutions"> // TODO: Update copyright text. // </copyright> // ----------------------------------------------------------------------- namespace Connections { using System.Data; //...
23.172414
75
0.501488
[ "MIT" ]
HananAbdelwahab/jewelry-inventory
JewelInventory/Connections/Objects/DataSetContainer.cs
674
C#
//------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае // повторной генерации кода. // </auto-gen...
42.208333
92
0.663376
[ "MIT" ]
Niversdack/Predzapis
obj/Debug/netcoreapp2.1/SignalR-Vuejs--Demo.AssemblyInfo.cs
1,161
C#
using System; using Windows.UI.Xaml; namespace Template10.Samples.VoiceAndInkSample.Services.SettingsServices { public partial class SettingsService { public void ApplyUseShellBackButton(bool value) { Template10.Common.BootStrapper.Current.NavigationService.Dispatcher.Dispatch(() =>...
30.466667
94
0.657549
[ "Apache-2.0" ]
ArtjomP/Template10
Samples/Voice and Ink to TextBox/Services/SettingsServices/SettingsService.Apply.cs
914
C#
using Newtonsoft.Json; namespace OutlookMatters.Core.Settings { public class ChannelSetting { [JsonProperty("id")] public string ChannelId { get; set; } [JsonProperty("display_name")] public string ChannelName { get; set; } [JsonProperty("type")] public Channe...
22.4375
52
0.62117
[ "MIT" ]
ConnectionMaster/outlook-matters
OutlookMatters.Core/Settings/ChannelSetting.cs
361
C#
namespace BugTrackingApplication { partial class ManagerDashboard { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
54.349206
120
0.660826
[ "MIT" ]
codexponent/bugtrackingapplication
BugTrackingApplication/ManagerDashboard.Designer.cs
10,274
C#
/* * Copyright 2009 Kriztian Jake Sta. Teresa * * 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 app...
31.241379
77
0.682119
[ "Apache-2.0" ]
jakelite/daemoniq
src/Daemoniq.Tests/Core/RunCommandTests.cs
906
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // 制御されます。アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更します。 [assembly: AssemblyTitle("SimplyMessageBox")] [assembly: AssemblyDescription("簡単にMessageBoxを作成できるアプリケーションです。")] [assembly: A...
31.108108
65
0.761077
[ "MIT" ]
fuyossi/SimplyMessageBox
SimplyMessageBox/Properties/AssemblyInfo.cs
1,799
C#
/* * LUSID API * * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github.c...
124.78866
16,891
0.617002
[ "MIT" ]
EiriniMavroudi/lusid-sdk-csharp-preview
sdk/Lusid.Sdk/Model/PagedResourceListOfPackage.cs
24,209
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace SolToBoogie { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using BoogieAST; using SolidityAST; public class TranslatorContext { ...
43.782101
144
0.655883
[ "MIT" ]
XinxingLiu/verisol
Sources/SolToBoogie/TranslatorContext.cs
22,506
C#
using Newtonsoft.Json; using System.IO; namespace Lava.Net { /// <summary> /// Configuration class for Lava.Net. Reads values from config.json when initialized. /// </summary> public sealed class LavaConfig { static LavaConfig() { JsonConvert.DeserializeObject<LavaConfi...
25.5
89
0.561887
[ "MIT" ]
WorkingRobot/Lava.Net
LavaConfig.cs
1,634
C#
using Microsoft.EntityFrameworkCore; using ParkyAPI.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ParkyAPI.Data { public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> opti...
21.7
99
0.725806
[ "MIT" ]
nhatvu148/Parky
ParkyAPI/Data/ApplicationDbContext.cs
436
C#
using System; using System.Collections.Generic; using System.Text; namespace DotNetCore_BeehooeServer.Model { public class ResponseBase { /// <summary> /// 状态 (0失败 1 成功) /// </summary> public string Status { set; get; } /// <summary> /// 提示信息 /// </summ...
21.40625
85
0.519708
[ "Apache-2.0" ]
shunchuan/DotNetCore_BeehooeServer
DotNetCore_BeehooeServer.Model/ResponseBase.cs
719
C#
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using IndicoV2; using IndicoV2.StrawberryShake; namespace Examples.AddDataSetFiles { public class Program { private static async Task Main() { Console.WriteLine("Adding files to the DataSet."); ...
40.25641
113
0.653503
[ "MIT" ]
IndicoDataSolutions/indico-client-csharp
Examples/Examples.AddDataSetFiles/Program.cs
1,572
C#
using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; using Dg.fifth.Authorization; using Dg.fifth.Authorization.Roles; using Dg.fifth.Authorization.Users; using Dg.fifth.Editions; using Dg.fifth.MultiTenancy; namespace Dg.fifth.Identity { public static class IdentityRegistrar {...
36.060606
79
0.658824
[ "MIT" ]
PowerDG/Dg.KMS.Web
Dg.fifth/4.8.0/aspnet-core/src/Dg.fifth.Core/Identity/IdentityRegistrar.cs
1,192
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using Whatfits.DataAccess.DTOs; using Whatfits.DataAccess.DTOs.ContentDTOs; using Whatfits.DataAccess.DTOs.CoreDTOs; using Whatfits.Models.Context.Content;...
40.244361
104
0.478842
[ "MIT" ]
apham42/WhatFits
server/Whatfits.Gateways/Gateways/ContentGateways/FollowsGateway.cs
10,707
C#
// <auto-generated /> using System; using Cican_Micro.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Cican_Micro.Migrations { [DbContext(typeof(Appli...
34.579365
125
0.485311
[ "MIT" ]
maximefalardeau/Cican_Micro
Cican_Micro/Data/Migrations/ApplicationDbContextModelSnapshot.cs
8,716
C#
using System; using FluentNHibernate.Mapping; using QS.Test.TestApp.Domain; namespace QS.Test.TestApp.HibernateMapping { public class Document2Map : ClassMap<Document2> { public Document2Map() { Id(x => x.Id); Map(x => x.Date); } } }
14.823529
48
0.690476
[ "Apache-2.0" ]
Art8m/QSProjects
QS.LibsTest/TestApp/HibernateMapping/Document2Map.cs
254
C#
namespace PublicProfile.UserRegistration.Storage { using Microsoft.AspNet.Identity; using System.Threading.Tasks; public class UserStore : IUserStore<User> { private readonly IUserDataStorage userDataStorage; public UserStore(IUserDataStorage storage) { this.userDa...
24.772727
71
0.601835
[ "MIT" ]
enata/PublicProfile
PublicProfile.UserRegistration.Storage/UserStore.cs
1,092
C#
using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Net; namespace xperdex.classes.UpdateService { static public class EventListener { static List<EventWatcher> watchers = new List<EventWatcher>(); public class EventWatcher { public dele...
21.731343
76
0.650412
[ "MIT" ]
d3x0r/xperdex
xperdex.peer_events/UpdateService/EventListener.cs
1,456
C#
using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Training20201015.Algorithms; using Training20201015.Collection...
24.962963
62
0.768546
[ "MIT" ]
terry-u16/AtCoder
Training20201015/Training20201015/Training20201015/Questions/QuestionD.cs
676
C#
using Groundbeef.Events; using System.Collections.Generic; using System.Globalization; using System.Threading; namespace Groundbeef.Localisation { [System.Runtime.InteropServices.ComVisible(true)] public static class ResourceManagerService { private static readonly Dictionary<string, System.Resou...
39.371429
124
0.626754
[ "MIT" ]
ProphetLamb-Organistion/Groundbeef
src/Localisation/ResourceManagerService.cs
4,136
C#
/* * @author : Blake Pell * @website : http://www.blakepell.com * @initial date : 2021-02-09 * @last updated : 2021-02-09 * @copyright : Copyright (c) 2003-2021, All rights reserved. * @license : MIT */ using System.IO; using System.Text; using Argus.Extensions;...
21.691176
69
0.453559
[ "MIT" ]
blakepell/ArgusFramework
tests/Argus.UnitTests/Extensions/StreamTests.cs
1,477
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 System; using System.ComponentModel.DataAnn...
35.4
114
0.693974
[ "Apache-2.0" ]
AxelMarquez/Ed-Fi-ODS
Application/EdFi.Ods.Api/Attributes/NoDangerousTextAttribute.cs
1,064
C#
// This source code is dual-licensed under the Apache License, version // 2.0, and the Mozilla Public License, version 1.1. // // The APL v2.0: // //--------------------------------------------------------------------------- // Copyright (C) 2007-2014 GoPivotal, Inc. // // Licensed under the Apache License, Version...
39.6
79
0.610101
[ "MIT" ]
CymaticLabs/Unity3D.Amqp
lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/projects/client/RabbitMQ.Client/src/client/events/ConnectionUnblockedEventHandler.cs
1,980
C#
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MonoEngine.core { public class JanitorAgent : AIAgent { public JanitorAgent(Vector2 position, float health) : base(position, health) ...
24.489796
93
0.536667
[ "MIT" ]
JoelWhittle/MonoGOAP
core/JanitorAgent.cs
1,202
C#
using UnityEngine; namespace Barebones.Logging { public class LogAppenders { public delegate string LogFormatter(Logger logger, LogLevel level, object message); public static void UnityConsoleAppender(Logger logger, LogLevel logLevel, object message) { if (logLevel <= LogL...
34.292683
106
0.516358
[ "MIT" ]
aevien/master-server-framework
Assets/Barebones/Tools/Logger/LogAppenders.cs
1,408
C#
/* Project Orleans Cloud Service SDK ver. 1.0 Copyright (c) Microsoft Corporation All rights reserved. MIT License 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, inc...
34.333333
126
0.762902
[ "MIT" ]
rikace/orleans
src/TestGrainInterfaces/ISampleStreamingGrain.cs
1,959
C#
// // MonoLinkerSupport.cs // // Author: // Martin Baulig <mabaul@microsoft.com> // // Copyright (c) 2019 Microsoft Corporation // // 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 wit...
36.448276
85
0.755913
[ "MIT" ]
xamarin/linker-optimizer
Mono.Linker.Optimizer/System.Runtime.CompilerServices/MonoLinkerSupport.cs
2,114
C#
namespace ACUnicep.Domain.Entities { public enum NivelAcesso { Aluno = 1, Professor = 2 } }
13.444444
35
0.561983
[ "MIT" ]
DaniloAlv/ACUnicep_WebAPI
ACUnicep.Domain/Entities/NivelAcesso.cs
123
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.Extensions.Logging; namespace OElite.Restme.Dapper { public enum RestmeDbQueryType { Select = 0, Insert = 10, Update = 20, Delete = 30 } public interface IRestme...
47.144444
215
0.555032
[ "MIT" ]
oelite/RESTme.Dapper
OElite.Restme.Dapper/RestmeDbQuery.cs
12,731
C#
using System; using System.Collections.Generic; using System.Text; namespace SortingAlgorithms { public interface ISort<T> where T : IComparable { void Sort(T[] array, Comparison<T> comparable); void Sort(T[] array); } }
19.615385
55
0.658824
[ "MIT" ]
Omarmtz/DataStructuresAndAlgorithms
src/Libraries/SortingAlgorithms/ISort.cs
257
C#
/* * Copyright 2010-2013 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...
40
199
0.690541
[ "Apache-2.0" ]
jdluzen/aws-sdk-net-android
AWSSDK/Amazon.StorageGateway/Model/Internal/MarshallTransformations/ShutdownGatewayResponseUnmarshaller.cs
2,960
C#
using Akka.Actor; namespace WinTail { public class ValidationActor:UntypedActor { private readonly IActorRef _consoleWriterActor; public ValidationActor(IActorRef consoleWriterActor) { _consoleWriterActor = consoleWriterActor; } protected override void OnR...
27.536585
126
0.528787
[ "Apache-2.0" ]
Quatzequatel/akka-bootcamp
src/Unit-1/DoThis/ValidationActor.cs
1,131
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; namespace src.API { public class WebApiApplication : HttpApplication { protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); } } }
17.058824
56
0.768966
[ "MIT" ]
choi4450/angular-aspnet-mvc5-boilerplate
src.API/Global.asax.cs
292
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mThink.Agents { public abstract class Predator : Agent { public static int NumberOfPredators = 0; public Predator(View view) : base(view) { } } }
17
48
0.643599
[ "MIT" ]
davidson-bruno/mThink
v2/Agents/Predator.cs
291
C#
// Copyright (c) Microsoft. 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.Globalization; using System.Linq; using Newtonsoft.Json; namespace Microsoft.CodeAnalysis.Sarif.Writers ...
39.21957
151
0.603603
[ "MIT" ]
LaudateCorpus1/sarif-sdk
src/Sarif/Writers/ResultLogJsonWriter.cs
16,435
C#
using System; using System.Collections.Generic; using Hl7.Fhir.Introspection; using Hl7.Fhir.Validation; using System.Linq; using System.Runtime.Serialization; using Hl7.Fhir.Utility; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without mod...
45.73385
179
0.586813
[ "BSD-3-Clause" ]
GinoCanessa/fhir-net-api
src/Hl7.Fhir.Core/Model/Generated/PractitionerRole.cs
35,400
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 Project1_1 { public partial class frmStopWatch : Form { public f...
25.94
66
0.579029
[ "MIT" ]
Craftycoolgamer/Programs
Stopwatch/Project1-1/Form1.cs
1,299
C#
using System; using System.Collections.Generic; namespace _1._Reverse_Strings { class Program { static void Main(string[] args) { string input = Console.ReadLine(); Stack<char> reversed = new Stack<char>(); for (int i = 0; i < input.Length; i++) ...
20.923077
53
0.46875
[ "MIT" ]
MDeyanov/SoftUni
C#Advanced/Stacks and Queues - Lab/1. Reverse Strings/Program.cs
546
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
36.626374
141
0.663366
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/Route53Resolver/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs
3,333
C#
using Application.Common.Interfaces; using Application.Common.Models; using MediatR; namespace Application.Features.UrlItems; public class DeleteUrlItemCommand : IRequest<CQRSResponse> { public string Id { get; set; } } public class DeleteUrlItemCommandHandler : IRequestHandler<DeleteUrlItemCommand, CQRSRespons...
30.705882
109
0.727011
[ "Apache-2.0" ]
andrewtomas/url-shortener
backend/Application/Features/UrlItems/DeleteUrlItem.cs
1,046
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...
29.426667
109
0.618487
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/SecurityHub/Generated/Model/GetInsightsResponse.cs
2,207
C#
/* Copyright 2006-2012 Stefano Chizzolini. http://www.pdfclown.org Contributors: * Stefano Chizzolini (original code developer, http://www.stefanochizzolini.it) This file should be part of the source code distribution of "PDF Clown library" (the Program): see the accompanying README files for more info. ...
31.986755
118
0.648033
[ "Apache-2.0" ]
XoriantOpenSource/PDFClown
dotNET/pdfclown.lib/src/org/pdfclown/objects/PdfDate.cs
4,830
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...
27.697674
109
0.617128
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Insights/V20180901/Outputs/VoiceReceiverResponse.cs
1,191
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.Collections.Immutable; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.Code...
40.908163
167
0.64006
[ "MIT" ]
BrianFreemanAtlanta/roslyn
src/Analyzers/Core/Analyzers/RemoveRedundantEquality/AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs
4,011
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26 { using HL7; /// <summary> /// NMR_N01_CLOCK_AND_STATS_WITH_NOTES_ALT (Group) -...
23.363636
104
0.5107
[ "Apache-2.0" ]
ahives/Machete
src/Machete.HL7Schema/V26/Groups/NMR_N01_CLOCK_AND_STATS_WITH_NOTES_ALT.cs
1,028
C#
using ShellSampleApp.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ShellSampleApp.Services { public class MockDataStore : IDataStore<Item> { readonly List<Item> items; public MockDataStore() { items = new...
35.6
126
0.578184
[ "MIT" ]
runceel/Xamarin.Forms-Shell-Android-BackButtonBehavior
src/ShellSampleApp/ShellSampleApp/ShellSampleApp/Services/MockDataStore.cs
2,138
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
34.483871
151
0.582788
[ "MIT" ]
sprtn/ProjectCerberus
Book of Spells/Properties/Settings.Designer.cs
1,071
C#
using System.Collections.Generic; using RayTracingLearning.RayTracer.Math; namespace RayTracingLearning.RayTracer.Materials { public class Lambertian : Material { #region constructors public Lambertian(Color albedo) : base(albedo, 0) { } #endregion #regi...
32
129
0.615179
[ "MIT" ]
windsmoon/RayTracingLearning
RayTracingLearning/Assets/RayTracingLearning/Scripts/RayTracer/Materials/Lambertian.cs
1,120
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using AdaptiveExpressions; using Antlr4.Runtime; using Antlr4.Runtime.Misc...
39.328402
171
0.538291
[ "MIT" ]
ZachT1711/botbuilder-dotnet
libraries/Microsoft.Bot.Builder.LanguageGeneration/Expander.cs
26,588
C#
using Newtonsoft.Json.Linq; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; using System.Text.RegularExpressions; namespace N_m3u8DL_CLI { class Parser { struct Audio { public string Name; ...
44.775225
198
0.426774
[ "MIT" ]
FusselTeddy/N_m3u8DL-CLI
N_m3u8DL-CLI/Parser.cs
46,186
C#
using System; using System.Threading; using System.Threading.Tasks; namespace Fluxor.Extensions { public static class SpinLockExtensions { public static void ExecuteLocked(this SpinLock spinLock, Action callback) { if (callback == null) throw new ArgumentNullException(nameof(callback)); bool lockTake...
18
90
0.655556
[ "MIT" ]
DarthKurt/Fluxor
Source/Fluxor/Extensions/SpinLockExtensions.cs
902
C#
using MassTransit; using MassTransit.Azure.ServiceBus.Core; using MassTransit.ConsumeConfigurators; using System; namespace Kros.MassTransit.AzureServiceBus.Endpoints { /// <summary> /// Class representing Azure service bus endpoint. /// </summary> public abstract class Endpoint { /// <sum...
40.568627
110
0.645723
[ "Unlicense" ]
kubinko/AzureServiceBusDemo
Kros.MassTransit.AzureServiceBus/Endpoints/Endpoint.cs
2,071
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace JoyOI.OnlineJudge.Models { /// <summary> /// Sub judge status. /// </summary> public class SubJudgeStatus { /// ...
28.529412
65
0.530309
[ "MIT" ]
JoyOI/OnlineJudge
src/JoyOI.OnlineJudge.Models/SubJudgeStatus.cs
2,427
C#
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using Storage.Net.Blobs; using Xunit; namespace Storage.Net.Tests.Integration.Blobs { public class AzureBlobStorageFixture : BlobFixture { public AzureBlobStorageFixture() : base("testcontainer/") {...
26.257778
140
0.67671
[ "MIT" ]
MoimHossain/storage
test/Storage.Net.Tests.Integration/Trio/BlobTest.Variations.cs
5,910
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
59.383394
219
0.684425
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ComprehendMedical/Generated/_netstandard/IAmazonComprehendMedical.cs
48,635
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 System.Data.SqlClient; using System.Linq; using Microsoft.EntityFrameworkCore.TestUtilities; using Microsoft.EntityFrameworkCore.Tes...
36.600985
170
0.538291
[ "Apache-2.0" ]
austindrenski/EntityFrameworkCore
test/EFCore.SqlServer.FunctionalTests/Query/DbFunctionsSqlServerTest.cs
14,860
C#
using PostSharp.Aspects; using PostSharp.Aspects.Advices; using System; using System.Linq; using System.Reflection; using System.Windows.Forms; using FP.PostSharpSamples.BL; namespace FP.PostSharpSamples.UI.Controls { [Serializable] public class IncludeAdditionalControlAspectPS4 : InstanceLevelAspect { ...
38.703704
119
0.579904
[ "MIT" ]
fpommerening/PostSharpSamples
UiManipulation/FP.PostSharpSamples.UI.Controls/IncludeAdditionalControlAspectPS4.cs
2,092
C#
namespace WindowsFormsApp1 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
42.606742
161
0.591245
[ "MIT" ]
albertocc/Mano
Mano/Form.Designer.cs
3,794
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 may ...
41.392857
114
0.661777
[ "CC0-1.0" ]
10088/ignite
modules/platforms/dotnet/Apache.Ignite.Core/Client/Services/IServicesClient.cs
2,318
C#
using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.PortableExecutable; using ICSharpCode.Decompiler.Metadata; namespace ICSharpCode.Decompiler.Tests { sealed class TestAssemblyResolver : UniversalAssemblyResolver { readonly HashSet<stri...
31.645161
143
0.792049
[ "MIT" ]
LingxueFreeLab/ILSpy
ICSharpCode.Decompiler.Tests/TestAssemblyResolver.cs
983
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GenerateOthersBackground : MonoBehaviour { public int range = 4; public GameObject background1; public GameObject background2; public GameObject background3; public GameObject background4; void start (){ Instantiate...
23.102564
73
0.712542
[ "MIT" ]
DigitaruCamera/DNL
Danmaku_No_Loli_2018/Assets/Scripts/3DBackground/GenerateOthersBackground.cs
903
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: AssemblyTitle("SnakeGame")] [assembly: AssemblyDescripti...
38.6
84
0.740933
[ "MIT" ]
ABGEO07/snake-game
SnakeGame/Properties/AssemblyInfo.cs
1,354
C#
using System.Threading.Tasks; using System.Collections.Generic; using Refit; namespace Appmilla.Moneyhub.Refit.Identity { public interface IPayees { /// <summary> /// Retrieve all payees created by an API client /// </summary> /// <param name="limit">The total number of records...
40.717949
217
0.623426
[ "MIT" ]
Appmilla/moneyhub-api-client
Moneyhub.ApiClient/Moneyhub.ApiClient/Identity/Apis/Payees.cs
1,590
C#
// <auto-generated /> using System; using BookShop.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace BookShop.Data.Migrations { [DbContext(typeof(Applic...
36.654762
125
0.437949
[ "MIT" ]
SvetoslavIT/BookShop
Data/BookShop.Data/Migrations/ApplicationDbContextModelSnapshot.cs
27,713
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...
27.1
118
0.601476
[ "Apache-2.0" ]
tap4fun/aws-sdk-net
sdk/src/Services/ApplicationInsights/Generated/AmazonApplicationInsightsConfig.cs
2,168
C#
using App.Domain.Entidades; using App.Domain.ObjetosDeValor; using App.Forms.Enum; using App.Forms.Forms.Dialog; using App.Forms.Forms.Pesquisa; using App.Infra; using App.Infra.Repositorios; using System; using System.Windows.Forms; namespace App.Forms.Forms.Cadastro { public partial class FormCadastroVeiculo : ...
38.736077
310
0.547318
[ "MIT" ]
toandriottibertoni/despachante-veiculos
App/App.Forms/Forms/Cadastro/FormCadastroVeiculo.cs
16,005
C#
using System.Net.Http; using System.Security.Claims; using System.Web.Http; using Microsoft.Owin.Security; using Web.Constants; namespace Web.Controllers { [Authorize, Route(RoutePatterns.Token, Name = RouteNames.Token)] public sealed class TokenController : ApiController { public IHttpActionRes...
32.244444
99
0.620951
[ "MIT" ]
akornatskyy/oauth2-social-net
src/Web/Controllers/TokenController.cs
1,453
C#
//----------------------------------------------------------------------- // <copyright file="MemberAliasPropertyInfo.cs" company="Sirenix IVS"> // Copyright (c) 2018 Sirenix IVS // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
52.472574
516
0.638308
[ "Apache-2.0" ]
johnbrandle/odin-serializer
OdinSerializer/Utilities/Misc/MemberAliasPropertyInfo.cs
12,438
C#
using System; using System.Threading.Tasks; using Baseline.Dates; using Jasper.Logging; using Microsoft.Extensions.Hosting; namespace Jasper.Tracking { public static class JasperHostMessageTrackingExtensions { internal static MessageTrackingLogger GetTrackingLogger(this IHost host) { ...
36.981481
144
0.595643
[ "MIT" ]
JasperFx/jasper
src/Jasper/Tracking/JasperHostMessageTrackingExtensions.cs
3,994
C#
using System; using AsmResolver.DotNet.Code; using AsmResolver.DotNet.Code.Cil; using AsmResolver.PE.DotNet.Cil; using AsmResolver.PE.DotNet.Metadata.Tables; using AsmResolver.PE.DotNet.Metadata.Tables.Rows; namespace AsmResolver.DotNet.Serialized { /// <summary> /// Provides a default implementation of a <see...
37.897959
137
0.561659
[ "MIT" ]
Anonym0ose/AsmResolver
src/AsmResolver.DotNet/Serialized/DefaultMethodBodyReader.cs
1,857
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.AppCenter.Ingestion.Models; using Newtonsoft.Json; namespace Microsoft.AppCenter.Crashes.Ingestion.Models { /// <summary> /// Abstract error log. /// </summary> public class AbstractErrorLog...
39.952703
543
0.595129
[ "MIT" ]
AndreiShilkin/AppCenter-SDK-DotNet
SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.Windows.Shared/Ingestion/Models/AbstractErrorLog.cs
5,913
C#
// Needed for NET35 (ThreadLocal) #if TARGETS_NET || GREATERTHAN_NETCOREAPP11 using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Theraot.Reflection; using Theraot.Threading.Needles; namespace Theraot.Threading { [DebuggerDisplay("IsValueCreated={IsValueCreate...
28.378238
98
0.494614
[ "MIT" ]
Terricide/Theraot
Framework.Core/Theraot/Threading/NoTrackingThreadLocal.cs
5,479
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace Komodex.Common.SampleData { #if DEBUG public static class SampleDataHelper { private readonly static Random _random = new Random(); private readonly static string[] _words =...
40
1,439
0.561968
[ "MIT" ]
misenhower/WPRemote
CommonLibraries/UniversalLibraries/Komodex.Common/SampleData/SampleDataHelper.cs
7,522
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
36.149425
153
0.59682
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/UserWipeManagedAppRegistrationByDeviceTagRequest.cs
3,145
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml...
39.095588
126
0.611435
[ "Apache-2.0" ]
aliozgur/xamarin-forms-book-samples
Chapter23/EmailValidationConv/EmailValidationConverter/EmailValidationConverter.WinPhone/App.xaml.cs
5,317
C#
using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Kodj.Api.Controllers { [Route("status")] public class StatusController: Controller { [AllowAnonymous] [HttpGet] ...
18.857143
45
0.643939
[ "MIT" ]
kodj/kodj
src/Kodj.Api/Controllers/StatusController.cs
398
C#
using System; using Xunit; namespace Avalonia.GameStudio.Presentation.Internal { public class TimeSpanBoxesTest { [Fact] public void MaxValueBox_should_return_MaxValue() { // Act var value = (TimeSpan)TimeSpanBoxes.MaxValueBox; // Assert ...
25.41791
61
0.531415
[ "MIT" ]
Kryptos-FR/Avalonia.GameStudio
tests/Avalonia.GameStudio.Presentation.Tests/Internal/TimeSpanBoxesTest.cs
1,705
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BepInEx; using HarmonyLib; using SideLoader; using UnityEngine; using SharedModConfig; namespace ProtectionBubble { [BepInPlugin(GUID, NAME, VERSION)] public class ProtectionBubbleMod : BaseUnityPlugin { pu...
33.567308
120
0.466628
[ "MIT" ]
Daimyo21/Outward-Mods
! Small Mods/ProtectionBubble/ProtectionBubble/ProtectionBubbleMod.cs
3,493
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ArmaforcesMissionBotWeb.HelperClasses { public class AccessTokenResponse { public string access_token; public string token_type; public string expires_in; public string re...
21.764706
47
0.716216
[ "MIT" ]
ArmaForces/Boderator
ArmaforcesMissionBotWeb/HelperClasses/AccessTokenResponse.cs
372
C#
namespace TasteIt.Web { using System.Reflection; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Infrastructure.Mapping; public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { // custo...
30.461538
70
0.656566
[ "MIT" ]
marianamn/TasteIt
TasteIt/Web/TasteIt.Web/Global.asax.cs
794
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; using System.Text; using System.Globalization; using System.Diagnostics.Contracts; namespace System.IO { /// <s...
32.639344
126
0.681567
[ "MIT" ]
FiveTimesTheFun/corefx
src/System.IO.FileSystem/src/System/IO/__Error.cs
1,991
C#
using System.Collections.Generic; using System.Threading.Tasks; using DataBase.Entities; using DataBase.Interfaces; using Microsoft.Extensions.DependencyInjection; namespace Core.Module.CharacterData { public class CharacterList { private readonly ICharacterRepository _characterRepository; ...
40.506024
109
0.570791
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dr3dd/L2Interlude
Core/Module/CharacterData/CharacterList.cs
3,364
C#
using System; using System.Runtime.InteropServices; using System.Collections.Generic; using BulletSharp.Math; using static BulletSharp.UnsafeNativeMethods; namespace BulletSharp { public class ConvexHullShape : PolyhedralConvexAabbCachingShape { private Vector3Array _unscaledPoints; public ConvexHullShape() {...
23.732759
123
0.732655
[ "Apache-2.0" ]
xtom0369/BulletPhysicsForUnity
BulletSharpPInvoke/BulletSharp/Collision/ConvexHullShape.cs
2,753
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace Linguistics.Core { /// <summary> /// Предложение /// </summary> [Serializable] public class Sentence : ISerializerToRDF { /// <summary> /// Подпредложения в виде списка /// </summary> ...
27.459184
99
0.709402
[ "MIT" ]
elzin/SentimentAnalysisService
Sources/Core/csharp/Linguistics.Core/TextHierarchy/Sentence.cs
3,093
C#
#nullable disable using System.Text.RegularExpressions; namespace NadekoBot.Modules.Music.Resolvers; public class RadioResolver : IRadioResolver { private readonly Regex _plsRegex = new("File1=(?<url>.*?)\\n", RegexOptions.Compiled); private readonly Regex _m3URegex = new("(?<url>^[^#].*)", RegexOptions.Comp...
31.308333
118
0.483098
[ "MIT" ]
StefanPuia/nadeko
src/NadekoBot/Modules/Music/_Common/Resolvers/RadioResolveStrategy.cs
3,759
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(AudioSource))] public class ClipHandler : MonoBehaviour { [SerializeField] int m_ID; [SerializeField] bool b_PitchRandom = true; [SerializeField] bool b_PlayInWorld = true; [SerializeField] AudioSo...
26.411765
104
0.648849
[ "MIT" ]
IvanCKP/HELLDIVERS_Like
HellDivers_UnityProject/Assets/Scripts/Audio/ClipHandler.cs
1,349
C#
// RESTComponent // RESTComponent.RTComponent.Configuration // ComponentConfiguration.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; namespace RESTComponent.RTComponent.Conf...
24.561644
137
0.493586
[ "MIT" ]
rachwal/RTM-REST-API
RESTComponent.RTComponent.Configuration/ComponentConfiguration.cs
1,795
C#
using System; using System.Linq; namespace Dictator.Core.Services { /// <summary> /// Provides functionality related to the presidential decision mechanic. /// </summary> public class DecisionService : IDecisionService { private Decision[] decisions; private readonly IAccountSe...
52.784722
169
0.629259
[ "MIT" ]
sfvicente/Dictator
Src/Dictator.Engine/Services/DecisionService.cs
7,603
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. [...
39.880952
85
0.739104
[ "Apache-2.0" ]
Pkirugu/xamarin-recipes
android/other_ux/fragment/select_a_date_in_a_fragment/DatePickerDialog/Properties/AssemblyInfo.cs
1,678
C#
using LibraryApp.Models; using System.Collections.Generic; namespace LibraryApp.Services { public interface IFilteringService { IList<Book> FilterBooks(string filteringArg); } }
19.9
53
0.738693
[ "MIT" ]
deividasbagdanskis/visma-internship-2021
LibraryApp/Services/IFilteringService.cs
201
C#
namespace CodingMilitia.PlayBall.GroupManagement.Web.Models { public class GroupModel { public long Id { get; set; } public string Name { get; set; } } }
22.625
59
0.635359
[ "MIT" ]
aspnetcorefromzerotooverkillorg/GroupManagement
src/CodingMilitia.PlayBall.GroupManagement.Web/Models/GroupModel.cs
181
C#
namespace Api { public class Options { public string StorageConnectionString { get; set; } public string FullImageContainerName { get; set; } public string ThumbnailImageContainerName { get; set; } } }
21.818182
63
0.65
[ "MIT" ]
23dproject/AZ-204-DevelopingSolutionsforMicrosoftAzure
Allfiles/Labs/01/Starter/API/Options.cs
242
C#
using ENode.Domain; using ENode.EQueue; namespace ENode.Tests { public class DomainExceptionTopicProvider : AbstractTopicProvider<IDomainException> { public override string GetTopic(IDomainException source) { return "DomainExceptionTopic"; } } }
21.142857
87
0.685811
[ "MIT" ]
Caskia/enode
src/ENode.Tests/Providers/DomainExceptionTopicProvider.cs
298
C#
using System; public class Pet { private string name; private int age; private string kind; public Pet(string name, int age, string kind) { this.Name = name; this.Age = age; this.Kind = kind; } public string Name { get => name; set => name = value; } public in...
22.041667
60
0.561437
[ "MIT" ]
tanyta78/CSharpOOPAdv
03_IteratorsAndComparators/PetClinic/Pet.cs
531
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Game.Rulesets.Objects.Types; using ...
34.193277
143
0.574343
[ "MIT" ]
Dragicafit/osu
osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/SnakingSliderBody.cs
3,953
C#
// <copyright file="ItemCraftAction.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> namespace MUnique.OpenMU.GameLogic.PlayerActions.Items { using System; using System.Collections.Generic; using System.Linq; u...
37.954545
149
0.630339
[ "MIT" ]
CodeKJ/OpenMU
src/GameLogic/PlayerActions/Items/ItemCraftAction.cs
2,507
C#
using System.Reflection; using BridgeRpc.AspNetCore.Router.Abstraction; namespace BridgeRpc.AspNetCore.Router.Basic { public class RpcMethod : IRpcMethod { public MethodInfo Prototype { get; set; } public RpcController Controller { get; set; } } }
25.090909
53
0.713768
[ "MIT" ]
zhshize/BridgeRpcAspNetCore
src/BridgeRpc.AspNetCore.Router/Basic/RpcMethod.cs
276
C#