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 NewsCollector.Core; using NewsCollector.Core.Repositories; using NewsCollector.Data.Repositories; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace NewsCollector.Data { public class UnitOfWork : IUnitOfWork { private readonly NewsCollector...
30.934783
116
0.709768
[ "MIT" ]
svbnbyrk/news-collector
NewsCollector.Data/UnitOfWork.cs
1,425
C#
using Verse; namespace TorannMagic.Enchantment { public class CompEnchantedStuff : ThingComp { public CompProperties_EnchantedStuff Props { get { return (CompProperties_EnchantedStuff)this.props; } } } }
18.375
65
0.564626
[ "BSD-3-Clause" ]
Evyatar108/TMagic-Optimized
Source/TMagic/TMagic/Enchantment/CompEnchantedStuff.cs
296
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...
38.014493
109
0.648875
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineRunCommandTests.cs
2,557
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using AppFullStackDemo.Domain.Entities; namespace AppFullStackDemo.Infra.Maps { public class EquipmentMap : IEntityTypeConfiguration<Equipment> { public void Configure(EntityTypeBuilder<Equipment> builder) ...
42.785714
107
0.619366
[ "Apache-2.0" ]
basharbme/app_fullstackdemo
src/BackEnd/AppFullStackDemo.Infra/Maps/EquipmentMap.cs
1,797
C#
using System; using System.Collections.Generic; namespace GradeBook { public class Book { private List<double> grades = new List<double>(); public String Name; public Book(String Name) { this.Name = Name; } public void SetNam(string Name) ...
23.417266
92
0.424578
[ "MIT" ]
Sanusi1997/GradeBook
src/GradeBook/Book.cs
3,255
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lit.Web.JsonModel { class CollectionModel { } }
14.461538
33
0.739362
[ "MIT" ]
zyxhero/Lit-Framework
LitFramework/Lit.Web/JsonModel/CollectionModel.cs
190
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Modules.Standard.Skin; using lm.Comol.Core.DomainModel; using lm.Comol.Core.Business; namespace lm.Comol.Modules.Standard.Skin.Presentation { public class SkinHeaderLogoPresenter : lm.Comol.Core.DomainModel.Comm...
30.082474
124
0.610692
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Modules.Standard/Skin/Presentation/Edit/SkinHeaderLogoPresenter.cs
2,920
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
47.851852
174
0.653638
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IDeviceConfigurationAssignmentsCollectionRequest.cs
5,168
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Bir bütünleştirilmiş koda ilişkin Genel Bilgiler aşağıdaki öznitelikler kümesiyle // denetlenir. Bütünleştirilmiş kod ile ilişkili bilgileri değiştirmek için // bu öznitelik değerlerini değiştirin. [assembly: Asse...
39.027027
93
0.775623
[ "MIT" ]
Apromodo/BU-Gp-2
2020-Bahar Vize/sinav2/sinav2/Properties/AssemblyInfo.cs
1,527
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { [TLObject(852135825)] public class TLRequestGetWebPage : TLMethod { public override int Constructor { ...
21.403846
71
0.569632
[ "MIT" ]
Vladimir-Novick/TLSharp.NetCore2
TeleSharp.NetCore2.TL/TL/Messages/TLRequestGetWebPage.cs
1,113
C#
using System; using System.Diagnostics; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Remote; namespace CommandExecutorTester { class Program { static void Main(string[] args) { // Modify this value to toggle between using the HttpClient based ...
41.160714
138
0.596963
[ "Apache-2.0" ]
jimevans/HttpClientCommandExecutor
CommandExecutorTester/Program.cs
4,612
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root...
27.54
88
0.480029
[ "BSD-3-Clause" ]
0xCM/z0
src/logix/src/core/models/BinaryBitwiseOpExpr.cs
1,377
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Charlotte.Commons; using Charlotte.GameCommons; namespace Charlotte.Games { public class World { public string StartMapName = "t0001"; // 開始マップ名 // BUG: コンストラクタで参照される。prm の設定はコンストラクタの実行後 // <---- prm ...
21.142857
91
0.652334
[ "MIT" ]
soleil-taruto/Elsa
e20201029_TopViewAct/Elsa20200001/Elsa20200001/Games/World.cs
1,758
C#
using System; using System.Collections.Generic; using Acolyte.Assertions; namespace Acolyte.Common { public static class AcolyteValueTupleExtensions { // TODO: add extension methods for value valueTuple of arbitrary length. #region ToEnumerable public static IEnumerable<T> ToEnumerab...
28.854489
105
0.532296
[ "Apache-2.0" ]
Vasar007/algorithm_analysis
Source/AlgorithmAnalysis/Libraries/AlgorithmAnalysis.Common/AcolyteExtensions/AcolyteValueTupleExtensions.cs
9,322
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Azmyth { public enum TerrainTypes { None = 0, Ocean = 1, Sand = 2, Dirt = 3, Grass = 4, Stone = 5, Snow = 6, Lava = 7, ...
24.461538
123
0.443396
[ "MIT" ]
CoderGirl42/Azmyth
Azmyth/Assets/TerrainType.cs
3,500
C#
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // using HUX; using System.Collections.Generic; using UnityEditor; using UnityEngine; /// <summary> /// HUX Editor Menu Class. /// Contains all functions used with...
38.225064
121
0.664325
[ "MIT" ]
AllBecomesGood/Share-UpdateHolograms
ShareAndKeepSynced/Assets/MRDesignLab/HUX/Editor/HUXEditorMenu.cs
14,946
C#
using System; using IntegrationTests; using Jasper; using Jasper.Persistence.Marten; using Jasper.Tcp; using Jasper.Util; using StoryTeller; namespace StorytellerSpecs.Fixtures.Marten.App { public class ReceiverApp : JasperOptions { public ReceiverApp(Uri listener) { Extensions.Inc...
25.448276
80
0.644986
[ "MIT" ]
JasperFx/jasper
src/StorytellerSpecs/Fixtures/Marten/App/ReceiverApp.cs
740
C#
 namespace Bing.Admin.Service.Abstractions.Commons { /// <summary> /// 文件 服务 /// </summary> public interface IFileService : Bing.Application.Services.IAppService { } }
17.545455
73
0.637306
[ "MIT" ]
bing-framework/Bing.NetCode
modules/admin/src/Bing.Admin.Service/Abstractions/Commons/IFileService.cs
203
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Dynamic; using System.Linq; using System.Web; namespace AdminLteMvc.Models.WEBSales { public class EIRINECV { [Key] [DatabaseGenerated(D...
42.87234
62
0.666005
[ "MIT" ]
ataharasystemsolutions/KTI_TEST
AdminLteMvc/AdminLteMvc/Models/WEBSales/EIRINECV.cs
2,017
C#
using DevTranslate.Api.Context; using DevTranslate.Api.DTO; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using System; using System.Collections.Generic; using System.Linq; using System.Net.Mime; using System.Threading.Tasks; namespace DevTranslate.Api.Controllers { [ApiController] ...
35.765432
118
0.58854
[ "MIT" ]
devtranslate/api
src/DevTranslate.Api/Controllers/TranslationsController.cs
2,899
C#
using CsvHelper; using System.Collections.Generic; using System.Globalization; using System; using System.IO; using System.Linq; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; namespace RelasiConsole; public class Program { static HttpClient httClient = new HttpClient(); st...
43.75
180
0.629401
[ "MIT" ]
moemura/Wilayah-Administratif-Indonesia
scriptscsharp/RelasiConsole/Program.cs
10,852
C#
using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.XR.ARFoundation; /// <summary> /// This example demonstrates how to toggle plane detection, /// and also hide or show the existing planes. /// </summary> [RequireComponent(typeof(ARPlaneManager))] public class PlaneDetectionC...
30.106061
89
0.663815
[ "MIT" ]
markusfluxguide/AR-App-zu-Kosmos-Kaffee
Assets/Scripts/PlaneDetectionController.cs
1,989
C#
// <copyright file="AllowedForEnum.Generated.cs" company="Okta, Inc"> // Copyright (c) 2014 - present Okta, Inc. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. // </copyright> // This file was automatically generated. Don't modify i...
36.772727
112
0.645241
[ "Apache-2.0" ]
Christian-Oleson/okta-sdk-dotnet
src/Okta.Sdk/Generated/AllowedForEnum.Generated.cs
1,618
C#
using System; namespace SkiaSharp { public readonly unsafe struct SKPMColor : IEquatable<SKPMColor> { private readonly uint color; public SKPMColor (uint value) { color = value; } public readonly byte Alpha => (byte)((color >> SKImageInfo.PlatformColorAlphaShift) & 0xff); public readonly byte Red =...
28.8
94
0.706163
[ "MIT" ]
AlexanderSemenyak/SkiaSharp
binding/Binding/SKPMColor.cs
2,306
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BGC.Data { public interface IDbPersist { void SaveChanges(); } }
15.214286
33
0.70892
[ "MIT" ]
blattodephobia/BG_Composers
BGC.Core/Data/IDbPersist.cs
215
C#
using Lykke.SettingsReader.Attributes; namespace Lykke.Service.LegalEntities.Settings.ServiceSettings.Db { public class DbSettings { [AzureTableCheck] public string DataConnectionString { get; set; } [AzureTableCheck] public string LogsConnectionString { get; set; } ...
23.285714
65
0.674847
[ "MIT" ]
LykkeCity/Lykke.Service.LegalEntities
src/Lykke.Service.LegalEntities/Settings/ServiceSettings/Db/DbSettings.cs
328
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.Diagnostics; using System.Runtime.InteropServices; using StarkPlatform.CodeAnalysis.Text; namespace StarkPlatform.CodeAnalysis { ...
44.392947
226
0.553563
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Compilers/Core/Portable/Symbols/Attributes/MarshalAsAttributeDecoder.cs
17,626
C#
using System; using System.Collections.Generic; using System.Text; using TomcatConfig.model; using System.Xml; namespace TomcatConfig { public class ContextHelper { public static Context parse(XmlDocument xdt) { if (xdt.GetElementsByTagName("Context").Count > 0) { ...
27.928571
77
0.544757
[ "MIT" ]
fishman1986/autostarter
TomcatConfig/ContextHelper.cs
784
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.Windows.Forms; namespace GraphiEditor { public class Line { public Point Start { get; set; } public Point End { get; set; } /// <summa...
26.625
117
0.534429
[ "Apache-2.0" ]
Vinogradov-Mikhail/semestr3
GraphiEditor/GraphiEditor/Line.cs
1,280
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Linq; using Microsoft.ApplicationInsights; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Appli...
40.523438
119
0.667438
[ "MIT" ]
enzocanoo/botframework-solutions
templates/Skill-Template/csharp/Template/Skill/Startup.cs
5,189
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ZSpitz.Util { public static class ObjectExtensions { public static string Formatted(this object o, string format) => string.Format(format, o); public static string Formatted(this IEnumerable<object> obj...
36.666667
178
0.738636
[ "MIT" ]
zspitz/ZSpitz.Util
ZSpitz.Util/Extensions/Object.cs
442
C#
///////////////////////////////////////////////////////////////////////////////// // // vp_Gameplay.cs // © Opsive. All Rights Reserved. // https://twitter.com/Opsive // http://www.opsive.com // // description: a place for globally accessible info on the game session, such // as whether we're in singleplayer or mu...
23.789116
83
0.673434
[ "Apache-2.0" ]
dhruvshah1214/cocoloco-io
Assets/UFPS/Base/Scripts/Gameplay/vp_Gameplay.cs
3,500
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...
26.9125
115
0.599164
[ "Apache-2.0" ]
tap4fun/aws-sdk-net
sdk/src/Services/ManagedBlockchain/Generated/AmazonManagedBlockchainConfig.cs
2,153
C#
using System.Linq; using System.Web.Mvc; using AssemblyLine; using Microsoft.Practices.Unity.Mvc; [assembly: WebActivatorEx.PreApplicationStartMethod(typeof(UnityWebActivator), "Start")] [assembly: WebActivatorEx.ApplicationShutdownMethod(typeof(UnityWebActivator), "Shutdown")] namespace AssemblyLine { /// <summa...
39.4
132
0.718637
[ "MIT" ]
alexey-ernest/assembly-line
AssemblyLine/App_Start/UnityMvcActivator.cs
1,379
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * d...
25.539216
93
0.618426
[ "Apache-2.0" ]
azarbara/YAFNET
yafsrc/YAF.Core/BasePages/ModerateForumPage.cs
2,505
C#
using Mono.Cecil; using Mono.Cecil.Cil; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Dopple.InstructionNodes { [DataContract] internal class VirtualCallInstructionNode : NonInlineableCallInstru...
27.176471
121
0.681818
[ "MIT" ]
simcoster/Dopple
GraphBuilder/InstructionNodes/VirtualCallInstructionNode.cs
926
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace SaaSSampleWebApp.Models { using System; public class Subscription { public Guid Id { get; set; } public Guid TenantId { get; set; } public string LicenceType { get; set; } } }
18
47
0.627451
[ "MIT" ]
BobGerman/office-add-in-saas-monetization-sample
MonetizationCodeSample/SaaSSampleWebApp/Models/Subscription.cs
308
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Xml; namespace Soukoku.Owin.Files { /// <summary> /// Contains constant values used by webdav. /// </summary> public static class DavConsts { /...
38.526718
206
0.592431
[ "MIT" ]
soukoku/Soukoku.Owin.Files
src/Soukoku.Owin.Files.Webdav/DavConsts.cs
5,049
C#
using System; using System.Collections.Generic; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.TextManager.Interop; namespace ProjectTaskRunner.Helpers { public static class TextViewUtil { public static IVsText...
29.434343
103
0.551476
[ "Apache-2.0" ]
Thieum/CommandTaskRunner
src/Helpers/TaskRunner/TextViewUtil.cs
2,916
C#
using Tomlet.Attributes; namespace Tomlet.Tests.TestModelClasses { public record ComplexTestRecordWithAttributeMapping { [TomlProperty("string")] public string MyString { get; init; } public WidgetForThisComplexTestRecordWithAttributeMapping MyWidget { get; init; } } public re...
25.722222
89
0.697624
[ "MIT" ]
ChadKeating/Tomlet
Tomlet.Tests/TestModelClasses/ComplexTestRecordWithAttributeMapping.cs
465
C#
namespace JWT { /// <summary> /// Represents a base64 encoder/decoder. /// </summary> public interface IBase64UrlEncoder { /// <summary> /// Encodes the byte array to a base64 string. /// </summary> string Encode(byte[] input); /// <summary> ...
24.555556
55
0.513575
[ "CC0-1.0" ]
Emiliano978/jwt
src/JWT/IBase64UrlEncoder.cs
442
C#
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.ImageSharp.Formats.Tga { /// <summary> /// Configuration options for use during tga encoding. /// </summary> internal interface ITgaEncoderOptions { /// <summary> ///...
27.590909
82
0.616145
[ "Apache-2.0" ]
Sheyne/ImageSharp
src/ImageSharp/Formats/Tga/ITgaEncoderOptions.cs
607
C#
namespace NutritionRecommendationEngine.Migrations { using OfficeOpenXml; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<AmAmDbContext> { private static readonly int CalciumColumnNum = 11; private static readon...
45.597403
152
0.567929
[ "MIT" ]
tsvgeorgieva/AmAm
AmAm/NutritionRecommendationEngine/Data/Migrations/Configuration.cs
3,511
C#
using Generated.Variables; using NUnit.Framework; using UnityEngine; namespace Fasteraune.SO.Instances.Variables.Tests { public class ExpressionTests { private void Clamped_Reference_Clamps(FloatVariableReference first, FloatVariableReference second, FloatVariableReferenceClamped clamped) ...
33.388889
111
0.603439
[ "MIT" ]
polartron/ScriptableObject-Instanced-Variables
Tests/Editor/ExpressionTests.cs
5,411
C#
using System; using System.Runtime.InteropServices; using TellCore.Utils; namespace TellCore { internal static class NativeMethods { [DllImport("TelldusCore.dll")] internal static extern int tdGetNumberOfDevices(); [DllImport("TelldusCore.dll")] internal static extern int tdGe...
45.708333
145
0.69384
[ "MIT" ]
larsolae/TellCore
TellCore/NativeMethods.cs
7,681
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Rational.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South. // Licensed under the Apache License, Version 2.0. // </copyright> // <summary> // Represen...
39.822549
167
0.542997
[ "MIT" ]
BLACKOB/SilverBullet
SilverBullet.ImageProcessor/Imaging/MetaData/Rational.cs
40,621
C#
using mssql_exporter.core; namespace mssql_exporter.server { public class ConfigurationOptions : IConfigure { public string DataSource { get; set; } public string ConfigFile { get; set; } = "metrics.json"; public string ConfigText { get; set; } public string ServerPa...
24.75
74
0.611111
[ "MIT" ]
DanielOliver/mssql_exporter
src/server/ConfigurationOptions.cs
596
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("CollectionExtensions.Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CollectionExtensions.Test")]...
30.952381
56
0.761538
[ "MIT" ]
mandarBadve/c-sharp-extension-methods
CSharpExtensionMethods/CollectionExtensions.Test/Properties/AssemblyInfo.cs
651
C#
using System; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; using Otter.Converters.Json; using Otter.Converters.QueryString; namespace Otter.Models { [DataContract] public class CreateContainerParameters // (main.CreateContainerParameters) { public Cre...
37.748148
78
0.608909
[ "MIT" ]
MirzaMerdovic/Docker.DotNet
src/Otter/Models/CreateContainerParameters.Generated.cs
5,096
C#
using BlazorContextMenu; using Microsoft.AspNetCore.Components; using PipelineCacher.Client.Models; using PipelineCacher.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; namespace PipelineCacher.Client.Pages {...
36.901408
156
0.629389
[ "MIT" ]
cveld/PipelineCacher
PipelineCacher/Client/Pages/Pipelines.Razor.cs
2,622
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace UiPath.Web.Client20191 { using Microsoft.Rest; using Models; using System.Collections; using System.Coll...
41.637363
485
0.608604
[ "MIT" ]
AFWberlin/orchestrator-powershell
UiPath.Web.Client/generated20191/IMessageTemplates.cs
3,789
C#
#nullable enable using System; using System.Threading.Tasks; using Content.Server.GameObjects.Components.Interactable; using Content.Server.GameObjects.Components.Pulling; using Content.Server.Utility; using Content.Shared.GameObjects.Components.Interactable; using Content.Shared.Interfaces.GameObjects.Components; usin...
35.410959
133
0.61354
[ "MIT" ]
FoundVivo/space-station-14
Content.Server/GameObjects/Components/AnchorableComponent.cs
7,755
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using LightningDevelopment; namespace Tools.Tools { public class Exit : IQuickAction { public string Command { get { return "exit"; } } public voi...
18.130435
48
0.561151
[ "MIT" ]
mhgamework/LightningDevelopment
src/Modules/Exit.cs
419
C#
using System; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; using System.Net; using Mono.Debugging.Client; using Mono.Debugging.Soft; using NUnit.Framework; using Xamarin.ProjectTools; namespace Xamarin.Android.Build.Tests { [Category ("UsesDevices")] public class D...
39.168766
174
0.67537
[ "MIT" ]
MrAlbin/xamarin-android
tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs
15,550
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...
31.039474
101
0.630352
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/DescribeActivationsResponse.cs
2,359
C#
using System; using System.Collections.Generic; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Media.Imaging; using Windows.UI.Xaml.Shapes; namespace MoveShapeFilledByImageBrush { public class ImageWithMask { private List<Point> ...
26.12
98
0.68096
[ "MIT" ]
cghersi/UWPExamples
MoveShapeFilledByImageBrush/MoveShapeFilledByImageBrush/ImageWithMask.cs
3,920
C#
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 m...
29.10219
88
0.498871
[ "MIT" ]
Charlotte-Air/XLua_Game_Demo
Assets/Plugin/Ultimate Game Tools/Fracturing/CDT/Utility/FixedBitArray3.cs
3,989
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...
31.832168
108
0.5971
[ "Apache-2.0" ]
Melvinerall/aws-sdk-net
sdk/src/Services/QuickSight/Generated/Model/UpdateTemplateRequest.cs
4,552
C#
using System; namespace Microsoft.PowerShell.EditorServices.Extensions { /// <summary> /// Provides an attribute that can be used to target PowerShell /// commands for import as editor commands. /// </summary> [AttributeUsage(AttributeTargets.Class)] public sealed class EditorCommandAttribute :...
26.735294
73
0.60176
[ "MIT" ]
APA2527/PowerShellEditorServices
src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs
909
C#
using System; using System.Security; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using TestLibrary; namespace PInvokeTests { [StructLayout(LayoutKind.Sequential)] public class SeqClass { public int a; public bool b; public string str; ...
25.47807
129
0.493544
[ "MIT" ]
3F/coreclr
tests/src/Interop/LayoutClass/LayoutClassTest.cs
5,809
C#
using System.Collections.Generic; using System.Linq; using VisioAutomation.Extensions; using IVisio = Microsoft.Office.Interop.Visio; using VA = VisioAutomation; namespace VisioAutomation.Scripting.Commands { public class LayerCommands : CommandSet { public LayerCommands(Client client) : ba...
29.440678
89
0.558434
[ "MIT" ]
saveenr/VisioAutomation2007
VisioAutomation_2007/VisioAutomation.Scripting/Commands/LayerCommands.cs
1,737
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Jupyter.Core; using Microsoft.Quantum.IQSharp.Common; using Microsoft.Quantum.IQSharp.Jupyter; using...
42.0181
131
0.554598
[ "MIT" ]
vxfield/iqsharp
src/Kernel/IQSharpEngine.cs
9,288
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Reflection; namespace UnofficialCrusaderPatch { public class AIVEdit : ChangeEdit { string resourceFolder; public string ResourceFolder => resourceFolder; public AIVEdit...
32.457627
115
0.584334
[ "MIT" ]
Lutel05/UnofficialCrusaderPatch
UnofficialCrusaderPatch/Patching/EditTypes/AIVEdit.cs
1,917
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/winternl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Windows...
48.580645
145
0.752324
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/Windows/um/winternl/PUBLIC_OBJECT_BASIC_INFORMATION.cs
1,508
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...
45.015873
176
0.636812
[ "Apache-2.0" ]
sebtelko/pulumi-azure-native
sdk/dotnet/HybridCompute/V20210325Preview/PrivateEndpointConnection.cs
5,672
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
40.380952
153
0.587657
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/CallRejectRequestBuilder.cs
2,544
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TestClasses; using System.Diagnostics; namespace NewtonSoftTest { public class TestNewtonSoft { public static string SerializeData(List<Human> People) { Stop...
26.8
134
0.638593
[ "MIT" ]
Crashnorun/Coding_Sketchbook_dotNet
dotNet/JSON_Comparison/NewtonSoftTest/TestNewtonSoft.cs
940
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.IO; using System.Reflection.PortableExecutable; using System.Reflection.Me...
28.641791
116
0.565138
[ "Apache-2.0" ]
virajs/KRuntime
src/Microsoft.Framework.Project/AssemblyInformation.cs
3,838
C#
using System; using System.IO; using JetBrains.Annotations; namespace Testosterone { // Class used to count bytes read-from/written-to non-seekable streams. internal class LoggingStream : Stream { public event EventHandler<DataTransferEventArgs> DataRead; public event EventHandler<DataTransfer...
32.462428
110
0.577635
[ "BSD-3-Clause" ]
MCClassicServerArchive/Testosterone
Testosterone/Networking/LoggingStream.cs
5,618
C#
using System; using System.Collections; using JetBrains.Annotations; namespace Adnc.Infra.Common.Extensions { public static class ArrayExtension { /// <summary> /// An Array extension method that clears the array. /// </summary> /// <param name="this">The @this to act on.</...
54.012107
143
0.606626
[ "MIT" ]
18142552937/Adnc
src/ServerApi/Infrastructures/Adnc.Infra.Common/Extensions/Collection/ArrayExtension.cs
22,309
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v3/resources/feed_mapping.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.C...
44.770148
2,304
0.684541
[ "Apache-2.0" ]
PierrickVoulet/google-ads-dotnet
src/V3/Types/FeedMapping.cs
78,885
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.Goog...
40.230769
329
0.703633
[ "Apache-2.0" ]
AaronFriel/pulumi-google-native
sdk/dotnet/Storage/V1/Outputs/BucketIamConfigurationBucketPolicyOnlyResponse.cs
1,569
C#
using System; namespace HeathenEngineering.Scriptable { [Serializable] public class IntReference : VariableReference<int> { public IntVariable Variable; public override IDataVariable<int> m_variable => Variable; public IntReference(int value) : base(value) { } } }
19.8125
66
0.665615
[ "MIT" ]
TH3UNKN0WN-1337/Heathen-System-Core
Assets/_Heathen Engineering/SystemsCore/Framework/Scriptable/Data Types/Int/IntReference.cs
319
C#
// Copyright 2015 Adamantworks. 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 required b...
32.698113
121
0.705713
[ "Apache-2.0" ]
Adamantworks/Amazon.DynamoDB
DynamoDB/Internal/AwsAttributeValues.cs
1,735
C#
using Microsoft.EntityFrameworkCore; using WordleTracker.Data.Models; namespace WordleTracker.Svc; public partial class GroupSvc { public async Task<GroupDetails?> GetGroupDetails(int groupId, CancellationToken cancellationToken) { var group = await DbContext .Groups .AsNoTracking() .Select(group => new...
23.347222
99
0.69304
[ "MIT" ]
HolyMeekrob/WordleTracker
WordleTracker.Svc/Group/GetGroupDetails.cs
1,683
C#
 namespace GMap.NET.CacheProviders { #if !SQLite using System; using System.Data; using System.Diagnostics; using System.IO; using SqlCommand = System.Data.SqlServerCe.SqlCeCommand; using SqlConnection = System.Data.SqlServerCe.SqlCeConnection; using GMap.NET.MapProviders; /// <summary> //...
31.4375
162
0.445577
[ "Apache-2.0" ]
Markkkkk/UnitTest
GMap.NET.Core/GMap.NET.CacheProviders/MSSQLCEPureImageCache.cs
8,050
C#
using FM4CC.TestCase; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FM4CC.FaultModels.Step { public class StepFaultModelTestCase : FaultModelTesterTestCase { public override string GetDescription() { re...
23.888889
105
0.67907
[ "Apache-2.0" ]
AlvinStanescu/ControllerTester
FaultModels/StepFaultModel/StepFaultModelTestCase.cs
432
C#
namespace Nuve.Test.Analysis { public sealed class SpecialCase { #region string[] FiilDemekYemek public static string[] FiilDemekYemek = { "de", "ye", "deyiş", "yiyiş", "deme", "yeme", "demek", ...
20.227679
122
0.358199
[ "MIT" ]
diegolinan/nuve
Nuve.Test/Analysis/SpecialCase.cs
4,585
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SC.Service.Elements.IO { /// <summary> /// Distinguishes the different status a calculation can be in. /// </summary> public enum StatusCodes { Pending = 0, Ongoing = 1, ...
18.947368
67
0.611111
[ "MIT" ]
merschformann/sardine-can
SC.Service/Elements/IO/StatusCodes.cs
362
C#
using System.Diagnostics.CodeAnalysis; using StardewValley; using TehPers.Core.Api.Items; using TehPers.FishingOverhaul.Api; using TehPers.FishingOverhaul.Api.Content; namespace TehPers.FishingOverhaul.Content { internal record GoldenWalnutEntry(AvailabilityInfo AvailabilityInfo) : TrashEntry( NamespacedK...
27.655172
86
0.640898
[ "MIT" ]
TehPers/Stardew-Valley-Mods
src/TehPers.FishingOverhaul/Content/GoldenWalnutEntry.cs
804
C#
using DependencyServiceExtended.Attributes; using DependencyServiceExtended.Test.Utils; [assembly: DependencyRegister(typeof(IService5), typeof(Service5WithDependencyRegisterAttribute))] namespace DependencyServiceExtended.Test.Utils { public class Service5WithDependencyRegisterAttribute:IService5 { } }
29
98
0.836991
[ "MIT" ]
LuisM000/DependencyServiceExtendedXF
DependencyServiceExtended.Test/Utils/Service5WithDependencyRegisterAttribute.cs
321
C#
using System; class Calculate1NXN { static void Main() { // * Write a program that, for a given two integer numbers n and x, // calculates the sum S = 1 + 1!/x + 2!/x2 + … + n!/x^n. // * Use only one loop. Print the result // with 5 digits after the decimal point. ...
27.36
76
0.475146
[ "MIT" ]
YaneYosifov/Telerik
C# Part I/Homeworks/07-Loops/05-Calculate-NXN/CalculateNXN.cs
688
C#
using System.Numerics; using Miningcore.Serialization; using Newtonsoft.Json; namespace Miningcore.Blockchain.Ethereum.DaemonResponses { public class Transaction { /// <summary> /// 32 Bytes - hash of the transaction. /// </summary> public string Hash { get; set; } /// ...
32.989362
111
0.564818
[ "MIT" ]
CoinPoolServices/miningcore
src/Miningcore/Blockchain/Ethereum/DaemonResponses/GetBlockResponse.cs
6,202
C#
using System; using UnionFind; using System.Diagnostics; var n = 10000; for (var t = 0; t < 5; t++) { var input = ErdosRenyi.Generate(n); var weightedQuickUnionUf = new WeightedQuickUnionUf(n); var weightedQuickUnionPathCompressionUf = new WeightedQuickUnionPathCompressionUf(n); Console.WriteLine("N:...
30.184211
102
0.713165
[ "MIT" ]
Higurashi-kagome/Algorithms-4th-Edition-in-Csharp
1 Fundamental/1.5/1.5.24/Program.cs
1,251
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; using ...
33.663507
222
0.548641
[ "ECL-2.0", "Apache-2.0" ]
rapzo/pulumi-aws
sdk/dotnet/Kinesis/GetStream.cs
7,103
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System; using System.Globalization; using Elastic.Elasticsearch.Xunit.XunitPlumbing; using Elasticsearch.Ne...
31
157
0.705559
[ "Apache-2.0" ]
Brightspace/elasticsearch-net
tests/Tests.Reproduce/Discuss179634.cs
1,459
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.ComponentModel; using Microsoft.CodeAnalysis.FlowAnalysis; using Microsoft.CodeAnalysis.Operations; namespace Microsoft.CodeAnaly...
56.544402
176
0.648686
[ "Apache-2.0" ]
GovernessS/roslyn
src/Compilers/Core/Portable/Operations/OperationKind.cs
14,647
C#
using System; using System.Linq; namespace Commons.Repository { public interface IReadonlyRepository<out TModel> : IDisposable { IQueryable<TModel> GetAll(); TModel Find(int id); } }
17.75
66
0.671362
[ "MIT" ]
pavelekNET/DesignPatterns
DesignPatterns/Commons/Repository/IReadonlyRepository.cs
215
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; namespace MCSharp_GUI { public class ConsoleRichTextbox : RichTextBox { const short WM_PAINT = 0x00f; public C...
30.716981
132
0.594595
[ "MIT" ]
Hedwig7s/MCSharp-Betacraft
MCSharp GUI/ConsoleRichTextbox.cs
1,630
C#
using FluentAssertions; using MoqaLate.InterfaceTextParsing; using NUnit.Framework; namespace MoqaLate.Tests.Unit { [TestFixture] public class TypeOfLineIdentifierTest { [Test] public void ShouldRecogniseCloseBrace() { TypeOfLineIdentifier.Identify(" } ").Should().Be(...
31.635417
150
0.613105
[ "Apache-2.0" ]
jason-roberts/MoqaLate
src/DevCode/MoqaLate.Tests/Unit/TypeOfLineIdentifierTest.cs
3,039
C#
using System; using System.Collections.Generic; using System.Drawing; using System.IO; namespace Herd.Files { //From SimionZoo/logger-functions.cpp: // //#define FUNCTION_SAMPLE_HEADER 6543 //#define FUNCTION_DECLARATION_HEADER 5432 //#define FUNCTION_LOG_FILE_HEADER 4321 //#define FUNCTION_...
38.99262
117
0.549636
[ "MIT" ]
JosuGom3z/SimionZoo
tools/Herd/Files/FunctionLog.cs
10,569
C#
// Copyright (c) IEvangelist. All rights reserved. // Licensed under the MIT License. using System; using Microsoft.Azure.CosmosRepository; namespace ServiceTier { public class Widget : Item { public string Name { get; set; } public DateTimeOffset CreatedOrUpdatedOn { get; set; } = DateTimeO...
24.777778
102
0.690583
[ "MIT" ]
RichMercer/azure-cosmos-dotnet-repository
Microsoft.Azure.CosmosRepository.Samples/ServiceTier/Widget.cs
448
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Framework; using DocumentFormat.OpenXml.Framework.Metadata; using DocumentFormat.OpenXml.Packaging; using Do...
40.338954
174
0.609792
[ "MIT" ]
HotspurHN/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_2009_07_customui.g.cs
904,361
C#
using Gooios.Infrastructure; using Gooios.PartnerGateway.Proxies; using Gooios.PartnerGatewayService.Applications.DTO; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Gooios.PartnerGateway.Applications.Services { public interface IWeChatAppService : IAppl...
30.133333
82
0.756637
[ "Apache-2.0" ]
hccoo/gooios
netcoremicroservices/Gooios.PartnerGateway/Applications/Services/IWeChatAppService.cs
906
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Jag.PillPressRegistry.Interfaces { using Models; using System.Collections; using System.Collections.Gene...
45.384
471
0.552618
[ "Apache-2.0" ]
WadeBarnes/jag-pill-press-registry
pill-press-interfaces/Dynamics-Autorest/ApplicationtypesExtensions.cs
11,346
C#
using EventStore.Core.Tests.TransactionLog.Scavenging.Helpers; using EventStore.Core.TransactionLog.LogRecords; using NUnit.Framework; namespace EventStore.Core.Tests.Services.Storage.AllReader { [TestFixture] public class when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present : Repeat...
54.195652
123
0.785399
[ "Apache-2.0", "CC0-1.0" ]
01100010011001010110010101110000/EventStore
src/EventStore.Core.Tests/Services/Storage/AllReader/when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present.cs
2,495
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("Ad...
40.057143
117
0.760342
[ "MIT" ]
ultima-labs/addressee
Addressee/Properties/AssemblyInfo.cs
1,404
C#
/* Create a class Person with two fields – name and age. Age can be left unspecified (may contain null value. Override ToString() to display the information of a person and if age is not specified – to say so. Write a program to test this functionality. */ namespace Problem_4.Person_class { using System; pu...
33.791667
207
0.600493
[ "MIT" ]
fr0wsTyl/TelerikAcademy-2015
Telerik - C# OOP/Old Homeworks/06. Common Type System/Problem 4. Person class/StartProgram.cs
817
C#
using Microsoft.Extensions.Logging; using Ordering.Domain.Entities; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Ordering.Infrastructure.Persistance { public class OrderContextSeed { public static async Task SeedAsync(OrderContext orderContext, ILogger<O...
34.733333
194
0.637236
[ "MIT" ]
onter7/AspNetMicroservices
src/Services/Ordering/Ordering.Infrastructure/Persistance/OrderContextSeed.cs
1,044
C#
using System.IO; using TableauAPI.RESTHelpers; namespace TableauAPI.RESTRequests { /// <summary> /// Download a Tableau View and associated artifacts such as Preview Images. /// </summary> public class DownloadView : TableauServerSignedInRequestBase { private readonly TableauServerUrls _o...
34.013699
106
0.548933
[ "MIT" ]
lmzyk/TableauAPI
TableauAPI/RESTRequests/DownloadView.cs
2,485
C#