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.Windows; using System.Windows.Controls; namespace HidWizards.UCR.Views.Controls.Plugin { class PluginViewTemplateSelector : DataTemplateSelector { public DataTemplate PluginTemplate { get; set; } public Window Window { get; set; } public PluginViewTemplateSelector() ...
29.454545
107
0.598765
[ "MIT" ]
INCENDE/UCR
UCR/Views/Controls/Plugin/PluginViewTemplateSelector.cs
974
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; namespace TaskList.Core { public class BaseViewModel : INotifyPropertyChanged { string _title = ""; public string Title { get => _title; set => Set...
27.512195
136
0.613475
[ "MIT" ]
Azure-Samples/azure-cosmos-db-mongodb-xamarin-getting-started
src/TaskList.Core/ViewModels/BaseViewModel.cs
1,130
C#
using Ryujinx.Graphics.Shader.IntermediateRepresentation; using Ryujinx.Graphics.Shader.Translation; using System; using System.Collections.Generic; using System.Numerics; namespace Ryujinx.Graphics.Shader.StructuredIr { static class StructuredProgram { public static StructuredProgramInfo MakeStructure...
35.490826
127
0.482099
[ "MIT" ]
Andoryuuta/Ryujinx
Ryujinx.Graphics.Shader/StructuredIr/StructuredProgram.cs
15,474
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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Runtime.InteropServices; using Microsoft.CodeAna...
33.473799
161
0.564347
[ "Apache-2.0" ]
Unknown6656/roslyn
src/Compilers/CSharp/Portable/Symbols/FieldSymbol.cs
15,333
C#
// This file isn't generated, but this comment is necessary to exclude it from StyleCop analysis. // For more info see: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2108 // <auto-generated/> using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Alba.CsConsoleFormat...
51.820513
118
0.699654
[ "MIT" ]
nseedio/nseed
lab/SeedingWeedingOutAndDestroyingStartup/NSeed/ThirdParty/CsConsoleFormat/Formatting/ColorMaps.cs
2,021
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using OnlineBankingApp.Data; namespace OnlineBankingApp.Migrations { [DbContext(...
34.743523
95
0.436955
[ "MIT" ]
JWilh/ASP.NET-Core-Secure-Coding-Cookbook
Chapter07/disabled-security-features/after/OnlineBankingApp/Migrations/20210220071509_CreateIdentitySchema.Designer.cs
13,413
C#
using System; using Newtonsoft.Json; using System.Xml.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AlipayUserCharityForestSendModel Data Structure. /// </summary> [Serializable] public class AlipayUserCharityForestSendModel : AlipayObject { ///...
25.035714
64
0.531384
[ "MIT" ]
Aosir/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayUserCharityForestSendModel.cs
1,514
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace SuperGlue.Web.Assets { public static class GenericEnumerableExtensions { public static bool IsEqualTo<T>(this IEnumerable<T> actual, IEnumerable<T> expected) { ...
30.071429
94
0.568171
[ "MIT" ]
MattiasJakobsson/Jajo.Web
src/SuperGlue.Web.Assets/GenericEnumerableExtensions.cs
2,107
C#
namespace ESFA.DC.ILR.Model.Interface { public interface ILearnerHEFinancialSupport { long? FINTYPENullable { get; } long? FINAMOUNTNullable { get; } } }
20.333333
47
0.650273
[ "MIT" ]
SkillsFundingAgency/DC-ILR-1718-Model
src/ESFA.DC.ILR.Model.Interface/ILearnerHEFinancialSupport.cs
185
C#
using System.IO; using System; using System.Diagnostics; using Aspose.Cells; namespace Aspose.Cells.Examples.CSharp.Articles.WorkingWithCalculationEngine { public class DecreaseCalculationTime { public static void Run() { // ExStart:1 // Test calculation time after setti...
31.3
115
0.568158
[ "MIT" ]
Aspose/Aspose.Cells-for-.NET
Examples/CSharp/Articles/WorkingWithCalculationEngine/DecreaseCalculationTime.cs
1,878
C#
using System; using System.Collections.Generic; namespace Fakultet.Models { public partial class Orgjed { public Orgjed() { InverseSifNadorgjedNavigation = new HashSet<Orgjed>(); Nastavnik = new HashSet<Nastavnik>(); Pred = new HashSet<Pred>(); } ...
29.88
86
0.623829
[ "MIT" ]
Csharp2020/csharp2020
DanijelaK/MVC/Fakultet/Fakultet/Models/Orgjed.cs
749
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/mfmediaengine.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.R...
46.404255
211
0.700138
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/mfmediaengine/IMFExtendedDRMTypeSupport.cs
2,183
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services // // Microsoft Cognitive Services (formerly Project Oxford) GitHub: // https://github.com/Microsoft/ProjectOxford-ClientS...
32.397849
103
0.613342
[ "MIT" ]
Archie-Sharma/ProjectOxford-ClientSDK
Emotion/Windows/ClientLibrary/Contract/Emotion.cs
3,015
C#
using COL.UnityGameWheels.Core; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using COL.UnityGameWheels.Core.Ioc; using UnityEditor; using UnityEngine; namespace COL.UnityGameWheels.Unity.Editor { [UnityAppEditor(typeof(EventService))] public class EventServiceIns...
36.403226
133
0.560626
[ "MIT" ]
GarfieldJiang/UnityGameWheels.Unity
Editor/Inspectors/EventServiceInspector.cs
6,773
C#
namespace MassTransit.SignalR.Consumers { using Utils; using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Threading.Tasks; using Context; public class UserBaseConsumer<THub> where THub : Hub { readonly BaseMassTransitHubLif...
30.854167
158
0.608373
[ "ECL-2.0", "Apache-2.0" ]
ArmyMedalMei/MassTransit
src/MassTransit.SignalR/Consumers/UserBaseConsumer.cs
1,483
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Component...
41.349057
168
0.531599
[ "Apache-2.0" ]
pfpayments/csharp-sdk
src/PostFinanceCheckout/Model/HumanUserUpdate.cs
8,766
C#
namespace WeakReferenceExample { public class CustomWindow { public string WindowName { get; set; } public void OnProgramClosed(object? sender, EventArgs e) { Console.WriteLine($"{WindowName} is detected that the program is closed"); } } public class Progra...
29.606936
113
0.490043
[ "MIT" ]
serhatzor/Medium
Medium/WeakReferenceExample/Program.cs
5,124
C#
using System; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Twilio; namespace starter_dotnet_core { public class Program { public static void Main(string[] args) { try { TwilioClient.Init( "sid", ...
30.34375
88
0.550978
[ "MIT" ]
MichaelSDavid/TwilioQuest-Code
Intro/twilio_cs_starter/Program.cs
973
C#
using System; using System.Collections.Generic; using System.Text; namespace VoiceBridge.Most.Directives { public class ImageDirective : IVirtualDirective { public IImage Image { get; set; } } }
18.083333
51
0.709677
[ "MIT" ]
voicebridge/most
core/src/Directives/ImageDirective.cs
219
C#
using System; using System.Web; using System.Web.UI; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Owin; using MiniVault.Models; namespace MiniVault.Account { public partial class Login : Page { protected void Page_Load(object sender, EventArgs e) { /...
41.782609
129
0.535206
[ "Apache-2.0" ]
TheArchitect123/MiniVault---XamarinForms
Cross.DataVault/MiniVault/MiniVault/Account/Login.aspx.cs
2,885
C#
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// KoubeiMarketingCampaignItemBatchqueryModel Data Structure. /// </summary> public class KoubeiMarketingCampaignItemBatchqueryModel : AlipayObject { /// <summary> /// 操作人id,...
31.347826
111
0.654646
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/KoubeiMarketingCampaignItemBatchqueryModel.cs
885
C#
using System; using System.Data; using System.IO; using System.Threading; using System.Threading.Tasks; namespace Hikari { /// <summary> /// 创建驱动连接 /// /// Create driver connection /// </summary> public abstract class PoolBase { protected static int MAX_PERMITS = 10000; ...
30.681633
163
0.480245
[ "MIT" ]
agausachs/Hikari
Hikari/Pool/PoolBase.cs
7,773
C#
using LunaCommon.Message.Types; namespace LunaCommon.Message.Data.Color { public class PlayerColorSetMsgData : PlayerColorBaseMsgData { public override PlayerColorMessageType PlayerColorMessageType => PlayerColorMessageType.Set; public string PlayerName { get; set; } public string Colo...
31.181818
100
0.728863
[ "MIT" ]
Fierce-Cat/LunaMultiPlayer
Common/Message/Data/Color/PlayerColorSetMsgData.cs
345
C#
using Pathfinding; using UnityEngine; namespace DefaultNamespace { public class Hero : MonoBehaviour { public Pathfinder pathfinder; public CellController cellController; private float _moveTimer; private void Update() { // Move toward exit door. v...
37.034483
135
0.606145
[ "MIT" ]
Rover656/FNGJ-2020
35/Assets/Scripts/Hero.cs
1,076
C#
namespace MiShotService { partial class HelperForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// ...
32.381818
107
0.54913
[ "MIT" ]
athdesk/MiShotService
MiShotService/HelperForm.Designer.cs
1,783
C#
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
40.627907
104
0.716657
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.ResourceManager.V3/Google.Cloud.ResourceManager.V3.GeneratedSnippets/OrganizationsClient.SetIamPolicyResourceNamesSnippet.g.cs
1,747
C#
using Llvm.NET.Native; namespace Llvm.NET.Instructions { public class IntToPointer : Cast { internal IntToPointer( LLVMValueRef valueRef ) : base( valueRef ) { } } }
16.928571
55
0.527426
[ "MIT" ]
m4rs-mt/Llvm.NET
src/Llvm.NET/Instructions/IntToPointer.cs
226
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SumNum { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); int sum = 0; int maxNum = int....
24.097561
67
0.427126
[ "MIT" ]
Karamihova/Programming-Basics
LoopsExcercise/SumNum/Program.cs
990
C#
// <auto-generated /> // This file was generated by a T4 template. // Don't change it directly as your change would get overwritten. Instead, make changes // to the .tt file (i.e. the T4 template) and save it to regenerate this file. // Make sure the compiler doesn't complain about missing Xml comments #pragma warni...
74.674797
259
0.68552
[ "MIT" ]
michael-lang/candor-common
Candor.Web.Mvc.Bootstrap/T4MVC.cs
18,372
C#
using System.Collections.Generic; namespace SST.Domain.Entities { public class Lector { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string AcademicStatus { get; set; } public string UserRef { get; set...
20
66
0.6
[ "Apache-2.0" ]
DthRazak/Student-Success
src/SST.Domain/Entities/Lector.cs
442
C#
using Mono.Cecil; using Mono.Cecil.Cil; using RedArrow.Argo.Extensions; using System; using System.Collections.Generic; using System.Linq; namespace RedArrow.Argo { public partial class ModuleWeaver { private void AddInitialize(ModelWeavingContext context) { // public void __argo__...
44.522876
130
0.587786
[ "MIT" ]
redarrowlabs/Argo
src/RedArrow.Argo.Fody.Shared/InitializeWeaver.cs
6,814
C#
using Microsoft.WindowsAzure.Storage.Table; using Nethereum.LogProcessing.Dynamic.Configuration; using Newtonsoft.Json; using System.Collections.Generic; namespace Nethereum.LogProcessing.Dynamic.Db.Azure.Entities { public class EventSubscriptionStateEntity : TableEntity, IEventSubscriptionStateDto { ...
28.78125
96
0.639522
[ "MIT" ]
Dave-Whiffin/Nethereum.BlockchainProcessing
src/Nethereum.LogProcessing.Dynamic.Db.Azure/Entities/EventSubscriptionStateEntity.cs
923
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.IO; using System.Text; using Microsoft.AspNetCore.Razor.Language; namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X { //...
46.52459
147
0.643058
[ "Apache-2.0" ]
AmadeusW/Razor
src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcRazorTemplateEngine.cs
2,840
C#
#region Copyright /*Copyright (C) 2015 Konstantin Udilovich 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 applicab...
29.108696
80
0.743092
[ "Apache-2.0" ]
Kodestruct/Kodestruct.Dynamo
Kodestruct.Dynamo.UI/Views/Loads/ASCE7/Wind/EnclosureTypeView.xaml.cs
1,339
C#
using System; using Microsoft.Xna.Framework; namespace Atestat2._0.Entities { public class Player : Actor { public Player(Color foreground, Color background) : base (foreground,background, '@') { Attack = 10; AttackChance = 40; Defense = 5; Defen...
21.210526
93
0.523573
[ "MIT" ]
CallMeCamus/Into-the-dungeon
Atestat2.0/Atestat2.0/Entities/Player.cs
405
C#
namespace EasyCaching.PerformanceTests { using BenchmarkDotNet.Attributes; using EasyCaching.Core; using EasyCaching.Core.Serialization; using EasyCaching.Serialization.Json; using EasyCaching.Serialization.MessagePack; using EasyCaching.Serialization.Protobuf; using Microsoft.Extensions.Op...
29.475
166
0.596551
[ "MIT" ]
appman-agm/EasyCaching
test/EasyCaching.PerformanceTests/SerializerBenchmark.cs
3,539
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Slack.Api.CSharp.WebApi.Models { using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; ...
34.341137
850
0.537787
[ "MIT" ]
JamesMarcogliese/slack-api-csharp
src/Slack.Api.CSharp/WebApi/Models/ObjsChannel.cs
10,268
C#
using Unity.Collections; using CareBoo.Burst.Delegates; using Unity.Jobs; namespace CareBoo.Blinq { public static partial class Sequence { public static int Count<T, TPredicate>( this in NativeArray<T> source, ValueFunc<T, bool>.Struct<TPredicate> predicate ...
31.632353
98
0.51046
[ "MIT" ]
CareBoo/BLinq
Packages/com.careboo.blinq/CareBoo.Blinq/NativeArray/NativeArray.Count.cs
4,304
C#
using System.Collections.Generic; using System.Threading.Tasks; using BookLovers.Base.Domain.Events; namespace BookLovers.Base.Infrastructure.Events.DomainEvents { public interface IDomainEventPublisher { Task PublishAsync<TEvent>(TEvent @event) where TEvent : IEvent; Task Publish...
26.933333
61
0.712871
[ "MIT" ]
kamilk08/BookLoversApi
BookLovers.Base.Infrastructure/Events/DomainEvents/IDomainEventPublisher.cs
406
C#
/******************************************************************************* * Copyright 2012-2019 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...
56.966767
289
0.672571
[ "Apache-2.0" ]
QPC-database/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/KinesisFirehose/Basic/Start-KINFDeliveryStreamEncryption-Cmdlet.cs
18,856
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5.Calculate_Triangle_Area { class Program { static void Main(string[] args) { double linebase = double.Parse(Console.ReadLine()); double heigh...
23.111111
76
0.625
[ "MIT" ]
tanyta78/ProgramingFundamentals
02Methods/MethodsLab/5. Calculate Triangle Area/Program.cs
626
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Lclb.Cllb.Interfaces { using Microsoft.Rest; using Models; using Newtonsoft.Json; using System.Colle...
43.061033
369
0.582425
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/Objectidadoxioleconnection.cs
9,172
C#
#region License // ================================================================================================= // Copyright 2018 DataArt, Inc. // ------------------------------------------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // ...
41.076923
100
0.525281
[ "Apache-2.0" ]
DamirAinullin/Atlas
tests/core/DataArt.Atlas.AlphaService/Communication/CommunicationType.cs
1,068
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using MySql.Data.MySqlClient; using RepoDb.Attributes; using RepoDb.DbSettings; using RepoDb.Extensions; namespace RepoDb.MySql.UnitTests.Attributes { [TestClass] public class MySqlTypeMapAttributeTest { [TestInitialize] public void Initi...
30.153846
84
0.507228
[ "Apache-2.0" ]
RepoDb/RepoDb
RepoDb.MySql/RepoDb.MySql.UnitTests/Attributes/MySqlTypeMapAttributeTest.cs
2,354
C#
namespace repeticao { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param na...
32.958904
107
0.536991
[ "MIT" ]
Joaquim1302/csharp
repeticao/repeticao/Form1.Designer.cs
2,408
C#
using System; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using Meadow.CLI.Core.NewDeviceManagement; using Microsoft.Extensions.Logging; namespace Meadow.CommandLine.Commands.FileSystem { [Command("filesystem mount", Description = "Mount the File System on the Meadow Board")]...
37.692308
120
0.679592
[ "Apache-2.0" ]
0xStuart/Meadow.CLI
Meadow.CommandLine/Commands/FileSystem/MountFileSystemCommand.cs
1,472
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, co...
40.240964
125
0.75509
[ "MIT" ]
TetradogOther/SharpDevelop
src/Main/ICSharpCode.Core.Presentation/DropDownButton.cs
3,342
C#
// <copyright file="ZipkinTraceExporterOptions.cs" company="OpenCensus Authors"> // Copyright 2018, OpenCensus 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 theLicense at // // http://www...
36.520833
104
0.653166
[ "Apache-2.0" ]
miknoj/opencensus-csharp
src/OpenCensus.Exporter.Zipkin/ZipkinTraceExporterOptions.cs
1,755
C#
using System.Threading; using Assets.Scripts.InMaze.Controllers; using Assets.Scripts.InMaze.GameElements; using Assets.Scripts.InMaze.Networking.Jsonify; using Assets.Scripts.InMaze.Networking.Jsonify.Extension; using Assets.Scripts.InMaze.Networking.UDP; using Assets.Scripts.InMaze.UI.Mapify; using UnityEngine; usin...
35.436709
95
0.499196
[ "Apache-2.0" ]
myze/Unity-App
Assets/Scripts/InMaze/Multiplayer/AbsClientController.cs
5,601
C#
using System.Linq; using Microsoft.EntityFrameworkCore; using Abp.MultiTenancy; using AbpCompanyName.AbpProjectName.Editions; using AbpCompanyName.AbpProjectName.MultiTenancy; namespace AbpCompanyName.AbpProjectName.EntityFrameworkCore.Seed.Tenants { public class DefaultTenantBuilder { private readonl...
30.377778
141
0.632772
[ "MIT" ]
ngthaiquy/abplus-zero-template
aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/EntityFrameworkCore/Seed/Tenants/DefaultTenantBuilder.cs
1,369
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager;...
56.41791
316
0.700265
[ "MIT" ]
LeszekKalibrate/azure-sdk-for-net
sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModule.cs
7,560
C#
namespace PrimeFuncPack.DependencyRegistry.Tests; public sealed partial class DependencyRegistryExtensionsTest { }
19.333333
60
0.87069
[ "MIT" ]
pfpack/early-dependency-registry
src/dependency-registry/DependencyRegistry.Tests/Tests.DependencyRegistryExtensions/DependencyRegistryExtensionsTest.cs
116
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2015 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file ...
35
163
0.654911
[ "Apache-2.0" ]
TristanTong/bbsWirelessTag
yafsrc/YAF.Types/Interfaces/Data/IDbSpecificFunctionExtensions.cs
2,178
C#
/**************************************************************************** * Copyright (c) 2019.1 liangxie * * http://qframework.io * https://github.com/liangxiegame/QFramework * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
38.82
109
0.606646
[ "MIT" ]
DiazGames/oneGame
Assets/QFramework/Framework/2.UIKit/1.UI/Editor/CodeGen/Templates/UIPanelDesignerTemplate.cs
3,882
C#
using System.Collections.Generic; namespace SFA.DAS.RoATPService.Data.Helpers { public interface ICacheHelper { List<T> Get<T>(); void Cache<T>(IEnumerable<T> dataList, int minutesToCache); void Cache<T>(IEnumerable<T> dataList); void PurgeAllCaches(); } }
23.230769
67
0.655629
[ "MIT" ]
SkillsFundingAgency/das-roatp-service
src/SFA.DAS.RoATPService.Data/Helpers/ICacheHelper.cs
302
C#
/* * The MIT License (MIT) * * Copyright (c) 2015 Alexander Taylor * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
41.526316
160
0.641825
[ "MIT" ]
PapaJoesSoup/CrewQueue
Source/Interface/SceneModule.cs
3,947
C#
namespace BECounter { partial class MainWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <par...
44.970588
142
0.593416
[ "MIT" ]
SlawomirPalewski/BECounter
BECounter/MainWindow.Designer.cs
4,589
C#
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace QD.EntityFrameworkCore.UnitOfWork.Abstractions { /// <summary> /// Repository of <see cref="TEntity"/>. /// </summary> /// <typeparam name="TEntity">The type of the entity.</typeparam> public interfac...
37
136
0.602544
[ "MIT" ]
Daniel127/EF-Unit-Of-Work
QD.EntityFrameworkCore.UnitOfWork.Abstractions/IRepository.cs
3,147
C#
namespace GMap.NET { using System; using System.Globalization; /// <summary> /// the point of coordinates /// </summary> [Serializable] public struct PointLatLng { public static readonly PointLatLng Empty = new PointLatLng(); private double lat; private double l...
23.058252
107
0.445474
[ "MIT" ]
mihaly044/ppserver-linux
src/ppnetlib/Prototypes/PointLatLng.cs
2,377
C#
using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using QIES.Api.Models; using QIES.Api.Responses; using QIES.Core.Services; using QIES.Core.Users; using static System.Net.Mime.MediaTypeNames; namespace QIES.Web.Controllers { [ApiCon...
33.043478
125
0.585197
[ "MIT" ]
OmriHarary/QIES-redux
QIES/src/QIES.Web/Controllers/UsersController.cs
3,040
C#
namespace Zsharp.Elysium.Tests { using System; using System.Buffers; using Moq; using NBitcoin; sealed class FakeTransactionPayloadSerializer : TransactionPayloadSerializer { public FakeTransactionPayloadSerializer(int transactionId) { this.StubbedDeserialize = new M...
34.416667
123
0.634383
[ "MIT" ]
firoorg/zsharp
src/Zsharp.Elysium.Tests/FakeTransactionPayloadSerializer.cs
1,652
C#
/* * Copyright (c) 2014 All Rights Reserved by the SDL Group. * * 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 appl...
31.277778
89
0.742451
[ "Apache-2.0" ]
jlaridon/ISHRemote
Source/ISHRemote/Trisoft.ISHRemote/Cmdlets/Folder/FolderCmdlet.cs
1,126
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.TestPlatform.AcceptanceTests { using System; using System.Collections.Generic; using System.Globalization; using System...
44.390625
241
0.651883
[ "MIT" ]
eerhardt/vstest
test/Microsoft.TestPlatform.AcceptanceTests/Extension/CustomDataTestMethodAttribute.cs
5,684
C#
using System; using System.Collections; using System.Windows; using System.Windows.Controls; using System.Windows.Data; namespace GongSolutions.Wpf.DragDrop { public interface IDropInfo { /// <summary> /// Gets the drag data. /// </summary> /// <remarks> /// If the drag...
35.175676
141
0.570688
[ "BSD-3-Clause" ]
AlexVance/gong-wpf-dragdrop
src/GongSolutions.WPF.DragDrop/IDropInfo.cs
5,208
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v2/enums/conversion_action_counting_type.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Go...
39.820106
342
0.714058
[ "Apache-2.0" ]
chrisdunelm/google-ads-dotnet
src/V2/Stubs/ConversionActionCountingType.cs
7,526
C#
using System; namespace Core.UserClient.Data.DB { public abstract class BaseOperationResult { public bool IsSuccessful => Exception == null; public Exception Exception { get; set; } = null; } public class EntityOperationResult : BaseOperationResult { public bool HasEntity ...
25.163636
174
0.524566
[ "MIT" ]
GitAyanC/SecurityTokenService
Core.UserClient/Data/DB/EntityOperationResult.cs
1,386
C#
using k8s.Exceptions; #if !NET5_0_OR_GREATER using Org.BouncyCastle.Crypto; using Org.BouncyCastle.OpenSsl; using Org.BouncyCastle.Pkcs; using Org.BouncyCastle.Security; using Org.BouncyCastle.X509; #endif using System; using System.IO; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certif...
34.668293
117
0.568594
[ "Apache-2.0" ]
Binyang2014/csharp
src/KubernetesClient/CertUtils.cs
7,107
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V23.Segment; using NHapi.Model.V23.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V23.Group { ///<summary> ///Represents the SRM_S10_SERVICE Group. A Group is an order...
28.238411
154
0.637899
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V23/Group/SRM_S10_SERVICE.cs
4,264
C#
using EnTTSharp.Entities.Helpers; using FluentAssertions; using NUnit.Framework; namespace EnTTSharp.Test.Helpers { public class SegmentedRawListTest { [Test] public void Validate_RawList_Enumerator_When_Empty() { SegmentedRawList<int> list = new SegmentedRawList<int>(); ...
24.521739
70
0.608156
[ "MIT" ]
RabbitStewDio/EnTTSharp
tests/EnTTSharp.Test/Helpers/SegmentedRawListTest.cs
564
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LRS.Lib { public class RobotException : Exception { public RobotException() : base() { } public RobotException(string message) : base(message) { } public Robo...
26.35
108
0.70019
[ "MIT" ]
sem-onyalo/LRS
LRS.Lib/Exceptions/RobotException.cs
529
C#
using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace LeetCode { [TestClass] public class RottingOranges { /* */ [TestM...
27.989899
92
0.395164
[ "MIT" ]
TravisTX/leetcode
LeetCode/RottingOranges.cs
2,773
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
73.081818
305
0.706431
[ "MIT" ]
AlanFlorance/azure-powershell
src/KubernetesConfiguration/generated/api/Models/Api20220301/ObjectReferenceDefinition.json.cs
7,930
C#
using System; using System.Collections.Generic; //using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; //using System.ServiceModel.Web; using System.Text; using System.IO; using System.Diagnostics; namespace WcfMtomService { // NOTE: You can use the "Rename" command on the "Refactor" ...
44.5
671
0.659925
[ "Apache-2.0" ]
Sirokujira/MicroFrameworkPK_v4_3
Framework/UnitTest/DpwsWcf/Mtom/Service/WcfMtomService/Service1.svc.cs
4,007
C#
namespace MultiLanguage { using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [ComImport, InterfaceType((short) 1), Guid("F5BE2EE1-BFD7-11D0-B188-00AA0038C969")] public interface IMLangLineBreakConsole { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=Met...
61.588235
208
0.74212
[ "Apache-2.0" ]
VahidN/SubtitleTools
3rdparty/EncodingTools/Multilang/IMLangLineBreakConsole.cs
1,047
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Skyline.Infrastructure.Data; namespace Skyline...
37.333333
125
0.531786
[ "MIT" ]
zhaobingwang/Skyline
CleanArchitecture/src/Skyline.Infrastructure/Data/Migrations/20200422065621_InitializeSkylineDbConfiguration.Designer.cs
2,802
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace LoRaWan.NetworkServer.Test { using System; using System.Collections.Generic; using LoRaWan.NetworkServer; using Xunit; public class CaseIn...
30.818505
101
0.541455
[ "MIT" ]
LauraDamianTNA/iotedge-lorawan-starterkit
LoRaEngine/test/LoRaWanNetworkServer.Test/CaseInsensitiveEnvironmentVariablesTest.cs
8,660
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace Microsoft.Data.Entity.Design.Model.Commands { using System; using System.Diagnostics; using Microsoft.Data.Entity.Design.Model.Entity; internal cl...
31.545455
145
0.608646
[ "MIT" ]
dotnet/ef6tools
src/EFTools/EntityDesignModel/Commands/DeleteAssociationCommand.cs
1,737
C#
/******************************************************************************* * Copyright 2009-2016 Amazon Services. 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 Licens...
30.043478
121
0.549204
[ "BSD-3-Clause" ]
skuvault-integrations/amazonAccess
src/AmazonAccess/Services/FBAInbound/Model/AsinList.cs
2,764
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Moq; using StoreBL; using StoreModels; using StoreMVC.Controllers; using StoreMVC.Models; using Microsoft.AspNetCore.Mvc; namespace StoreTests { public class ProductControllerTest...
33.151515
108
0.508684
[ "MIT" ]
rjhakes/Rich_Hakes-P1
StoreApp/StoreTests/ProductControllerTest.cs
2,190
C#
namespace CaliburnMicroSample.Helpers { using System.Threading.Tasks; public static class TaskHelper { #if SILVERLIGHT public static Task<T> FromResult<T>(T result) { var tcs = new TaskCompletionSource<T>(); tcs.SetResult(result); return tcs.Task; ...
23.5
81
0.609422
[ "MIT" ]
KKKKKKi/Caliburn.Micro-Sample
CaliburnMicroSample/Helpers/TaskHelper.cs
660
C#
using System.Reflection; using System.Runtime.InteropServices; using System.Security; [assembly: AssemblyTitle("Dev.DevKit.CustomApi.Test")] [assembly: AssemblyDescription("Generated by DynamicsCrm.DevKit - 2.13.33 - https://github.com/phuocle/Dynamics-Crm-DevKit")] #if DEBUG [assembly: AssemblyConfiguration("Debug")...
36.636364
125
0.772953
[ "MIT" ]
Kayserheimer/Dynamics-Crm-DevKit
test/v.2.13.33/TestUnitTest/Dev.DevKit.CustomApi.Test/Properties/AssemblyInfo.cs
809
C#
 using System; using System.Collections.Generic; namespace IngameScript { public struct RefineryType { public readonly string BlockDefinitionName; public readonly ICollection<string> SupportedBlueprints; public double Efficiency; public double Speed; pub...
24.4
92
0.598361
[ "Unlicense" ]
alex-davidson/SEScriptDev
Script.RefineryBalance.v2/RefineryType.cs
734
C#
namespace PF { /** Simple implementation of a GUID. * \version Since 3.6.4 this struct works properly on platforms with different endianness such as Wii U. */ public struct Guid { const string hex = "0123456789ABCDEF"; public static readonly Guid zero = new Guid(new byte[16]); public static readonly string...
27.411043
107
0.585273
[ "MIT" ]
13294029724/ET
Unity/Assets/Model/Module/Pathfinding/Recast/Guid.cs
4,468
C#
/* Copyright 2007-2017 The NGenerics Team (https://github.com/ngenerics/ngenerics/wiki/Team) This program is licensed under the MIT License. You should have received a copy of the license along with the source code. If not, an online copy of the license can be found at https://opensource.org/licenses/MIT. *...
28.72549
88
0.603413
[ "MIT" ]
ngenerics/ngenerics
src/NGenerics.Tests/DataStructures/Mathematical/Vector3DTests/GreaterThanOperator.cs
1,465
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Request to get all the information of a Route Point instance. /// The respons...
35.782609
172
0.674362
[ "MIT" ]
cwmiller/broadworks-connector-net
BroadworksConnector/Ocip/Models/GroupRoutePointGetInstanceRequest23.cs
1,654
C#
using System; using System.Diagnostics; namespace Lucene.Net.Util.Fst { /* * 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...
27.209459
88
0.508567
[ "Apache-2.0" ]
paulirwin/lucene.net
src/Lucene.Net.Core/Util/Fst/PositiveIntOutputs.cs
4,027
C#
using System; namespace JustAssembly.CommandLineTool.Nodes { public class ModuleNode : INode { } }
12.333333
44
0.702703
[ "Apache-2.0" ]
rubicon-oss/Fork.JustAssembly
UI/JustAssembly.CommandLineTool/ModuleNode.cs
113
C#
/* © Cutter Systems spol. s r.o., 2018 Author: Petr Kalandra (kalandra@cutter.cz) 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...
29.829787
72
0.773894
[ "Apache-2.0" ]
kaldap/ros-sharp
Libraries/RosBridgeClient/Messages/Gazebo/ModelState.cs
1,403
C#
// Copyright 2007-2016 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
42.083333
114
0.689109
[ "ECL-2.0", "Apache-2.0" ]
AOrlov/MassTransit
src/MassTransit.RabbitMqTransport/Configuration/DelayedExchangeSchedulerExtensions.cs
1,517
C#
using System; using Server; using Server.Misc; namespace Server.Items { public class RuinedTapestry : Item { public override string DefaultName{ get { return "Ruined Tapestry "; } } [Constructable] public RuinedTapestry() : base( Utility.RandomBool() ? 0x4699 : 0x469A ) { } public RuinedTapestry( S...
17.27027
74
0.668232
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Holiday Stuff/Halloween/2006/Items/RuinedTapestry.cs
641
C#
using System; using Android.App; using HockeyApp; using liquidtorque.DataAccessLayer; using Parse; using WizarDroid.NET; using WizarDroid.NET.Infrastructure.Layouts; using WizarDroid.NET.Persistence; namespace liquidtorque.Wizards.SignUpWizard { [Activity(Label = "User signup form wizard")] public class SignU...
37.64486
109
0.522344
[ "Apache-2.0" ]
fatelord/automotive
LiquidTorque/Wizards/SignUpWizard/SignUpWizard.cs
4,028
C#
// <copyright file="OauthRequests.cs" company="Stormpath, Inc."> // Copyright (c) 2016 Stormpath, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
43.328358
191
0.673441
[ "Apache-2.0" ]
stormpath/stormpath-sdk-csharp
src/Stormpath.SDK.Core/Oauth/OauthRequests.cs
2,905
C#
using Orchard.OpenId.Models; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Orchard.OpenId.ViewModels { public class CreateOpenIdApplicationViewModel { [Required] public string ClientId { get; set; } [Required] public string DisplayName...
32.95
81
0.631259
[ "BSD-3-Clause" ]
hishamco/Orchard2
src/OrchardCore.Modules/Orchard.OpenId/ViewModels/CreateOpenIdApplicationViewModel.cs
1,320
C#
using System; using System.Collections.Generic; namespace CombatTest.Utils { public static class ListExtensions { public static T GetRandomElement<T>(this IList<T> list, Random rng) { return list[rng.Next(list.Count)]; } } }
20.571429
76
0.604167
[ "MIT" ]
joaokucera/csharp-combat-system
src/CombatTest/Utils/ListExtensions.cs
290
C#
using System.Collections.Generic; using UnityEngine; [ExecuteInEditMode] public class UES_WireRope : MonoBehaviour { public float hang = 0.5F, vertexCount = 3, width = 0.25F; public LineRenderer rope; public List<Vector3> ropeLocalPositions = new List<Vector3>(); public Color emissionColor = Color.blu...
28.031056
101
0.573676
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
DeathCharm/Unity-Electric-Systems
Assets/UES_WireRope.cs
4,513
C#
using ParkEco.CoreAPI.Data.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ParkEco.CoreAPI.Repositories.Interfaces { public interface IParkingLotAttendantRepository { void Create(ParkingLotAttendant parkingLotAttendent); void U...
28
77
0.756803
[ "MIT" ]
park-eco/park-eco-server
ParkEco.CoreAPI/ParkEco.CoreAPI/Repositories/Interfaces/IParkingLotAttendantRepository.cs
590
C#
/* * Copyright 2018 JDCLOUD.COM * * 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 or agreed to in...
24.97619
76
0.701621
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Live/Apis/DeleteLiveStreamRecordNotifyConfigResult.cs
1,073
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Bit.Model.Contracts; namespace Bit.Model.DomainModels { [Table("UsersSettingsView", Schema = "Bit")] public class UserSetting : IEntity, IDto { [Key] public virtual long Id ...
25.068966
59
0.632737
[ "MIT" ]
moshtaba/bit-framework
src/Server/Bit.Model/DomainModels/UserSetting.cs
729
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Управление общими сведениями о сборке осуществляется с помощью // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTitle("TESt")] [assembly:...
38.486486
99
0.758427
[ "MIT" ]
Innazvrtn/Algotask
Properties/AssemblyInfo.cs
1,996
C#
// // PersistentColumnController.cs // // Author: // Aaron Bockover <abockover@novell.com> // // Copyright (C) 2008 Novell, Inc. // // 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 withou...
32.113043
134
0.493772
[ "MIT" ]
Dynalon/banshee-osx
src/Core/Banshee.ThickClient/Banshee.Collection.Gui/PersistentColumnController.cs
7,386
C#