content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
39.282609
100
0.6829
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/cloud/osconfig/v1beta/google-cloud-osconfig-v1beta-csharp/Google.Cloud.Osconfig.V1Beta.StandaloneSnippets/OsConfigServiceClient.CreateGuestPolicyRequestObjectAsyncSnippet.g.cs
1,807
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace BzLoans { class SqlCustomerRepository : RepositoryInterface { public List<Customer> All() { SqlCommand cmd = new Sq...
24.935484
96
0.587322
[ "MIT" ]
biler/bzloans
BzLoans/SqlCustomerRepository.cs
775
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
83.685484
516
0.763419
[ "MIT" ]
Agazoth/azure-powershell
src/Functions/generated/api/Models/Api20190801/StaticSiteFunctionOverviewArmResource.cs
10,254
C#
using System; using System.IO; using System.Reflection; using System.Runtime.InteropServices; using Eto.Drawing; using Eto.Forms; using Eto.GtkSharp.Drawing; namespace Eto.GtkSharp.Forms { class NotificationWrapper : GLib.Object { #if !GTK2 public delegate void ClosedHandler(object o, EventArgs args); pub...
26.609375
167
0.695244
[ "BSD-3-Clause" ]
745564106/Eto
src/Eto.Gtk/Forms/LinuxNotificationHandler.cs
5,111
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Core.Common.Reflect; namespace Core.Identification { public delegate void SetIdentity<TId, T>(T item, TId id); public delegate TId GetIdentity<TId, T>(T item); public...
23.636364
128
0.667582
[ "MIT" ]
toeb/core.common
Core.Common/Identification/IIdentifiableIdentityAccessor.cs
1,822
C#
using CarDealer.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace CarDealer.Data.Config { public class SaleConfig : IEntityTypeConfiguration<Sale> { public void Configure(EntityTypeBuilder<Sale> builder) { builder ...
25.615385
62
0.545045
[ "MIT" ]
DimchoLakov/CSharp-Databases-Fundamentals
02.C# Databases - Advanced/10.XML-Processing/CarDealer/CarDealer.Data/Config/SaleConfig.cs
668
C#
using System; class AccountBalance { static void Main() { int transactionNum = int.Parse(Console.ReadLine()); int transactionCounter = 0; double balance = 0.0; while (transactionCounter < transactionNum) { double amounPaid = double.Parse(Console.ReadLine());...
25.653846
64
0.530735
[ "MIT" ]
galin-kostadinov/Software-Engineering
C#/Programming Basics with C#/08. While-Loop/06. Account BalanceII/AccountBalanceII.cs
669
C#
using chocolatey.infrastructure.logging; using logtesting; using NUnit.Framework; using System; using System.Security.Cryptography; namespace chocolatey.tests2 { [Parallelizable(ParallelScope.All)] public class Logging: LogTesting { [LogTest] public void Multiline() { ...
24.875
55
0.61139
[ "Apache-2.0" ]
tapika/choco
src/chocolatey.tests2/Logging/Logging.cs
599
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 Elastic.Elasticsearch.Xunit.XunitPlumbing; using FluentAssertions; using Nest; using Tests.Core.Extensions; ...
21.763636
76
0.616541
[ "Apache-2.0" ]
Atharvpatel21/elasticsearch-net
tests/Tests/ClientConcepts/HighLevel/Inference/Equality/LongIdEqualityTests.cs
1,197
C#
namespace MassTransit.Serialization.JsonConverters { using System; using System.Collections.Generic; using System.Reflection; using Internals.Extensions; using Newtonsoft.Json; public class CaseInsensitiveDictionaryJsonConverter : BaseJsonConverter { public override void Wr...
33.051948
116
0.557957
[ "ECL-2.0", "Apache-2.0" ]
Aerodynamite/MassTrans
src/MassTransit/Serialization/JsonConverters/CaseInsensitiveDictionaryJsonConverter.cs
2,545
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using EOM_auth; using EOM_stores; using EOM_stores._contr.__; using System.Data; namespace EOM_stores.dataChannel { class _sinCtrlChannel { private _ctrlCha...
29.508772
100
0.577883
[ "CC0-1.0" ]
Sam-Rex/Interwood
EOM_stores/dataChannel/_sinCtrlChannel.cs
1,684
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace SPD.GUI { /// <summary> /// /// </summary> public partial class PrintHtml : Form { /// <summa...
27
88
0.542735
[ "CC0-1.0" ]
tgassner/SPDPatientDocumentation
SPDGUI/PrintHtml.cs
1,406
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MonoMac.Foundation; using MonoMac.AppKit; namespace macdoc { public partial class AppleDocMergeWindowController : MonoMac.AppKit.NSWindowController { public AppleDocMergeWindowController (IntPtr handle) : base (...
21.764706
104
0.691351
[ "MIT" ]
Devolutions/monomac
samples/macdoc/AppleDocMergeWindowController.cs
1,850
C#
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. // This code is generated by tool. DO NOT EDIT. using AccelByte.Sdk.Api.Social.Model; using AccelByte.Sdk.Api.Social.Operation; using Acc...
37.907216
106
0.631221
[ "MIT" ]
AccelByte/accelbyte-csharp-sdk
AccelByte.Sdk/Api/Social/Wrapper/SlotConfig.cs
3,677
C#
namespace Masodik { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name...
44.481297
108
0.57263
[ "MIT" ]
viaxa23/WindowsForm
Masodik/Masodik/Form1.Designer.cs
17,854
C#
using Mods.ModsList; using System.Collections; using System.Collections.Generic; using Upgrade; namespace Ship { namespace FirstEdition.BWing { public class HeraSyndulla : BWing { public HeraSyndulla() : base() { PilotInfo = new PilotCardInfo( ...
24.033333
84
0.493759
[ "MIT" ]
97saundersj/FlyCasual
Assets/Scripts/Model/Content/FirstEdition/Pilots/BWing/HeraSyndulla.cs
723
C#
// This code is distributed under MIT license. // Copyright (c) 2015 George Mamaladze // See license.txt or http://opensource.org/licenses/mit-license.php using System; using System.ComponentModel; using System.Windows.Forms; using Gma.System.MouseKeyHook; using Gma.System.MouseKeyHook.Implementation; namespace Dem...
30.669528
89
0.56857
[ "BSD-3-Clause" ]
williamhallatt/globalmousekeyhook
Demo/Main.cs
7,148
C#
namespace CodeHollow.FeedReader.Parser { internal static class Factory { public static AbstractXmlFeedParser GetParser(FeedType feedType) { switch (feedType) { case FeedType.Atom: return new AtomParser(); case FeedType.Rss_0_91: return new...
30.666667
72
0.572464
[ "MIT" ]
nieltg/CodeHollow.FeedReader.Core
CodeHollow.FeedReader.Core/Parser/Factory.cs
554
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.WordApi { /// <summary> /// DispatchInterface EmailOptions /// SupportByVersion Word, 9,10,11,12,14,15,16 /// </summary> /// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/li...
36.19337
106
0.656236
[ "MIT" ]
igoreksiz/NetOffice
Source/Word/DispatchInterfaces/EmailOptions.cs
13,104
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TimesheetCollector.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: ...
31.294118
82
0.534774
[ "MIT" ]
Flexba/TimesheetCollector
TimesheetCollector/Migrations/20220110210312_Initial.cs
1,066
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.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Operations; names...
44.608466
154
0.598387
[ "Apache-2.0" ]
AzureMentor/aspnetcore
src/Components/Analyzers/src/InternalUsageAnalyzer.cs
8,431
C#
using System.Runtime.InteropServices; using ZeroFormatter; namespace Voxels { [ZeroFormattable] [StructLayout(LayoutKind.Sequential)] public struct BlockData { [Index(0)] public BlockType Type; [Index(1)] public byte Subtype; [Index(2)] public byte SunLevel; [Index(3)] public byte ...
23.446809
169
0.641107
[ "MIT" ]
TxN/VoxelLand
Assets/Scripts/VoxelsBase/BlockData.cs
2,204
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // 制御されます。アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更します。 [assembly: AssemblyTitle("IMEChange")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: ...
29.189189
56
0.749074
[ "MIT" ]
a01sa01to/IMEChange
IMEChange/Properties/AssemblyInfo.cs
1,689
C#
using System; using System.Collections.Concurrent; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Threading; using Quantumart.QP8.CodeGeneration.Services; namespace EntityFramework6.Test.DataContext { pu...
40.708628
145
0.574268
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
QuantumArt/QP.EntityFramework
EntityFramework6.Test/DataContext/MappingConfigurator.cs
28,781
C#
namespace Reinforced.Tecture.Aspects.DirectSql { /// <summary> /// SQL stroke query helper methods /// </summary> public static class StrokeJoins { /// <summary> /// Instructs nested aggregate of entity to be joined using particular join type /// </summary> /// <para...
31.75
88
0.551969
[ "MIT" ]
AxelUser/Reinforced.Tecture
Aspects/Reinforced.Tecture.Aspects.DirectSql/StrokeJoins.cs
1,272
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.ServiceModel; namespace Workday.Talent { [GeneratedCode("System.ServiceModel", "4.0.0.0"), EditorBrowsable(EditorBrowsableState.Advanced), DebuggerStepThrough, MessageContract(IsWrapped = false)] public c...
31.758621
155
0.81759
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Talent/Manage_Job_HistoryInput.cs
921
C#
/* This file is part of pspsharp. pspsharp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. pspsharp is distributed in the hope that it wil...
27.507463
138
0.691807
[ "MIT" ]
xXxTheDarkprogramerxXx/PSPSHARP
PSP_EMU/HLE/kernel/types/SceNetWlanScanInfo.cs
1,845
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Managed.Adb.Exceptions { /// <summary> /// An exception while installing a package on the device /// </summary> [Serializable] public class PackageInstallationException : Exception { /// <summary> /// Initializes ...
44.733333
171
0.710383
[ "Apache-2.0" ]
camalot/madb
Managed.AndroidDebugBridge/Exceptions/PackageInstallationException.cs
2,015
C#
// ReSharper disable All using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using MixERP.Net.Api.Framework; using MixERP.Net.ApplicationState.Cache; using MixERP.Net.Common.Extensions; using MixERP.Net.Enti...
24.50495
129
0.557172
[ "MPL-2.0" ]
asine/mixerp
src/Libraries/Web API/Core/Tests/UnitScrudViewTests.cs
2,475
C#
using System.IO; using UnityEngine; namespace UnityGLTF.Cache { public class RefCountedTextureData : RefCountedBase { public Texture2D Texture; private string id; public RefCountedTextureData(string id, Texture2D texture) { this.id = id; this.Texture = ...
22.214286
66
0.578778
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/UnityGLTF/Scripts/Cache/RefCountedTextureData.cs
935
C#
using Grpc.Core; using ProtoBuf.Meta; using System; namespace ProtoBuf.Grpc.Configuration { /// <summary> /// Provides per-type serialization services /// </summary> public abstract class MarshallerFactory { /// <summary> /// Create a new instance /// </summary> pro...
33.536585
124
0.624727
[ "Apache-2.0" ]
CompositionalIT/protobuf-net.Grpc
src/protobuf-net.Grpc/Configuration/MarshallerFactory.cs
1,377
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; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.Json...
34.264706
220
0.541917
[ "MIT" ]
JakeRadMSFT/machinelearning
src/Microsoft.ML.SearchSpace/Parameter.cs
13,982
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
29.3
94
0.589875
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/azurestack/Microsoft.AzureStack.Management.AzureBridge.Admin/src/Generated/Models/ProductLink.cs
1,758
C#
/***************************************************************************************************** * 本代码版权归yswenli所有,All Rights Reserved (C) 2015-2016 ***************************************************************************************************** * 所属域:yswenli-PC * 登录用户:Administrator * CLR版本:4.0.30319.1...
25.417293
124
0.450821
[ "Apache-2.0" ]
yswenli/WebBaseFrameV2
src/WeiXinAPI/Models/TenPay.cs
8,327
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { #pragma warning disable CS8618 [JsiiByValue(fqn: "aws.EfsAccessPointRootDirectoryCreationInfo")] public class EfsAccessPointRootDirectoryCreationInfo : aws.IEfsAccessPointRootDirectoryCreationInfo { ...
25.911765
103
0.590238
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/EfsAccessPointRootDirectoryCreationInfo.cs
881
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace plugin_pacas00_server { class StatsHTML { public const string TemplateURL = "https://cdn.rawgit.com/pacas00/Pacas00-s-Dedicated-...
31.171642
167
0.690687
[ "MIT" ]
pacas00/Pacas00-s-Dedicated-Server-Utils
plugin_pacas00_server/StatsHTML.cs
4,179
C#
using System; using System.Drawing; using System.Windows.Forms; using DecodeFromScannerAndWebcam; using DecodeFromScannerAndWebcam.Properties; namespace DecodeFromScannerAndWebcam { partial class DecodeFromScannerAndWebcam { private int cmbDeblurLevel_SelectedIndex = 0; private int cmbLocaliza...
62.305533
180
0.637603
[ "Apache-2.0" ]
Dynamsoft/barcode-reader-dotnet-samples
samples/UseCases/DecodeFromScannerAndWebcam/DecodeFromScannerAndWebcam.Designer.cs
153,153
C#
using System; using System.Collections.Generic; using System.Text; using Abp.Events.Bus.Entities; namespace Recyclops.Audit.Dto { public class AuditServiceDto { public AuditServiceDto(string user, string type, DateTime time, EntityChangeType changeType) { UsersName = user; ...
26.758621
100
0.546392
[ "MIT" ]
JoshTheGent/Recyclops
4.7.1/aspnet-core/src/Recyclops.Application/Audit/Dto/AuditServiceDto.cs
1,554
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.SpaServices.AngularCli; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace College.WebApp { ...
32.118421
143
0.565752
[ "MIT" ]
jagratimodi/speaker_series_2021
Year_2020/CSharpCorner/11Jul-2020_Building_BFF_Azure_ApiMgt/SourceCode/WebApp/College.WebApp/Startup.cs
2,441
C#
namespace Cake.Issues.EsLint.Tests { using System; using Shouldly; using Xunit; public sealed class EsLintRuleUrlResolverTests { public sealed class TheResolveRuleUrlMethod { [Fact] public void Should_Throw_If_Rule_Is_Null() { // ...
33.962025
113
0.522549
[ "MIT" ]
cake-contrib/Cake.Issues.EsLint
src/Cake.Issues.EsLint.Tests/EsLintRuleUrlResolverTests.cs
2,685
C#
// Copyright (c) Microsoft. All rights reserved. namespace Services.Test.helpers { /// <summary> /// Use these flags to allow running a subset of tests from the test /// explorer and the command line. /// </summary> public class Constants { public const string TYPE = "Type"; pu...
26.357143
72
0.634146
[ "MIT" ]
Azure-Samples/AI-Video-Intelligence-Solution-Accelerator
pcs/services/iothub-manager/Services.Test/helpers/Constants.cs
371
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace SqlSugar { public class EntityMaintenance { public SqlSugarClient Context { get; set; } public EntityInfo GetEntityInfo<T>() { ...
48.387097
219
0.579667
[ "Apache-2.0" ]
gitter-badger/SmartSql
src/ExternalORM/Abstract/EntityMaintenance/EntityMaintenance.cs
9,002
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace CVIS.Core.Messages { [Serializable] public class ApplicationDataMessage { [JsonProperty(PropertyName = "Id")] public Guid Id { get; set; } ...
32.451613
61
0.637177
[ "Apache-2.0" ]
MatrixManAtYrService/v2i-unofficial
TMX/Common/ExtractMessageTypes/CVIS.Core_Messages/ApplicationDataMessage.cs
1,008
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Drawing; using System.IO; using System.Threading; using System.Windows.Forms; using AForge.Video.DirectShow; using YunZhiFaceReco.Entity; using YunZhiFaceReco.SDKModels; using YunZhiFaceReco.SDKUtil; using YunZhiFaceReco.TV_Create...
47.060739
349
0.468865
[ "MIT" ]
jinboy/Face-Reco
FaceReco/FaceRecoDataManager/FaceForm.cs
59,243
C#
// Copyright (c) 2016, SolidCP // SolidCP is distributed under the Creative Commons Share-alike license // // SolidCP is a fork of WebsitePanel: // Copyright (c) 2015, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted...
34.898148
92
0.623508
[ "BSD-3-Clause" ]
Alirexaa/SolidCP
SolidCP/Sources/SolidCP.WebPortal/DesktopModules/SolidCP/UserControls/EditVLANControl.ascx.cs
3,771
C#
using System.Text.RegularExpressions; namespace IceShopLib.Validation { public class IsTwoWordsCondition : IInputCondition { public bool ValidateInput(string input) { if (Regex.IsMatch(input, "^\\w+\\s{1}\\w+$")) // TODO: Make this not return true if the input takes a number (repla...
23.833333
133
0.559441
[ "MIT" ]
201019-UiPath/WeisVincent-P0
IceShop/IceShopLib/Validation/IsTwoWordsCondition.cs
431
C#
using System.Runtime.Serialization; namespace com.xxl.job.core.biz.model { public class ReturnT { public const int SUCCESS_CODE = 200; public const int FAIL_CODE = 500; public static readonly ReturnT SUCCESS = new ReturnT(SUCCESS_CODE, null); public static readonly ReturnT FAI...
22.44186
81
0.562694
[ "MIT" ]
yang-dw/DotXxlJob
src/DotXxlJob.Core/Model/ReturnT.cs
965
C#
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Abp.Authorization; using Abp.Authorization.Users; using Abp.MultiTenancy; usin...
40.713675
171
0.601553
[ "MIT" ]
juanwfer/MetroDev-AbpTest
src/MetroDev.Boilerplate.Web.Core/Controllers/TokenAuthController.cs
9,529
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 Cake.Core.IO.Globbing.Nodes; using Cake.Core.IO.Globbing.Nodes.Segments; n...
34.051948
110
0.501526
[ "MIT" ]
Acidburn0zzz/cake
src/Cake.Core/IO/Globbing/GlobNodeRewriter.cs
2,624
C#
#region PDFsharp - A .NET library for processing PDF // // Authors: // Stefan Lange // // Copyright (c) 2005-2016 empira Software GmbH, Cologne Area (Germany) // // http://www.PdfSharpCore.com // http://sourceforge.net/projects/pdfsharp // // Permission is hereby granted, free of charge, to any person obtaining a // ...
36.688811
130
0.398361
[ "MIT" ]
929496959/PdfSharpCore
PdfSharpCore/Pdf.Filters/Ascii85Decode.cs
10,493
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
39.244318
125
0.632474
[ "BSD-3-Clause" ]
AlericInglewood/opensimulator
OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
13,814
C#
using System; using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; using System.Text; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; // oth...
28.166667
125
0.71716
[ "MIT" ]
bpbpublications/Cross-Platform-Modern-Apps-with-VS-Code
Chapter 3 Code Samples/Blazorise_Ex/Blazorise_Ex/Program.cs
845
C#
using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Hubs; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Threading.Tasks; namespace SignalRest { public class ClientProxy : DynamicObject, IClientProxy { public ClientProxy(string hubName, IList<string>...
30.029412
144
0.65524
[ "Apache-2.0" ]
BigBadBleuCheese/SignalREST
SignalRest/ClientProxy.cs
1,023
C#
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/l...
34.439024
166
0.643768
[ "Apache-2.0" ]
datasprings/Realm
Tests/ThreeLayerRealmXF/ThreeLayerRealmXF/ThreeLayerRealmXF.Droid/MainActivity.cs
1,414
C#
namespace OnlineBookStoreDemo.Web.Areas.Identity.Pages { using System.Diagnostics; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; [AllowAnonymous] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore ...
31.52
88
0.704315
[ "MIT" ]
Pivchev/OnlineBookStoreDemo
src/Web/OnlineBookStoreDemo.Web/Areas/Identity/Pages/Error.cshtml.cs
790
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using MonoGame.Extended; using MonoGame.Extended.Sprites; using MonoGame.Extended.TextureAtlases; namespace SpaceGame.Entities { public class Laser : Entity { private readonly Sprite _sprite; private readonly Transform2 _tra...
25.237288
73
0.563465
[ "MIT" ]
Acidburn0zzz/MonoGame.Extended
Source/Demos/SpaceGame/Entities/Laser.cs
1,489
C#
using System; using System.Collections.Generic; using Content.Server.AI.Operators.Sequences; using Content.Server.AI.Utility.Considerations; using Content.Server.AI.Utility.Considerations.Combat.Melee; using Content.Server.AI.Utility.Considerations.Containers; using Content.Server.AI.Utility.Considerations.Movement; us...
36.910714
97
0.66715
[ "MIT" ]
BananaFlambe/space-station-14
Content.Server/AI/Utility/Actions/Combat/Melee/PickUpMeleeWeapon.cs
2,067
C#
/* * Pixel Framework * * This framework allows you to develop games for mobile devices even faster than you normally do. * It includes a lot of useful classes, resources, and examples to get your project started. * The framework will be especially useful for developers of hyper-casual games. * * This framework...
31.853333
102
0.575555
[ "MIT" ]
TinyPlay/PixelFramework
Pixel Framework/Assets/PixelFramework/UI/Components/WebImage.cs
2,391
C#
using Quartz; using Quartz.Impl; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Xml.Linq; using System.Xml.XPath; using Wexflow.Core.Db; namespace Wexflow.Core { /// <summary> /// Wexflow engine. /// </summary> pub...
33.424023
157
0.516366
[ "MIT" ]
alexhiggins732/Wexflow
src/dotnet-core/Wexflow.Core/WexflowEngine.cs
23,098
C#
using MTSEntBlocks.DataBlock; using System.Data; namespace MTS.EmailManager.EmailDataAccess { public class EmailDAL { public DataSet GetEmailSchedule() { return DataAccess.ExecuteDataset("MTS_GetEmailSchedule", (object[])null); } public DataSet GetEmailScheduleForT...
28.875
101
0.606061
[ "MIT" ]
senthilsb-mtsin/ProjectTimeManagment
NewService/MTS.EmailManager/EmailDataAccess/EmailDAL.cs
1,850
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace FuckMTP.DeviceConnector.Contracts { public interface IDeviceSource { Task<IEnumerable<IDevice>> GetAvailableDevices(); } }
19.909091
57
0.744292
[ "MIT" ]
scorchedSun/FuckMTP
FuckMTP.DeviceConnector.Contracts/IDeviceSource.cs
221
C#
using System; using System.Data; using System.Data.OleDb; namespace OMeta.Sql { #if ENTERPRISE using System.Runtime.InteropServices; [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual), ComDefaultInterface(typeof(IIndex))] #endif public class SqlIndex : Index { public SqlIndex() { } } }
16.473684
101
0.753994
[ "MIT" ]
kiler398/OMeta
src/OpenMeta/Sql/Index.cs
313
C#
using System; namespace KoreanNewsDownloader.Exceptions { public class UnsupportedHostException : Exception { public UnsupportedHostException(string message) : base(message) { } } }
20.4
75
0.72549
[ "MIT" ]
GodsWithin/KDownloader
KoreanNewsDownloader/Exceptions/UnsupportedHostException.cs
206
C#
namespace Lol.Database.Entites.Schema { public class RuneDetail { public int Seq { get; set; } public string Rune { get; set; } public string Keystone { get; set; } public string Paths { get; set; } public string RuneType { get; set; } public string Name { get; s...
32.619048
44
0.559124
[ "MIT" ]
devncore-james/wpf-leagueoflegends
src/Lol.Database/Entites/Schema/RuneDetail.cs
687
C#
/* Copyright (c) Citrix Systems, Inc. * 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...
37.737805
167
0.553442
[ "BSD-2-Clause" ]
borzel/xenadmin
XenAdmin/Wizards/GenericPages/SelectMultipleVMDestinationPage.cs
24,758
C#
using System.Collections; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace Mirror.Tests.Runtime { public class NetworkIdentityTests : MirrorPlayModeTest { GameObject gameObject; NetworkIdentity identity; [UnitySetUp] public override IEnumerator U...
31.278689
84
0.606394
[ "MIT" ]
BigBoxVR/Mirror
Assets/Mirror/Tests/Runtime/NetworkIdentityTests.cs
1,908
C#
using System.Text.RegularExpressions; using Microsoft.AspNetCore.Components; namespace HostedApp { public static class Extensions { public static string Format(this string format, object arg0) => format == null ? "" : string.Format(format, arg0); public static MarkupString AsMarkdownToHtml(th...
31.238095
130
0.545732
[ "MPL-2.0" ]
SeppPenner/Toolbelt.Blazor.I18nText
Tests/HostedApp/HostedApp.Client/Extensions.cs
658
C#
using System; using Azure.Storage.Blobs; using Azure.Storage.Sas; using AzureSpeed.WebApp.Common; namespace AzureSpeed.WebApp.Storage { public class BlobProvider { private readonly string connectionString; public BlobProvider(StorageAccount account) { connectionString = $"...
36.153846
117
0.624823
[ "MIT" ]
blrchen/AzureSpeed
src/AzureSpeed.WebApp/Storage/BlobProvider.cs
1,412
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using dto = aspet.Models; namespace aspet.Daos { public class InMemoryTasks : ITasks { private ConcurrentDictionary<int, dto.Task> dict; private int nextId; publi...
26.492308
69
0.48374
[ "Apache-2.0" ]
yolocs/aspet
Daos/InMemoryTasks.cs
1,722
C#
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
25.439024
76
0.721956
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Httpdns/Apis/GetAccountIdResponse.cs
1,073
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // ReSharper disable ArrangeAccessorOwnerBody // ReSharper disable CheckNamespace // ReSharper disable CommentTypo // ReSharper disable IdentifierTypo // ReSh...
26.269891
84
0.459647
[ "MIT" ]
amironov73/ManagedClient.45
Source/Classic/Libs/AM.Istu/AM/Istu/OldModel/Kladovka.cs
16,928
C#
using EyesGuard.AppManagers; using EyesGuard.Views.Pages; using EyesGuard.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace EyesGuard.Views.Menus { public partial class EyesGuardTaskbarIcon { ...
30.252632
114
0.636395
[ "MIT" ]
0xaryan/EyesGuard
Source/EyesGuard/Views/Menus/EyesGuardTaskbarIcon.xaml.cs
2,876
C#
using System; using System.Collections; using System.Collections.Generic; using StrawberryShake; namespace BerryClient { public interface IGetHero { ICharacter Hero { get; } } }
15.384615
33
0.71
[ "MIT" ]
Coldplayer1995/GraphQLTest
BerryClient/StarWars/Generated/IGetHero.cs
202
C#
namespace Tarrahaan.DAL.Entities { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("Currency")] public class Currency { public byte CurrencyI...
21.296296
55
0.629565
[ "Unlicense" ]
babakjahangiri/Tarrahaan
Tarrahaan/DAL/Entities/Currency.cs
575
C#
namespace ValidationHelperUnitTests.ValidationInfoTests; [TestClass] public class InfoTests { [TestMethod] public void AddInfoToValid() { var info = ValidationInfo.CreateSuccess; info.AddInfo("info"); Assert.IsTrue(info.IsValid); Assert.IsNotNull(info.Infos); Assert...
28.306452
58
0.591453
[ "MIT" ]
jasdefer/ValidationHelper
ValidationHelper/UnitTests/ValidationHelperUnitTests/ValidationInfoTests/InfoTests.cs
1,757
C#
using EntregaFutura.Domain.Models; namespace EntregaFutura.Repository.Repository { public interface IObservacaoRepository : IRepository<ObservacaoModel> { } }
17.4
73
0.770115
[ "MIT" ]
AdsHan/core-template-webapi
src/EntregaFutura.Repository/Repository/Interfaces/IObservacaoRepository.cs
176
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Model { public class ItemProduct { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public virtual Product Product { get; set; } ...
20.608696
61
0.64346
[ "MIT" ]
Irwiing/Mubak
Mubak/Model/ItemProduct.cs
476
C#
/* * Copyright 2020 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 "licens...
34.952941
135
0.671491
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/DatabaseMigrationService/Generated/Model/Internal/MarshallTransformations/InvalidSubnetExceptionUnmarshaller.cs
2,971
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CoreCSharpPrograming.chap11.indexermethod { class MyConsoleClass : IStringContainer { private List<string> myStrings = new List<string>(); public string this[int index] { get =>...
21.473684
60
0.639706
[ "MIT" ]
arishu/cn.org.aris
csharp/study/ProCSharp/CSharpConstructsPartOne/chap11/indexermethod/MyConsoleClass.cs
410
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [Serializable] public class EnfeebleEnemiesWait : Skill { public override void RouteBehavior(Actions action, UnitProxy u1, UnitProxy u2, List<TileProxy> path) { switch(action){ case Actions.DidW...
25.121622
123
0.649812
[ "MIT" ]
BradZzz/EldersQuest
Assets/Scripts/Skills/SubSkills/EnfeebleEnemiesWait.cs
1,861
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...
31.915789
122
0.609169
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ComputeOptimizer/Generated/Model/EBSFilter.cs
3,032
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.Collections.Generic; using System.Runtime.Versioning; namespace Microsoft.Dnx.Tooling { public class BuildOptions { public...
27.032258
111
0.640811
[ "Apache-2.0" ]
cemoses/aspnet
dnx-dev/src/Microsoft.Dnx.Tooling/Building/BuildOptions.cs
838
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Pomelo.EntityFrameworkCore.MySql.IntegrationTests.Models; using Microsoft.EntityFrameworkCore; using MySqlConnector; using Pomelo.EntityFrameworkCore.MySql.Infrastructure; using Pomelo.EntityFrameworkCore.MySql.Tests...
34.118421
133
0.675087
[ "MIT" ]
Artrilogic/Pomelo.EntityFrameworkCore.MySql
test/EFCore.MySql.IntegrationTests/Tests/Models/GeneratedTypesTest.cs
5,188
C#
using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; namespace AsyncDolls.AsyncDollsPartial { public class PushMessages : IPushMessages { Func<TransportMessage, Task> onMessageAsync; private readonly ConcurrentQueue<TransportMessage> messages;...
33.233766
101
0.549824
[ "Apache-2.0" ]
danielmarbach/async-dolls
async-dolls/7-AsyncDollsPartial/PushMessages.cs
2,559
C#
using DragonSpark.Extensions; using DragonSpark.Sources.Parameterized; using System; using System.Collections.Immutable; using System.ComponentModel; using System.Reflection; namespace DragonSpark.ComponentModel { public sealed class DefaultPropertyValueFactory : ParameterizedSourceBase<DefaultValueParameter, object>...
42.75
267
0.807018
[ "MIT" ]
DragonSpark/VoteReporter
Framework/DragonSpark/ComponentModel/DefaultPropertyValueFactory.cs
1,026
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.EntityFrameworkCore.TestUtilities; public class SqlServerAdventureWorksTestStoreFactory : SqlServerTestStoreFactory { public static new SqlServerAdventureWo...
33.315789
88
0.748815
[ "MIT" ]
Applesauce314/efcore
test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerAdventureWorksTestStoreFactory.cs
635
C#
 // This file was automatically generated by the code gen tool - do not modify. using System ; using scg = System.Collections.Generic ; using sd = System.Data ; using sds = System.Data.SqlClient ; using sr = System.Reflection ; using mst = Microsoft.SqlServer.Types ; using mss = Microsoft.SqlServer.Server ; ...
37.468085
162
0.713231
[ "MIT" ]
casaletto/alby.pantheon.2015
alby.pantheon.codegen/storedProcedure/SectorGet.cs
1,798
C#
namespace EasyCaching.LiteDB { using EasyCaching.Core; using EasyCaching.Core.Configurations; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using System; ...
36.015152
110
0.615061
[ "MIT" ]
861191244/EasyCaching
src/EasyCaching.LiteDB/Configurations/LiteDBOptionsExtension.cs
2,379
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\mmeapi.h(101,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public partial struct tagWAVEOUTCAPSA { public ushort wMid; publ...
29.142857
83
0.653595
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/tagWAVEOUTCAPSA.cs
614
C#
using System; using Mono.Unix; using Nancy.Hosting.Self; using Mono.Unix.Native; using log4net; using Com.Bekijkhet.Logger; using log4net.Config; namespace Com.Bekijkhet.MyBroker.Console { class MainClass { private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrent...
30.98
127
0.557779
[ "MIT" ]
broersa/mylorawan
Com.Bekijkhet.MyBroker.Console/Program.cs
1,551
C#
using System.Linq; using System.Collections.Generic; using System; namespace RobotWars { public class MoveCommand : ICommand { private readonly IDictionary<char, Motion> moveCommandMapping = new Dictionary<char, Motion> { {'L', Motion.Left}, {'R', Motion.Right}, ...
23
100
0.512896
[ "Apache-2.0" ]
chriscartlidge/CodeKata.RobotWars
src/RobotWars/Commands/MoveCommand.cs
1,359
C#
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; using System.Text; namespace YesSql.Provider.MySql { public class MySqlDialect : BaseDialect { private static Dictionary<DbType, string> ColumnTypes = new Dictionary<DbType, string> { {D...
33.49162
154
0.481568
[ "MIT" ]
ArieGato/yessql
src/YesSql.Provider.MySql/MySqlDialect.cs
5,995
C#
using System; using System.Threading.Tasks; using Coravel; using Coravel.Events; using Coravel.Events.Interfaces; using Microsoft.Extensions.DependencyInjection; using UnitTests.Events.EventsAndListeners; using Xunit; namespace UnitTests.Events { public class EventTests { [Fact] public async Ta...
37.06599
125
0.628184
[ "MIT" ]
alandecastros/coravel
Src/UnitTests/CoravelUnitTests/Events/EventTests.cs
7,302
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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...
36.6
84
0.75644
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter04/ColorBlocks/ColorBlocks/ColorBlocks.Droid/Properties/AssemblyInfo.cs
1,284
C#
using System; using System.Threading.Tasks; using FakeRabbitMQ; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; using Nybus; using Nybus.Configuration; using static Tests.TestUtils; namespace Tests { [TestFixture] public class NoNamespaceMe...
33.876923
162
0.603769
[ "MIT" ]
Kralizek/Nybus
tests/integration/Tests.Integration.Nybus.Engine.RabbitMq/NoNamespaceMessageTests.cs
4,406
C#
using System.Reflection; using System.Runtime.CompilerServices; using Android.App; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("FloatingSearchView")] [assembly: AssemblyDescription ("")] [assembly: Assembl...
36.233333
81
0.73965
[ "MIT" ]
4brunu/XamarinComponents
Android/FloatingSearchView/source/FloatingSearchView/Properties/AssemblyInfo.cs
1,089
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Valve.VR.InteractionSystem { public class HandCollider : MonoBehaviour { private new Rigidbody rigidbody; [HideInInspector] public HandPhysics hand; public LayerMask collisionM...
36.135417
137
0.543288
[ "BSD-3-Clause" ]
Bazzagibbs/steamvr_unity_plugin
Assets/SteamVR/InteractionSystem/Core/Scripts/HandCollider.cs
10,409
C#
namespace Sudoku_3 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param nam...
39.103448
137
0.592593
[ "MIT" ]
swift502/Sudoku
Sudoku 3/Okna/Form1/Form1.Designer.cs
2,270
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
36.294118
153
0.615883
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/model/TeleconferenceDeviceScreenSharingQuality.cs
1,234
C#
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; namespace FancyZonesEditor.Models { // GridLayoutModel // Grid-styled Layout Model,...
32.823821
162
0.449501
[ "MIT" ]
DongKyoungPark/PowerToys
src/modules/fancyzones/editor/FancyZonesEditor/Models/GridLayoutModel.cs
12,826
C#