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.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Practices.Unity.InterceptionExtension; using Ploeh.Samples.ProductManagement.WcfAgent; namespace Ploeh.Samples.ProductManagement.WpfClient.Unity { public class CircuitBreakerInteceptionBehavior : IInterce...
24.677419
60
0.542484
[ "MIT" ]
owolp/Telerik-Academy
Module-2/Design-Patterns/Materials/DI.NET/WpfProductManagementClient/ProductManagementClient/Unity/CircuitBreakerInteceptionBehavior.cs
1,532
C#
using Disqord.Models; namespace Disqord { public class TransientCategoryChannel : TransientGuildChannel, ICategoryChannel { public TransientCategoryChannel(IClient client, ChannelJsonModel model) : base(client, model) { } } }
23.25
84
0.663082
[ "MIT" ]
Neuheit/Diqnod
src/Disqord.Core/Entities/Shared/Transient/Channels/Guild/TransientCategoryChannel.cs
281
C#
using System; using System.Collections.Generic; namespace Sanford.Collections.Generic { internal class UndoManager { private Stack<ICommand> undoStack = new Stack<ICommand>(); private Stack<ICommand> redoStack = new Stack<ICommand>(); #region Methods public void Execute(IComm...
20.921053
79
0.457023
[ "MIT" ]
3017218159/Sanford.Multimedia.Midi-master
Source/Sanford.Collections/Generic/UndoableList/UndoManager.cs
2,385
C#
using Castle.DynamicProxy; using MvvmKit.CollectionChangeEvents; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace MvvmKit { public class AccessInterceptor : BaseDisposable, IInterceptor ...
36.135593
134
0.613743
[ "MIT" ]
kobi2294/MvvmKit
Source/MvvmKit/Services/State2/AccessInterceptor.cs
4,266
C#
#region Copyright /*Copyright (C) 2015 Wosad 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/licenses/LICENSE-2.0 Unless required by applicable law or a...
27.070175
100
0.71873
[ "Apache-2.0" ]
Wosad/Wosad.Design
Wosad.Steel/AISC/AISC360v10/K_HSS/ConcentratedForces/Rhs/LimitStates/RhsLongitudinalPlateShear.cs
1,543
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Charlotte.Games.Shots { public static class ShotConsts { /// <summary> /// 自弾のアルファ値 /// </summary> public const double A = 0.3; } }
15.0625
33
0.692946
[ "MIT" ]
soleil-taruto/Elsa
e20201018_TateShoot_Demo/Elsa20200001/Elsa20200001/Games/Shots/ShotConsts.cs
259
C#
using System.Collections.Generic; using ScriptableData; using UnityEngine; namespace System.UI { [ExecuteInEditMode] public class MenuManager : MonoBehaviour { #region DATA public static MenuManager Instance; public ConfigProjectData ConfigProjectData; public ModelSpawnData...
30.871212
118
0.542577
[ "MIT" ]
Plimsky/Stress-Test
Assets/Scripts/System/UI/MenuManager.cs
4,077
C#
using System; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.Extensions.Options; using SFA.DAS.Apim.Developer.Domain.Configuration; using SFA.DAS.Apim.Developer.Domain.Extensions; using SFA.DAS.Apim.Developer.Domain.Interfaces; using SFA.D...
38.867347
157
0.606065
[ "MIT" ]
SkillsFundingAgency/das-apim-developer-api
src/SFA.DAS.Apim.Developer.Application/AzureApimManagement/Services/UserService.cs
7,618
C#
using System; using System.IO; using System.Threading.Tasks; using FredsImageMagickScripts; using ImageMagick; namespace DocumentParser.Classes { public class CleanImage { public async Task<string> Execute(string filePath) { try { var path = Path.GetTempPath() + DateTime.Now.To...
38.849057
116
0.510442
[ "MIT" ]
MatthewCsharp/DocumentParser
DocumentParser/Classes/CleanImage.cs
2,061
C#
using FullSampleWP8.Resources; namespace FullSampleWP8 { /// <summary> /// Provides access to string resources. /// </summary> public class LocalizedStrings { private static AppResources _localizedResources = new AppResources(); public AppResources LocalizedResources { ...
26.214286
87
0.66485
[ "Apache-2.0" ]
MavenRain/facebook-winclient-sdk
Samples/FullSampleWP8/LocalizedStrings.cs
369
C#
using System.Linq; using Microsoft.AspNetCore.Mvc; using WebApp.Code.Attributes; using WebApp.Controllers; using Xunit; namespace WebApp.Tests { public class ControllerTests { [Fact] public void AllControllersAreSubclassesOfBaseController() { // this makes sure that the con...
30.310345
96
0.596132
[ "MIT" ]
Azure/azure-render-farm-manager
src/AzureRenderHub/AzureRenderHub.WebApp.Tests/ControllerTests.cs
879
C#
// SearchedUser using Disney.Mix.SDK; public class SearchedUser { public readonly IUnidentifiedUser MixSearchedUser; public string DisplayName => (MixSearchedUser != null) ? MixSearchedUser.DisplayName.Text : null; public SearchedUser(IUnidentifiedUser User) { MixSearchedUser = User; } }
19.933333
98
0.77592
[ "MIT" ]
smdx24/CPI-Source-Code
ClubPenguin.Net/SearchedUser.cs
299
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Telerik.Sitefinity.DynamicModules.Builder.Model; namespace Telerik.Sitefinity.Frontend.DynamicContent.WidgetTemplates.Fields.Impl { /// <summary> /// This class represents field generation...
34.477273
172
0.664469
[ "Apache-2.0" ]
MrJustPeachy/feather-widgets
Telerik.Sitefinity.Frontend.DynamicContent/WidgetTemplates/Fields/Impl/ShortTextField.cs
1,519
C#
using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HowToStartMockingWithMoq.Tests { [TestFixture] public class ValidatorTests { [Test] public void IsValidShouldReturnTrueIfThereAreN...
30.005952
117
0.551478
[ "MIT" ]
Ermlab/how-to-start-mocking-with-moq
HowToStartMockingWithMoq.Tests/ValidatorTests.cs
5,043
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Meta...
35.367424
234
0.535129
[ "MIT" ]
2m0nd/runtime
src/coreclr/src/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs
18,674
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace laico.service.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] p...
21.488889
56
0.497415
[ "MIT" ]
CesarRabelo/laico
source/laico.service/Controllers/ValuesController.cs
969
C#
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.eShopWeb.Web.Services; using Microsoft.eShopWeb.Web.ViewModels; using System.Threading.Tasks; namespace Microsoft.eShopWeb.Web.Pages { public class IndexModel : PageModel { private readonly ICatalogViewModelService _catalogViewModelSe...
37
216
0.731892
[ "MIT" ]
whiteeyes32/eShopOnWeb
src/Web/Pages/Index.cshtml.cs
927
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOC.Year2019 { public class Simulator { private readonly Dictionary<int, Instruction> _instructions; public Simulator(Dictionary<int, Instruction> instructions) { _instructions ...
25.444444
117
0.4869
[ "MIT" ]
jorupp/adventofcode2019
AOC/Year2019/Simulator.cs
1,376
C#
using Dhl.Execs; namespace Dhl.Helpers; class ReadmeHelper { public static void AddReadmeFile(PromptModel model) { if (model.AddReadme) { if (model.PutSolutionAndProjectInSamePlace == false) BashExec.Run($"touch ./{model.GetSolutionName()}/README.md"); e...
24.294118
77
0.585956
[ "MIT" ]
hootanht/dhl
Helpers/ReadmeHelper.cs
413
C#
using System; namespace GameThing.Entities.Cards.Requirements { public class Requirement { public RequirementType Type { get; set; } public bool Met(Character source, Character target) { switch (Type) { case RequirementType.BehindTarget: return BehindTargetRequirementMet(source, target); d...
24.675676
77
0.721796
[ "Apache-2.0" ]
rythos42/GameThing
GameThing/Entities/Cards/Requirements/Requirement.cs
915
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...
28.15
81
0.639432
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataFactory/V20170901Preview/Outputs/LinkedIntegrationRuntimeRbacResponse.cs
1,126
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. namespace System.Xml.Xsl.XsltOld { using System; using System.IO; using System.Globalization; using ...
31.236842
122
0.53412
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs
2,374
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReassemblyAnalyser.Game { public class GameNotDoneException : Exception { public GameNotDoneException(string message) : base(message) { } } }
20.714286
71
0.744828
[ "MIT" ]
Lomztein/ReassemblyAnalyser
ReassemblyAnalyser/Game/GameNotDoneException.cs
292
C#
using System; using HDWallet.Core; using NBitcoin; namespace HDWallet.Secp256k1 { public abstract class HDWallet<TWallet> : HdWalletBase, IHDWallet<TWallet> where TWallet : Wallet, new() { ExtKey _masterKey; public HDWallet(string words, string seedPassword, CoinPath path) : base(words, seedPa...
36.676471
122
0.625902
[ "MIT" ]
TurgutKanceltik/HDWallet
src/HDWallet.Secp256k1/HDWallet.cs
2,494
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V4200</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
39.137821
1,358
0.563099
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V4200/Generated/PRPA_MT000002UK02AdminResult.cs
12,211
C#
using OnlineTechnicalSupport.Models.Data; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace OnlineTechnicalSupport.Models.ViewModels { public class IssueReportsViewModel { public IEnumerable<IssueReport> UnManagedRequests { get; set; } public IEnume...
28.15
71
0.728242
[ "MIT" ]
ozgurguclu/OnlineTechnicalSupport
OnlineTechnicalSupport/OnlineTechnicalSupport/Models/ViewModels/RequestsViewModel.cs
565
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using System; using ContosoHR.Models; namespace WebApplication3.Data.Migrations { [DbContext(type...
37.65942
125
0.468251
[ "MIT" ]
CentauriAfrica/sql-server-samples
samples/features/security/ledger/source/ContosoHR/Migrations/ApplicationDbContextModelSnapshot.cs
10,394
C#
using ADHDataManager.Library.Models; using System.Collections.Generic; namespace ADHDataManager.Library.DataAccess { public interface IPatientProgressData { void AddProgress(PatientProgressModel progress); void DeleteProgress(string progressId); List<PatientProgressModel> GetPatientPro...
32.615385
85
0.771226
[ "MIT" ]
AhmedDuraid/ADH-Medical-System
ADHDataManager.Library/DataAccess/IPatientProgressData.cs
426
C#
using System; using System.Collections.Generic; using System.Linq; namespace _1.Letter_Repetition { class LetterRepetition { static void Main() { var characters = Console.ReadLine(); var asciiDictionary = new Dictionary<char, int>(); foreach (var characte...
22.875
63
0.493169
[ "MIT" ]
bingoo0/SoftUni-TechModule
DictionariesExercises/1. Letter Repetition/LetterRepetition.cs
734
C#
namespace Switchvox.Extensions.Phones { class Remove { } }
10.285714
38
0.625
[ "MIT" ]
bfranklin825/SwitchvoxAPI
SwitchvoxAPI/_Unimplemented/extensions/Phones/Remove.cs
74
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...
39.535714
161
0.596206
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/Rekognition/Generated/Model/Internal/MarshallTransformations/SegmentDetectionUnmarshaller.cs
5,535
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...
42.909091
175
0.679025
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/KeyManagementService/Generated/Model/Internal/MarshallTransformations/RetireGrantResponseUnmarshaller.cs
4,720
C#
using System; using System.Collections.Generic; namespace PerformanceEfCore.EFCore.Models { public partial class StateProvince { public StateProvince() { Address = new HashSet<Address>(); SalesTaxRate = new HashSet<SalesTaxRate>(); } public int StatePro...
33.758621
78
0.640449
[ "BSD-3-Clause" ]
Manishkr117/DesignPattern
DOTNETCORE/EFCoreSamples/PerformanceEfCore/EFCore/Models/StateProvince.cs
981
C#
#region License // Copyright (c) 2007 James Newton-King // // 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, // copy, ...
39.388889
68
0.732722
[ "MIT" ]
belav/Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestObjects/DeserializeStringConvert.cs
1,418
C#
namespace QuaverExtension { static class Convert { internal static int CharToInt(char c) { return int.Parse(c.ToString()); } } }
16.181818
45
0.539326
[ "MIT" ]
Emik03/Quaver
Assets/Quaver/Scripts/Convert.cs
180
C#
#region BSD License /* * * Original BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) * © Component Factory Pty Ltd, 2006 - 2016, (Version 4.5.0.0) All rights reserved. * * New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) * ...
30.141732
119
0.583072
[ "BSD-3-Clause" ]
Krypton-Suite/Standard-Toolkit
Source/Krypton Components/Krypton.Toolkit/Controls Visuals/VisualControl.cs
3,831
C#
using UnityEditor; using UnityEngine; [CanEditMultipleObjects, CustomEditor(typeof(MegaFFD3x3x3))] public class MegaFFD3x3x3Editor : MegaFFDEditor { public override string GetHelpString() { return "FFD3x3x3 Modifier by Chris West"; } }
29.75
85
0.806723
[ "MIT" ]
Kingminje/AR_Plant-Growth-ARKit-
Mega-Fiers/Editor/MegaFiers/MegaFFD3x3x3Editor.cs
240
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...
38.291429
161
0.588121
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/Comprehend/Generated/Model/Internal/MarshallTransformations/StartEventsDetectionJobRequestMarshaller.cs
6,701
C#
namespace TextAnalyzer.Infrastructure.Interfaces; public interface IText : ITextSource { public string Title { get; set; } public string Group { get; init; } }
24.142857
50
0.727811
[ "Apache-2.0" ]
SaveliyKolesnikov/LetterUsageAnalyzer
TextAnalyzer.Infrastructure/Interfaces/IText.cs
171
C#
namespace Octopus.Client.Model { public enum FeedType { None = 0, NuGet, Docker } }
13.333333
31
0.508333
[ "Apache-2.0" ]
roederja/OctopusClients
source/Octopus.Client/Model/FeedType.cs
122
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Diagnostics; using...
39.110647
137
0.522028
[ "MIT" ]
CameronAavik/efcore
test/EFCore.Tests/ChangeTracking/TrackGraphTestBase.cs
56,202
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using System.Text; using System.Xml; using System.Xml.XPath; namespace MS.Internal.Xml.Ca...
40.090211
141
0.535046
[ "MIT" ]
OceanYan/corefx
src/System.Xml.XPath/src/System/Xml/Cache/XPathDocumentNavigator.cs
41,774
C#
 namespace Fairweather.Service { public static class ReadWrite { class Proxy<TKey, TValue> : IRead<TKey, TValue> { readonly IReadWrite<TKey, TValue> rd_inner; public TValue this[TKey index] { get { return rd_inner[index]; } } ...
24.666667
71
0.502703
[ "MIT" ]
staafl/dotnet-bclext
to-integrate/libcs_staaflutil/Utils/Read_Write_Service.cs
742
C#
using System.Threading.Tasks; namespace GMSFramework.Authentication.External { public interface IExternalAuthManager { Task<bool> IsValidUser(string provider, string providerKey, string providerAccessCode); Task<ExternalAuthUserInfo> GetUserInfo(string provider, string accessCode); } }
26.5
95
0.761006
[ "MIT" ]
alex-zak/GMSFramework
aspnet-core/src/GMSFramework.Web.Core/Authentication/External/IExternalAuthManager.cs
320
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using DIDemo.ExampleClasses; using DIDemo.Services; using Micr...
37.864583
130
0.651719
[ "MIT" ]
Luminis-Arnhem/MVC6DIDemo
src/MyFirstMvc6App/Startup.cs
3,637
C#
// // The Open Toolkit Library License // // Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted. // // 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...
36.430052
131
0.473688
[ "MIT" ]
OpenNefia/OpenNefia
OpenNefia.Core/Maths/Color.cs
70,347
C#
/* Copyright (c) 2011, Pawel Szczurek All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
44.298507
155
0.714286
[ "BSD-3-Clause" ]
gcodebackups/visual-shader-editor
Core/Blocks/Position/TransformPosition.cs
2,970
C#
using System; using ICSharpCode.CodeConverter.CSharp; using ICSharpCode.CodeConverter.Shared; using ICSharpCode.CodeConverter.Util; using Microsoft.CodeAnalysis; using CS = Microsoft.CodeAnalysis.CSharp; using VBasic = Microsoft.CodeAnalysis.VisualBasic; using CSSyntax = Microsoft.CodeAnalysis.CSharp.Syntax; u...
48.133333
160
0.720683
[ "MIT" ]
GrahamTheCoder/CodeConverter
ICSharpCode.CodeConverter/VB/CommentConvertingMethodBodyVisitor.cs
2,124
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
32.516035
131
0.562181
[ "MIT" ]
AlianBlank/DCET
Unity/Packages/DCET.Lua/Runtime/XLua/Gen/PathfindingVoxelsCompactVoxelSpanWrap.cs
11,155
C#
namespace MyExamination.Web.Areas.HelpPage.ModelDescriptions { public class DictionaryModelDescription : KeyValuePairModelDescription { } }
25.166667
74
0.794702
[ "MIT" ]
wangzhiqing999/my-csharp-project
MyExamination.Web/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs
151
C#
using System; using System.Web; using System.Web.Mvc; using System.Web.Routing; using System.Web.UI; using Umbraco.Core; using Umbraco.Core.Services; using Umbraco.Web.Security; using umbraco.DataLayer; namespace Umbraco.Web.UI.Controls { /// <summary> /// A base class for all Presentation UserCo...
29.965517
129
0.555236
[ "MIT" ]
AdrianJMartin/Umbraco-CMS
src/Umbraco.Web/UI/Controls/UmbracoUserControl.cs
3,478
C#
namespace Rocket.Chat.Net.Example { using System.Collections.Generic; using RestSharp; using Rocket.Chat.Net.Bot; using Rocket.Chat.Net.Bot.Helpers; using Rocket.Chat.Net.Bot.Interfaces; using Rocket.Chat.Net.Bot.Models; using Rocket.Chat.Net.Models; internal class GiphyResponse : IB...
33.075472
103
0.62065
[ "MIT" ]
RocketChat/Rocket.Chat.Net
src/Rocket.Chat.Net.Example/GiphyResponse.cs
1,755
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Compute.Models { public partial class VirtualMachineExtensionUpdateOptions : IUtf8JsonSerializable ...
34.975309
85
0.560537
[ "MIT" ]
AntonioVT/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionUpdateOptions.Serialization.cs
2,833
C#
using Xunit; // ReSharper disable UnusedMember.Global // ReSharper disable ConvertToAutoPropertyWhenPossible public class PropertyChangedArgWithNoGetInfoCheckerTest { [Fact] public void WithGet() { var checker = new ModuleWeaver(); var propertyDefinition = DefinitionFinder.FindProperty<P...
31
126
0.561428
[ "MIT" ]
DaleStan/PropertyChanged
Tests/PropertyInfoCheckers/PropertyChangedArgWithNoGetInfoCheckerTest.cs
1,459
C#
using System.Threading.Tasks; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using static pmcenter.Methods.Logging; namespace pmcenter { public static partial class BotProcess { private static async Task OwnerReplying(Update update) { // check anonymous forward (5.5.0 ne...
53.506494
215
0.605583
[ "Apache-2.0" ]
Elepover/pmcenter
pmcenter/BotProcess/BotProcess.OwnerReplying.cs
4,122
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Windows; namespace DIRECTView { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { private void OnAppStartup_UpdateTheme...
20.608696
84
0.708861
[ "Apache-2.0" ]
OSADP/DIRECTView-AMS
Source Code/App.xaml.cs
476
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
34.419355
151
0.582006
[ "CC0-1.0" ]
barneyCr/color_run
ColorRunGame/Properties/Settings.Designer.cs
1,069
C#
using ExpandedContent.Config; using ExpandedContent.Extensions; using ExpandedContent.Utilities; using Kingmaker.Blueprints; using Kingmaker.Blueprints.Classes; using Kingmaker.Blueprints.Classes.Prerequisites; using Kingmaker.Blueprints.Classes.Selection; using Kingmaker.Blueprints.Classes.Spells; using Kingmaker.Blu...
74.836735
177
0.679938
[ "MIT" ]
ka-dyn/ExpandedContent
ExpandedContent/Tweaks/Deities/Vildeis.cs
11,003
C#
using StructureMap; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web.Mvc; namespace $safeprojectname$ { /// <summary> /// http://www.amescode.com/category/structuremap /// </summary> public class ...
36.84375
131
0.565946
[ "MIT" ]
txavier/AutoClutch
Templates/AutoClutch.OData/DependencyResolution/StructureMapValidatableObjectAdapterFactory.cs
4,718
C#
using System.Diagnostics; using System.Text; namespace IxMilia.Erlang.Tokens { public class ErlangStringToken : ErlangToken { public string Value { get; private set; } public ErlangStringToken(string value) { Value = value; Text = value; Kind = Erla...
27.134328
85
0.387789
[ "MIT" ]
ixmilia/erlang
src/IxMilia.Erlang/Tokens/ErlangStringToken.cs
1,820
C#
using System; using System.Buffers; using System.Buffers.Binary; using System.IO; using System.Text; namespace IronSnappy { class SnappyWriter : Stream { private readonly Stream _parent; private readonly byte[] _ibuf; private readonly byte[] _obuf; private int _ibufIdx; private boo...
34.131931
106
0.525013
[ "Apache-2.0" ]
aloneguid/IronSnappy
src/IronSnappy/SnappyWriter.cs
17,854
C#
// Karel Kroeze // PawnColumnWorker_WorkType.cs // 2017-05-22 using System; using System.Collections.Generic; using System.Linq; using RimWorld; using UnityEngine; using Verse; using Verse.Sound; using static WorkTab.Constants; using static WorkTab.InteractionUtilities; using static WorkTab.MainTabWindow_WorkTab; usi...
37.473804
149
0.519239
[ "MIT" ]
rw-chaos/WorkTab
Source/PawnColumns/PawnColumnWorker_WorkType.cs
16,453
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WhiteRaven.Domain.Models.Note; using WhiteRaven.Repository.Contract; using WhiteRaven.Repository.Cosmos.Configurations; namespace WhiteRaven.Repository.Cosmos { public sealed class ContributionRepository : RepositoryBase<Cont...
40.923077
125
0.6875
[ "MIT" ]
BalazsKis/white-raven
backend/Repository.Cosmos/ContributionRepository.cs
2,130
C#
/* * Copyright (c) Citrix Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright * notice, t...
34.609524
99
0.605118
[ "BSD-2-Clause" ]
AaronRobson/xenadmin
XenModel/XenAPI/on_crash_behaviour.cs
3,634
C#
using System; using System.IO; using System.Text; using System.Threading.Tasks; using Anemonis.AspNetCore.JsonRpc.UnitTests.TestStubs; using Anemonis.Resources; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft...
42.841155
151
0.656442
[ "MIT" ]
JTOne123/aspnetcore-json-rpc
src/Anemonis.AspNetCore.JsonRpc.UnitTests/JsonRpcMiddlewareTests.cs
11,869
C#
namespace KumovskiLearningCenter.Services.Data { using System.Collections.Generic; using System.Linq; using KumovskiLearningCenter.Data.Common.Repositories; using KumovskiLearningCenter.Data.Models; using KumovskiLearningCenter.Services.Mapping; public class SettingsService : ISettingsService...
27.766667
86
0.678271
[ "MIT" ]
RKumovski/LearningCenter
Services/KumovskiLearningCenter.Services.Data/SettingsService.cs
835
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sem.Authentication.Test { using System.Collections.Specialized; using System.Web; using System.Web.Caching; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq;...
39.671642
115
0.569601
[ "MIT" ]
Interface007/SemAuthentication
Sem.Authentication/Sem.Authentication.Test/ClassLandmine.cs
5,318
C#
using System; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Nardax.Tests { [TestClass] public class AsseblyExtensionsTests { [TestMethod] public void GetAppSettingsValue_ValidKey_ReturnsValue() { var validKey = "ValidKey"; ...
27.448276
79
0.644472
[ "MIT" ]
trinodia/nerdax
src/Nardax.UnitTests/AsseblyExtensionsTests.cs
798
C#
using System; using Pdam.Common.Shared.State; namespace Pdam.Configuration.Service.Features.CustomerGroup { public class Request { public Guid Id { get; set; } public string CompanyCode { get; set; } public ActiveState Status { get; set; } public string CustomerGroupCode { get;...
27.785714
59
0.655527
[ "BSD-3-Clause" ]
kurniawirawan/pdam-configuration-service
Pdam.Configuration.Service/Features/CustomerGroup/Request.cs
391
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("Gr...
37.972973
84
0.745196
[ "MIT" ]
20483C608811/myapp
Allfiles/Mod11/Labfiles/Solution/Exercise 1/Grades.Utilities/Properties/AssemblyInfo.cs
1,408
C#
// <copyright file="AreaSkillAttackHandler.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> namespace MUnique.OpenMU.GameServer.MessageHandler { using System; using MUnique.OpenMU.GameLogic; using MUnique.OpenMU.Ga...
35.148936
101
0.636804
[ "MIT" ]
nathanenglert/OpenMU
src/GameServer/MessageHandler/AreaSkillAttackHandler.cs
1,654
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 namespace log4net.Appender { // // Licensed to the Apache Software Foundation (ASF) under one or more //...
34.674641
104
0.545467
[ "MIT" ]
Mariusz11711/DNN
DNN Platform/DotNetNuke.Log4net/log4net/Appender/MemoryAppender.cs
7,249
C#
using System.Reflection; using ArbitR.Pipeline; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; namespace ArbitR.Tester { public abstract class TestBase { protected IArbiter Arbiter = null!; [SetUp] public void Init() { // DI Container...
28.16
76
0.639205
[ "Apache-2.0" ]
Rhexis/ArbitR
ArbitR.Tester/TestBase.cs
704
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace MusicStore { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
25.863636
70
0.706503
[ "Apache-2.0" ]
newventuresoftware/kendoui-for-aspnet
demos/initial/MusicStore/MusicStore/Global.asax.cs
571
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MadeInTheUSB.FT232H { public class PerformanceHelper : IDisposable { public static void AssertString(string s1, string s2) { if(s1...
30.895349
128
0.534061
[ "MIT" ]
hiroshica/FT232H.NET
Private/MadeInTheUSB.FT232H.Lib/Performance/PerformanceHelper.cs
2,659
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ow.Utils; namespace Ow.Net.netty.commands { class PetGearSelectCommand { public const short ID = 18610; public static byte[] write(PetGearTypeModule gearType, List<int> op...
25.071429
88
0.594017
[ "MIT" ]
yusufsahinhamza/darkorbit-emulators
DarkOrbit 10.0/Net/netty/commands/PetGearSelectCommand.cs
704
C#
using Newtonsoft.Json; using NLog; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows; namespace LiteDbExplorer { public class Update { pub...
29.9
121
0.522408
[ "MIT" ]
Jasonkingsmill/LiteDbExplorer
source/LiteDbExplorer/Update.cs
2,992
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Top.Api.Domain { /// <summary> /// Shipping Data Structure. /// </summary> [Serializable] public class Shipping : TopObject { /// <summary> /// 买家昵称 /// </summary> [XmlEleme...
27.104575
322
0.510248
[ "MIT" ]
objectyan/MyTools
OY.Solution/OY.TopSdk/Domain/Shipping.cs
4,827
C#
namespace ELFSharp.DWARF { public class LineInfo { public FileInfo File { get; set; } public long Line { get; set; } public long Column { get; set; } } }
21
42
0.566138
[ "MIT" ]
MRazvan/ASAVRSD
AVR Debugger/ELFSharp/DWARF/LineInfo.cs
189
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml.Framework; using System; using System.Xml; using System.Xml.Linq; namespace DocumentFormat.OpenXml { /// <summary> /// Represents...
41.027933
178
0.624864
[ "MIT" ]
nxproject/open-xml
src/DocumentFormat.OpenXml/OpenXmlAttribute.cs
7,346
C#
using System; using System.IO; namespace FeuerwehrCloud.Common.Logging { /// <summary> /// This logging object writes application error and debug output to a text file. /// </summary> internal class FileLogger : ILog { #region File Logging /// <summary> /// Lock object to prevent thread interac...
24.602273
83
0.612009
[ "MIT" ]
bhuebschen/feuerwehrcloud-deiva
FeuerwehrCloud.Input.IMAP4/Common/Logging/FileLogger.cs
2,167
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....
35.416667
85
0.54
[ "Apache-2.0" ]
HaloImageEngine/EmpowerClaim-hotfix-1.25.1
EmpowerBusiness/Eval_EvaluationsUpdateCommand_Result.cs
850
C#
using System; namespace Informapp.InformSystem.WebApi.Models.Http { /// <summary> /// Marks a property as body parameter /// </summary> [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)] public sealed class BodyParameterAttribute : Attribute { /// <su...
25.45
89
0.632613
[ "MIT" ]
InformappNL/informapp-api-dotnet-client
src/WebApi.Models/Http/BodyParameterAttribute.cs
511
C#
namespace iTEAMConsulting.O365.Abstractions { public interface ILoginResponse : IApiResponse { string AccessToken { get; } } }
18.5
50
0.682432
[ "MIT" ]
JTOne123/csharp-o365-client
iTEAMConsulting.O365.Abstractions/ILoginResponse.cs
150
C#
using System; using System.Collections.Generic; using System.Text; namespace ComputerBlueprintContext { public interface IConnectionDetails { } }
14.545455
39
0.75625
[ "MIT" ]
carl-burks-magenic/DDD-CarlB
ComputerBlueprintContext/IConnectionDetails.cs
162
C#
#pragma warning disable CS1591 using Newtonsoft.Json; namespace Discord.API { internal class Team { [JsonProperty("icon")] public Optional<string> Icon { get; set; } [JsonProperty("id")] public ulong Id { get; set; } [JsonProperty("members")] public TeamMember[] ...
24.5
53
0.600907
[ "MIT" ]
230Daniel/Discord.Net
src/Discord.Net.Rest/API/Common/Team.cs
441
C#
using System.Collections.Generic; namespace Shop.Models { public class Order { public int Id { get; set; } public int CustomerId { get; set; } public Customer Customer { get; set; } public List<ItemOrder> Items { get; set; } = new List<ItemOrder>(); } }
18.9375
75
0.594059
[ "MIT" ]
l3kov9/CSharpWebDevelopmentBasics
.Net Core and Entity Framework CoreLab/Shop/Shop/Models/Order.cs
305
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { [SerializeField] float movementSpeed = 1; private Rigidbody2D body; void Start() { body = GetComponent<Rigidbody2D>(); } void FixedUpdate() { Mov...
23.344828
225
0.648449
[ "MIT" ]
Marumarsudev/TiteGameJamXI
TiteGameJamXI/Assets/Scripts/PlayerMovement.cs
679
C#
using System; using System.Collections.Generic; using System.Text; using OCP.Activity; using OCP.RichObjectStrings; namespace OC { class Event : IEvent { /** @var string */ protected string app = ""; /** @var string */ protected string type = ""; /** @var string */ protected string affectedUser = ""; /** @var...
20.273786
88
0.646969
[ "MIT" ]
mindfocus/nextcloud_net
privatelib/OC/Activity.cs
10,443
C#
using Amazon.CDK; using Amazon.CDK.AWS.AutoScaling; using Amazon.CDK.AWS.EC2; using Amazon.CDK.AWS.IAM; namespace GrpcBenchmark { public class GrpcBenchmarkStack : Stack { internal GrpcBenchmarkStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props) { va...
42.072464
157
0.54392
[ "MIT" ]
guitarrapc/benchmark-lab
benchmark/CdkEc2Bench/src/CdkEc2Bench/GrpcBenchmarkStack.cs
2,903
C#
using System.Collections.Generic; using System.Linq.Expressions; using Deviser.Admin.Config; using Newtonsoft.Json; namespace Deviser.Admin { public interface IGridConfig { [JsonIgnore] ICollection<Field> AllIncludeFields { get; } [JsonIgnore] ICollection<Field> ExcludedFields { get; } ...
33.5
75
0.664858
[ "MIT" ]
deviserplatform/deviserplatform
src/Deviser.Core/Deviser.Admin/Config/IGridConfig.cs
739
C#
// Copyright © Amer Koleci and Contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Vortice.Direct3D12; /// <summary> /// Describes constants inline in the root signature that appear in shaders as one constant buffer. /// </summary> public partial ...
42.52
213
0.718721
[ "MIT" ]
gerhard17/Vortice.Windows
src/Vortice.Direct3D12/RootConstants.cs
1,066
C#
using System; using System.Collections.Generic; using System.Text; namespace Biz.Morsink.Rest { /// <summary> /// This attribute allows documentation to be set to Rest implementation constructs. /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Paramete...
35.147059
157
0.621757
[ "MIT" ]
joost-morsink/Rest
Biz.Morsink.Rest/RestDocumentationAttribute.cs
1,197
C#
using DemoSqlForms.Database.Model; using Platz.SqlForms; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DemoSqlForms.App.Forms { public class StudentListForm : DataServiceBase<SchoolContext> { protected override void Define(DataServiceFormBui...
31.265625
155
0.523738
[ "MIT" ]
euklad/BlogCode
DemoSqlForms-story6/DemoSqlForms.App/Forms/StudentListForm.cs
2,003
C#
using BussinessLogicLayer; using DataAcessLayer; 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 ApplicationLayer { public partial class U...
35.583333
169
0.511449
[ "MIT" ]
Anindra123/PasswordManagementApp
ApplicationLayer/UserDashBoardForm.cs
7,690
C#
/* The MIT License (MIT) * * Copyright (c) 2014 Pawel Drozdowski * * 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 * us...
37.502793
143
0.575898
[ "MIT" ]
pdrozdowski/TSPLib.Net
TspLibNet/TspLibNet/Graph/Edges/EdgesCollection.cs
6,715
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2016 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file ...
32.806818
126
0.621753
[ "Apache-2.0" ]
hismightiness/YAFNET
yafsrc/YetAnotherForum.NET/Modules/SearchDataCleanupForumModule.cs
2,801
C#
namespace Responsible.Tests.Utilities { public class TestDataBase { public readonly int Value; public TestDataBase(int value) { this.Value = value; } } }
13
37
0.704142
[ "MIT" ]
YousicianGit/Responsible
Tests/Utilities/TestDataBase.cs
169
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
37.47619
101
0.575604
[ "MIT" ]
IoTFier/dicom-server
converter/dicom-cast/src/Microsoft.Health.DicomCast.Core/Extensions/ResourceExtensions.cs
789
C#
#region License // Copyright (c) 2007 James Newton-King // // 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, // copy,...
42.269231
228
0.685775
[ "Apache-2.0" ]
yswenli/Wenli.Data.Es
Wenli.Data.Es/Base/Newtonsoft.Json/JsonConverterAttribute.cs
3,299
C#