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.ComponentModel; using System.Drawing.Design; using System.Windows.Forms; using JetBrains.Annotations; namespace essentialMix.Windows.UITypeEditors { /// <inheritdoc /> public class CollectionEditor : System.ComponentModel.Design.CollectionEditor { /// <inheritdoc /> public CollectionE...
24.068493
124
0.7251
[ "MIT" ]
asm2025/asm
Framework/essentialMix.Windows/UITypeEditors/CollectionEditor.cs
1,757
C#
using System; using System.Runtime.InteropServices; namespace MediaDevices.Internal { [Guid("886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IPropertyStore { void GetCount( [Out] out uint cProps); void GetAt(...
22.535714
57
0.587956
[ "MIT" ]
Bassman2/MediaDevices
Src/MediaDevicesShare/Internal/IPropertyStore.cs
633
C#
//Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD //https://github.com/moq/moq4 //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 c...
61.165217
376
0.613563
[ "BSD-3-Clause" ]
niubi007/Moq
Source/Language/ICallback.Generated.cs
70,342
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.Lclb.Cllb.Interfaces { using Microsoft.Rest; using Models; using System.Collections; using System.Co...
52.071429
590
0.600051
[ "Apache-2.0" ]
brianorwhatever/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/ApplicationtypeadoxioproratedlicencefeescheduleapplicationtypeExtensions.cs
11,664
C#
namespace PSX.Devices.Optical; public readonly struct TrackPosition { public int M { get; } public int S { get; } public int F { get; } public TrackPosition(int m, int s, int f) { if (m is < 0 or > 99) throw new ArgumentOutOfRangeException(nameof(m), s, null); if (s...
20.361111
70
0.518417
[ "MIT" ]
aybe/ProjectPSX
PSX.Devices.Optical/TrackPosition.cs
735
C#
// // assign.cs: Assignments. // // Author: // Miguel de Icaza (miguel@ximian.com) // Martin Baulig (martin@ximian.com) // Marek Safar (marek.safar@gmail.com) // // Dual licensed under the terms of the MIT X11 or GNU GPL // // Copyright 2001, 2002, 2003 Ximian, Inc. // Copyright 2004-2008 Novell, Inc // using Sy...
25.942931
137
0.680832
[ "Apache-2.0" ]
Sectoid/debian-mono
mcs/mcs/assign.cs
20,002
C#
singleton Material(clothframe_clothframe) { mapTo = "clothframe"; diffuseMap[0] = "./tex_clothframe_dif.dds"; normalMap[0] = "./tex_clothframe_nrm.dds"; diffuseColor[0] = "1 1 1 1"; specular[0] = "0.9 0.9 0.9 1"; specularPower[0] = 29; doubleSided = false; translucent = false; translucentBlendOp = "None"; ...
22.175439
63
0.678797
[ "MIT" ]
Torque3D-GameEngine/T3D-Demos
data/FPSGameplay/pacific/art/shapes/props/cloth/materials.cs
1,264
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("Pr...
37.972973
84
0.745196
[ "MIT" ]
ch604aru/ProviderBase
ProviderBase.Web/Properties/AssemblyInfo.cs
1,408
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Uroboros.syntax.variables.abstracts; namespace Uroboros.syntax.expressions.bools { class BoolTernary : DefaultBoolable { private IBoolable condition; private IBoolable leftValue; pri...
26.607143
91
0.62953
[ "MIT" ]
nathaliefil/uroboros
MetaFileManager/syntax/expressions/bools/BoolTernary.cs
747
C#
using Microsoft.CodeAnalysis; namespace InlineMapping.Extensions; internal static class SyntaxNodeExtensions { internal static T FindParent<T>(this SyntaxNode self) where T : SyntaxNode { var parent = self.Parent; while (parent is not T && parent is not null) { parent = parent.Parent; } return (T)...
17.631579
54
0.713433
[ "MIT" ]
JasonBock/InlineMapping
src/InlineMapping/Extensions/SyntaxNodeExtensions.cs
337
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("Mi...
37.648649
84
0.744436
[ "MIT" ]
0x0ade/MidiToBGB
Properties/AssemblyInfo.cs
1,396
C#
using System; using System.Collections.Generic; using System.Text; namespace GameProject { class UserValidationManager : IUserValidation { public bool Validate(Gamer gamer) { if (gamer.BirthYear== 2001 && gamer.FirstName== "Ahsen" && gamer.LastName=="Kıpçak" && gamer.IdentityNumber...
22.095238
133
0.543103
[ "MIT" ]
Ahsenkpck/KampIntro
GameProject/UserValidationManager.cs
468
C#
namespace NatureShot.Services.Data.Tests.PhotoPosts { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Moq; using NatureShot.Data.Common.Repositories; using NatureShot.Data.Models; using NatureShot.Services.Data; using NatureSho...
34.042855
99
0.240192
[ "MIT" ]
DimitarKazakov/NatureShotWebSite
Nature_Shot/Tests/NatureShot.Services.Data.Tests/PhotoPosts/PhotoPostsLeastDislikesTests.cs
232,753
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; namespace Azure.ResourceManager.Workloads.Models { internal static partial class DiskStorageTypeExtensions { public static string ToSerialString(this D...
41.645161
140
0.718048
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs
1,291
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> //-----------------------------------------...
25.882353
81
0.418182
[ "MIT" ]
chiennt1612/DependencyInjection
Default.aspx.designer.cs
442
C#
// // Copyright (c) 2006-2018 Erik Ylvisaker // // 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...
37.160584
129
0.566686
[ "MIT" ]
eylvisaker/AgateLib
src/AgateLib/Diagnostics/ConsoleAppearance/ConsoleThemes.cs
5,093
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using Steeltoe.Connector.Services; using Xunit; namespace Steeltoe.Connector.MongoDb.Test { public clas...
37.533333
158
0.589698
[ "Apache-2.0" ]
Chatina73/steeltoe
src/Connectors/test/ConnectorBase.Test/MongoDb/MongoDbProviderConfigurerTest.cs
3,943
C#
// File generated from our OpenAPI spec namespace Stripe { using System; using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; /// <summary> /// This object represents a customer of your business. It lets you create recurring charges /// and track payments th...
39.261194
163
0.599316
[ "Apache-2.0" ]
ScriptBox99/stripe-dotnet
src/Stripe.net/Entities/Customers/Customer.cs
10,522
C#
using MediatR; using System.Threading; using System.Threading.Tasks; namespace PresenceLight.Core.HueServices.HueService { public class SetColorHandler : IRequestHandler<SetColorCommand, Unit> { IHueService _service; public SetColorHandler(IHueService hueService) { _servic...
26.043478
101
0.677796
[ "MIT" ]
JMilthaler/presencelight
src/PresenceLight.Core/Lights/HueServices/SetColor/SetColorHandler.cs
601
C#
namespace Paillave.Etl.Core { public class NoFileValueConnectors : IFileValueConnectors { public IFileValueProvider GetProvider(string code) => new NoFileValueProvider(code); public IFileValueProcessor GetProcessor(string code) => new NoFileValueProcessor(code); } }
36.75
95
0.751701
[ "MIT" ]
fundprocess/Etl.Net
src/Paillave.Etl/Core/NoFileValueConnectors.cs
294
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MovePlatform : MonoBehaviour { [SerializeField] private GameObject tilemap; [SerializeField] private GameObject floorTile; float t; Vector3 startPosition, startPosition2, startPosition3; Vector3 target; ...
28.255814
81
0.640329
[ "Apache-2.0" ]
Akisukei/Dinonaut
Assets/Scripts/MovePlatform.cs
1,217
C#
using Harmony; using RimWorld; using System; using System.Collections.Generic; using Verse; using Verse.AI; namespace AnimalsLogic { /* * Changes egg laying logic to try find a sleeping spot to lay egg there instead of leaving it who knows where. Prevents forbidding of the egg if spot is not found....
35.362069
169
0.554364
[ "MIT" ]
Vulnoxx/RimworldMods
AnimalsLogic/Source/AnimalsLogic/LayEggsInNests.cs
2,053
C#
using Microsoft.Win32; using Playnite.Web; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace GogLibrary { public class Gog { public const string EnStoreLocal...
27.402439
108
0.449933
[ "MIT" ]
KuroThing/Playnite
source/Plugins/GogLibrary/Gog.cs
2,249
C#
using AlpineClubBansko.Data.Models; using AlpineClubBansko.Services.Contracts; using AlpineClubBansko.Services.Models.AlbumViewModels; using AlpineClubBansko.Web.Models; using MagicStrings; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.A...
32.163569
102
0.460529
[ "MIT" ]
codacy-badger/AlpineClubBansko
src/Web/AlpineClubBansko.Web/Controllers/Albums/AlbumsController.cs
17,306
C#
// Prexonite // // Copyright (c) 2014, Christian Klauser // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright n...
39.234783
102
0.658466
[ "BSD-3-Clause" ]
SealedSun/prx
Prexonite/Commands/List/Skip.cs
4,512
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * 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 la...
31.058824
75
0.675189
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
module/ASC.Mail/ASC.Mail/Core/Entities/ServerAddress.cs
1,056
C#
using Alocha.Api.DTOs.SowDTOs; using Alocha.Domain.Entities; using Alocha.Domain.Interfaces; using AutoMapper; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Alocha.Api.Services { public class SowService : ISowService { private readonly IUnit...
33.409836
98
0.494848
[ "MIT" ]
kamil0508/Alocha.core
Alocha.Api/Services/SowService.cs
4,079
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace DVD3 { class Program { const int NmbOfBranches = 3; const int maxPlayers = 50; static void Main(string[] args) { string[] ...
40.745981
123
0.488242
[ "MIT" ]
sandybridge9/KTU-darbai-ir-ataskaitos
KTU/Objektinis Programavimas 1/DeivioDarbai/DVD3/DVD3/Program.cs
12,675
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { public partial class CustomActivity : IUtf8JsonS...
43.102326
341
0.517535
[ "MIT" ]
AbelHu/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivity.Serialization.cs
9,267
C#
using Newtonsoft.Json; namespace OpenBots.Agent.Core.Model { public class NugetPackageSource { [JsonProperty("Enabled")] public bool? Enabled { get; set; } [JsonProperty("Package Name")] public string PackageName { get; set; } [JsonProperty("Package Source")] ...
21.764706
49
0.618919
[ "Apache-2.0" ]
OpenBotsAI/OpenBots.Agent
OpenBots.Agent.Core/Model/NugetPackageSource.cs
372
C#
using Azure.Mobile.Server.Extensions; using Azure.Mobile.Server.Utils; using Microsoft.AspNet.OData; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Query; using Microsoft.AspNet.OData.Routing; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mv...
41.815126
127
0.605105
[ "MIT" ]
BenBtg/azure-mobile-apps
dotnet/server/src/Azure.Mobile.Server/TableController.cs
14,930
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; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
25.112903
106
0.631985
[ "Apache-2.0" ]
Tanamo-Inc/UWP
NavigationView/MainPage.xaml.cs
1,559
C#
using System; using System.CodeDom; namespace ClientGenerator { internal interface ICodeNamespaceGenerator { /// <summary> /// Creates a <see cref="CodeNamespaceCollection"/> containing the <paramref name="types"/> /// </summary> /// <param name="types"> /// Types used t...
30.875
99
0.639676
[ "MIT" ]
spelltwister/ClientGenerator
ClientGenerator/ICodeNamespaceGenerator.cs
741
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Analyzers { [ApiConventionType(typeof(object))] [ApiController] [ApiConventionType(typeof(string))] public class GetAttributes_Bas...
28.444444
103
0.755859
[ "MIT" ]
48355746/AspNetCore
src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_BaseTypeWithAttributes.cs
514
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Yuebon.Commons.Cache; using Yuebon.Commons.Json; using Yuebon.Commons.Mapping; using Yuebon.Commons.Tree; using Yuebon.Security.Dtos; using Yuebon.Security.IRepositories; using Yuebon.Security.Models; usi...
41.673469
147
0.574143
[ "MIT" ]
JonasChan2020/DataProcess
Yuebon.NetCore/Yuebon.Security.Core/Application/AreaApp.cs
10,450
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // ------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Serialization.HybridRowGenerator { using System; using System.Collections.Generic; ...
39.129496
129
0.45422
[ "MIT" ]
microsoft/HybridRow
src/Serialization/HybridRowGenerator/SchemaGenerator.cs
10,880
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BAGCST.api.RightsSystem.Exception { public class RightIDNotFoundException: System.Exception { public string RightPath { get; private set; } public RightIDNotFoundException(string rightPat...
24.5
68
0.69898
[ "MIT" ]
KreLou/BAGCST
api/api/RightsSystem/Exceptions/RightIDNotFoundException.cs
394
C#
using MovieMeter.WebHarvester.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MovieMeter.Model; namespace MovieMeter.WebHarvester.Harvester { public class Harvester : IHarvester { private IParser _parser; ...
24.378378
70
0.552106
[ "MIT" ]
brugi82/MovieMeter
MovieMeter/MovieMeter.WebHarvester/Harvester/Harvester.cs
904
C#
using System.Linq; namespace VitDeck.Validator { public static class XketAssetData { public static string[] GUIDs = Vket5OfficialAssetData.GUIDs.Concat(new[] { #region ゲーミング波紋シェーダー "678cdccda61385b4fa012a33b9183b53", "837a3cbdac0378e43a33c8fe66d31250", ...
45.301676
80
0.662967
[ "MIT" ]
cross-market/VitDeck-for-xket
Assets/VitDeck/Validator/Rules/Xket/XketAssetData.cs
16,252
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Reflection; using Microsoft.Extensions.Internal; namespace Microsoft.AspNetCore.Mvc.ViewF...
32.8
111
0.563008
[ "Apache-2.0" ]
Kartikexp/MvcDotnet
src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/ViewDataAttributePropertyProvider.cs
1,478
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; names...
40.377778
147
0.721519
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-datadog
sdk/dotnet/Inputs/DashboardWidgetQueryTableDefinitionRequestLogQueryArgs.cs
1,817
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; names...
38.42
353
0.652264
[ "ECL-2.0", "Apache-2.0" ]
AdminTurnedDevOps/pulumi-azure
sdk/dotnet/MySql/Outputs/ServerStorageProfile.cs
1,921
C#
using System.Security.Cryptography; using System; using System.Text; using System.IO; using Aries; class SimpleAES { private ICryptoTransform EncryptorTransform, DecryptorTransform; private UTF8Encoding UTFEncoder; public byte[] Key; //Modified http://stackoverflow.com/questions/165808/simple-2-way-e...
35.031056
131
0.620567
[ "MIT" ]
EAXrec/Aries
Aries/Aries/Aries/SimpleAES.cs
5,642
C#
namespace PiRhoSoft.Utilities { public class RequiredAttribute : PropertyTraitAttribute { public string Message { get; private set; } public MessageBoxType Type { get; private set; } public RequiredAttribute(string message, MessageBoxType type = MessageBoxType.Warning) : base(ValidatePhase, 0) { Message ...
25.357143
113
0.735211
[ "MIT" ]
janmikusch/PiRhoUtilities
Assets/PiRhoUtilities/Runtime/Attributes/Traits/RequiredAttribute.cs
357
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...
38.155172
143
0.565296
[ "Apache-2.0" ]
amazon-archives/aws-sdk-xamarin
AWS.XamarinSDK/AWSSDK_Android/Amazon.EC2/Model/Internal/MarshallTransformations/VpnGatewayUnmarshaller.cs
4,426
C#
// Copyright © 2018, Meta Company. All rights reserved. // // Redistribution and use of this software (the "Software") in binary form, without modification, is // permitted provided that the following conditions are met: // // 1. Redistributions of the unmodified Software in binary form must reproduce the ab...
54.440678
108
0.733499
[ "MIT" ]
JDZ-3/MXRManipulation
Assets/MetaSDK/Meta/Hands/HandInput/Scripts/IHandObjectReferences.cs
3,229
C#
using OA.Core; using System.Collections.Generic; using UnityEngine; namespace OA.Ultima.Core.Graphics { public class SpriteBatch3D { const int MAX_VERTICES_PER_DRAW = 0x4000; const int INITIAL_TEXTURE_COUNT = 0x800; const float MAX_ACCURATE_SINGLE_FLOAT = 65536; // this numbe...
49.893281
218
0.584172
[ "MIT" ]
BclEx/object-assets
src/ObjectManager/Object.Ultima.Game/Core/Graphics/SpriteBatch3D.cs
12,625
C#
using System; using Firepuma.Api.Abstractions.Actor; using Firepuma.Api.Abstractions.Errors; using Microsoft.Extensions.DependencyInjection; namespace Firepuma.HttpRequestAuditing.Mongo.Extensions { public static class ServiceCollectionExtensions { public static void AddRequestAuditingService<TActor>(t...
42.888889
148
0.66494
[ "Apache-2.0" ]
fire-puma/Firepuma.HttpRequestAuditing.Mongo
src/Extensions/ServiceCollectionExtensions.cs
1,158
C#
// <auto-generated /> namespace AdminLteMvc.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class B...
27
92
0.617284
[ "MIT" ]
ataharasystemsolutions/KTI_TEST
AdminLteMvc/AdminLteMvc/Migrations/202011100808371_Booking10.Designer.cs
810
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.DotNet.XHarness.Common.Utilities; using Microsoft.DotNet.XHarness...
37.77037
149
0.521867
[ "MIT" ]
Daniel-Genkin/xharness
tests/Microsoft.DotNet.XHarness.iOS.Shared.Tests/Execution/MlaunchArgumentsTests.cs
5,101
C#
#region License /* * HttpHeaderInfo.cs * * The MIT License * * Copyright (c) 2013-2014 sta.blockhead * * 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 ...
25.831858
100
0.675916
[ "Apache-2.0" ]
DoctorDump/AsyncChromeDriver
WebSocket/websocket-sharp/Net/HttpHeaderInfo.cs
2,919
C#
/* * Copyright (c) 2008, openmetaverse.org * All rights reserved. * * - Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of...
34.874693
156
0.5124
[ "BSD-3-Clause" ]
jhs/libopenmetaverse
Programs/mapgenerator/template.cs
14,194
C#
/* * Prime Developer Trial * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections; using System.Col...
36.122137
188
0.62109
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/StocksAPIforDigitalPortals/v2/src/FactSet.SDK.StocksAPIforDigitalPortals/Model/StockNotationScreenerSearchDataValidationMarketSelectionRestrict.cs
4,732
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> //--...
44
192
0.617543
[ "MIT" ]
knaufinator/IMU-Drive-Recorder
MediaCaptureWpfXamlIslands/Properties/Resources.Designer.cs
2,818
C#
using System.Collections.Generic; using System.IO; using System.Linq; namespace DNSProfileChecker.Common.Implementation { public sealed class SessionFoldersSequenceValidator : IValidator<DirectoryInfo[]> { private DirectoryInfo[] missedFolders; public bool Validate(DirectoryInfo[] sessions) { Ensure.Argum...
26.690476
86
0.694915
[ "Apache-2.0" ]
OleksandrKulchytskyi/ProfileChecker
DNSProfileChecker.Common/Implementation/SessionFoldersSequenceValidator.cs
1,123
C#
namespace Mercurial.Net.Gui { /// <summary> /// Implements the TortoiseHg "about" command: /// Show the "About TortoiseHg" dialog. /// </summary> public sealed class AboutGuiCommand : GuiCommandBase<AboutGuiCommand> { /// <summary> /// Initializes a new instance of the <see cref=...
27.166667
82
0.560327
[ "MIT" ]
rexsacrorum/Hg.Client
src/Mercurial.Net/Gui/AboutGuiCommand.cs
489
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace FavourPal.Domain.Migrations { public partial class Recreatedb : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { ...
18.722222
71
0.670623
[ "MIT" ]
RomansPacjuks27/FavourPal
FavourPal.Domain/Migrations/20191015230015_Recreate db.cs
339
C#
/* * FactSet Procure to Pay API * * Allows for Provisioning and Entitlement of FactSet accounts. Authentication is provided via FactSet's [API Key System](https://developer.factset.com/authentication) Please note that the on-page \"Try it out\" features do not function. You must authorize against our API and ...
30.504065
332
0.561301
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/ProcuretoPayProvisioning/v1/src/FactSet.SDK.ProcuretoPayProvisioning/Client/IReadableConfiguration.cs
3,752
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 Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Storage; namespa...
38.807692
113
0.750248
[ "Apache-2.0" ]
Mattlk13/EntityFramework
src/Microsoft.EntityFrameworkCore.Relational.Specification.Tests/UpdatesRelationalTestBase.cs
1,011
C#
using FrameworkTester.ViewModels.Interfaces; using GalaSoft.MvvmLight.Command; namespace FrameworkTester.DesignTimes { public sealed class WinBioLocateSensorWithCallbackViewModel : WinBioViewModel, IWinBioLocateSensorWithCallbackViewModel, IWinBioAsyncSessionViewModel { public RelayCommand ...
20.484848
154
0.585799
[ "MIT" ]
poseidonjm/WinBiometricDotNet
examples/FrameworkTester/DesignTimes/WinBioLocateSensorWithCallbackViewModel.cs
678
C#
using System; using System.Threading.Tasks; namespace Chroomsoft.Queries.Tests { public class TestQueryHandler : IQueryHandler<TestQuery, Guid> { private readonly Guid guid; public TestQueryHandler(Guid guid) { this.guid = guid; } public Task<Guid> HandleA...
20.55
66
0.603406
[ "MIT" ]
rneeft/patterns
src/Queries/Tests/TestQueryHandler.cs
413
C#
using System; using System.Collections.Generic; namespace QSWidgetLib { public static class CommonValues { public static Dictionary<string, string> Ownerships = new Dictionary<string, string> { {"ООО", "Общество с ограниченной ответственностью"}, {"ЗАО", "Закрытое акционерное общество"}, {"ОАО", "Открыто...
38.844444
88
0.70595
[ "Apache-2.0" ]
Art8m/QSProjects
QSWidgetLib/CommonValues.cs
2,826
C#
using FluentAssertions; using Xunit; namespace CSharpFunctionalExtensions.Tests.MaybeTests { public class ExtensionsTests { [Fact] public void Unwrap_extracts_value_if_not_null() { var instance = new MyClass(); Maybe<MyClass> maybe = instance; MyCl...
27.0181
88
0.553676
[ "MIT" ]
CarlHA/CSharpFunctionalExtensions
CSharpFunctionalExtensions.Tests/MaybeTests/ExtensionsTests.cs
5,973
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TrellisControl { public static class ExtensionMethods { public static bool IsNullWhitespaceOrEmpty(this string target) { return ...
29
121
0.673052
[ "MIT" ]
kfechter/TrellisControl
TrellisControl/ExtensionMethods.cs
785
C#
using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; namespace IPUserControls { /// <summary> /// Interaction logic for IpPort.xaml /// </summary> public partial ...
31.468085
150
0.570994
[ "MIT" ]
mariugul/IPUserControls
IPUserControls/IpPort.xaml.cs
2,960
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.CloudMine.Core.Collectors.Cache; using Microsoft.CloudMine.Core.Collectors.Telemetry; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Microsoft.CloudMine.Core.Collectors.Collector { ...
43.759036
173
0.626101
[ "MIT" ]
microsoft/CEDAR.Core.Collector
Core.Collectors/Collector/CachingCollector.cs
3,634
C#
// ReSharper disable All namespace OpenTl.Schema.Messages { using System; using System.Collections; using OpenTl.Schema; public interface IStickers : IObject { } }
12.466667
40
0.68984
[ "MIT" ]
zzz8415/OpenTl.Schema
src/OpenTl.Schema/_generated/Messages/Stickers/IStickers.cs
189
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. // LICENSE: https://github.com/dotnet/wpf/blob/main/LICENSE.TXT using System; using System.Windows; using System.Wi...
46.395349
136
0.683208
[ "MIT" ]
devpelux/fullcontrols
FullControls/Core/Services/DpiHelper.cs
3,992
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AboutDialog.xaml.cs" company="Chris Dziemborowicz"> // Copyright (c) Chris Dziemborowicz. All rights reserved. // </copyright> // -----------------------------------------------...
32.601351
120
0.484767
[ "MIT" ]
BeReasonable/hourglass
Hourglass/Windows/AboutDialog.xaml.cs
4,827
C#
namespace PeterPedia.Services; public interface ITheMovieDatabaseService { Task<string> GetImageUrlAsync(string? path, string size = "w185"); Task<TMDbMovie?> GetMovieAsync(int id, string? etag); Task<TMDbShow?> GetTvShowAsync(int id, string? etag); }
24.272727
70
0.741573
[ "MIT" ]
peter-andersson/PeterPedia
src/PeterPedia.Services/Interface/ITheMovieDatabaseService.cs
267
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; // This script will be attached to a Procedural Generation object in scenes that want a // random distribution of items - a forest with randomly placed trees for example. Also // supports placement of items at...
46.3
103
0.589633
[ "MIT" ]
Donut-Studios/Unity3D-AI-and-Procedural-Generation-Framework
src/Procedural Generation/RandomMapMaker.cs
6,947
C#
using System.Collections.Generic; using System.Linq; using DataTanker.Versioning; namespace Tests.Emulation { public class SnapshotData : ISnapshotData { private readonly List<int> _rolledBackTransactions; private readonly List<int> _commitedTransactions; public bool IsComittedTransac...
29.685714
107
0.673725
[ "MIT" ]
VictorScherbakov/DataTanker
DataTanker/Tests/Unit/Emulation/SnapshotData.cs
1,039
C#
using System; namespace BlazorGenUI.Tests.testdtos { public class TestPrimitiveDto { public string Name { get; set; } public bool IsFestival { get; set; } public DateTime Date { get; set; } public DateTimeOffset DateOffset { get; set; } public Single SingleNumber { get;...
27.285714
54
0.609075
[ "MIT" ]
Elders/blazorgenui
tests/RenderableContentTests/TestDtos/TestPrimitiveDto.cs
575
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain ...
28.712766
90
0.544276
[ "Apache-2.0" ]
AaronWu666/WeiXinMPSDK
src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPay/V2/CheckRequestHandler.cs
2,793
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.md file in the project root for more information. using Moq; namespace Microsoft.VisualStudio.ProjectSystem { internal static class IUnconfiguredProjectCommo...
41.846154
201
0.568627
[ "MIT" ]
77-A/.Net-Project
tests/Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests/Mocks/IUnconfiguredProjectCommonServicesFactory.cs
1,596
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Es.InkPainter; [RequireComponent(typeof(InkCanvas))] public class Wave : MonoBehaviour { public Material waveMaterial; private Texture2D init; private RenderTexture input; private RenderTexture prev; private Ren...
29.606383
92
0.577434
[ "MIT" ]
yanagiragi/Unity_Shader_Learn
Assets/Resources/Es Wave Shader/Scripts/Wave.cs
2,785
C#
using System; using System.Collections.Generic; using System.Linq; namespace Neutronium.Example.ViewModel { public class FakeViewModel { private static readonly Random Random = new Random(); public FakeViewModel[] Children { get; } public int One => 1; public int Two => 2; ...
22.592593
73
0.598361
[ "MIT" ]
David-Desmaisons/MVVM.CEF.Glue
Examples/Neutronium.Example.ViewModel/FakeViewModel.cs
612
C#
using System; using System.Linq; namespace Nikulden_s_Charity { class Program { static void Main(string[] args) { string text = Console.ReadLine(); string input = Console.ReadLine(); while (input != "Finish") { string[] commands =...
33.0625
109
0.370825
[ "MIT" ]
martinsivanov/CSharp-Fundamentals---May-2020
Exams/Programming Fundamentals Final Exam - 07 December 2019 Group 2/Nikulden's Charity/Program.cs
3,176
C#
using Avalonia.Controls; using Avalonia.Controls.Templates; using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; namespace Mechanism.AvaloniaUI.Controls { public interface IToolStripItem { IControlTemplate Template { get; set; } string DisplayName { g...
20.095238
47
0.691943
[ "MIT" ]
Splitwirez/Mechanism-for-Avalonia
Mechanism.AvaloniaUI.Controls/Controls/ToolStrip/IToolStripItem.cs
424
C#
using Kasa.Vchasno.Client; using Kasa.Vchasno.Client.Models; using Kasa.Vchasno.Client.Models.Requests; using Kasa.Vchasno.Client.Models.Responses; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Moq; using RichardSzalay.MockHttp; using System.Collections.Generic; using System...
36.762963
128
0.434415
[ "MIT" ]
ramonesz297/Kasa.Vchasno
Kasa.Vchasno.Client.Tests/SerializationTests.cs
4,965
C#
using System; using System.Collections.Generic; using System.Text; using SAEA.Sockets.Interface; namespace SAEASocket.Custom { /// <summary> /// Header size is 8 bytes, store 4 data (each data is 2 byte(ushort)) /// CMD1 ushort /// DataSize ushort /// MainCmd ushort /// SubCmd ...
31.462687
142
0.537951
[ "MIT" ]
cmwong/LearnSuperSocket
SocketServer/SAEASocket/Custom/Unpacker.cs
2,110
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; namespace PnP.PowerShell.Tests.Graph { [TestClass] public class ResetUnifiedGroupExpirationTests { #region Test Setup/CleanUp [ClassInitialize] public static void Initiali...
27.679487
88
0.515053
[ "MIT" ]
AndersRask/powershell
src/Tests/Graph/ResetPnPUnifiedGroupExpirationTests.cs
2,159
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 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. n...
29.75
74
0.68254
[ "MIT" ]
azuresdkci1x/azure-sdk-for-net-1722
src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/MetricStatisticType.cs
1,071
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> //---...
32.5
92
0.529915
[ "MIT" ]
TrevorTheAmazing/Capstone
test/obj/Debug/netcoreapp3.0/test.RazorAssemblyInfo.cs
585
C#
using System.Collections.Generic; namespace Backpack.SqlBuilder { public static class SelectExtentions { public static IAcceptsJoin Join(this IAcceptsJoin @this, TableOrSubQuery source, string constraint) { @this.Accept(new JoinClause(source, constraint)); return @this;...
34.848101
119
0.614602
[ "MIT" ]
BenCamps/Backpack.SqlBuilder
src/Backpack.SqlBuilder/Interfaces/SelectExtentions.cs
2,755
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Net.Http.Headers; namespace TWS.RestApi.Areas.HelpPage { /// <summary> /// This is used to identify the place where the sample should be applied. /// </summary> public class HelpPageSampleKey { /// <su...
37.427746
175
0.569575
[ "MIT" ]
Telerik-Team-Lychee/TeamWorkSystem
TeamWorkSystem/TWS.RestApi/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs
6,475
C#
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated> using System; using System.Collections.Generic; #nullable disable namespace T0002.Models { public partial class CxFlowSwrInfo { public string Bu { get; set; } public string CurrentOwner ...
38.294118
97
0.599846
[ "MIT" ]
twoutlook/BlazorServerDbContextExample
BlazorServerEFCoreSample/T0002/Models/CxFlowSwrInfo.cs
1,304
C#
 using Microsoft.AspNetCore.Components; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Blazui.Component; namespace Blazui.ServerRender.Demo.Table { public class AutoGenerateColumnTableBase : ComponentBase { protected List<AutoGenerateColumnTestD...
27.862745
109
0.547502
[ "MIT" ]
188867052/Element-Blazor
src/Samples/Blazui/Blazui.ServerRender/Demo/Table/AutoGenerateColumnTableBase.cs
1,463
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Description; using MeuPonto.DAL; using MeuPonto.Models; namespace MeuPonto.WebA...
25.663866
90
0.522921
[ "Apache-2.0" ]
bernardolm/MeuPonto.API
MeuPonto.WebAPI/Controller/DiasTrabalhoController.cs
3,056
C#
using System.Collections.Generic; using System.Windows.Controls; using Codeer.TestAssistant.GeneratorToolKit; namespace RM.Friendly.WPFStandardControls.Generator { [CaptureCodeGenerator("RM.Friendly.WPFStandardControls.WPFPasswordBox")] public class WPFPasswordBoxGenerator : CaptureCodeGeneratorBase { ...
30.690476
91
0.591932
[ "Apache-2.0" ]
Roommetro/Friendly.WPFStandardControls
Project/RM.Friendly.WPFStandardControls.3.0.Generator/WPFPasswordBoxGenerator.cs
1,291
C#
/* * Copyright (c) 2016 Samsung Electronics Co., Ltd 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...
41.079186
206
0.567605
[ "Apache-2.0", "MIT" ]
Inhong/TizenFX
src/Tizen.Network.Nsd/Tizen.Network.Nsd/DnssdService.cs
18,157
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. /****************************************************************************** * This file is auto-generated from ...
43.739857
187
0.596388
[ "MIT" ]
AlexejLiebenthal/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Ssse3/HorizontalSubtract.Int32.cs
18,327
C#
// Copyright (C) 2003-2010 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. // Created by: Alex Yakunin // Created: 2009.12.18 using System.Collections; using System.Collections.Generic; using System.Diagnostics; using Xtensive.Collections; namespace Xtensive...
27.265306
89
0.596557
[ "MIT" ]
SergeiPavlov/dataobjects-net
DataObjects/Orm/Services/Old/EntitySetStateAccessor.cs
2,672
C#
using System; using System.Linq; namespace TextrudeInteractive { /// <summary> /// Holds all the input necessary to run a template rendering pass /// </summary> /// <remarks> </remarks> public record EngineInputSet { public static EngineInputSet EmptyYaml = new(string.E...
29.652174
90
0.567449
[ "MIT" ]
highstreeto/Textrude
TextrudeInteractive/EngineInputSet.cs
1,366
C#
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpressions...
25
106
0.496522
[ "Unlicense" ]
iliyalesani/HackerRank-Daily-Challenges
11 - 2D Arrays.cs
1,150
C#
using Infiniminer; using Lidgren.Network; using Microsoft.Xna.Framework; using Plexiglass.Client.Engine; using System.Collections.Generic; namespace Plexiglass.Client { public interface IPropertyBag { void PlaySound(InfiniminerSound sound); void PlaySound(InfiniminerSound sound, Vector3 positi...
28.742857
65
0.668986
[ "MIT" ]
CalmBit/infiniminer
code/Plexiglass/Client/IPropertyBag.cs
1,008
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Fluid; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; using Microsoft.Extensions.Options; using Newtonsoft.Json.Linq; using OrchardCore.Aut...
44.322917
218
0.590787
[ "BSD-3-Clause" ]
Tsjerno/OrchardCore
src/OrchardCore.Modules/OrchardCore.Autoroute/Handlers/AutoroutePartHandler.cs
21,275
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Dapper; using Dragon.Data; namespace Dapper { public static partial class SqlMapperExtensions { public static bool ExistsTable<T>(this IDbConnection connection, IDbTransaction transaction = n...
35.752577
173
0.651096
[ "MIT" ]
aduggleby/dragon
proj-core/Data/Dragon.Data/DapperExtensions/SqlMapperExtensions_TableCreatorDropper.cs
3,470
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...
28.607143
96
0.696629
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/RecoveryServices/V20210201/Outputs/DailyRetentionFormatResponse.cs
801
C#
using System; using System.Collections.Generic; using IntegrationTests.Typecast; using VSharp.Test; namespace IntegrationTests { public interface IKeeper<in T> { void Keep(T obj); } public class Bag<T> : IKeeper<T> { private Queue<T> _queue; public Bag() { ...
23.875306
130
0.493292
[ "Apache-2.0" ]
mxprshn/VSharp
VSharp.Test/Tests/Generic.cs
9,767
C#