content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Linq; using FluentAssertions; using Nest; using Tests.Core.Extensions; using Tests.Core.ManagedElasticsearch.Clusters; using Tests.Domain; using Tests.Framework.Integration; namespace Tests.Aggregations.Bucket.SignificantText { /** * An aggregation that returns interesting or unusual occ...
31.835052
163
0.73478
[ "Apache-2.0" ]
Henr1k80/elasticsearch-net
src/Tests/Tests/Aggregations/Bucket/SignificantText/SignificantTextAggregationUsageTests.cs
3,090
C#
using System.Windows; namespace SpotifyHotkeys.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } } }
17.625
45
0.574468
[ "MIT" ]
joakimskoog/SpotifyHotkeys
SpotifyHotkeys/Views/MainWindow.xaml.cs
284
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. // This code was generated by an automated template. using Mosa.Compiler.Framework; namespace Mosa.Platform.x64.Instructions { /// <summary> /// BochsDebug /// </summary> /// <seealso cref="Mosa.Platform.x64.X64Instruction" /> public sealed clas...
24.657143
74
0.720742
[ "BSD-3-Clause" ]
kthompson/MOSA-Project
Source/Mosa.Platform.x64/Instructions/BochsDebug.cs
863
C#
//Problem 6. Four-Digit Number //Write a program that takes as input a four-digit number in format abcd(e.g. 2011) and performs the following: //Calculates the sum of the digits(in our example 2 + 0 + 1 + 1 = 4). //Prints on the console the number in reversed order: dcba(in our example 1102). //Puts the last dig...
40.666667
112
0.589253
[ "MIT" ]
SevdalinZhelyazkov/TelerikAcademy
CSharp-Part-1/OperatorsAndExpressions/FourDigitNumber/DigitsSwitch.cs
1,100
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
42.029126
152
0.647032
[ "MIT" ]
BoyaWu10/fhir-server
src/Microsoft.Health.CosmosDb/Features/Storage/DocumentClientProvider.cs
4,331
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using Filter.Algorithms; using Filter.Algorithms.FFTWSharp; using Filter.Extensions; namespace Filter_Win { public class FftwProvider : IFftProvider { /// <summary> /// Performs neces...
33.862832
138
0.532863
[ "MIT" ]
Jonarw/filter
Filter_Win/FftwProvider.cs
7,655
C#
using System; namespace AnotherBlog.Domain.Core.Bus.Messages { public abstract class Message { public Guid AggregateId { get; protected set; } public string MessageType { get; protected set; } public DateTime Timestamp { get; private set; } protected Message() { ...
20.7
57
0.594203
[ "MIT" ]
yrz1994/AnotherBlog
AnotherBlog.Domain.Core/Bus/Messages/Message.cs
416
C#
using System; using Apache.Geode.NetCore; using Xunit; public class NetCoreCollectionFixture : IDisposable { public NetCoreCollectionFixture() { client_ = new Client(); } public void Dispose() { client_.Dispose(); } Client client_; } [CollectionDefinition("Geode .net Core...
18.130435
77
0.70024
[ "Apache-2.0" ]
apache/geode-dotnet-core-client
NetCore.Test/NetCoreCollectionFixture.cs
419
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace M6_UnitTesting { public class Student : Person { public int IQ { get; } public Student(string name, int age, int iq) : base(name, age) { ...
20.897436
72
0.458896
[ "Apache-2.0" ]
anodeychuk/M6_UnitTest
M6_UnitTesting/Student.cs
817
C#
using System.Collections.Generic; namespace AsmResolver.Collections { /// <summary> /// Represents a one-to-many relation, where an object is mapped to a collection of other objects. /// </summary> /// <typeparam name="TKey">The type of objects to map.</typeparam> /// <typeparam name="TValue">The...
35.806452
123
0.553604
[ "MIT" ]
Anonym0ose/AsmResolver
src/AsmResolver/Collections/OneToManyRelation.cs
2,220
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.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Win32.SafeHandles; namespace System.Diagnostics.Tracing { #if FEATURE_PERFTRAC...
40.420354
190
0.605145
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventPipeEventDispatcher.cs
9,135
C#
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; // 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("MailClient")] [asse...
42.833333
98
0.702551
[ "MIT" ]
kipic96/mail-client
MailClient/MailClient/Properties/AssemblyInfo.cs
2,316
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
40
85
0.578571
[ "MIT" ]
eabasir/sms-portal
SMSPortalDBDataLibrary/SendBox_Phone.cs
1,400
C#
using NUnit.Framework; using ReactUnity.StyleEngine; namespace ReactUnity.Editor.Tests { [TestFixture(TestOf = typeof(MediaQueryList))] public class MediaQueryTests { [Test] public void AllQueryWorks() { var provider = new DefaultMediaProvider("runtime"); ...
27.873171
64
0.50665
[ "MIT" ]
NickBurrell/core
Tests/Editor/Styling/MediaQueryTests.cs
11,428
C#
using MiniRpcFactory.CommandFactory.Contracts; using MiniRpcFactory.Logging; using MiniRpcFactory.RpcService.Contracts; using MiniRpcLib; using MiniRpcLib.Action; using MiniRpcLib.Func; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using Logger = MiniRpcFacto...
34.950311
165
0.603163
[ "MIT" ]
wooffet/RoR2-MiniRpcFactory
RpcService/RpcService.cs
5,629
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-generated> //--...
36.882353
190
0.558014
[ "MIT" ]
maboroshinokiseki/Simple-Subtitle-Renamer
Languages/Language_en.Designer.cs
5,018
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Text; using System.Reflection; using System.Linq; using Luval.Data.Attributes; namespace Luval.Data { public class ListDataReader : IDataReader { private IDataRecord _current; public List...
26.712919
109
0.53448
[ "MIT" ]
marinoscar/luval-data
code/Luval.Data/DictionaryListDataReader.cs
5,585
C#
using System; using System.Runtime.InteropServices; using Microsoft.VisualStudio.Shell; using Xamarin.SampleVsix.Properties; [assembly: ProvideCodeBase] namespace Xamarin.SampleVsix { [Guid("BC1550C5-64C9-4B9A-A4F6-7D477C9178F1")] [InstalledProductRegistration("Sample", "Sample", "1.0 (asdf)")] [PackageR...
26.909091
102
0.702703
[ "MIT" ]
Acidburn0zzz/Xamarin.VSSDK
test/Xamarin.SampleVsix/SamplePackage.cs
594
C#
using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Gov.Lclb.Cllb.OrgbookService { public class OrgBookClient { private readonly HttpClient Client; public readonly string ORGBOOK_BASE_URL; public readonly string ORGBOOK_API_R...
42.589041
209
0.593438
[ "Apache-2.0" ]
ElizabethWolfe/jag-lcrb-carla-public
orgbook-service/OrgBookClient.cs
3,109
C#
using System.Collections.Generic; using System.IO; using System.Linq; using UnityEditor; using UnityEngine; using UnityEditor.SceneManagement; public class CFindScenesToOpenEditor : EditorWindow { private static EditorWindow window; private const float windowWidth = 640f; private const float windowHeight ...
35.040201
148
0.573068
[ "MIT" ]
Chrisdbhr/CDK
Scripts/Editor/Utility/CFindScenesToOpenEditor.cs
6,975
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("Arg...
37.675676
84
0.746772
[ "MIT" ]
brianjosephegan/arguard
Arguard.Tests/Properties/AssemblyInfo.cs
1,397
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. #nullable disable using System.Drawing; using System.Windows.Forms.VisualStyles; using static Interop; namespace ...
39.44586
244
0.594946
[ "MIT" ]
echalone/winforms
src/System.Windows.Forms/src/System/Windows/Forms/RadioButtonRenderer.cs
12,388
C#
using Transactions.Domain.Common; namespace Transactions.Domain.Events; public class TransactionInvoiceIdUpdated : DomainEvent { public TransactionInvoiceIdUpdated(string transactionId, int invoiceId) { TransactionId = transactionId; InvoiceId = invoiceId; } public string ...
22.588235
76
0.697917
[ "MIT" ]
robertsundstrom/accounting-app
Transactions/Transactions/Domain/Events/TransactionInvoiceIdUpdated.cs
384
C#
using Janovrom.Firesimulation.Runtime.Variables; using UnityEngine; namespace Janovrom.Firesimulation.Runtime.Utility { [RequireComponent(typeof(Simulation.FireSimulation))] public class SimulationInteraction : MonoBehaviour { private const int _AddMode = 0; private const int ...
30.605634
82
0.552692
[ "MIT" ]
janovrom/fire-simulation
Runtime/Utility/SimulationInteraction.cs
2,175
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.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.D...
30.266667
107
0.609031
[ "MIT" ]
paolomococci/dotnet-fullstack-workshop
Holiday/src/presentation/Holiday.WebApi/Startup.cs
1,816
C#
using System; using System.Reflection.Metadata; using System.Linq; using System.Collections.Generic; using System.IO; namespace Semmle.Extraction.CIL.Entities { /// <summary> /// A type reference, to a type in a referenced assembly. /// </summary> public sealed class TypeReferenceType : Type { ...
35.047619
131
0.608152
[ "MIT" ]
denislevin/ql
csharp/extractor/Semmle.Extraction.CIL/Entities/TypeReferenceType.cs
3,680
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...
66.410714
235
0.711078
[ "MIT" ]
3quanfeng/azure-powershell
src/OperationalInsights/OperationalInsights/DataSources/NewDataSourceCmdletsPerKind/NewAzureOperationalInsightsApplicationInsightsDataSourceCommand.cs
7,329
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码已从模板生成。 // // 手动更改此文件可能导致应用程序出现意外的行为。 // 如果重新生成代码,将覆盖对此文件的手动更改。 // </auto-generated> //------------------------------------------------------------------------------ namespace YihuiMgr.Data { usin...
24.954545
80
0.428051
[ "MIT" ]
meloht/yihuiServer
YihuiMgr/YihuiMgr/Data/city.cs
659
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NFSDK { class NFElement : NFIElement { public NFElement() { mxPropertyManager = new NFPropertyManager(new NFGUID()); } public override NFIPropertyManager GetProp...
25.191176
79
0.530064
[ "MIT" ]
908760230/MyAutoChess
AutoChess/Assets/NFSDK/NFConfig/NFElement.cs
1,715
C#
using Neptuo; 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. [assemb...
38.783784
85
0.736585
[ "Apache-2.0" ]
neptuo/com.neptuo.go
src/WebSite/Properties/AssemblyInfo.cs
1,438
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; namespace MphRead { public static class Output { public enum Operation { Write, Read, Clear } private struct Que...
29.076923
95
0.454321
[ "MIT" ]
DevCas1/MphRead
src/MphRead/Utility/Output.cs
5,670
C#
using System; namespace Mono.TextTemplating { internal static class StringUtil { public static Boolean IsNullOrWhiteSpace (String value) { if (value == null) return true; for (int i = 0; i < value.Length; i++) { if (!Char.IsWhiteSpace (value[i])) return false; } return true; } } }
16.368421
57
0.649518
[ "MIT" ]
yuanrui/t4
Mono.TextTemplating/Mono.TextTemplating/StringUtil.cs
311
C#
/* ********************************************************************* * This Source Code Form is copyright of 51Degrees Mobile Experts Limited. * Copyright © 2017 51Degrees Mobile Experts Limited, 5 Charlotte Close, * Caversham, Reading, Berkshire, United Kingdom RG4 7BY * * This Source Code Form is the...
36.43956
121
0.553227
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
51Degrees/.NET-Device-Detection
FoundationV3/UI/Web/Stats.cs
6,639
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Modify data for a group or department Music On Hold Instance. /// The respons...
31.81068
131
0.599878
[ "MIT" ]
Rogn/broadworks-connector-net
BroadworksConnector/Ocip/Models/GroupMusicOnHoldModifyInstanceRequest14.cs
6,553
C#
using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using System.Windows; namespace RetroGame { public partial class App : Application { private Mutex _mutex; [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] pr...
24.491803
88
0.504685
[ "MIT" ]
rh-utensils/RetroGame
RetroGame/RetroGame/App.xaml.cs
1,496
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Data.Entity.ModelConfiguration.Conventions; using System.Linq; using Sy...
32.897436
56
0.692128
[ "MIT" ]
arinsuga/kindup
APPBASE/Models/EDU/Skhstudentd/SkhstudentdDS.cs
1,285
C#
using System.Linq; using System.Security.Cryptography; using System.Threading.Tasks; using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace Cloud5mins.domain { public static class Utility { //reshuffled for randomisation, same unique characters just ...
35.806122
117
0.564548
[ "MIT" ]
TJBos/AzUrlShortener
src/shortenerTools/Domain/Utility.cs
3,509
C#
using UnityEngine; using TMPro; namespace StoryTime.Components.UI { using Components; using Components.ScriptableObjects; using Events.ScriptableObjects; public class InventoryItemFiller : ItemBaseFiller<ItemStack, ItemSO> { [SerializeField] private TextMeshProUGUI itemCount; public override void SetItem(I...
22.375
104
0.787709
[ "Apache-2.0" ]
vamidi/StoryTime-UPM
Runtime/UI/Inventory/InventoryItemFiller.cs
537
C#
using System; namespace _07.String_Encryption { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); string result = string.Empty; for (int i = 0; i < n; i++) { var letter = char.Parse(Console....
25.375
65
0.433498
[ "MIT" ]
spiderbait90/Step-By-Step-In-C-Sharp
Programming Fundamentals/Methods And Debugging/07. String Encryption/Program.cs
1,017
C#
#if NET472 using Havit.Diagnostics.Contracts; using System; using System.Collections.Generic; using System.Diagnostics; using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace Havit.S...
37.592661
283
0.736138
[ "MIT" ]
havit/HavitFramework
Havit.Services/DirectoryServices/ActiveDirectory/ActiveDirectoryServices.cs
20,537
C#
namespace QuantumGate.GameObjects.Common.Interfaces { //LOW: Maybe add LoadStart and LoadComplete events? public interface ILoadable { bool IsLoaded { get; } void Load(); void Unload(); } }
23
55
0.630435
[ "MIT" ]
daerogami/FormPlayer
FormPlayer/GameObjects/Common/Interfaces/ILoadable.cs
232
C#
using System; using TMPro; using UnityEngine; using UnityEngine.UI; namespace DCL.Builder { public class SearchLandView : BaseComponentView { public event Action<string> OnValueSearch; public event Action OnSearchCanceled; [SerializeField] private TMP_InputField inputField; ...
28.5
73
0.589599
[ "Apache-2.0" ]
Timothyoung97/unity-renderer
unity-renderer/Assets/DCLPlugins/BuilderInWorld/Publisher/ProjectPublishHUD/Scripts/Projects/SearchLandView.cs
1,596
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Senai.Peoples.WebApi.Domains { public class FuncionariosDomain { public int IdFuncionario { get; set; } public string Nome { get; set; } ...
23.095238
59
0.686598
[ "MIT" ]
jv-soncini/2s2019-Sprint2
Senai.Peoples.WebApi/Senai.Peoples.WebApi/Domains/FuncionariosDomain.cs
487
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.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.Attr...
84.75
582
0.735875
[ "MIT" ]
Ar37-rs/Silk.NET
src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetTextureSubImageOverloads.gen.cs
4,407
C#
/* // <copyright> // dotNetRDF is free and open source software licensed under the MIT License // ------------------------------------------------------------------------- // // Copyright (c) 2009-2020 dotNetRDF Project (http://dotnetrdf.org/) // // Permission is hereby granted, free of charge, to any person obtainin...
39.202128
208
0.627408
[ "MIT" ]
blackwork/dotnetrdf
Libraries/dotNetRDF/Query/GenericQueryProcessor.cs
3,685
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.Threading; using System.Threading.Tasks; using StarkPlatform.CodeAnalysis.Text; namespace StarkPlatform.CodeAnalysis { internal class Seman...
42.607143
161
0.725063
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Workspaces/Core/Portable/Workspace/Solution/SemanticDocument.cs
1,195
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
41.401408
189
0.627828
[ "Apache-2.0" ]
ebattalio/aws-sdk-net
sdk/src/Services/Backup/Generated/Model/Internal/MarshallTransformations/UpdateFrameworkResponseUnmarshaller.cs
5,879
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> //----------------------------------...
35.288462
88
0.513896
[ "Apache-2.0" ]
ShiftLeftSecurity/shiftleft-csharp-example
vulnerable_asp_net_framework/vulnerable_asp_net_framework/Site.Mobile.Master.designer.cs
1,835
C#
/* * Copyright (c) 2006-2008 Clever Age * Copyright (c) 2006-2009 DIaLOGIKa * * 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 re...
41.522167
169
0.567208
[ "BSD-3-Clause" ]
datadiode/B2XTranslator
src/WordProcessing/Converter/Converter.cs
8,429
C#
using FastqlSample.Infrastructure.Models; using Dapper; using System; using System.Collections.Generic; using System.Data; using System.Linq; using Fastql; namespace FastqlSample.Infrastructure.Core.Repository { public class GenericRepository<TEntity> : RepositoryBase, IGenericRepository<TEntity> where TEntity : ...
29.887931
118
0.353716
[ "MIT" ]
SERAP-KEREM/fastql-unit-of-work-in-repository-pattern
src/FastqlSample/FastqlSample.Infrastructure/Core/Repository/Generic/GenericRepository.cs
10,403
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...
27.137931
81
0.655654
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Web/V20210201/Inputs/KubeEnvironmentProfileArgs.cs
787
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SharpDX.D3DCompiler; using SharpDX.Direct3D; using SharpDX.Direct3D11; namespace Molten.Graphics { internal class ComputeCompiler : HlslSubCompiler { internal override List<IShader...
37.867347
195
0.594718
[ "MIT" ]
Syncaidius/MoltenEngine
Molten.DX11/Shaders/Compiler/ComputeCompiler.cs
3,713
C#
namespace Verticular.Extensions { using System; using System.Text.RegularExpressions; /// <summary> /// Helps with matches against regular expressions. /// </summary> public static class RegularExpressionExtensions { /// <summary> /// Returns a value indicating whether a given string matches a re...
54.606061
148
0.694414
[ "MIT" ]
mhudasch/Verticular.Extensions.Strings
src/Verticular.Extensions.Strings/RegularExpressionExtensions.cs
5,406
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.EventSystems; public class TileEditorProxy : MonoBehaviour, IHasNeighbours<TileEditorProxy>, IPointerDownHandler, IPointerEnterHandler, IPointerExitHandler, IBeginDragHandler, IDragHandler, IEndDragHand...
29.334029
191
0.579389
[ "MIT" ]
BradZzz/EldersQuest
Assets/Scripts/BoardEdit/TileEditorProxy.cs
14,053
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Sketch360.XPlat.UWP; using System; using System.Collections.Generic; using System.Linq; using Windows.UI.Core; using Windows.UI.Xaml.Controls; using Xamarin.Form...
31.338462
123
0.596465
[ "MIT" ]
MCKLMT/sketch360
Source/Sketch360.XPlat.UWP/UWPInkPresenter.cs
6,113
C#
using AutoMapper; using EventBus.Messages.Events; using Ordering.Application.Features.Orders.Commands.CheckOutOrderCommand; namespace Ordering.API.Mapper { public class OrderingProfile : Profile { public OrderingProfile() { CreateMap<CheckoutOrderCommand, BasketCheckoutEvent>().Rev...
23.266667
80
0.704871
[ "MIT" ]
desperad1/aspnetMicroservice
src/Services/Ordering/Ordering.API/Mapper/OrderingProfile.cs
351
C#
using System; namespace GlobalInsightsWebApp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
19.818182
70
0.683486
[ "MIT" ]
AurelianoBuendia/azure-intelligent-edge-patterns
staged-data-analytics/GlobalInsightsWebApp/Models/ErrorViewModel.cs
218
C#
using System; using System.Configuration; using System.Threading; using Gis.Infrastructure.OrganizationsRegistryCommonService; using Gis.Crypto; namespace Gis.Helpers.HelperOrganizationRegistryCommonService { class HelperOrganizationRegistryCommonService { /// <summary> /// Экспорт сведений из...
35.849315
108
0.506687
[ "Unlicense" ]
bogich/InsertSettlements
Gis/Helpers/HelperOrganizationRegistryCommonService.cs
2,713
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace BilibiliEvolved.Build { static class RegexReplacer { public static string Replace(string text, s...
26.62069
94
0.57772
[ "MIT" ]
01093170/Bilibili-Evolved
builder/dotnet/RegexReplacer.cs
772
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; namespace Bridge.Contract { public class ConfigHelper { class PathChanger { //private Regex PathSchemaRegex = new Regex(@"(?<=(^\...
30.646825
168
0.486987
[ "Apache-2.0" ]
Angolar/Bridge
Compiler/Contract/Config/ConfigHelper.cs
7,723
C#
using Xunit; using System.Collections.Generic; using GildedRoseKata; namespace GildedRoseTests { public class StandardItemTests { [Theory] [InlineData(4,3,2)] [InlineData(0,2,0)] [InlineData(0,1,0)] public void UpdateQuality_GivenSellIn_ShouldChangeQuality(int sellIn, in...
28.109091
118
0.499353
[ "MIT" ]
twierzchowski/GildedRose-Refactoring-Kata
csharpcore/GildedRoseTests/StandardItemTests.cs
1,546
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExitGames.Logging; using MultiplayerGameFramework.Implementation.Messaging; using MultiplayerGameFramework.Interfaces; using MultiplayerGameFramework.Interfaces.Client; using MultiplayerGameFramewo...
34.518182
194
0.628918
[ "MIT" ]
astonished12/mmorpg-implementation
Server-project/PhotonMMORPG/PhotonMMORPG/MGF-Photon4/Implementation/Client/PhotonClientPeer.cs
3,799
C#
namespace Steepshot.Core.Models.Responses { public class MessageField { public string Message { get; set; } } public class OffsetCountFields { public string Offset { get; set; } public int Count { get; set; } } }
18.785714
43
0.596958
[ "Unlicense" ]
AnCh7/sweetshot
src/Steepshot.Core/Models/Responses/BaseResponses.cs
265
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"); you may...
33.225806
137
0.710841
[ "Apache-2.0" ]
Distrotech/mono
external/Lucene.Net/test/core/Search/TestMultiSearcherRanking.cs
6,180
C#
using System; using System.Runtime.InteropServices; using Vanara.InteropServices; namespace Vanara.PInvoke { /// <summary>Functions, structures and constants from Windows Core Audio Api.</summary> public static partial class CoreAudio { /// <summary>The reason that the audio session was disconnected.</summary> ...
67.750307
186
0.737162
[ "MIT" ]
AndreGleichner/Vanara
PInvoke/CoreAudio/AudioPolicy.cs
110,445
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします。 // </auto-generated> //-----------------------------...
31.622772
138
0.730807
[ "MIT" ]
jc-150272/aaaaaaaaaaaaaaaaaaaaaaatarasii
LiveWithPrism/LiveWithPrism/LiveWithPrism.Droid/Resources/Resource.Designer.cs
188,201
C#
using System; using System.Text; using Lucene.Net.Analysis.Standard; using System.IO; using Lucene.Net.Analysis; public class StandardTokenizer { public const int ALPHANUM = 0; public const int APOSTROPHE = 1; public const int ACRONYM = 2; public const int COMPANY = 3; pub...
27.433962
91
0.626547
[ "MIT" ]
baohaojun/beagrep
tools/BreakWords.cs
1,454
C#
using System; using SharpGAN.Common; namespace SharpGAN.Layers.ActivationFunctions { /// <summary> /// Class Softmax for implementation softmax activation function /// </summary> [Serializable] public class Softmax : ActivationFunction { /// <summary> /// Empty constructor for ...
30.862069
83
0.478585
[ "MIT" ]
pedroam14/Neural-Link
Assets/Scripts/GAN/Layers/ActivationFunctions/Softmax.cs
2,687
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ColumnDefinition.cs" company="PropertyTools"> // Copyright (c) 2014 PropertyTools contributors // </copyright> // <summary> // Defines a column in a DataGrid. // </summa...
32.939394
121
0.432383
[ "MIT" ]
JawadJaber/PropertyTools
Source/PropertyTools.Wpf/DataGrid/Definitions/ColumnDefinition.cs
1,089
C#
using System; using NUnit.Framework; using AdoTools.Common.Extensions; namespace AdoTools.Common.Tests.Extensions { [TestFixture] public class XmlExtensionTests { [Test] public void SerializeObject_Format() { var input = new TestObject {TestString = "testing"}; ...
26.558824
64
0.593577
[ "MIT" ]
robbratton/AdoTools
AdoTools.Common.Tests/Extensions/XmlExtensionTests.cs
905
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Ding; using Ding.Collections; using Ding.Data; using Ding.Log; us...
31.22104
173
0.480975
[ "MIT" ]
EnhWeb/DC.Framework
src/Ding.XCode/Entity/EntitySession.cs
30,609
C#
using System; namespace TC4_Alumnos { class Persona { public string apellido; public string nombre; public string NombreCompleto { get => this.nombre + " " + this.apellido; } private string colorFavorito; public string ColorFavorito ...
21.361111
75
0.521456
[ "MIT" ]
Bondweb-on/TC4-Alumnos
Persona.cs
770
C#
using FluiTec.AppFx.Data.Dapper.Migration; using FluiTec.AppFx.Localization.Schema; namespace FluiTec.AppFx.Localization.Dapper.Schema.Migration.Versions { /// <summary> A translation migration. </summary> [DapperMigration(2020, 06, 09, 11, 03, "Achim Schnell")] public class _202006091103_TranslationMig...
40.555556
87
0.570685
[ "Apache-2.0", "MIT" ]
FluiTec/FluiTec.AppFx.Localization
src/FluiTec.AppFx.Localization.Dapper/Schema/Migration/Versions/202006091103_TranslationMigration.cs
3,652
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("Win...
37.837838
84
0.749286
[ "MIT" ]
DominikRicko/AlphaBot2_ControllerApplication
Properties/AssemblyInfo.cs
1,403
C#
using UIKit; namespace mvvm.iOS { public class Application { // This is the main entry point of the application. private static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here....
26.466667
91
0.594458
[ "MIT" ]
Leand3k/simple-LoginUsingGrid
mvvm/mvvm.iOS/Main.cs
399
C#
using System; using System.Runtime.Serialization; namespace StandardDot.Dto.Exception { /// <summary> /// A serializable version of <see cref="System.RuntimeMethodHandle" />. /// </summary> [DataContract] public struct SerializableRuntimeMethodHandle { /// <param name="runtimeMethodHandle">The runtimeMethodHa...
26.846154
89
0.726361
[ "MIT" ]
mrlunchbox777/StandardDot
src/Dto/Exception/SerializableRuntimeMethodHandle.cs
698
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-generated> //--...
36.986667
151
0.555155
[ "Unlicense" ]
linkshift/VWiFiManager
VWiFiManager/Properties/Settings.Designer.cs
2,776
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Senai.Peoples.WebApi.Domains; using Senai.Peoples.WebApi.Repository; namespace Senai.Peoples.WebApi.Controller { [Route("api/[controller]")] [...
28.661538
92
0.620505
[ "MIT" ]
Psouza-queiroz/2s2019-t2-sprint-2-backend-peoples
Senai.Peoples.WebApi/Senai.Peoples.WebApi/Controller/FuncionarioController.cs
1,865
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("14-...
38.054054
84
0.74929
[ "MIT" ]
MrPIvanov/SoftUni
01-Progr Basics with Csharp/07-More Complex Logic Checks/07-Complex Logic Checks/14-pointAndRectangle/Properties/AssemblyInfo.cs
1,411
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MegaCasting.Models { public class Content { } }
14.083333
33
0.733728
[ "Apache-2.0" ]
NyanUnicorn/MegaCastingProj
MagaCasting.DataLib/Models/MGCasting/Content.cs
171
C#
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modi...
43.512821
155
0.713612
[ "MIT" ]
JetBrains/SharpGenTools
SharpGen/Logging/ILogger.cs
1,699
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
29.423729
110
0.657258
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/AuditManager/Generated/Model/GetControlRequest.cs
1,736
C#
namespace EasyDurableTask.Core { // Dummy interface to indicate an Activity interface which could be used by TaskHubWorker.AddTaskActivitiesFromInterface public interface IActivity { } }
22.777778
124
0.760976
[ "Apache-2.0" ]
t-bzhan/EasyDurableTask
src/EasyDurableTask/Core/IActivity.cs
207
C#
// ----------------------------------------------------------------------- // <copyright file="Middleware.cs" company="Asynkron AB"> // Copyright (C) 2015-2022 Asynkron AB All rights reserved // </copyright> // ----------------------------------------------------------------------- using System.Threading.Tasks; n...
36.105263
114
0.578717
[ "Apache-2.0" ]
BearerPipelineTest/protoactor-dotnet
src/Proto.Actor/Middleware.cs
686
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Example1Project { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
26.090909
70
0.709059
[ "MIT" ]
dimitrov9/newmansexercise
Back End/SQL and ASpNET/Example/Example1/Example1/Global.asax.cs
576
C#
using OmniSharp.Models.V2; #nullable enable annotations namespace OmniSharp.Models.v1.InlayHints; public sealed record InlayHint { public Point Position { get; set; } public string Label { get; set; } public string? Tooltip { get; set; } public (string SolutionVersion, int Position) Data { get; set;...
25.361111
125
0.651698
[ "MIT" ]
ShuiRuTian/omnisharp-roslyn
src/OmniSharp.Abstractions/Models/v1/InlayHints/InlayHint.cs
915
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.ChangeFeed.Tests { using System; using System.Collections.Generic; using System.Linq;...
44.303523
259
0.62711
[ "MIT" ]
ConnectionMaster/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/ChangeFeedEstimatorIteratorTests.cs
16,350
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 BenchmarkDotNet.Attributes; using Microsoft.ML.Runtime; using Microsoft.ML.Runtime.Data; using Microsoft.ML.R...
48.452055
165
0.514278
[ "MIT" ]
Caraul/machinelearning
test/Microsoft.ML.Benchmarks/KMeansAndLogisticRegressionBench.cs
3,539
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.423077
98
0.602613
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/AppPlatform/V20200701/Outputs/BindingResourcePropertiesResponse.cs
2,373
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
26.69697
153
0.499432
[ "MIT" ]
AzureMentor/msgraph-sdk-dotnet
src/Microsoft.Graph/Models/Generated/SelectionLikelihoodInfo.cs
881
C#
using OfficeOpenXml; using OfficeOpenXml.Style; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Net.Http.Formatting; using System.Net.Http.Headers; using System.Security.Permissions; usin...
39.732044
215
0.552597
[ "MIT" ]
bmeredith/WebApiContrib.Formatting.Xlsx
src/WebApiContrib.Formatting.Xlsx.NetStandard/XlsxMediaTypeFormatter.cs
14,385
C#
using DelonixRegiaHMS.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace DelonixRegiaHMS.Manage { public partial class Room_Type_Add : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ...
26.652174
68
0.700653
[ "MIT" ]
JiaJian/swen
DelonixRegia/DelonixRegiaHMS/Manage/Room_Type_Add.aspx.cs
1,228
C#
/** * Copyright 2013 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...
30.032609
167
0.711907
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-core/Main/Ca/Infoway/Messagebuilder/Domainvalue/Payload/TopicPriority.cs
2,763
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using stellar_dotnet_sdk; using stellar_dotnet_sdk.responses; using stellar_dotnet_sdk.responses.operations; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace stellar_dotnet_sdk_test.responses.operat...
39.586957
146
0.727073
[ "Apache-2.0" ]
mootz12/dotnet-stellar-sdk
stellar-dotnet-sdk-test/responses/operations/CreatePassiveOfferOperationResponseTest.cs
1,823
C#
using System; using System.Collections.Generic; using System.Reflection; using Android.Views; using AoLibs.Navigation.Android.Navigation.Attributes; using AoLibs.Navigation.Core; using AoLibs.Navigation.Core.Interfaces; using AoLibs.Navigation.Core.PageProviders; using FragmentManager = Android.Support.V4.App.Fragment...
48.669118
159
0.633177
[ "MIT" ]
mmaasstteerr/AoLibs
AoLibs.Navigation.Android/Navigation/NavigationManager.cs
6,621
C#
#if NET6_0 using DiffEngine; public class DiffRunnerTests : XunitContextBase { static ResolvedTool tool; string file2; string file1; string command; [Fact(Skip = "Explicit")] public async Task MaxInstancesToLaunch() { DiffRunner.MaxInstancesToLaunch(1); ...
31.029703
96
0.56238
[ "MIT" ]
GitHubPang/DiffEngine
src/DiffEngine.Tests/DiffRunnerTests.cs
6,069
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using NUnit.Framework; namespace Azure.Messaging.EventHubs.Tests { /// <summary> /// The suite of tests for the <see cref="EventProcessorClientOptions" /> /// class. /// </summary> //...
43.71875
187
0.636883
[ "MIT" ]
amitmag-ms/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/tests/EventProcessorClient/EventProcessorClientOptionsTests.cs
4,199
C#
using Cinema.DAL.Abstract.IRepositoryBases; using Cinema.Entity.Concrete; using Framework.Core.DAL; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using System.Web.Script...
24.513889
86
0.522946
[ "MIT" ]
ahmettyavuz/CinemaSeance
Cinema.DAL/Repository.cs
1,767
C#
// Copyright (C) 2018 Mohammad Javad HoseinPour. All rights reserved. // Licensed under the Private License. See LICENSE in the project root for license information. // Author: Mohammad Javad HoseinPour <mjavadhpour@gmail.com> using ShopPromotion.Domain.Infrastructure.Models.Resource.Custom; namespace ShopPromotion....
38.733333
95
0.777969
[ "MIT" ]
mjavadhpour/shop-promotion
src/ShopPromotion.Domain/Infrastructure/Models/Resource/MinimumShopPromotionLikeResource.cs
583
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Red.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Red.Formats.Red.Records.Enums; namespace GameEstate.Red.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CBehTreeTaskCSEffect : IBehTr...
42.684685
132
0.688054
[ "MIT" ]
bclnet/GameEstate
src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CBehTreeTaskCSEffect.cs
4,738
C#