content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
29.642857
101
0.665663
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/DatabaseMigrationService/Generated/Model/DynamoDbSettings.cs
1,660
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; using System.Diagnostics; using Org.BouncyCastle.Crypto.Utilities; namespace Org.BouncyCastle.Math.Raw { internal abstract class Nat { private const ulong M = 0xFFFFFFFFUL; public static uint Add...
29.871456
112
0.333122
[ "MIT" ]
czlsy009/UnityAppMVCFramework
Framework/Assets/SilenceFramework/Libs/Best HTTP (Pro)/BestHTTP/SecureProtocol/math/raw/Nat.cs
31,604
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Security; using System.Threading.Tasks; using System.Windows.Forms; using Nucs.JsonSettings.Fluent; namespace Nucs.JsonSettings.Examples { static class EncryptedProgram { /// <summary> /// Th...
41.323077
153
0.539464
[ "MIT" ]
BridgerPhotonics/JsonSettings
examples/JsonSettings.Examples/EncryptedJsonSettings.cs
2,688
C#
using UnityEngine; using System.Collections; [RequireComponent (typeof(Attacker))] public class Fox : MonoBehaviour { private Attacker myAttacker; private Animator myAnimator; void Start () { myAttacker = GetComponent<Attacker>(); myAnimator = GetComponent<Animator>(); } void OnTriggerEnter2D(Collider2D...
20.03125
51
0.722309
[ "MIT" ]
kifil/GlitchGarden
Assets/Scripts/Fox.cs
643
C#
// Tree.cs // Copyright Karel Kroeze, 2020-2020 //using Multiplayer.API; using static FluffyResearchTree.Constants; namespace FluffyResearchTree { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Runtime.Seria...
36.443697
206
0.468456
[ "MIT" ]
BaalEvan/ResearchTree
Source/Graph/Tree.cs
43,368
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace MHWWeaponUsage { public static class TaskExtensions { public static async void Forget(this Task task, Action<Exception> onError = null) { ...
23.441176
89
0.513174
[ "MIT" ]
TanukiSharp/MHWWeaponUsage
MHWWeaponUsage/TaskExtensions.cs
799
C#
using System; using System.Collections; using System.Linq; using Microsoft.Extensions.DependencyInjection; using Shouldly; using Xunit; namespace Bunit { public partial class TestServiceProviderTest { private class DummyService { } private class AnotherDummyService { } private class OneMoreDummyService { } ...
31.622047
118
0.73008
[ "MIT" ]
dyllew3/bUnit
tests/bunit.core.tests/TestServiceProviderTest.cs
4,016
C#
namespace DependencyInjectionTest { public interface ITestInterface { string GetPropertyMessage(); } }
15.375
36
0.691057
[ "MIT" ]
PeteX/tomatwo-di
test/ITestInterface.cs
123
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 "li...
32.6875
108
0.630497
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Lightsail/Generated/Model/GetActiveNamesRequest.cs
2,092
C#
using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using ArangoDriver.Protocol; using ArangoDriver.Protocol.Responses; namespace ArangoDriver.Client { public class AIndex<T> where T : class { private readonly RequestFactory _requestFactory; rea...
32.285714
99
0.502212
[ "MIT" ]
mdm88/ArangoDriver
Client/Client/Indexes/AIndex.cs
3,166
C#
using System.Collections; using System.Collections.Generic; using DCL.Huds.QuestsTracker; using UnityEngine; namespace DCL.Huds.QuestsTracker { public class QuestsNotificationsController : MonoBehaviour { internal static float NOTIFICATIONS_SEPARATION { get; set; } = 0.5f; public static float D...
34.423913
161
0.627092
[ "Apache-2.0" ]
CarlosPolygonalMind/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/QuestsTrackerHUD/QuestsNotificationsController.cs
3,167
C#
version https://git-lfs.github.com/spec/v1 oid sha256:5b24b3ee1effda8bdae46da30d1200f13d757101e828a0b7ea373c4dd5fb0705 size 72556
32.5
75
0.884615
[ "MIT" ]
kenx00x/ahhhhhhhhhhhh
ahhhhhhhhhh/Library/PackageCache/com.unity.render-pipelines.high-definition@7.1.8/Editor/ShaderGraph/HDSubShaderUtilities.cs
130
C#
using System; using System.Collections.Generic; using System.Text; namespace Omack.Core.Models { public class CurrentGroup { public int Id { get; set; } public string Name { get; set; } } }
16.923077
40
0.640909
[ "MIT" ]
KishorTiwari/OnAirMoneyTrack
Omack.Core/Models/CurrentGroup.cs
222
C#
using DbContextMappingDump.Infra.DataContracts; using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace DbContextMappingDump.Commands { // ReSharper disable once ArrangeTypeModifiers internal partial class DbContextMappingsCommand { protected override ...
43.641414
169
0.566485
[ "MIT" ]
payoneer/EFDbContextMappingsExtraction
src/DbContextMappingDump.EF/Commands/DbContextMappingsCommand.cs
8,641
C#
using System; using System.IO; using System.Buffers.Binary; internal class PNGSizeGrabber { internal static bool GetSize(string filePath, out int x, out int y) { x =y =0; FileStream fs =new FileStream(filePath, FileMode.Open, FileAccess.Read); if(fs == null) { return false; } BinaryReader br =new B...
15.732143
74
0.646992
[ "MIT" ]
Kharzette/Wally
PNGSizeGrabber.cs
881
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 30.03.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
23.456311
137
0.522558
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_002__AS_STR/Multiply/Complete/Double/Single/TestSet_R504AAB001__param.cs
4,834
C#
using System; using System.Reactive; namespace Octokit.Reactive { /// <summary> /// A client for GitHub's Collaborators on a Repository. /// </summary> /// <remarks> /// See the <a href="http://developer.github.com/v3/repos/collaborators/">Collaborators API documentation</a> for more details. ...
55.21267
158
0.633011
[ "MIT" ]
7enderhead/octokit.net
Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs
12,204
C#
using System.Text; namespace B18_EX02 { public class Cell { private const int k_LegalNumberOfInput = 2; private byte m_CellRow; private byte m_CellCol; private eSign m_CellSign; public Cell(byte i_CellRow, byte i_CellCol, eSign i_CellSign) { m_CellRo...
28.686275
109
0.533835
[ "MIT" ]
Mitelka/English-draughts
B18_EX02/Cell.cs
1,463
C#
using Swtor.Dps.LogParser.Combat; namespace Swtor.Dps.StatOptimizer.ViewModel { public class CombatViewModel { public Combat Combat { get; } public CombatViewModel(Combat combat) { Combat = combat; } } }
14.733333
43
0.719457
[ "Apache-2.0" ]
Vhaerlein/swtor.playground
src/Swtor.Dps.StatOptimizer/ViewModel/CombatViewModel.cs
223
C#
namespace Perpetuum.Zones.PBS { public interface IPBSEventHandler { void HandlePBSEvent(IPBSObject sender, PBSEventArgs e); } }
18.5
63
0.702703
[ "MIT" ]
LoyalServant/PerpetuumServerCore
Perpetuum/Zones/PBS/IPBSEventHandler.cs
148
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using MySql.Data.MySqlClient; using Steeltoe.Connector.Services; using System; using Xunit; namespace Steel...
35.204545
153
0.62621
[ "Apache-2.0" ]
Chatina73/steeltoe
src/Connectors/test/ConnectorBase.Test/MySql/MySqlProviderConnectorFactoryTest.cs
1,551
C#
using Letter.IO; namespace Letter.Kcp { public interface IKcpBootstrap : IBootstrap<KcpOptions, IKcpSession, IKcpChannel> { void ConfigurationGlobalThread(IKcpScheduler scheduler); } }
22.888889
85
0.737864
[ "MIT" ]
gedo4547/letter
src/Letter.Kcp/IKcpBootstrap.cs
208
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace ODataValidator.Rule { #region Namespaces using System; using System.Collections.Generic; using System.ComponentModel.Compositio...
43.728814
255
0.527616
[ "MIT" ]
OData/ValidationTool
src/CodeRules/Conformance/IntermediateConformance100705.cs
10,322
C#
namespace XmlUnit { using System.IO; using System.Text; using System.Xml.XPath; public class XPath { private readonly string _xPathExpression; public XPath(string anXPathExpression) { _xPathExpression = anXPathExpression; } public bool X...
37.442623
87
0.601138
[ "BSD-3-Clause" ]
wallymathieu/XmlUnit
src/csharp/XPath.cs
2,284
C#
using System; using System.Globalization; using KlotosLib.StringTools; namespace KlotosLib.Angles { /// <summary> /// Инкапсулирует один геометрический угол, включая его величину и единицу измерения. Поддерживает угол в рамках одного оборота. /// Поддерживает геометрические операции над углами. Поддержив...
42.254011
152
0.548925
[ "MIT" ]
Klotos/KlotosLib
KlotosLib/Angles/GeometricAngle.cs
53,131
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 "li...
41.551471
196
0.613874
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/MediaConnect/Generated/Model/Internal/MarshallTransformations/DeleteFlowResponseUnmarshaller.cs
5,651
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.JsonPatch; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.Documents; using Microsoft.Azure.Documents.Client; using Microsoft.Azure.WebJobs;...
37.95
136
0.603096
[ "MIT" ]
softchris/the-urlist
backend/src/LinkyLink/UpdateList.cs
3,036
C#
using CSharpSpeed; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace InstrumentedLibrary { /// <summary> /// The interpolate cubic bezier1d tests class. /// </summary> [DisplayName("Cubic B...
43.576642
237
0.584422
[ "MIT" ]
Shkyrockett/CSharpSpeed
InstrumentedLibrary/Geometry/Interpolation/Bezier/InterpolateBezierCubic1DTests.cs
5,972
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Framework { public class UIActionStatusMessage { #region constructors /// <summary> /// default constructor /// </summary> public UIActionStatusMessage() { } ...
32.080357
226
0.563874
[ "MIT" ]
ntierontime/Log4Net
Frameworks/Framework/UIActionStatusMessage.cs
3,593
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.D...
34.912442
250
0.526835
[ "MIT" ]
AArnott/winforms
src/System.Windows.Forms/src/System/Windows/Forms/ToolStripItem.cs
174,250
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
41.135071
279
0.551688
[ "MIT" ]
bganapa/azure-powershell
src/Storage/custom/Dataplane.v2/ResourceV2.Designer.cs
67,751
C#
using System; using NetRuntimeSystem = System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.ComponentModel; using System.Reflection; using System.Collections.Generic; using NetOffice; namespace NetOffice.AccessApi { ///<summary> /// DispatchInterface _Navigation...
30.236111
212
0.667246
[ "MIT" ]
NetOffice/NetOffice
Source/Access/DispatchInterfaces/_NavigationControl.cs
69,664
C#
using Shouldly.Tests.Strings; using Xunit; namespace Shouldly.Tests.ShouldNotBeEmpty { public class ArrayScenario { [Fact] public void ArrayScenarioShouldFail() { Verify.ShouldFail(() => new int[0].ShouldNotBeEmpty("Some additional context"), errorWithSource: @"new int[0] should not ...
16.444444
55
0.662162
[ "BSD-3-Clause" ]
EvilMindz/shouldly
src/Shouldly.Tests/ShouldNotBeEmpty/ArrayScenario.cs
594
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; using FT = MS.Internal.Xml.XPath.Function.FunctionType; namespace MS.Internal.Xml.XPath { internal ...
31.316667
113
0.445716
[ "MIT" ]
690486439/corefx
src/System.Xml.XPath/src/System/Xml/XPath/Internal/NodeFunctions.cs
3,758
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...
30.038961
101
0.623
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/ListThingGroupsResponse.cs
2,313
C#
using System; using FluentNHibernate.Testing; using NUnit.Framework; using StickEmApp.Dal; using StickEmApp.Entities; namespace StickEmApp.UnitTest.Dal.Mapping { [TestFixture] public class VendorMappingTestFixture : UnitOfWorkAwareTestFixture { [Test] public void TestMap() { ...
44.829268
83
0.624048
[ "MIT" ]
jdt/StickEmApp
Source/StickEmApp/StickEmApp.UnitTest/Dal/Mapping/VendorMappingTestFixture.cs
1,840
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using NEXCORE.Common; using NEXCORE.Common.Data; using System.Collections; namespace SK.WMS.INV50.CON.UI { public partial class CO...
19.130435
52
0.706818
[ "MIT" ]
hsi79/SK.WMS
60.UI Layer/SK.WMS.INV50.CON.UI/CON5030.cs
442
C#
//======================================================================= // Copyright (C) 2010-2013 William Hallahan // // 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...
42.962199
159
0.593825
[ "MIT" ]
WorkingRobot/WorldExplorer
WorldExplorer/SparseCollections/Sparse4DMatrix.cs
12,504
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace Strawberrey.API { public class Program { pub...
22.16
57
0.723827
[ "MIT" ]
Nufflee/Strawberrey
src/Strawberrey.API/Program.cs
556
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("Ser...
42.708333
84
0.782439
[ "MIT" ]
gdodd1977/ServiceFabric.ServiceBus
ServiceFabric.ServiceBus.Services/Properties/AssemblyInfo.cs
1,028
C#
// * ************************************************************************** // * Copyright (c) Clinton Sheppard <sheppard@cs.unm.edu> // * // * This source code is subject to terms and conditions of the MIT License. // * A copy of the license can be found in the License.txt file // * at the root of this distributio...
38.235294
97
0.575769
[ "MIT" ]
handcraftsman/Afluistic
src/Afluistic/Services/JsonSerializer.cs
2,600
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...
48.258621
571
0.658985
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/KeyVault/V20200401Preview/Inputs/VaultPropertiesArgs.cs
5,598
C#
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace CodeSnippets.UnitTests { [Trait("代码片段", "异常操作测试")] public class ExceptionOperationTest { } }
14.428571
39
0.707921
[ "MIT" ]
zhaobingwang/sample
test/CodeSnippets.UnitTests/ExceptionOperationTest.cs
224
C#
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // //********************************************************* using System.Collections.Generic; using System; using CustomDeviceAccess; namespace SDKTemplate { public partial class MainPage...
40.2
136
0.586512
[ "MIT" ]
mfloresn90/CSharpSources
Custom driver access sample/C#/Constants.cs
1,809
C#
using System; namespace EasyDeploy.Core.Logger { public class ConsoleLogger : ILogger { public void Exception(Exception exception) { Log(exception.Message); // TODO: better :-) } public void Log(string message) { Console.WriteLine(message); ...
18.555556
55
0.556886
[ "MIT" ]
frostieDE/easy-deploy
EasyDeploy.Core/Logger/ConsoleLogger.cs
336
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...
47.887097
178
0.683563
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/ElastiCache/Generated/Model/SnapshotAlreadyExistsException.cs
5,938
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace StoreDL.Migrations { public partial class EMM : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { } } }...
17.833333
71
0.657321
[ "Unlicense" ]
211004-Reston-NET/Angel-Santos-P1
StoreDL/Migrations/20211213232439_EMM.cs
323
C#
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2017 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restrict...
46.135593
116
0.688464
[ "MIT" ]
Expasys/Expasys.Web.Platform
DNN Platform/Library/Services/Localization/LocalizationExtensions.cs
2,725
C#
using System; using PrimeFuncPack.UnitTest; using Xunit; using static PrimeFuncPack.UnitTest.TestData; namespace PrimeFuncPack.Tests; partial class TwoDependencyTest { [Fact] public void From_Resolver_FirstIsNull_ExpectArgumentNullException() { var second = ZeroIdRefType; var ex = Assert....
26.886792
90
0.633684
[ "MIT" ]
pfpack/pfpack-dependency-pipeline
src/dependency-core/Core.Tests/Tests.Dependency.02/Factory/From.Resolver.cs
1,425
C#
using JPBotelho; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Camera))] public class FlyCam : MonoBehaviour { [SerializeField] private float speed = 10; [SerializeField] private float positionDampTime = 0.2f; [SerializeField] private float tangentDampTime = 4; ...
28.782979
104
0.554701
[ "MIT" ]
mbaske/procedural-cave
Assets/DemoScene/FlyCam.cs
6,766
C#
// Authors: // Rafael Mizrahi <rafim@mainsoft.com> // Erez Lotan <erezl@mainsoft.com> // Oren Gurfinkel <oreng@mainsoft.com> // Ofer Borstein // // Copyright (c) 2004 Mainsoft Co. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated do...
30.028037
86
0.727669
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Data/Test/System.Data.Tests.Mainsoft/System.Data/ForeignKeyConstraint/ForeignKeyConstraint_Equals_O.cs
3,213
C#
namespace BurnSystems.Collections { /// <summary> /// This interface has to be implemented by all objects, having a certain /// key-object and wants to be used the advantages of the autodictionary /// for example. /// </summary> public interface IHasKey { /// <summary> /// ...
22.4
77
0.555804
[ "MIT" ]
mbrenn/burnsystems
src/BurnSystems/Collections/IHasKey.cs
450
C#
using System; namespace Epam.Task3.Game { public class Player : Objects, IAction, IDraw { public void Circumvent() { } public void TakeBonus() { } public override void Draw() { throw new NotImplementedException(); } ...
14.181818
49
0.442308
[ "MIT" ]
VeronicaDedova/XT-2018Q4
Task3/Epam.Task3.Game/Objects/Player.cs
470
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using VaporStore.Data.Models.Enums; namespace VaporStore.DataProcessor.Dto.Import { public class ImportCardJsonDto { [RegularExpression(@"(\d{4}) (\d{4}) (\d{4}) (\d{4})")] [Required]...
23.173913
63
0.617261
[ "MIT" ]
aalishov/SoftUni
06-Entity-Framework-Core-June-2020/Exams/Exam/01. Model Definition_Skeleton + Datasets/VaporStore/DataProcessor/Dto/Import/ImportCardJsonDto.cs
535
C#
using System; namespace CqrsMovie.SharedKernel.Domain.Ids { public class MovieId : DomainId { public MovieId(Guid value) : base(value) { } } }
13.583333
44
0.656442
[ "MIT" ]
Iridio/CQRS-ES_testing_workshop
CqrsMovie.SharedKernel/Domain/Ids/MovieId.cs
165
C#
using Netboot.Utility.Cache.Domains; using System; namespace Netboot.Utility.Cache.Extensions { public static class DistributedCacheOptionsExtensions { public static DistributedCacheOptions UseSerialization( this DistributedCacheOptions options, Func<object, byte[]> serializer,...
27.578947
63
0.648855
[ "MIT" ]
NetbootCommunity/Dotnet-Cache
Src/Netboot.Utility.Cache/Extensions/DistributedCacheOptionsExtensions.cs
526
C#
using LoanApi.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LoanApi.Repository { public class SmsRepository : GenericRepository<Sms>, ISmsRepository { public SmsRepository(AppDbContext dbContext) ...
25.685714
97
0.629588
[ "MIT" ]
anwarul/loanapi
LoanApi/Repository/SmsRepository.cs
901
C#
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("Atm")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly: As...
35.107143
81
0.735504
[ "MIT" ]
OrianaCadavid/real-time-programming
Atm/Atm/Properties/AssemblyInfo.cs
985
C#
// <auto-generated /> using System; using FileExample.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; name...
36.333333
128
0.634862
[ "MIT" ]
suncoast-devs/cohort-17
week-08/FileExample/Migrations/20200407151409_AddedUploadedImageTable.Designer.cs
1,637
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utili...
40.037879
161
0.628004
[ "Apache-2.0" ]
AdamSpeight2008/roslyn-1
src/Workspaces/CoreTest/WorkspaceTests/CommandLineProjectTests.cs
5,287
C#
//----------------------------------------------------------------------- // <copyright file="ExampleUnit.cs" company="Junle Li"> // Copyright (c) Junle Li. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace Vsxmd.Units { using System; ...
33.690909
108
0.481382
[ "MIT" ]
trifenix/Vsxmd
Vsxmd/Units/ExampleUnit.cs
1,856
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.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Exten...
30.637931
143
0.61058
[ "MIT" ]
jeremybytes/mvc-conventions-aspnet
Startup.cs
1,777
C#
#region Using Statements using System; using System.Threading; using System.Globalization; using RogueEssence.Content; using RogueEssence.Data; using RogueEssence.Dev; using RogueEssence.Dungeon; using RogueEssence.Script; using RogueEssence; using PMDC.Dev; using System.Reflection; using Microsoft.Xna.Framework; usin...
44.266033
208
0.5022
[ "MIT" ]
PMDCollab/PMDC
PMDC/Program.cs
18,638
C#
using LambdaSharp.App.EventBus; using FluentAssertions; using Newtonsoft.Json.Linq; using Xunit; namespace Test.LambdaSharp.App.EventBus.EventPatternMatcherTests { public class IsValid { //--- Methods --- [Fact] public void Empty_pattern_is_not_valid() { // arrange ...
24.972431
310
0.458049
[ "Apache-2.0" ]
LambdaSharp/LambdaSharpTool
Modules/LambdaSharp.App.EventBus/Tests.LambdaSharp.App.EventBus/EventPatternMatcherTests/IsValid.cs
9,964
C#
using System; using System.Linq; using System.Threading.Tasks; using Autofac; using Shouldly; using SugarChat.Core.Domain; using SugarChat.Core.Exceptions; using SugarChat.Core.Services.Users; using Xunit; namespace SugarChat.Database.MongoDb.IntegrationTest.DataProviders { public class UserDataProviderTests : Se...
35.321739
109
0.593058
[ "Apache-2.0" ]
SugarChat/SugarChat
test/SugarChat.Database.MongoDb.IntegrationTest/DataProviders/UserDataProviderTests.cs
4,064
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TickTrader.BotTerminal { internal interface IDropHandler { void Drop(object o); bool CanDrop(object o); } }
17.6
35
0.708333
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SoftFx/TTAlgo
TickTrader.BotTerminal/Behaviors/DragDrop/IDropHandler.cs
266
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; // 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. [asse...
36.692308
84
0.747729
[ "MIT" ]
hoovercj/vsto-outlook-busylight
OutlookLightHouse/Properties/AssemblyInfo.cs
1,434
C#
namespace Rules.Framework.Core.ConditionNodes { using System; using System.Diagnostics; /// <summary> /// A condition node with a integer data type. /// </summary> /// <typeparam name="TConditionType"> /// The condition type that allows to filter rules based on a set of conditions. /// ...
42
143
0.647741
[ "MIT" ]
Farfetch/rules-framework
src/Rules.Framework/Core/ConditionNodes/IntegerConditionNode.cs
1,638
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace WrapPanel { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
16.944444
39
0.744262
[ "MIT" ]
yacper/DevexpressLearning
Wpf/Controls/Layout/WrapPanel/WrapPanel/App.xaml.cs
307
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace IdentityServerApi { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] arg...
23.388889
76
0.631829
[ "Apache-2.0" ]
daniel-buchanan/identity-server4-docker
src/api/Program.cs
423
C#
using RESTRunner.Domain.Interfaces; using RESTRunner.Domain.Models; namespace RESTRunner.Services.StoreResults.Memory; /// <summary> /// Store Results Service /// </summary> public class MemoryStoreResultsService : IStoreResults { private readonly List<CompareResult> results = new(); /// <summary> /// Ad...
24.103448
57
0.656652
[ "MIT" ]
markhazleton/RESTRunner
RESTRunner.Services.StoreResults.Memory/MemoryStoreResultsService.cs
701
C#
public class UIOrderBoardMenu : UIScrollBoxBase // TypeDefIndex: 8746 { // Fields private bool isOpening; // 0x68 private List<UIOrderBoardMenu.OrderList> orderLists; // 0x70 [SerializeField] // RVA: 0x1731F0 Offset: 0x1732F1 VA: 0x1731F0 private Sprite[] IconSprite; // 0x78 private bool isOpeningPopup; // 0x80 ...
32.448276
76
0.742827
[ "MIT" ]
SinsofSloth/RF5-global-metadata
_no_namespace/UIOrderBoardMenu.cs
1,882
C#
using System; using System.Data.SqlClient; namespace FlexibleSqlConnectionResolver.ConnectionResolution { public interface ISqlConnectionWrapper : IDisposable { SqlConnection Connection { get; } } public class EmptySqlConnectionWrapper : ISqlConnectionWrapper { public ...
22.8
71
0.604167
[ "MIT" ]
manisero/FlexibleSqlConnectionResolver
FlexibleSqlConnectionResolver/ConnectionResolution/SqlConnectionWrapper.cs
914
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.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Ta...
47.721805
179
0.595242
[ "Apache-2.0" ]
Aprite/aspnetcore
src/Servers/IIS/IIS/test/Common.FunctionalTests/Http2Tests.cs
19,041
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("Wi...
38.405405
84
0.749472
[ "Apache-2.0" ]
satang/CoD2Rotator
CoDRotator/Properties/AssemblyInfo.cs
1,424
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
39.3
114
0.756997
[ "Apache-2.0" ]
xueandfeng/aliyun-openapi-net-sdk
aliyun-net-sdk-cloudapi/CloudAPI/Transform/V20160714/RemoveIpControlPolicyItemResponseUnmarshaller.cs
1,572
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace RealTime.SignalR.Server { public class Program { ...
28.347826
95
0.70092
[ "MIT" ]
TGrannen/dotnet-samples
RealTime/RealTime.SignalR.Server/Program.cs
652
C#
// Copyright 2011 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; using NodaTime.Text; using NUnit.Framework; namespace NodaTime.Test { public class IntervalTest { private static readonly I...
38.386986
138
0.582478
[ "Apache-2.0" ]
0xced/nodatime
src/NodaTime.Test/IntervalTest.cs
11,209
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WikiLibs.Shared.Service { public interface IUser { bool HasPermission(string name); bool IsExternal { get; } Data.Models.User User { get; } string UserId { get; } ...
16.478261
40
0.614776
[ "BSD-3-Clause" ]
WikiLibs/API
WikiLibs.Shared/Service/IUser.cs
381
C#
namespace CarDealer.Migrations { using System; using CarDealer.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; [DbContext(typeof(CarDealerContext))] partial class CarDealerContextModelSnapshot : Mo...
35.547872
125
0.455933
[ "MIT" ]
pirocorp/Databases-Advanced---Entity-Framework
Exercises/05. JavaScript Object Notation - JSON/CarDealer/Data/Migrations/CarDealerContextModelSnapshot.cs
6,685
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.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Text.RegularExpressions; u...
38.063348
174
0.540498
[ "MIT" ]
ChaseKnowlden/runtime
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ReferenceSource/ProcessLinkerXmlBase.cs
25,236
C#
using System.Diagnostics; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Dotnet.Portal.App.Areas.Identity.Pages { [AllowAnonymous] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public cla...
27.454545
88
0.695364
[ "MIT" ]
AJEETX/Employee.Management
src/Dotnet.Portal.App/Areas/Identity/Pages/Error.cshtml.cs
606
C#
using System; using HotChocolate.Language; namespace HotChocolate.Stitching.SchemaBuilding; internal static class SchemaInfoExtensions { public static ObjectTypeDefinitionNode? GetRootType( this ISchemaInfo schema, OperationType operation) { switch (operation) { cas...
26.08
56
0.627301
[ "MIT" ]
ChilliCream/prometheus
src/HotChocolate/Stitching/src/Stitching/SchemaBuilding/Extensions/SchemaInfoExtensions.cs
652
C#
#if UNITY_2019_3_OR_NEWER using UnityEditor.Experimental.GraphView; #else using UnityEditor.Experimental.UIElements.GraphView; #endif using System; using System.Linq; using UnityEditor; using UnityEngine; using VRC.Udon.Graph.Interfaces; namespace VRC.Udon.Editor.ProgramSources.UdonGraphProgram.UI.GraphView { pub...
41.5
165
0.654819
[ "Apache-2.0" ]
AverageTurtle/Town-Cuddle-Puddle
Assets/Udon/Editor/ProgramSources/UdonGraphProgram/UI/GraphView/Search/UdonSearchManager.cs
4,982
C#
#region Copyright // // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restri...
35.704918
116
0.69146
[ "MIT" ]
Mhtshum/Dnn.Platform
DNN Platform/Modules/DigitalAssets/Components/ExtensionPoint/UserControls/FileFieldsControlExtensionPoint.cs
2,181
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("Bi...
38.459459
84
0.748419
[ "MIT" ]
ivajlotokiew/Databases_Entity_Framework
Entity_Framework_Relations/BillsPaymentSystem/BillsPaymentSystem.Models/Properties/AssemblyInfo.cs
1,426
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...
30.536585
231
0.61861
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/ServiceBus/V20150801/GetNamespaceAuthorizationRule.cs
2,504
C#
using System; using System.Text.RegularExpressions; using essentialMix.Extensions; using JetBrains.Annotations; namespace essentialMix.Helpers; public static class EnvironmentHelper { private static readonly Regex __rgxIsEnvVar = new Regex("^%\\w+%$", RegexHelper.OPTIONS_I); private static readonly Regex __rgxHasE...
38.666667
114
0.780172
[ "MIT" ]
asm2025/essentialMix
Standard/essentialMix/Helpers/EnvironmentHelper.cs
930
C#
using System.Collections.Generic; using System.Threading.Tasks; using LetPortal.Core.Persistences; using LetPortal.Portal.Entities.Databases; using LetPortal.Portal.Entities.Shared; using LetPortal.Portal.Models; using LetPortal.Portal.Models.Databases; using Newtonsoft.Json.Linq; namespace LetPortal.Portal.Execution...
28.939394
55
0.71623
[ "MIT" ]
chuxuantinh/let.portal
src/web-apis/LetPortal.Portal/Executions/IExecutionDatabase.cs
957
C#
using Microsoft.Extensions.Logging; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Messages; using Microsoft.Xrm.Sdk.Metadata; using Newtonsoft.Json; using PC.PowerApps.Common.Entities.Dataverse; using PC.PowerApps.Common.Extensions; using System; using System.Collections.Generic; using System.Globalization; using S...
42.178404
176
0.648041
[ "MIT" ]
Pilseta-cilvekiem/Participant-Management
PC.PowerApps/PC.PowerApps.Common/Context.cs
8,986
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipe...
54.0131
259
0.675802
[ "MIT" ]
BaherAbdullah/azure-sdk-for-net
sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/PrivateEndpointConnection.cs
12,369
C#
namespace API.Web.DTOs.Users { public class UpdateRequest { public string? FirstName { get; set; } public string? LastName { get; set; } public string? Username { get; set; } public string? Password { get; set; } } }
23.818182
46
0.583969
[ "MIT" ]
tihomirvasilev/vehicle-marketplace-platform
src/API/Web/API.Web.DTOs/Users/UpdateRequest.cs
264
C#
// Copyright (c) 2017-2020 Ubisoft Entertainment // // 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...
55.40856
243
0.529951
[ "Apache-2.0" ]
Friendly0Fire/Sharpmake
Sharpmake.Platforms/Sharpmake.CommonPlatforms/Windows/Win64Platform.cs
28,482
C#
namespace WDE.SqlQueryGenerator { public interface IVariable { } }
12.428571
31
0.609195
[ "Unlicense" ]
BAndysc/WoWDatabaseEditor
WDE.SqlQueryGenerator/IVariable.cs
87
C#
/* Copyright 2012 Michael Edwards 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 ag...
36.663194
128
0.596079
[ "Apache-2.0" ]
seankearney/Glass.Mapper
Tests/Integration Tests/Umbraco/Glass.Mapper.Umb.Integration/DataMappers/UmbracoInfoMapperFixture.cs
10,559
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Driver.UI.Interfaces; using Driver.UI.Selenium; using Reporters; using Utilities; using Utilities.Enums; namespace Philips.EDI.Foundation.HDSHelp.AutomationTest { [TestClass] public class UITest { [TestInitialize] public void BeforeT...
33.861111
208
0.675964
[ "Apache-2.0" ]
balajinarayanaa/docs
AutomationTest/Philips.EDI.Foundation.HDSHelp.AutomationTest/UITest.cs
1,219
C#
using System.Data; namespace SkycorHRM.DesignPattern.Domain { public class DataAccessContext { private readonly IDataAccessStrategy _dataAccessStrategy; public DataAccessContext(IDataAccessStrategy dataAccessStrategy) { _dataAccessStrategy = dataAccessStrategy; } ...
26.5
73
0.689727
[ "MIT" ]
pavelski01/SkycoreHRM
SkycorHRM.DesignPattern/Domain/DataAccessContext.cs
479
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
32.137255
120
0.657108
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Tiw/V20190919/Models/SetOnlineRecordCallbackKeyRequest.cs
1,751
C#
namespace HackF5.UnitySpy.Gui.Wpf.View { public partial class TypeDefinitionView { public TypeDefinitionView() { this.InitializeComponent(); this.Loaded += (sender, args) => this.PathTextBox.Focus(); } } }
24.181818
70
0.586466
[ "MIT" ]
frcaton/unityspy
src/HackF5.UnitySpy.Gui.Wpf/View/TypeDefinitionView.xaml.cs
268
C#
namespace CNTK6.Models { public sealed class CntkResult { public string Label { get; set; } public double Probability { get; set; } public string ProbabilityText { get; se...
12.25
37
0.38484
[ "MIT" ]
takuya-takeuchi/Demo
CNTK6/source/CNTK6/Models/CntkResult.cs
345
C#