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 (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.Threading.Tasks; using System.Threading.Tasks.Dataflow; using Microsoft.VisualStudio.Composition; namespace Microsoft.VisualStudi...
42.787879
161
0.696176
[ "Apache-2.0" ]
M-Lipin/project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Debug/ILaunchSettingsProvider.cs
2,826
C#
namespace EnergyTrading.MDM.Test { using System.Collections.Generic; using System.Linq; using System.Net; using System.ServiceModel.Syndication; using System.Xml; using Microsoft.Http; using NUnit.Framework; using EnergyTrading.Contracts.Search; using EnergyTrading.MDM.Contracts.Sa...
36.205882
155
0.649675
[ "MIT" ]
RWE-Nexus/EnergyTrading-MDM-Sample
Code/Service/MDM.IntegrationTest.Sample/Broker/search/success_search_results_by_mapping.cs
4,924
C#
using System; using System.Collections; using System.Collections.Generic; namespace AvlTreeRecursive { internal class AvlNode<T> where T : IComparable<T> { private int size; private int height; public T Value { get; private set; } public AvlNode<T>[] Children { get; p...
25.805654
84
0.410379
[ "MIT" ]
Alex-Tsvetanov/Data-Structures-and-Algorithms
Topics/10. Dictionaries-Hash-Tables-and-Sets/live-demo-10.07.2017/BinarySearchTreesDemo/AvlTreeRecursive/AvlNode.cs
7,305
C#
//Copyright (C) 2020, Nicolas Morales Escobar. All rights reserved. using GameSavvy.Byterizer; using UnityEngine; namespace LLNet { [CreateAssetMenu(menuName = "LLNet/Messages/SpawnCharacter")] public class Message_SpawnCharacter : ANetMessage { public override void Server_ReceiveMessage(int conn...
30.857143
105
0.634259
[ "MIT" ]
Nicolas4677/Custom-Networking-System
Scripts/Networking/NetMessages/Message_SpawnCharacter.cs
866
C#
using System; using System.Collections.Generic; namespace deckofcards { class Deck { // Properties // Array of cards that are currently in the deck. protected List<Card> _cards; public Deck() { SetCards(CreateDefaultDeck()); } public Deck(List<Card> cards) { SetCards(cards); ...
23.16
70
0.553253
[ "MIT" ]
SlagterJ/deckofcards
Deck.cs
1,737
C#
using System; using System.ComponentModel.DataAnnotations.Schema; namespace Core.Cron.Data { public class ServiceView { public int ServiceId { get; set; } public string ServiceName { get; set; } public string ServiceIdentifier { get; set; } public DateTimeOffset DateAdded { get...
32.230769
136
0.545346
[ "MIT" ]
alinciuca/core-cron
core-cron/Data/ServiceView.cs
1,678
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 * ...
29.227273
81
0.655521
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Cme/V20191029/Models/LivePullInputInfo.cs
1,300
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...
39.663934
179
0.594131
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/ElasticLoadBalancing/Generated/Model/Internal/MarshallTransformations/LoadBalancerAttributesUnmarshaller.cs
4,839
C#
using SEDC.NotesApp.DataAccess.Interfaces; using SEDC.NotesApp.Domain.Models; using SEDC.NotesApp.Dtos.Notes; using SEDC.NotesApp.Mappers.Notes; using SEDC.NotesApp.Services.Interfaces; using SEDC.NotesApp.Shared.CustomExceptions; using System.Collections.Generic; using System.Linq; namespace SEDC.NotesApp.Services.I...
32.956044
120
0.591197
[ "MIT" ]
sedc-codecademy/skwd9-09-aspnetwebapi
G2/Class07 - Architecture/Code/SEDC.NotesApp/SEDC.NotesApp.Services/Implementations/NotesService.cs
3,001
C#
namespace CohesionAndCoupling { public interface IFileUtils { string GetFileExtension(string fileName); string GetFileNameWithoutExtension(string fileName); } }
21.111111
60
0.715789
[ "MIT" ]
sholev/SoftUni
Fundamentals-2.0/HighQualityCode/Homework/High-Quality-Classes/High-Quality-Classes/Cohesion-and-Coupling/IFileUtils.cs
192
C#
namespace SADFM.Infrastructure.Persistence.Models { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("City")] public partial class City { priv...
23.457143
90
0.627284
[ "MIT" ]
developersworkspace/EPONS
SourceCode/SADFM/trunk/SADFM.Infrastructure.Persistence/Models/City.cs
821
C#
/*<FILE_LICENSE> * Azos (A to Z Application Operating System) Framework * The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. </FILE_LICENSE>*/ using System.Collections.Generic; using Azos.Apps; using Azos.Collections...
32.147727
120
0.696713
[ "MIT" ]
erxdkh/azos
src/Azos.Sky/Mdb/MdbArea.cs
2,829
C#
using Com.API.Hotels.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Com.API.Hotels.Brokers.BookingBroker { public partial class BookingBroker { private readonly IBookingServices bookingServices; public BookingBroker(I...
26
65
0.752404
[ "MIT" ]
Huzecode/API.Hotels
Com.API.Hotels/Brokers/BookingBroker/BookingBroker.cs
418
C#
using Assets.Scripts.ServerShared.MessagePackObjects; using MessagePack; namespace Cauldron.Shared.MessagePackObjects.Value { [MessagePackObject(true)] public class NumValueCalculatorForCard { public enum TypeValue { None, [DisplayText("カウント")] Count, ...
25.153846
76
0.558614
[ "MIT" ]
iuemon83/Cauldron
Cauldron.Client.Unity/Assets/Scripts/ServerShared/MessagePackObjects/CardObjects/Value/NumValueCalculatorForCard.cs
1,097
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services // // Microsoft Cognitive Services (formerly Project Oxford) GitHub: // https://github.com/Microsoft/Cognitive-Face-Windows /...
43.089325
207
0.616089
[ "Apache-2.0" ]
DXFrance/MarvelBot
Libraries/FaceLibrary/IFaceServiceClient.cs
19,780
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Utilities { using System.Linq; using Xunit; public class DynamicEqualityComparerLinqIntegrationTests { [Fact] publ...
33.684211
133
0.546875
[ "Apache-2.0" ]
TerraVenil/entityframework
test/EntityFramework/UnitTests/Utilities/DynamicEqualityComparerLinqIntegrationTests.cs
1,920
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.Threading.Tasks; using Microsoft.EntityFrameworkCore.TestUtilities; using Microsoft.Extensions.DependencyInjection; using Mic...
41.379101
170
0.468771
[ "Apache-2.0" ]
0b01/efcore
test/EFCore.Cosmos.FunctionalTests/Query/OwnedQueryCosmosTest.cs
34,055
C#
using System; namespace CleverNimbus.DinDNS { public class AppData { public string IPAddress { get; set; } public string LastResultDescription { get; set; } public bool LastResultCode { get; set; } public DateTime LastResultDate { get; set; } } }
21.583333
51
0.718147
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
jfalvarez80/DinDNS
CleverNimbus.DinDNS/AppData.cs
261
C#
using System; using System.Net; using Newtonsoft.Json; using Xels.Bitcoin.Utilities.Extensions; using Xels.Bitcoin.Utilities.JsonConverters; namespace Xels.Bitcoin.P2P { /// <summary> /// A class which holds data on a peer's (IPEndPoint) attempts, connections and successful handshake events. /// </summary...
36.145503
158
0.561004
[ "MIT" ]
xels-io/SideChain-SmartContract
src/Xels.Bitcoin/P2P/PeerAddress.cs
13,665
C#
/** * Copyright 2015 Canada Health Infoway, 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...
41.040541
84
0.639118
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-r02_04_03/Main/Ca/Infoway/Messagebuilder/Model/Pcs_mr2009_r02_04_03/Cr/Prpa_mt101103ca/FathersName.cs
3,037
C#
using System; using UnityEditor.IMGUI.Controls; namespace Unity.ProjectAuditor.Editor.UI.Framework { public struct TreeItemIdentifier { public string nameWithIndex { get; private set; } public string name { get; private set; } // stephenm TODO - Pretty sure this can go. Assemblies don...
30.490385
136
0.524756
[ "MIT" ]
AndyG-u3d/ProjectAuditor
Editor/UI/Framework/TreeViews/TreeItemIdentifier.cs
3,171
C#
using System; namespace FluentTransitions.Methods { /// <summary> /// This transition interpolates values with EasingFunctions.ElasticEaseOut to mimic the behavior of a loaded spring. /// </summary> public class Spring : EaseWithFunction { /// <summary> /// Interpolates values with EasingFunctions.ElasticEas...
36.307692
131
0.744703
[ "MIT" ]
awaescher/FluentTransitions
src/FluentTransitions/Methods/Spring.cs
946
C#
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using ClangSharp.Interop; namespace ClangSharp { public sealed class ObjCSelectorExpr : Expr { internal ObjCSelectorExpr(CXCursor ha...
32.357143
169
0.743929
[ "MIT" ]
Color-Of-Code/ClangSharp
sources/ClangSharp/Cursors/Exprs/ObjCSelectorExpr.cs
453
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using WinApi.Core; namespace WinApi.UxTheme { public static class UxThemeHelpers { public static unsafe HResult SetWindowThemeNonClientAttributes(In...
31.230769
103
0.666256
[ "Apache-2.0" ]
jjzhang166/WinApi
WinApi/UxTheme/Helpers.cs
814
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RoomSwitch : MonoBehaviour { public Transform player; public Transform a; public Transform b; public bool isA = false; bool playerInRange = false; void Update() { if (Input.GetKeyDown(KeyC...
18.625
45
0.521253
[ "MIT" ]
brimatt16219/Game-Off-2021
Game Off 2021 (Bug)/Assets/Scripts/RoomSwitch.cs
894
C#
using System; using Assertion; using Lemonad.ErrorHandling.Exceptions; using Lemonad.ErrorHandling.Extensions; using Xunit; namespace Lemonad.ErrorHandling.Unit.ExtensionTests.Maybe { public class ToMaybeTests { [Fact] public void Passing_Null_Value_With_Invalid_Null_Check_Throws() { As...
32.659091
96
0.593598
[ "MIT" ]
inputfalken/Lemonad
test/Lemonad.ErrorHandling.Unit/ExtensionTests/Maybe/ToMaybeTests.cs
1,437
C#
using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System.IO; using System.Reflection; namespace LiveDemo { [TestFixture] public class SoftUniLiveDemo { [Test] public void LogoSrc() { IWebDriver driver = new ChromeDriver(Path.GetDirectoryN...
31.096154
120
0.602968
[ "MIT" ]
kaizer04/SoftUni---QA-Automation
FirstSeleniumProject/LiveDemo/SoftUniLiveDemo.cs
1,619
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using S...
33.752688
108
0.640013
[ "MIT" ]
UTINKA/MaterialDesignInXamlToolkit
MainDemo.Wpf/Pickers.xaml.cs
3,141
C#
using System; using System.Collections.Generic; using Unleash; using Unleash.Strategies; namespace Dka.AspNetCore.BasicWebApp.Services.Unleash { public class TenantGuidStrategy : IStrategy { private const string ParameterName = "tenantGuids"; public string Name => UnleashConstants.Tena...
33.973684
120
0.618125
[ "Apache-2.0" ]
lwinch2006/basic-asp.net-core-app
Dka.AspNetCore.BasicWebApp/src/Services/Unleash/TenantGuidStrategy.cs
1,291
C#
using Android.App; using Android.Widget; using Android.OS; using Android.Views; using System; using System.Threading.Tasks; using System.Net.Http; using System.Xml.Serialization; using Bumptech.Glide; namespace GlideSample { [Activity(Label = "GlideSample", MainLauncher = true, Icon = "@mipmap/icon")] public class ...
24.118421
113
0.727769
[ "MIT" ]
4brunu/XamarinComponents
Android/Glide/samples/GlideSample/MainActivity.cs
1,835
C#
using System.Collections.Generic; using UnityEngine; namespace Fibre { // Component that manages advancing through an event chain. public class FibreManager : MonoBehaviour { public List<BaseEvent> FirstEvents = new List<BaseEvent>(); public KeyCode InstantCompleteKey = KeyCode.None; ...
29.847561
82
0.474566
[ "MIT" ]
FinnPerry/UnityEventChain
FibreManager.cs
4,895
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, co...
37.763158
93
0.754704
[ "MIT" ]
TetradogOther/SharpDevelop
src/AddIns/BackendBindings/Scripting/Test/Utils/NullPropertyUserControl.cs
1,437
C#
using System; using System.Buffers.Binary; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using Cethleann.Graphics; using Cethleann.KTID; using Cethleann.Structure; using Cethleann.Structure.KTID; using Cethleann.Structure.Resource; using Cethleann.Structure...
47.566038
141
0.58092
[ "MIT" ]
TGEnigma/Cethleann
Nyotengu.KTID/Program.cs
5,044
C#
using System.Collections.Generic; using TUNING; using System; /* * Tools to add a new building * * AddBuildingToPlanScreen * adds the building to the build menu * Arguments: * category: the category to add the building to * buildingId: the PrefabID of the building, usually just called Id or ID in the confi...
36.651934
164
0.572656
[ "MIT" ]
bohemond-of-antioch/sky-oni-mods
PipedOutput/Source/NightLib/AddBuilding.cs
6,634
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...
35.190118
178
0.551462
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/Redshift/Generated/Model/CreateClusterRequest.cs
32,762
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenRPA.Net { public class SocketMessage : BaseMessage { public SocketMessage() { } public SocketMessage(Message msg) { id = msg.id; rep...
28.16
141
0.554688
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SynergERP/openrpa
OpenRPA.Net/SocketMessage.cs
1,410
C#
namespace MiniWebERP.Data { using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata.Interna...
37.026667
115
0.593086
[ "Apache-2.0" ]
GiK986/MiniWebERP
Data/MiniWebERP.Data/EfExpressionHelper.cs
2,779
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
65.712963
265
0.697055
[ "MIT" ]
Agazoth/azure-powershell
src/Purview/Purviewdata.Autorest/generated/api/Models/Api20211001Preview/AzureMySqlCredentialScanPropertiesAutoGenerated.json.cs
6,990
C#
//*******************************************************************************************// // // // Download Free Evaluation Version From: https://bytescout.com/download/web-installer // // ...
47.653061
101
0.424411
[ "Apache-2.0" ]
atkins126/ByteScout-SDK-SourceCode
PDF Renderer SDK/C#/Convert PDF To Multipage TIFF/Program.cs
2,336
C#
using System; using System.Collections.Generic; using System.Linq; namespace WS.Finances.Core.Lib.Data { public interface IRepository<TModel> where TModel : class, IModel { IQueryable<TModel> Get(); TModel Get(TModel key); bool Put(TModel item); bool Delete(TModel ke...
16.904762
41
0.622535
[ "MIT" ]
davebrunger/WS.Finances.Core
WS.Finances.Core.Lib/Data/IRepository.cs
355
C#
using System; using System.Runtime.CompilerServices; namespace YAF.Lucene.Net.Codecs.Lucene42 { /* * 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 cop...
44.858896
159
0.670131
[ "Apache-2.0" ]
Spinks90/YAFNET
yafsrc/Lucene.Net/Lucene.Net/Codecs/Lucene42/Lucene42Codec.cs
7,150
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PlayerStatus.cs" company="Hukano"> // Copyright (c) Hukano. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license informati...
37.793893
212
0.491416
[ "MIT" ]
hugener/Aupli
Source/Aupli/ApplicationServices/Player/Ari/PlayerStatus.cs
4,953
C#
namespace Ignore { using System; using System.Collections.Generic; using System.Text.RegularExpressions; /// <summary> /// A holder for a regex and replacer function. /// The function is invoked if the input matches the regex. /// </summary> public class Replacer { private r...
23.783784
79
0.595455
[ "MIT" ]
goelhardik/Ignore.NET
src/Ignore/Replacer.cs
880
C#
// // Copyright (c) Microsoft and contributors. 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 // // Unless requi...
70.057191
242
0.367218
[ "Apache-2.0" ]
xindzhan/azure-sdk-for-net
src/ResourceManagement/Compute/ComputeManagement/Generated/VirtualMachineOperations.cs
752,134
C#
#region Using using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; #endregion namespace SmartAdmin.Models { public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext(DbContextOptions options):base(options) { ...
30.916667
88
0.685984
[ "Apache-2.0" ]
AlbertoGarciaArdiles/ssocloudpe-1481170344582
src/dotnetstarter/Models/ApplicationDbContext.cs
744
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
47.848101
200
0.652293
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/UnsupportedDeviceConfigurationRequest.cs
11,340
C#
using System; using System.Collections.Generic; namespace Abp.Application.Services.Dto { /// <summary> /// This class can be used to return a paged list from an <see cref="IApplicationService"/> method. /// </summary> /// <typeparam name="T">Type of the items in the <see cref="PagedResultDto{T}.Items"/...
31.0625
107
0.597586
[ "MIT" ]
FlipGitBits/aspnetboilerplate
src/Abp/Application/Services/Dto/PagedResultOutput.cs
994
C#
using System.Security.Claims; namespace ASPNETCore2JwtAuthentication.Services; public class JwtTokensData { public string AccessToken { get; set; } public string RefreshToken { get; set; } public string RefreshTokenSerial { get; set; } public IEnumerable<Claim> Claims { get; set; } }
27.545455
50
0.735974
[ "Apache-2.0" ]
samgharcheh/ASPNETCoreJwtAuthentication
src/ASPNETCore2JwtAuthentication.Services/JwtTokensData.cs
305
C#
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Security.Cryptography; namespace SocketApp.ProtocolStack.Protocol { public class AESProtocolOptions { public CipherMode Mode = CipherMode.CBC; public int KeySize = 128; public int BlockSize ...
33.410714
100
0.563068
[ "MIT" ]
Banyc/SocketApp
src/SocketApp.ProtocolStack/Models/Protocol/Security/AESProtocol.cs
3,742
C#
using System; namespace Anf { public class ComicSourceContext { public ComicSourceContext(string source) { if (string.IsNullOrEmpty(source)) { throw new ArgumentException($"“{nameof(source)}”不能是 Null 或为空。", nameof(source)); } Sou...
23.3
96
0.539342
[ "BSD-3-Clause" ]
Cricle/Anf
Platforms/Anf.Engine/ComicSourceContext.cs
719
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenHardwareMonitor.Hardware; namespace OpenHardwareMonitor.Software.FanControl { internal class SoftwareFanControlGroup : IGroup { private List<IHardware> hardware = new List<IHardware>(); ...
25.12
61
0.719745
[ "MPL-2.0" ]
YaF3li/openhardwaremonitor
OpenHardwareMonitorLib/Software/FanControl/SoftwareFanControlGroup.cs
630
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace BloggingPlatformBackend.Migrations { public partial class Second : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK__Comment__BlogPos__562...
34.263566
71
0.528959
[ "MIT" ]
SmailG/BloggingPlatformWebAPI
BloggingPlatformBackend/Migrations/20180712193408_Second.cs
4,422
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace Microsoft.Psi.Visualization.Summarizers { using System.Collections.Generic; using Microsoft.Psi.Visualization.Data; /// <summary> /// Represents a range summarizer that performs interval-based da...
35.625
118
0.701754
[ "MIT" ]
CMU-TBD/psi
Sources/Visualization/Microsoft.Psi.Visualization.Windows/Summarizers/Numeric/DecimalSeriesRangeSummarizer.cs
857
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MicroserviceTwo.Services; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using...
30.095238
106
0.650316
[ "MIT" ]
mirano-galijasevic/microservices3
TestMicro3/Microservices/Microservice2/MicroserviceTwo/Startup.cs
1,896
C#
using System; using System.Globalization; namespace Curso { class Program { static void Main(string[] args) { double x = 10.35784; int y = 32; string z = "Maria"; char w = 'F'; Console.Write("Olá mundo!"); Console.WriteLine...
33.387097
92
0.510145
[ "MIT" ]
GustavoBaco/ws-vs2022
Secao15_SaidaDeDados/Secao15_SaidaDeDados/Program.cs
1,042
C#
#region Copyright (C) 2020 Kevin (OSS开源系列) 公众号:osscore /*************************************************************************** *   文件功能描述:阿里云的短信发送统一适配 * *   创建人: Kevin * 创建人Email:1985088337@qq.com * 创建日期: 2020-08-14 * ***********************************************************************...
23.888889
78
0.510594
[ "Apache-2.0" ]
KevinWG/OSS.Adapers
SMS/OSS.Adapter.SMS.Ali/AliSmsAdapter.cs
2,049
C#
using Microsoft.AspNetCore.Components; namespace Functional.Blazor.Components { /// <summary> /// Displays different content based on whether the Option has some value or is empty. /// </summary> /// <typeparam name="TValue">Type of the Option's value</typeparam> public partial class OptionMatch<TValue> : Compon...
32.88
117
0.689781
[ "MIT" ]
Justin-Cooney/Functional.Blazor
Functional.Blazor.Components/OptionMatch.razor.cs
824
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("Te...
37.378378
84
0.742589
[ "MIT" ]
Haacked/Rothko
Tests/Properties/AssemblyInfo.cs
1,386
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using ChatLe.Repository.Identity.MySql; namespace ChatLe.Repository.Identity.MySql.Migrations { [DbContext(typeof(Cha...
33.310345
115
0.480072
[ "Apache-2.0" ]
aguacongas/chatle
src/ChatLe.Repository.Identity.MySql/Migrations/ChatLeIdentityDbContextModelSnapshot.cs
11,594
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
38.368421
148
0.605624
[ "MIT" ]
javier-alvarez/fhir-server
test/Microsoft.Health.Fhir.Tests.E2E/Rest/Search/ReferenceSearchTests.cs
1,460
C#
#if UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_3_5 || UNITY_3_4 || UNITY_3_3 #define UNITY_LE_4_3 #endif #if !UNITY_3_5 && !UNITY_3_4 && !UNITY_3_3 #define UNITY_4 #endif using UnityEngine; using UnityEditor; using System.Collections; using Pathfinding; [CustomEditor(typeof(SimpleSmoothModifier))] public class Smo...
48.436782
250
0.740389
[ "Apache-2.0" ]
rapito/unity-basics-2d
Assets/AstarPathfindingEditor/Editor/ModifierEditors/SmoothModifierEditor.cs
4,214
C#
/**************************************************************** Copyright 2021 Infosys Ltd. Use of this source code is governed by Apache License Version 2.0 that can be found in the LICENSE file or at http://www.apache.org/licenses/ ***************************************************************/ using IMSWorkBe...
36.133858
147
0.583134
[ "Apache-2.0" ]
Infosys/Script-Control-Center
ScriptDevelopmentTool/Infosys.ATR.ProcessRecorder/ProcessRecorderWorkItem.cs
4,591
C#
using System; using EasyAbp.Cms.EntityFrameworkCore; using Volo.Abp.Domain.Repositories.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; namespace EasyAbp.Cms.Articles { public class ArticleRepository : EfCoreRepository<CmsDbContext, Article, Guid>, IArticleRepository { public ArticleRepository...
30.428571
110
0.769953
[ "MIT" ]
EasyAbp/Cms
src/EasyAbp.Cms.EntityFrameworkCore/EasyAbp/Cms/Articles/ArticleRepository.cs
426
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("GTM.GHIElectronics.ReflectorR3")] [assembly: AssemblyDescription("Driver for ReflectorR3 module made by GHI Electronics for Microsoft .NET Gadgeteer")] [assembly: AssemblyProduct("ReflectorR...
46.285714
117
0.82716
[ "Apache-2.0" ]
ghi-electronics/NETMF-Gadgeteer
Modules/GHIElectronics/ReflectorR3/ReflectorR3_42/AssemblyInfo.cs
326
C#
using MyDAL.Core.Bases; using MyDAL.Core.Common; using MyDAL.Core.Enums; using MyDAL.Core.Expressions; using MyDAL.Core.Models.Cache; using MyDAL.Core.Models.ExpPara; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace MyDAL.Core { in...
38.476581
139
0.444627
[ "Apache-2.0" ]
liumeng0403/MyDAL
MyDAL/Core/XExpression.cs
32,981
C#
using TRL.Common; using TRL.Common.Collections; using TRL.Common.Data; using TRL.Common.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TRL.Logging; using TRL.Common.Handlers; namespace TRL.Emulation { public class BacktestOrderMana...
26.793651
107
0.575829
[ "Apache-2.0" ]
wouldyougo/TRx
TRL.Emulation/BacktestOrderManager.cs
1,705
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web; namespace BidAuction.Hubs { public class ConnectionMapping<T> { private readonly Dictionary<T, HashSet<string>> _connections = new Dictionary<T, HashSet<string>>(); publi...
24.27907
70
0.434387
[ "MIT" ]
berkayakcay/BidAuction
BidAuction/Hubs/ConnectionMapping.cs
2,090
C#
using System.Collections.Generic; namespace QOAM.Core.Import { public class JournalsImportResult { public int NumberOfImportedJournals { get; set; } public List<string> UpdatedIssns { get; set; } = new List<string>(); public int NumberOfNewJournals { get; set; } public List<str...
31.416667
76
0.65252
[ "MIT" ]
QOAM/qoam
src/Core/Import/JournalsImportResult.cs
379
C#
// Copyright 2019 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
33
75
0.685475
[ "Apache-2.0" ]
AndyPook/nats.net
src/NATS.Client/NaCl/Internal/Ed25519Ref10/sc_clamp.cs
959
C#
using HomeCinema.Web.Infrastructure.Validators; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace HomeCinema.Web.Models { public class RegistrationViewModel : IValidatableObject { public string Username { get; set; } public string Passw...
35
118
0.695238
[ "MIT" ]
09123363503/spa-webapi-angularjs-master
HomeCinema.Web/Models/RegistrationViewModel.cs
737
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
31.765625
98
0.599606
[ "MIT" ]
Appleseed/squidex
backend/tests/Squidex.Infrastructure.Tests/EventSourcing/MongoEventStoreFixture.cs
2,035
C#
using UnityEngine; namespace BridgePattern.Case1.Naive2 { public class BigLightCube : BigCube { public BigLightCube() : base() => _go.SetMaterialColor(Color.white); } }
22.25
72
0.730337
[ "MIT" ]
enginooby-academics/unity-design-patterns-in-depth
Assets/Design Patterns/Bridge/Case Study 1 - Shape, Size & Skin/Implementation Naive 2 - Nesting Hierarchy/BigLightCube.cs
178
C#
using System.Threading.Tasks; using BibleNote.Providers.OneNote.Contracts; using BibleNote.Providers.OneNote.Services.DocumentProvider; using BibleNote.Services.Contracts; using BibleNote.Tests.Mocks; using BibleNote.Tests.TestsBase; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTool...
33.607595
88
0.482109
[ "MIT" ]
AlexanderDemko/BibleNote
Tests/MockOneNoteDocumentProviderTests.cs
2,726
C#
using System.Linq; using System.Threading.Tasks; using NUnit.Framework; using ZendeskApi_v2; using ZendeskApi_v2.Models.Sections; namespace Tests.HelpCenter { [TestFixture] [Category("HelpCenter")] public class SectionTests { private readonly ZendeskApi api = new ZendeskApi(Settings.Site, Sett...
35.34
117
0.587719
[ "Apache-2.0" ]
GreenParrotGmbH/ZendeskApi_v2
test/ZendeskApi_v2.Test/HelpCenter/SectionTests.cs
3,536
C#
#if !NETSTANDARD13 /* * 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 ...
36.795181
160
0.698756
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/test/Services/AugmentedAIRuntime/UnitTests/Generated/_bcl45+netstandard/Paginators/AugmentedAIRuntimePaginatorTests.cs
3,054
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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 of the License at // http://w...
41.542169
140
0.635441
[ "MIT" ]
3quanfeng/azure-powershell
src/Network/Network/PrivateLinkService/PrivateEndpointConnection/PrivateEndpointConnectionBaseCmdlet.cs
3,368
C#
// Copyright © 2015 Stig Schmidt Nielsson. All rights reserved. Distributed under the terms of the MIT License (http://opensource.org/licenses/MIT). using System; using Ssn.Utils.Misc; namespace Ssn.Utils.Extensions { /// <summary> /// Various DateTime utility functions. /// </summary> public static cl...
61.860294
166
0.645549
[ "MIT" ]
snielsson/Ssn
Ssn.Utils/Extensions/DateTimeExtensions.cs
8,416
C#
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
44.046875
144
0.678255
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/InstancesClient.SimulateMaintenanceEventRequestObjectAsyncSnippet.g.cs
2,819
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TS_SE_Tool.Utilities; using TS_SE_Tool.Save.DataFormat; namespace TS_SE_Tool.Save.Items { class Vehicle_Sound_Accessory : SiiNBlockCore { internal string data_path { get; set; } =...
28.752809
161
0.423603
[ "Apache-2.0" ]
josemurillo94/TS-SE-Tool
TS SE Tool/CustomClasses/Save/Items/Vehicle_Sound_Accessory.cs
2,561
C#
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Authorization; using System.Threading.Tasks; namespace SmartHome.UI.Pages { public partial class Index { [Inject] public AuthenticationStateProvider GetAuthenticationStateAsync { get; set; } protected async ov...
29.263158
92
0.690647
[ "MIT" ]
mrabobi/WWW
SmartHome/SmartHome.UI/Pages/PagesCode/Index.cs
558
C#
// <copyright file="BingMainPage.Map.cs" company="Automate The Planet Ltd."> // Copyright 2018 Automate The Planet 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 a copy of the License at http://www.apache.org...
32.521739
85
0.643717
[ "Apache-2.0" ]
FrancielleWN/AutomateThePlanet-Learning-Series
Design-Architecture-Series/CreateHybridTestFrameworkInterfaceContracts/HybridVersion/Pages/BingMain/BingMainPage.Map.cs
1,498
C#
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a c...
28.453027
93
0.433194
[ "MIT" ]
Mryanxh/HuyaLiveChat_old
HuyaLiveChat/TarsTup/tars/TarsDisplayer.cs
13,629
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 * ...
31.137931
85
0.638981
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Batch/V20170312/Models/CreateCpmComputeEnvRequest.cs
1,980
C#
namespace Cesil { /// <summary> /// Indicates what a writer is doing when /// a WriteContext is created. /// </summary> public enum WriteContextMode : byte { /// <summary> /// A writer is discovering columns for a table, used during /// dynamic serialization to deter...
29.454545
73
0.554527
[ "MIT" ]
Siliconrob/Cesil
Cesil/Context/WriteContextMode.cs
974
C#
#region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using Kooboo.CMS.Common; using Kooboo.CMS.Common.Persistence.Non_Relational; using Kooboo.CMS.Content.Models; using Kooboo.CMS.Content.Services; using Kooboo.CMS.Sites; u...
33.966292
181
0.573933
[ "BSD-3-Clause" ]
Godoy/CMS
Kooboo.CMS/Kooboo.CMS.Web/Areas/Contents/Controllers/TextFolderController.cs
6,048
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tyrell.Hand { public interface IFinger { void Extend(int extends); List<Bone> Joints { get; } } }
15.9375
34
0.678431
[ "MIT" ]
sondreb/options-injection-pattern
samples/OptionsInjectionPattern/Tyrell.Hand/IFinger.cs
257
C#
using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class PlayPanel : BaseGui, IPanel { public PanelType PanelType { get { return PanelType.PLAY; } } List<int> levels = new List<int>(); IServices services; Transform levelsContent; public PlayPa...
30.890625
119
0.627719
[ "MIT" ]
kicholen/GamePrototype
Assets/Script/View/Main/Panels/PlayPanel.cs
1,979
C#
using UnityEditor; using UnityEngine; class RenameFieldAttribute : PropertyAttribute { public string Name { get; } public RenameFieldAttribute(string name) => Name = name; #if UNITY_EDITOR [CustomPropertyDrawer(typeof(RenameFieldAttribute))] class FieldNameDrawer : PropertyDrawer { ...
30.038462
97
0.636364
[ "MIT" ]
Papyrustaro/UnityFishingGame
Assets/Scripts/CustomClass/RenameFieldAttribute.cs
783
C#
using Microsoft.DataTransfer.Core.FactoryAdapters; using Microsoft.DataTransfer.Extensibility; using Microsoft.DataTransfer.TestsCommon.Mocks; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Microsoft.DataTransfer.Core.U...
45.333333
146
0.690882
[ "MIT" ]
Adrian-Wennberg/azure-documentdb-datamigrationtool
Core/Microsoft.DataTransfer.Core.UnitTests/FactoryAdapters/DataAdapterFactoryAdaptersTests.cs
3,402
C#
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
42.333333
117
0.725197
[ "BSD-3-Clause" ]
AlanLiu90/NLog
src/NLog/Attributes/MessageTemplateFormatMethodAttribute.cs
2,540
C#
namespace WarehouseSystem.Web.ViewModels.Manage { public class FactorViewModel { public string Purpose { get; set; } } }
17.75
48
0.661972
[ "MIT" ]
NikitoG/WarehouseSystem
Source/Web/WarehouseSystem.Web/ViewModels/Manage/FactorViewModel.cs
144
C#
using Bedrock.Shared.Configuration; using Bedrock.Shared.Session.Interface; namespace Bedrock.Template.Api.Domain.Validation.Service { public abstract class ServiceBaseDomainValidation : ServiceBaseDomain { #region Constructors public ServiceBaseDomainValidation(BedrockConfiguration bedrockCon...
35.923077
193
0.79015
[ "MIT" ]
BedrockNet/Bedrock.Template.Api
Bedrock.Template.Api.Domain/Validation/Service/ServiceBaseDomainValidation.cs
469
C#
namespace Medhurst.CodeTalk.LiskovSubstitution { public class SportsCar : Car { public override void DriveFast(Driver driver) { base.DriveFast(driver); // GOOD: ensure the state of this class is as you'd expect // it after applying sub-class logic ...
28
70
0.604911
[ "Unlicense", "MIT" ]
tommed/talk
Medhurst.CodeTalk/Medhurst.CodeTalk/LiskovSubstitution/GoodSportsCar.cs
450
C#
namespace ErrorHandlingExample.Services; public class Counter : ICounter { public Dictionary<string, int> UrlCounter { get; set; } public Counter() { UrlCounter = new Dictionary<string, int>(); } public void IncrementRequestPathCount(string requestPath) { if (UrlCounter.Conta...
19.44
61
0.58642
[ "MIT" ]
EricCote/20486D-New
Allfiles/Mod10/Democode/02_ErrorHandlingExample_end/ErrorHandlingExample/Services/Counter.cs
488
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace TicketTimer.Core.Infrastructure { public class JsonWorkItemStore : WorkItemStore { private readonly FileStore _fileStore; private const string FileName = "timer.state"; private TimerState _state; public JsonWor...
24.607595
88
0.518519
[ "MIT" ]
n-develop/tickettimer
TicketTimer.Core/Infrastructure/JsonWorkItemStore.cs
1,946
C#
 namespace ME.ECS.BlackBox { [Category("Events")] public class CallEvent : BoxNode { public World.GlobalEventType eventType = World.GlobalEventType.Visual; public GlobalEvent @event; public override void OnCreate() { } public override Box Execute(in ...
20.416667
78
0.561224
[ "MIT" ]
IgorAtorin/ecs-submodule
ECSBlackBox/Runtime/Nodes/Events/CallEvent.cs
492
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; #if IS_WINUI using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Controls.Primitives; u...
28
95
0.753247
[ "MIT" ]
Surfndez/uno.toolkit.ui
samples/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/NestedSamples/NavigationBarSample_NestedPage2.xaml.cs
1,234
C#
using Microsoft.Analytics.Interfaces; using Microsoft.Analytics.Types.Sql; using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; namespace Images { public static class UpdatableRowExtensions { ...
37.943396
134
0.67628
[ "MIT" ]
Azure/usql
Examples/ImageApp/Image/ImageFeatureExtractor.cs
2,013
C#
// // Gendarme.Rules.Security.Cas.DoNotExposeMethodsProtectedByLinkDemandRule // // Authors: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2005, 2007-2008, 2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software an...
35.264151
135
0.714999
[ "MIT" ]
VnceGd/CS451_Checkers
dev/unity-gendarme/gendarme/rules/Gendarme.Rules.Security.Cas/DoNotExposeMethodsProtectedByLinkDemandRule.cs
5,607
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Sniper.Tests.Integration.Helpers { public static class RepositorySetupHelper { public static async Task<TreeResponse> CreateTree(this IGitHubClient client, Repository repository, IEnumerable<KeyValuePair<string, string>> treeCon...
45.353846
173
0.625848
[ "MIT" ]
amenkes/sniper
Sniper.Tests.Integration/Helpers/RepositorySetupHelper.cs
2,950
C#