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 Edge.Tokens; using System; using System.Collections.Generic; namespace Edge.Tests { public class MockEdgeLexer : ILexer { private IEnumerable<IToken> tokens; public MockEdgeLexer() { } public MockEdgeLexer(IEnumerable<IToken> tokens) { ...
16.116279
56
0.463203
[ "Apache-2.0" ]
sys27/Edge
Edge.Tests/MockEdgeLexer.cs
695
C#
using System; using System.Collections.Generic; namespace UniRx.Operators { // needs to more improvement internal class ConcatObservable<T> : OperatorObservableBase<T> { readonly IEnumerable<IObservable<T>> sources; public ConcatObservable(IEnumerable<IObservable<T>> sources) ...
30.839161
128
0.442177
[ "MIT" ]
dotmos/uGameFramework
Unity/Assets/GameFramework/Modules/UniRx/Scripts/Operators/Concat.cs
4,412
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using gis_final.Models; namespace gis_final.Controllers { public class TagsController : Controller { ...
27.137255
104
0.478565
[ "MIT" ]
YAVATAN-Official/oop_final
gis_final/Controllers/TagsController.cs
4,154
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using YamlDotNet; using YamlDotNet.Core; using YamlDotNet.Serialization; using YamlDotNet.RepresentationModel; namespace HalfShot.MagnetHS.DataTransformer { public class YAMLDataTransformer : IDataTransformer { public ...
27.270833
64
0.614209
[ "MIT" ]
Half-Shot/MagnetHS
HalfShot.MagnetHS/DataTransformer/YAMLDataTransformer.cs
1,311
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using Mono.Cecil; using Java.Interop.Tools.Cecil; using Java.Interop.Tools.Diagnostics; using Java.Interop.Tools.TypeNameMappings; namespace Java.Interop.Tools.JavaCallableWrappers { public class JavaType...
35.576923
180
0.720811
[ "MIT" ]
dellis1972/Java.Interop
src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers/JavaTypeScanner.cs
3,702
C#
using System.Collections; using UnityEngine; using System.Linq; namespace TowerDefense { [AddComponentMenu("TOWER DEFENSE/Tower Agent")] [RequireComponent(typeof(NavMeshObstacle))] [RequireComponent(typeof(Renderer))] public class TowerAgent : MonoBehaviour, ITowerHandler { private TowerSettings m_settings; ...
26.216216
122
0.677835
[ "MIT" ]
joaokucera/unity-tower-defense
src/Assets/Tower Defense/Scripts/TowerAgent.cs
1,942
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.Entit...
39.77551
111
0.664956
[ "Apache-2.0" ]
belav/efcore
test/EFCore.Sqlite.FunctionalTests/ManyToManyTrackingSqliteTest.cs
1,951
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; namespace Microsoft.Extensions.Logging { internal static class LoggingExtensions { private static Action<ILogger, string...
48.659091
148
0.667562
[ "Apache-2.0" ]
FastSecurity1/fast
src/Microsoft.AspNetCore.Authentication/LoggingExtensions.cs
8,566
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace BugTracker.Controllers { public class MainController : Controller { // // GET: /Main/ public ActionResult Index() { return View(); ...
16.285714
45
0.55848
[ "Apache-2.0" ]
nik-sergeson/bsuir-informatics-labs
5term/IGI/BugTracker/BugTracker/Controllers/MainController.cs
344
C#
using Bing.Biz.OAuthLogin.Core; namespace Bing.Biz.OAuthLogin.Baidu.Configs { /// <summary> /// 百度授权配置 /// </summary> public class BaiduAuthorizationConfig : AuthorizationConfigBase { /// <summary> /// 初始化一个<see cref="BaiduAuthorizationConfig"/>类型的实例 /// </summary> ...
26.8
79
0.606343
[ "MIT" ]
bing-framework/Bing.NetCode
components/src/Bing.Biz.OAuthLogin/Baidu/Configs/BaiduAuthorizationConfig.cs
570
C#
using System.Threading.Tasks; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Adapters; using Microsoft.Bot.Schema; namespace Microsoft.Bot.Samples.Echo.AspNetCore { public class EchoBot : IBot { public EchoBot() { } public async Task OnTurn(ITurnContext context) { ...
45.820896
143
0.486645
[ "MIT" ]
geffzhang/botbuilder-dotnet
samples/Microsoft.Bot.Samples.EchoBot-AspNetCore/EchoBot.cs
3,072
C#
using DomainFramework.Core; using System; using System.Collections.Generic; using System.Linq; namespace EmployeeWithSpouse.EmployeeBoundedContext { public class SaveEmployeeCommandAggregate : CommandAggregate<Employee> { public SaveEmployeeCommandAggregate() : base(new DomainFramework.DataAccess.Repos...
37.877778
226
0.559695
[ "MIT" ]
jgonte/DomainFramework
DomainFramework.Tests/EmployeeWithSpouse/EmployeeBoundedContext/CommandAggregates/SaveEmployeeCommandAggregate.cs
3,409
C#
using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using DapperExtensions; using GFramework.core.domainEntities; using GFramework.core.querying; using $safeprojectname$.mappers; namespace $safeprojectname$.querying { public class GenericQueryingService<T> : IQueryingService...
25.833333
110
0.647312
[ "MIT" ]
gtejeda/GFramework.visual.studio.starter.template
GFramework.data/querying/GenericQueryingService.cs
932
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RaLisp.StdLib { public class Let : IFunction { public string Name { get { return "let"; } } public ...
21.37037
94
0.559792
[ "MIT" ]
richorama/RaLisp
RaLisp/StdLib/Let.cs
579
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
29.282051
172
0.62697
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Compute/V20180930/Outputs/ImageDiskReferenceResponse.cs
1,142
C#
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by Brian Nelson 2016. * * See license in repo for more information * * https://github.com/sharpHDF/sharpHDF * * ...
28.043478
79
0.313178
[ "MIT" ]
Hakan77/sharpHDF
src/sharpHDF/Enums/Hdf5DataTypes.cs
647
C#
using System; using System.Buffers; using System.Diagnostics.CodeAnalysis; using System.Net; using Microsoft.Extensions.Logging; using MithrilShards.Core.Crypto; using MithrilShards.Core.Network; using MithrilShards.Core.Network.Protocol; using MithrilShards.Core.Network.Protocol.Serialization; namespace MithrilShard...
40.270161
180
0.611895
[ "MIT" ]
MithrilMan/MithrilShards
src/MithrilShards.P2P/NetworkMessageDecoder.cs
9,989
C#
/* * Copyright 2019 Douglas Kaip * * 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...
36.359091
169
0.589949
[ "Apache-2.0" ]
dkaip/CSharpSECSTools
SECSItemTests/I2ArraySECSItemTests.cs
8,001
C#
using PokemonAdventureGame.Types; using PokemonAdventureGame.Enums; using Xunit; namespace PokemonAdventureGame.Tests.Types { public class WaterTypeEffectTests { private readonly Type WaterType = Type.WATER; [Fact] public void WaterAgainstFireShouldBeSuperEffective() ...
36.173913
118
0.689303
[ "MIT" ]
JustAn0therDev/PokemonAdventureGame
PokemonAdventureGame.Tests/PokemonAdventureGame.Tests/Types/WaterTypeEffectTests.cs
1,664
C#
using System; using System.Collections.Generic; using System.Linq; using Tricentis.TCAPIObjects.Objects; using WseToApiMigrationAddOn.Helper; using WseToApiMigrationAddOn.Parser; using WseToApiMigrationAddOn.Shared; namespace WseToApiMigrationAddOn.Importer { public class CommunicateWithWebServiceArtifactMigrat...
60.068027
127
0.425595
[ "MIT" ]
Tricentis/WSEToAPIMigrator
src/WseToApiMigrationAddOn/CommunicateWithWebServiceArtifactMigratorBackup.cs
8,832
C#
using System; using CalorieCounter.Factories.Contracts; using CalorieCounter.Models.Contracts; using CalorieCounter.UnitTests.Builders; using CalorieCounterEngine.Contracts; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace CalorieCounter.UnitTests.CalorieCounterEngineTests.EngineTests { [T...
50.444444
111
0.665749
[ "MIT" ]
alekhristov/TelerikAcademyAlpha
TeamProjects/HQC & UnitTesting/CalorieCounter/CalorieCounter.UnitTests/CalorieCounterEngineTests/EngineTests/AddActivityCommand_Should.cs
5,450
C#
using LuaInterface; using System; using UnityEngine; namespace LuaFramework { public class PanelManager : Manager { private Transform parent; private Transform Parent { get { if (this.parent == null) { GameObject gameObject = GameObject.Find("UGUI Root/UICanvas"); if (gameObject != nul...
15.6875
67
0.643426
[ "MIT" ]
corefan/tianqi_src
src/LuaFramework/PanelManager.cs
502
C#
using System; using System.Collections.Generic; using System.Text; using System.Windows.Automation; namespace SHInspect.Models { public class Element { public Element() { Children = new List<Element>(); } public string Name { get; set; } public string Autom...
22.318182
52
0.602851
[ "MIT" ]
Streets-Heaver/SHInspect
SHInspect/Models/Element.cs
493
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace Microsoft.MixedReality.SpectatorView { internal class CameraService : ComponentBroadcasterService<CameraService, CameraObser...
33.45
148
0.705531
[ "MIT" ]
Bhaskers-Blu-Org2/MixedReality-SpectatorView
src/SpectatorView.Unity/Assets/SpectatorView/Scripts/StateSynchronization/NetworkedComponents/Camera/CameraService.cs
671
C#
using CryptoExchange.Net.Converters; using Switcheo.Net.Objects; using System.Collections.Generic; namespace Switcheo.Net.Converters { public class MakeStatusConverter : BaseConverter<MakeStatus> { public MakeStatusConverter() : this(true) { } public MakeStatusConverter(bool quotes) : base(quo...
33.130435
105
0.635171
[ "MIT" ]
Switcheo/Switcheo.Net
Switcheo.Net/Converters/MakeStatusConverter.cs
764
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiByValue(fqn: "aws.Wafv2WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString")] public class Wafv2WebAclRuleStatementRateBasedS...
49.25
307
0.901861
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/Wafv2WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.cs
591
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Discord; using Discord.Rest; using Discord.WebSocket; namespace DiscordLobby { class UCJoinPortal { public ulong ChannelId { get; set; } public ulong ServerId { get; set; ...
25.424242
87
0.634088
[ "MIT" ]
AZonee/DiscordLobby
GameLobby/UCClasses.cs
841
C#
using System.ComponentModel.DataAnnotations; namespace Book.Configuration.Dto { public class ChangeUiThemeInput { [Required] [StringLength(32)] public string Theme { get; set; } } }
18.333333
45
0.65
[ "MIT" ]
yangcs2016/phoneBooks
aspnet-core/src/Book.Application/Configuration/Dto/ChangeUiThemeInput.cs
222
C#
namespace PolarConverter.JSWeb.Models { public enum Sport { Biking, Running, Other } }
13.666667
38
0.544715
[ "MIT" ]
goldnarms/PolarConverter
src/PolarConverter.JSWeb/Models/Sport.cs
125
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Media.Devices { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public partial class SceneModeControl { #if __ANDROID__ || __IOS__ || NET46 || _...
38.707317
165
0.759924
[ "Apache-2.0" ]
AlexTrepanier/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Media.Devices/SceneModeControl.cs
1,587
C#
using UnityEngine; using UnityEngine.Assertions; public class MedicineBottle : GeneralItem { #region fields public LiquidContainer Container { get; private set; } #endregion protected override void Start() { base.Start(); // objectType = ObjectType.Medicine; Conta...
24.941176
68
0.662736
[ "MIT" ]
kivik-beep/farmasia-vr
Assets/Scripts/Objects/Equipment/MedicineBottle.cs
426
C#
using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using static WalletWasabi.Http.Constants; namespace WalletWasabi.Http.Models { // https://tools.ietf.org/html/rfc7230#section-3.1.1 // request-line = method SP request-target SP HTTP-version CRLF public class RequestLine : Start...
25.125
88
0.694385
[ "MIT" ]
2pac1/WalletWasabi
WalletWasabi/Http/Models/RequestLine.cs
1,407
C#
//using System; //using System.Linq.Expressions; //using Topics.Radical.Linq; //using Topics.Radical.Validation; //namespace Topics.Radical.Design //{ // public interface ILivePropertyBuilder<T, TValue> // { // } //}
17.615385
54
0.68559
[ "MIT" ]
pdeligia/nekara-artifact
TSVD/Radical/src/net35/Radical.Design/Property Builders/ILivePropertyBuilder.cs
231
C#
namespace playing_with_rapidapi.Models { public class WeatherByZipCode { public string City { get; set; } = string.Empty; public string State { get; set; } = string.Empty; public decimal TempF { get; set; } public decimal TempC { get; set; } public string Weather { get; s...
36.888889
59
0.608434
[ "MIT" ]
solthoth/playing-with-rapidapi
src/Models/WeatherByZipCode.cs
664
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.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading.Tasks; using Microsoft.As...
46.688789
182
0.648527
[ "Apache-2.0" ]
Pilchie/aspnetcore-tooling
src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test/ProjectSystem/ProjectStateTest.cs
52,060
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; namespace JoergIsAGeek.Workshop.Enterprise.WebApplicationAuth.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ...
26.071429
95
0.791781
[ "MIT" ]
joergkrause/mvc2ng
JoergIsAGeek.Workshop.Enterprise.WebApplicationAuth/Models/ApplicationUser.cs
367
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
36.233871
124
0.574672
[ "Apache-2.0" ]
370041597/WeiXinMPSDK
src/Senparc.Weixin.MP/Senparc.WeixinTests/Utilities/HttpUtility/GetTests.cs
4,891
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mocean.Voice.McObj { public class Collect : AbstractMc { public string EventUrl { set => this.requestData["event-url"] = value; get => this.requestData["event-url"].ToString();...
32.461538
136
0.587678
[ "MIT" ]
MoceanAPI/mocean-sdk-dotnet
Mocean/Voice/McObj/Collect.cs
1,268
C#
using System.Collections.Generic; using System.IO; using System.Linq; namespace Cunning_Linguist { public class Linguist { private Dictionary<string, int> _words; public Linguist() { _words = ReadWordsFromFile("wordlist.txt"); Score(); } public...
28.751678
145
0.408964
[ "MIT" ]
Tzarnal/Cunning-Linguist
Linguist.cs
4,286
C#
using PiRhoSoft.Utilities.Editor; using UnityEngine; using UnityEngine.UIElements; namespace PiRhoSoft.Utilities.Samples { public class SliderCodeSample : CodeSample { public override void Create(VisualElement root) { var ratingSlider = new SliderFloatField("Rating", -10, 10); ratingSlider.value = 0; r...
33
134
0.753623
[ "MIT" ]
janmikusch/PiRhoUtilities
Assets/PiRhoUtilities/Samples/PiRhoUtilitySamples/Scripts/Editor/Slider/SliderCodeSample.cs
761
C#
// Copyright (c) Jeroen van Pienbroek. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. using AdvancedInputFieldPlugin; using UnityEngine; using UnityEngine.UI; namespace AdvancedInputFieldSamples { public class LoginView: MonoBehaviour { ...
26.155172
101
0.748846
[ "MIT" ]
Yunatan/AdvancedInputField
Assets/AdvancedInputField/Samples/Scripts/LoginView.cs
1,519
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
32.647059
84
0.501802
[ "MIT" ]
donstany/Sand_Box
ClientScriptManager/Account/AddPhoneNumber.aspx.designer.cs
1,112
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using EnterpriseLibrary.Common.Configuration; using EnterpriseLibrary.TransientFaultHandling.Bvt.Tests.TestObjects; using EnterpriseLibrary.TransientFaultHandling.Configuration; using Microsoft.Vi...
34.32
187
0.573094
[ "Apache-2.0" ]
EnterpriseLibrary/transient-fault-handling-application-block
BVT/TransientFaultHandling.BVT/Sql/SqlDatabaseTransientErrorDetectionStrategyFixture.cs
6,008
C#
using CSESoftware.Repository.SqlBulkRepositoryCore.TestDatabase; using CSESoftware.Repository.SqlBulkRepositoryCore.TestProject.Setup; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace CSESoftware.Repository.SqlBulkRepositoryCore.TestProject { ...
36.828125
108
0.602461
[ "Apache-2.0" ]
CSESoftwareInc/Repository.SqlBulkRepositoryCore
src/CSESoftware.Repository.SqlBulkRepositoryCore.TestProject/UpdateTests.cs
7,073
C#
using Esquio.UI.Api.Infrastructure.Data.DbContexts; using Esquio.UI.Api.Shared.Models.Statistics.Plot; using MediatR; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Data; using System.Threading; using System.Threading.Tasks...
38.118421
138
0.63583
[ "Apache-2.0" ]
andrew-flatters-bliss/Esquio
src/Esquio.UI.Api/Scenarios/Statistics/Plot/PlotStatisticsRequestHandler.cs
2,899
C#
namespace DotNetInterceptTester.My_System.IO.StreamReader { public class ReadLine_System_IO_StreamReader { public static bool _ReadLine_System_IO_StreamReader( ) { //Parameters //ReturnType/Value System.String returnVal_Real = null; System.String returnVal_Intercepted = null; //Exception ...
20.468085
127
0.676715
[ "MIT" ]
SecurityInnovation/Holodeck
Test/Automation/DotNetInterceptTester/DotNetInterceptTester/System.IO.StreamReader.ReadLine().cs
962
C#
using System.Collections.Generic; using static LiteDB.Constants; namespace LiteDB.Engine { /// <summary> /// Implement basic document loader based on data service/bson reader /// </summary> internal class DatafileLookup : IDocumentLookup { protected readonly DataService _data; prot...
27.780488
100
0.592625
[ "MIT" ]
5118234/LiteDB
LiteDB/Engine/Query/Lookup/DatafileLookup.cs
1,141
C#
using UnityEngine; using System.Collections; public class PipeCurvedOpened : PipeBehaviour { // ------------------------------------------------------------------------------------- // Variables. // ------------------------------------------------------------------------------------- private float minPosition =...
31.311828
124
0.563187
[ "CC0-1.0" ]
ThomasRouvinez/InfiniteRacer
Assets/Scripts/Navigation/PipeCurvedOpened.cs
2,914
C#
using OneSet.ViewModels; using Xamarin.Forms; namespace OneSet.Views { public class BasePage<T> : ContentPage where T : BaseViewModel { public T ViewModel { get; set; } } }
17.727273
66
0.666667
[ "MIT" ]
vasileiossam/One-Set-To-Failure
OneSet/Views/BasePage.cs
197
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\d3d12umddi.h(12820,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct D3D12DDI_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264_0080_2 { pu...
31
91
0.72296
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/D3D12DDI_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264_0080_2.cs
529
C#
using Homuai.Communication.Error; using Homuai.Exception; using Homuai.Exception.ExceptionsBase; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using System.Net; namespace Homuai.Api.Filter { public class ExceptionFilter : IExceptionFilter { public void OnException(ExceptionCo...
38
121
0.684211
[ "Unlicense" ]
welissonArley/Homuai
scr/Backend/Homuai.Api/Filter/ExceptionFilter.cs
1,788
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Data.SqlClient; using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Relational; using Microsoft.Framew...
38.446809
141
0.66021
[ "Apache-2.0" ]
MikaelEliasson/EntityFramework
test/EntityFramework.SqlServer.Tests/SqlServerConnectionTest.cs
1,807
C#
// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993] for details. // All other rights reserved. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Windows...
35.86859
147
0.561255
[ "MIT" ]
danielhidalgojunior/zrageadminpanel
WpfToolkit/Input/AutoCompleteBox/System/Windows/Automation/Peers/AutoCompleteBoxAutomationPeer.cs
11,193
C#
#if NETSTANDARD || NETFRAMEWORK using Annex.Collections; using NUnit.Framework; using Shouldly; using System; using System.Collections.Generic; namespace Annex.Test.Collections { public sealed class DictionaryExtensions_GetValueOrDefaultTest { [Test, AutoDomainData] public void DefaultNullThisT...
40.05
111
0.647108
[ "MIT" ]
gtbuchanan/annex-net
test/Annex.Test/Collections/DictionaryExtensions_GetValueOrDefaultTest.cs
2,403
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 ...
37.057692
142
0.558381
[ "Apache-2.0" ]
aricooperman/jLean
orig-src/Messaging/StreamingApi.cs
3,856
C#
using Discord; using Discord.Commands; using Discord.WebSocket; using NadekoBot.Common.Attributes; using NadekoBot.Extensions; using NadekoBot.Modules.Xp.Common; using NadekoBot.Modules.Xp.Services; using NadekoBot.Core.Services; using NadekoBot.Core.Services.Database.Models; using System.Linq; using System.Threading....
39.22108
142
0.539621
[ "MIT" ]
ArhangelAgrail/AnileneBot
NadekoBot.Core/Modules/Xp/Xp.cs
15,259
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace AppContinuum...
32.368421
123
0.645528
[ "Apache-2.0" ]
sulmanraja/appcon2
Applications/AppContinuum/Startup.cs
1,232
C#
namespace JustGestures.WizardItems { partial class UC_W_activation { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </sum...
49.97786
182
0.621234
[ "MIT" ]
mdzurenko/just-gestures
JustGestures/WizardItems/UC_W_activation.Designer.cs
13,546
C#
// 《Learning Hard 学习笔记》代码 // http://www.ituring.com.cn/book/1604 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace LambdaExpression1 { class Program { static void Main(string[] args) { // Lambda表达式的演变过程 ...
29.465116
98
0.544199
[ "MIT" ]
imba-tjd/CSharp-Code-Repository
Sample/LambdaExpression.cs
3,008
C#
using System; using HotChocolate.Language; using HotChocolate.Types; using Snapshooter.Xunit; using Xunit; namespace HotChocolate.Data.Filters.Expressions { public class QueryableFilterVisitorEnumTests : FilterVisitorTestBase { [Fact] public void Create_EnumEqual_Expression() ...
29.165217
90
0.522063
[ "MIT" ]
Asshiah/hotchocolate
src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorEnumTests.cs
6,710
C#
namespace Lpp.Dns.Data.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<Lpp.Dns.Data.DataContext> { public Configuration() { AutomaticMigration...
25.454545
93
0.630357
[ "Apache-2.0" ]
Missouri-BMI/popmednet
Lpp.Dns.Data/Migrations/Configuration.cs
560
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DBreeze; using DBreeze.DataTypes; using NBitcoin; using Stratis.Bitcoin.Configuration; using Stratis.Bitcoin.Utilities; namespace Stratis.Bitcoin.Base { public interface IChainRepository : IDisposable { ...
32.545455
140
0.524632
[ "MIT" ]
MIPPL/StratisBitcoinFullNode
src/Stratis.Bitcoin/Base/ChainRepository.cs
3,940
C#
using System; using System.Windows.Forms; namespace CarRentalFormsRestHost { internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] private static void Main() { Application.EnableVisualS...
23.894737
65
0.592511
[ "MIT" ]
TeknikhogskolanGothenburg/WCFMorgan
CarRentalFormsRestHost/Program.cs
456
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace TollByRsu.Model { public class CommIO_PcRsu_Tcp : CommIO_PcRsu { #region constructor public CommIO_PcRsu_Tcp() { ...
22.359375
97
0.486373
[ "MIT" ]
sqf-ice/toll_by_rsu
TollByRsu/TollByRsu/Model/CommIO_PcRsu_Tcp.cs
2,888
C#
namespace BaristaLabs.Skrapr.Extensions { using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Dom = ChromeDevTools.DOM; /// <summary> /// Contains common helper methods for the DOM...
28.143885
146
0.515082
[ "MIT" ]
BaristaLabs/BaristaLabs.Skrapr
src/BaristaLabs.Skrapr.Core/Extensions/DOMAdapterExtensions.cs
7,826
C#
//----------------------------------------------------------------------- // <copyright file="TestProbeSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> //...
32.940299
107
0.531038
[ "Apache-2.0" ]
IgorFedchenko/akka.net
src/core/Akka.TestKit.Tests/TestActorRefTests/TestProbeSpec.cs
2,209
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using MSBDataSlave.Schema; using MSBDataSlave.Data; using SeaQuail.Data; namespace SeaQuail_DiagramTool.Model { [SchemaHintTable(TableName = "DiagramUser")] public class DGUser : DGBase<DGUser> { #region Propertie...
25.433962
97
0.549703
[ "MIT" ]
gjcampbell/seaquail-legacy
sourceCode/SeaQuail_DiagramTool/Model/DGUser.cs
1,350
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Infrastructure; using Modix.Data.Models.Core; using Modix.Data.Repositories; using Modix.Data.Test.TestData; using NSubstitute; using NUnit.Framework; using Shouldly; namespace Modi...
42.083904
228
0.639907
[ "MIT" ]
333fred/MODiX
Modix.Data.Test/Repositories/DesignatedChannelMappingRepositoryTests.cs
24,579
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.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using...
35.528302
145
0.695698
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/mfmediaengine/IMFTimedTextTrackTests.cs
1,885
C#
namespace PackageEditor { partial class AutoUpdateForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
44.769231
146
0.590511
[ "MIT" ]
ChenallFork/cameyo
PackageEditor/AutoUpdateForm.Designer.cs
18,044
C#
// SharpDevelop samples // Copyright (c) 2007, AlphaSierraPapa // 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, th...
38.517857
101
0.753825
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
samples/CustomPad/MyCustomPad.cs
2,157
C#
using System; using Microsoft.Hadoop.MapReduce; namespace SimpleRegexFilter { class Program { static void Main(string[] args) { var hadoop = Hadoop.Connect(); var config = new HadoopJobConfiguration { InputPath = "/data/posts", ...
22.363636
61
0.542683
[ "MIT" ]
SaschaDittmann/MapReduceSamples
MapReduceSamples/SimpleRegexFilter/Program.cs
494
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using IdentityServer4.Models; using System.Collections.Generic; using IdentityServer4; using Microsoft.Extensions.Configuration;...
31.929577
107
0.519629
[ "MIT" ]
ANgajasinghe/practical-dapr
src/Identity/CoolStore.IdentityServer/Config.cs
2,267
C#
using System; using System.Collections.Generic; namespace LibSlyBroadcast.Extensions { public static class SlyBroadcastExts { public static DateTime ToEst(this DateTime dt) { var est = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"); return TimeZoneInfo.Con...
34.1
115
0.693548
[ "MIT" ]
acaxlabs/LibSlyBroadcast
LibSlyBroadcast/SlyBroadcastExts.cs
684
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.Xam...
37.12069
99
0.61333
[ "Apache-2.0" ]
bakulev/Usb3Vision-UWP-WinUsb
UwpGetImage/App.xaml.cs
4,308
C#
using System; using System.IO; using System.Net; namespace RedditSharp { public class MultipartFormBuilder { public HttpWebRequest Request { get; set; } private string Boundary { get; set; } private MemoryStream Buffer { get; set; } private TextWriter TextBuffer { get; set; } ...
34.103896
130
0.544174
[ "MIT" ]
BTero/RedditSharp
RedditSharp/MultipartFormBuilder.cs
2,628
C#
namespace Vantage.Measurements { [CoreUnitType] public interface IVolumeUnit : IUnit { double ToCubicMeters(double value); double FromCubicMeters(double value); } }
18.090909
45
0.668342
[ "MIT" ]
VantageSoftware/Vantage.Measurements
src/Vantage.Measurements/IVolumeUnit.cs
201
C#
using NAudio.Wave; using NLog; using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reactive.Concurrency; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Text.RegularExpressions; namespace AudioPass { /// <summary> ///...
40.78972
118
0.566502
[ "BSD-3-Clause" ]
MiloszKrajewski/dnug-rx
src/AudioPass/AudioPassthrough.cs
8,731
C#
namespace LinFx.Extensions.AspNetCore.ExceptionHandling; /// <summary> /// 异常处理选项 /// </summary> public class ExceptionHandlingOptions { public bool SendExceptionsDetailsToClients { get; set; } = false; public bool SendStackTraceToClients { get; set; } = true; }
22.833333
69
0.729927
[ "MIT" ]
linfx/linfx
src/LinFx/Extensions/AspNetCore/ExceptionHandling/ExceptionHandlingOptions.cs
288
C#
// Copyright 2014-2017 ClassicalSharp | Licensed under BSD-3 using System; using ClassicalSharp.Entities; using ClassicalSharp.GraphicsAPI; using ClassicalSharp.Model; using OpenTK; using BlockID = System.UInt16; namespace ClassicalSharp.Renderers { public class HeldBlockRenderer : IGameComponent { BlockID bl...
31.063241
110
0.678076
[ "BSD-3-Clause" ]
RMuskovets/ClassiCube
ClassicalSharp/ClassicalSharp/Rendering/HeldBlockRenderer.cs
7,861
C#
using System; using System.Collections.Generic; namespace WebApi.Services { public class PropertyMapping<TSource, TDestination> : IPropertyMapping { public Dictionary<string, PropertyMappingValue> _mappingDictionary { get; private set; } public PropertyMapping(Dictionary<string, PropertyMappi...
29.823529
96
0.706114
[ "MIT" ]
olcay/dev-olcay-dir-api
Services/PropertyMapping.cs
509
C#
using Chalmers.ILL.Models; using Chalmers.ILL.Repositories; using System; namespace Chalmers.ILL.Services { public class FolioUserService : IFolioUserService { private readonly string path = "/users"; private readonly IFolioRepository _folioRepository; private readonly IJsonService _js...
30.06383
103
0.581033
[ "MIT" ]
ChalmersLibrary/Chillin
Chalmers.ILL/Services/FolioUserService.cs
1,419
C#
using Skork.keywords; using System.Collections.Specialized; using System.Windows.Forms; namespace Skork.util { class SkorkCompile { /// <summary> /// /// </summary> private StringCollection code; /// <summary> /// Takes a parsed string collection and //...
24.957143
99
0.480824
[ "Apache-2.0" ]
Reapism/Skork
Skork/Skork/util/SkorkCompile.cs
3,496
C#
using Microsoft.Extensions.Caching.Memory; using NiceHash.Core.Config; using NiceHash.Core.Exceptions; using NiceHash.Core.Models; using NiceHash.Core.Utils; using System.Net.Http.Headers; using System.Net.Http.Json; using System.Text; namespace NiceHash.Core.Services; public interface INiceHashService { Task<TR...
39.453237
166
0.676331
[ "MIT" ]
jernejk/NiceHash
src/NiceHash.Core/Services/NiceHashService.cs
5,486
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: * * * Redistributions of source code must retain the above * copyright notice...
36.7872
218
0.507872
[ "BSD-2-Clause" ]
ushamandya/xenadmin
XenAdmin/Wizards/PatchingWizard/PatchingWizard_AutomatedUpdatesPage.cs
22,994
C#
// Copyright 2014 Serilog Contributors // Based on Topshelf.Log4Net, copyright 2007-2012 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 Licen...
33.160194
118
0.631679
[ "Apache-2.0" ]
Mpdreamz/serilog
src/Serilog.Extras.Topshelf/Extras/Topshelf/SerilogWriter.cs
6,831
C#
using SIPSorcery.GB28181.Servers.SIPMessage; using SIPSorcery.GB28181.Sys.XML; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SIPSorcery.GB28181.Servers { public class GB28181Catalog { private static GB28181Catalog _instanc...
22.965517
61
0.542042
[ "BSD-2-Clause" ]
7956968/gb28181-sip
SIPSorcery.28181/Servers.Cores/GB28181Catalog.cs
1,368
C#
using DevZest.Data.CodeAnalysis; using DevZest.Data.Presenters; using Microsoft.CodeAnalysis; using System.Collections; using System.Linq; namespace DevZest.Data.Tools { partial class RelationshipWindow { private sealed class Presenter : SimplePresenter { private readonly Scalar<st...
45.902174
152
0.61757
[ "MIT" ]
DevZest/RDO.Net
src/Tools.Vsix/RelationshipWindow.Presenter.cs
4,225
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.Buffers; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.IO.Pipelines; using System...
36.968037
167
0.525445
[ "Apache-2.0" ]
Asifshikder/aspnetcore
src/Http/WebUtilities/src/FormPipeReader.cs
16,192
C#
using System; using System.IO; namespace CursoCSharp.Api { class ExemploDirectoryInfo { public static void Executar() { var dirProjeto = @"~/source/repos/CursoCSharp/CursoCSharp".ParseHome(); var dirInfo = new DirectoryInfo(dirProjeto); if(!dirI...
27.358974
84
0.504217
[ "MIT" ]
GabrielSA87/c-sharp-course-pt-br
Api/ExemploDirectoryInfo.cs
1,070
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.ApplicationModel.Contacts { #if false || false || false || false || false || false || false [global::System.FlagsAttribute] public enum ContactQuerySearchFields : uint { // Skipping already decl...
47.823529
101
0.811808
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Contacts/ContactQuerySearchFields.cs
813
C#
// Copyright 2021 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 ...
57.835338
512
0.657324
[ "Apache-2.0" ]
Mattlk13/google-cloud-dotnet
apis/Google.Cloud.Gaming.V1Beta/Google.Cloud.Gaming.V1Beta/RealmsServiceClient.g.cs
76,921
C#
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Identity_Razor.Data.Migrations { public partial class CreateIdentitySchema : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBu...
43.099548
122
0.498688
[ "MIT" ]
chavi25/Identity_razor
Identity_Razor/Data/Migrations/00000000000000_CreateIdentitySchema.cs
9,527
C#
/*NEVER BUG*/ // // PureMVC C# Standard // // Copyright(c) 2017 Saad Shams <saad.shams@puremvc.org> // Your reuse is governed by the Creative Commons Attribution 3.0 License // using System; using System.Collections.Concurrent; using PureMVC.Interfaces; namespace PureMVC.Core { /// <summary> /// A Singleto...
37.2
129
0.554531
[ "MIT" ]
makoolabs/xframework
Assets/Plugins/XFramework/MVC/PureMVC/Core/Model.cs
5,208
C#
namespace SRDebugger.UI.Controls.Data { using System; using System.Collections.Generic; using SRF; using SRF.UI; using UnityEngine; using UnityEngine.UI; public class NumberControl : DataBoundControl { private static readonly Type[] IntegerTypes = { typeof (...
30.147208
106
0.529887
[ "MIT" ]
517752548/EXET
Unity/Assets/ThirdParty/StompyRobot/SRDebugger/Scripts/UI/Controls/Data/NumberControl.cs
5,941
C#
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0x2CAC0A45)] public class STU_2CAC0A45 : STUConfigVarFloatBase { } }
22.888889
55
0.757282
[ "MIT" ]
Mike111177/OWLib
TankLib/STU/Types/STU_2CAC0A45.cs
206
C#
using ARMeilleure.Decoders; using ARMeilleure.IntermediateRepresentation; using ARMeilleure.State; using ARMeilleure.Translation; using static ARMeilleure.Instructions.InstEmitAluHelper; using static ARMeilleure.Instructions.InstEmitHelper; using static ARMeilleure.IntermediateRepresentation.Operand.Factory; namespac...
29.410832
129
0.528476
[ "MIT" ]
4para/Ryujinx
ARMeilleure/Instructions/InstEmitAlu32.cs
22,264
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace intigrationtests.SampleWeb.Pages { public class PrivacyModel : PageModel { private readonly ILogger<PrivacyModel> _logger; public PrivacyModel(ILogger<PrivacyModel> logger) { _logger = log...
20.578947
57
0.631714
[ "MIT" ]
calebjenkins/FakeAuth
Tests/intigrationtests.SampleWeb/Pages/Privacy.cshtml.cs
393
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------...
46.272727
149
0.554028
[ "MIT" ]
joelhoisko/DotNET.Fundamentals
Source/Assemblies/Rules/NameStartsWith.cs
1,018
C#
using System.Windows; using System.Windows.Navigation; using Game.Input; using Game.Process; using Game.Utils; using GameEngine; namespace Game { public partial class MainPage { private IInputObserver _inputObserver; private GameScreenController _gameScreenController; private GameProce...
30.258065
119
0.615139
[ "MIT" ]
asizikov/wp-2048
src/Game/MainPage.xaml.cs
1,878
C#