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
// This code was generated by a kontent-generators-net tool // (see https://github.com/Kentico/kontent-generators-net). // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. // For further modifications of the class, create a separate file with the partial class. using...
46.142857
98
0.691434
[ "MIT" ]
kentico-michaelb/kontent-sample-app-conference-net
kontent-sample-app-conference-net/Models/AgendaItem.cs
1,938
C#
namespace Shared.Group_007 { using Xunit; public class Benchmark003Tests { [Fact] public void Test_001() { } [Fact] public void Test_002() { } [Fact] public void Test_003() { } [Fact] public void Test_004() { } [Fact] public void Test_005() { } [Fact] public ...
37.220339
41
0.529144
[ "MIT" ]
chan18/fixie.benchmark
src/Shared/Group_007/Benchmark003Tests.cs
2,196
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...
42.727811
279
0.601717
[ "MIT" ]
Azure-Samples/Azure-Time-Series-Insights
gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetSeries.cs
7,221
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using System.Xml; namespace Rami.Wechat.Core.Public.Tencent { /// <summary> /// WXBizMsgCrypt /// </summary> public class WX...
33.054662
137
0.499222
[ "MIT" ]
tamakiramimy/Rami.Wechat.Core
Rami.Wechat.Core/Public/Tencent/WXBizMsgCrypt.cs
10,888
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Linq; namespace Azure.Analytics.Synapse.Artifacts.Models { /// <summary> A list of spark job definitions resources. ...
37.933333
114
0.659051
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionsListResponse.cs
1,707
C#
using TMPro; using UnityEngine; using UnityEngine.UI; public class ItemButtonManager : MonoBehaviour { private string itemName; public string ItemName { set => itemName = value; } private string itemDescription; public string ItemDescription { set => itemDescription = value; } private string price...
30.166667
85
0.703236
[ "MIT" ]
RaimundoGallino/PlaceApp-Clone-ARFoundation
Assets/Scripts/ItemButtonManager.cs
1,267
C#
namespace ABCSharp.Tokens { public class RestToken : Token { public string Symbol { get; set; } public Fraction Length { get; set; } public void Dotify(string dots, string direction) { Length = DurationHelper.Dotify(Length, dots, direction); } } }
24.615385
68
0.575
[ "MIT" ]
ModernMAK/ABCSharp
ABCSharp/src/Tokens/RestToken.cs
320
C#
using System; using System.IO; using System.IO.Compression; namespace Exceptionless.Core.Extensions { public static class ByteArrayExtensions { public static byte[] Decompress(this byte[] data, string encoding) { byte[] decompressedData = null; using (var outputStream = new MemoryS...
37.880952
127
0.522313
[ "Apache-2.0" ]
mahizsas/Exceptionless
Source/Core/Extensions/ByteArrayExtensions.cs
1,593
C#
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.ExcelApi.Enums { /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// </summary> ///<remarks> MSDN Online Documentation: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.XlCellInsertionMode"/> </rem...
29.8
140
0.641419
[ "MIT" ]
NetOfficeFw/NetOffice
Source/Excel/Enums/XlCellInsertionMode.cs
1,045
C#
/******************************************************************************* * Copyright 2012-2019 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...
47.194444
294
0.632627
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/GroundStation/Basic/Remove-GSDataflowEndpointGroup-Cmdlet.cs
10,194
C#
using Benday.EasyAuthDemo.Api.Adapters; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using Benday.EasyAuthDemo.UnitTests.Utilities; using Benday.EasyAuthDemo.WebUi.Models; using Benday.EasyAuthDemo.WebUi.Models.Adapters; namespace Benday.EasyAut...
32.82716
98
0.605867
[ "MIT" ]
benday-inc/azure-app-service-security
dotnet5.0/Benday.EasyAuthDemo/test/Benday.EasyAuthDemo.UnitTests/ViewModels/Adapters/ConfigurationItemEditorViewModelAdapterFixture.generated.cs
2,659
C#
 using System; using System.Collections.Generic; using TES3.Util; namespace TES3.Records { public class NameEnumerable<TSub, TParent> : AbstractEnumeratorEnumerable<TSub> where TSub : INamed where TParent : IRecord<TSub> { readonly TParent parent; readonly IEnumerator<TSub> backing; ...
22.575758
133
0.48255
[ "BSD-3-Clause" ]
mschlege1838/tes3-net
TES3.Records/NameEnumerable.cs
1,492
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; public class LeetCode_22 : MonoBehaviour { // Use this for initialization void Start () { GenerateParenthesis(3); } // Update is called once per frame void Update () { } // Medium https://leetcode.com/pro...
21.666667
74
0.646154
[ "MIT" ]
dftty/LeetCode
Assets/Scripts/LeetCode/LeetCode_22.cs
782
C#
namespace WinControl { /// <summary> /// Provides efficient way to control child form by a WinControl control. /// <para>Обеспечивает эффективное управление дочерней формой с помощью элемента управления WinControl.</para> /// </summary> /// <remarks> /// Author: Mikhail Shiryaev, 2010, 2018 ...
28.913043
114
0.6
[ "MIT" ]
2mik/wincontrol
Source/WinControl/IChildForm.cs
790
C#
/* * Copyright 2015-2018 Mohawk College of Applied Arts and Technology * * * 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 * * U...
29.315789
121
0.686073
[ "Apache-2.0" ]
santedb/openiz
OpenIZ.Core.Model/Entities/Organization.cs
3,901
C#
using FreeQuant.Instruments; using System.Collections.Generic; using System.Windows.Forms; namespace OpenQuant.Shared.Instruments { class GroupNode : TreeNode { protected Dictionary<Instrument, InstrumentNode> instrumentNodes; public Instrument[] Instruments { get { return new List<Instrument>((IEn...
23.013699
94
0.718452
[ "MIT" ]
aliostad/deep-learning-lang-detection
data/train/csharp/49afcdefe7ee88cb9e6ef2c0c1aefa6577240ba0GroupNode.cs
1,682
C#
// Copyright (c) Josef Pihrt and Contributors. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using Roslynator.CSharp.Analysis.Documentation; namespace Roslynator.CSharp.Refactoring...
34.805556
156
0.706305
[ "Apache-2.0" ]
onexey/Roslynator
src/Analyzers.CodeFixes/CSharp/Refactorings/Documentation/AddTypeParamElementToDocumentationCommentRefactoring.cs
1,255
C#
 using Microsoft.Extensions.Caching.Memory; using System; using System.Collections; using System.Collections.Generic; using System.Reflection; namespace YC.Common.ShareUtils { public class CacheUtils { private IMemoryCache _cache = new MemoryCache(new MemoryCacheOptions()); public TimeSpan ...
29.966292
117
0.504687
[ "Apache-2.0" ]
boozzh/yc.boilerplate
src/Backstage/BasicLayer/YC.Common/ShareUtils/CacheUtils.cs
5,808
C#
using System; namespace Maki { /// <summary> /// Extensions for Variant. /// </summary> public static class VariantExtensions { /// <summary> /// Maps the function matching the item inhabiting the variant. Returns a new variant containing the /// result of the function. ...
49.916667
130
0.554022
[ "MIT" ]
vladris/Maki.NET
Maki/Extensions/VariantExtensions.cs
38,338
C#
#region Apache License 2.0 /* Apache License 2.0 (Apache) Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections ...
73.568493
946
0.766968
[ "Apache-2.0" ]
RachelAmbler/SS-Eye-S
SS-eye-S/Control Flow Tasks/Tasks/iForLoop.cs
10,741
C#
namespace MRULib.Converters { using System; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Markup; /// <summary> /// Source: http://stackoverflow.com/questions/534575/how-do-i-invert-booleantovisibilityconverter /// /// Implements...
35.105769
103
0.551356
[ "MIT" ]
Dirkster99/MRULib
source/MRULib/Converters/BoolToVisibilityConverter.cs
3,653
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sample { class Program { static void Main(string[] args) { } } }
12.625
33
0.722772
[ "MIT" ]
kholodovitch/libpng-csharp
tests/Sample/Program.cs
204
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using SftpFile = Renci.SshNet.Sftp.SftpFile; namespace Nameless.Libraries.Aura.Model { public class SftpFilter { /// <summary> /// The collection of extension files to ignore /// </summary> public St...
45.043478
121
0.583977
[ "MIT" ]
ANamelessWolf/AuraSFTP
src/Model/SftpFilter.cs
5,180
C#
using System.Collections.Concurrent; using System.Collections.Generic; using PlatformRacing3.Server.Game.Client; using PlatformRacing3.Server.Game.Commands; namespace PlatformRacing3.Server.Game.Chat { internal sealed class ChatRoomManager { private readonly CommandManager commandManager; pri...
43.479592
247
0.578268
[ "MIT" ]
CoralCOasa/PlatformRacing3
PlatformRacing3.Server/Game/Chat/ChatRoomManager.cs
4,263
C#
using NBitcoin; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using WalletWasabi.Blockchain.Keys; using WalletWasabi.Crypto.Randomness; using WalletWasabi.Logging; using WalletWasabi.WabiSabi.Backend.PostRequests; using WalletWasabi.WabiSabi.Bac...
40.613208
190
0.776655
[ "MIT" ]
augustoproiete-forks/zkSNACKs--WalletWasabi
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
8,610
C#
//------------------------------------------------- // TNet 3 // Copyright © 2012-2018 Tasharen Entertainment Inc //------------------------------------------------- using UnityEngine; using System.Net; namespace TNet { /// <summary> /// Server Lobby Client is an abstract class designed to communic...
22.485294
92
0.638326
[ "MIT" ]
The-ULTIMATE-MULTIPLAYER-EXPERIENCE/GameWithMultiplayerServer
Multiplayer Game Test/Assets/TNet/Client/TNLobbyClient.cs
1,530
C#
using Newtonsoft.Json; namespace ChaosTerraria.AI { public class Neuron { [JsonProperty("$TYPE")] public string type; [JsonProperty("_base_type")] public string baseType; [JsonProperty("$DEFAULT")] public bool Default; public double weight; publi...
24.241379
41
0.59744
[ "MIT" ]
RookieIndieDev/ChaosTerraria
AI/Neuron.cs
705
C#
using System; using Glass.Mapper.Sc.DataMappers; using NUnit.Framework; using Sitecore.Data; namespace Glass.Mapper.Sc.FakeDb.DataMappers { [TestFixture] public class SitecoreFieldFloatMapperFixture : AbstractMapperFixture { #region Method - GetField [Test] public void GetField_F...
25.533333
74
0.53931
[ "Apache-2.0" ]
Amir818/Glass.Mapper
Tests/Unit Tests/Glass.Mapper.Sc.FakeDb/DataMappers/SitecoreFieldFloatMapperFixture.cs
3,447
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument), fullyQualifiedNa...
57.16129
404
0.797404
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.cs
1,772
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using AExpense.DataAccessLayer; using AExpense.Model; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Configuration; using Microsoft.Practices.Unity; using AExpense....
38.558442
140
0.678343
[ "Apache-2.0" ]
Herschel2013/EnterpriseLibrary6
RI/aExpense/EL-V5/aExpense.Tests/TracingAndInterceptionAppBlockFixture.cs
2,971
C#
using System.Drawing; using System.Windows.Forms; namespace Free.Controls.TreeView.Tree { public class TreeViewRowDrawEventArgs : PaintEventArgs { TreeNodeAdv _node; DrawContext _context; int _row; Rectangle _rowRect; public TreeViewRowDrawEventArgs(Graphics graphics, Rectangle clipRectangle, TreeNodeAdv ...
16.681818
144
0.702997
[ "BSD-2-Clause" ]
shintadono/Free.Controls.TreeView
Tree/TreeViewRowDrawEventArgs.cs
734
C#
// Copyright 2020 MaidSafe.net limited. // // This SAFE Network Software is licensed to you under the MIT license <LICENSE-MIT // http://opensource.org/licenses/MIT> or the Modified BSD license <LICENSE-BSD // https://opensource.org/licenses/BSD-3-Clause>, at your option. This file may not be copied, // modified, or d...
37.579365
134
0.624287
[ "MIT", "BSD-3-Clause" ]
maidsafe/sn_authenticator_mobile
SafeAuthenticator.iOS/AppDelegate.cs
4,737
C#
/* Copyright (c) 2011 Microsoft Corporation. All rights reserved. Use of this sample source code is subject to the terms of the Microsoft license agreement under which you licensed this sample source code and is provided AS-IS. If you did not accept the terms of the license agreement, you are not aut...
35.454338
115
0.533325
[ "MIT" ]
Ranin26/msdn-code-gallery-microsoft
Official Windows Platform Sample/Video Recorder Sample/[C#]-Video Recorder Sample/C#/sdkVideoRecorderCS/MainPage.xaml.cs
15,529
C#
/* * Square Connect API * * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: developers@squareup.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; using System; using System.Linq; using System.IO; using System.Collec...
26.021053
130
0.593042
[ "Apache-2.0" ]
square/connect-csharp-sdk
src/Square.Connect.Test/Model/CreateCatalogImageRequestTests.cs
2,472
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microservice.Whatevers.Domain.Entities.Things; using Microservice.Whatevers.Domain.Exceptions; using Microservice.Whatevers.Repositories; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; ...
31.979167
116
0.603909
[ "MIT" ]
IgortRamos/Microservice.Whatevers
src/Microservice.Whatevers.WebApi/Controllers/WeatherForecastController.cs
1,538
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.317073
253
0.598875
[ "ECL-2.0", "Apache-2.0" ]
ScriptBox99/pulumi-azure
sdk/dotnet/Automation/DscConfiguration.cs
9,426
C#
using FastFoodRestaurant.Controllers; using FastFoodRestaurant.Views.UserControls; using FastFoodRestaurant.Views.UserControls.CollectionControlPages; using System; using System.Windows.Forms; namespace FastFoodRestaurant { public partial class MainView : Form { // Initialize Controllers. Main...
32.216216
82
0.628076
[ "BSD-3-Clause" ]
viniciusmorgado/FastFoodRestaurant
preview/Views/MainView.cs
3,578
C#
//****************************************************************************************************** // D3Series.cs - Gbtc // // Copyright © 2020, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NO...
31.252101
105
0.535359
[ "MIT" ]
GridProtectionAlliance/openSEE
src/OpenSEE/Model/D3Series.cs
3,722
C#
using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Nest { [JsonConverter(typeof(StringEnumConverter))] public enum RangeRelation { [EnumMember(Value="within")] Within, [EnumMember(Value="contains")] Contains, [EnumMember(Value="intersects")] Intersects } }...
21.4
45
0.766355
[ "Apache-2.0" ]
Tchami/elasticsearch-net
src/Nest/QueryDsl/TermLevel/Range/RangeRelation.cs
323
C#
/* Copyright (c) 2011-2020 Oleg Zee 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, modify, merge, publish, distri...
29.763838
121
0.633152
[ "MIT" ]
OlegZee/NEbml
Src/Core/EbmlWriter.cs
8,068
C#
namespace AlgorithmsProvider.Models { public class HorspoolModel { public string InputString { get; set; } public string SearchString { get; set; } public int NumberOfLine { get; set; } public bool IsFound { get; set; } } }
26.8
48
0.619403
[ "Apache-2.0" ]
Kralizets/Algorithms
AlgorithmsProvider/Models/HorspoolModel.cs
270
C#
using System; using System.Collections.Generic; using System.Linq; internal class ArrayManipulator { private static void Main() { List<short> input = Console.ReadLine() .Split(new char[] { ' ' }, StringSplitOptions .RemoveEmptyEntries) .Select(short.Parse) ...
30.181818
86
0.427711
[ "MIT" ]
lapd87/SoftUniProgrammingFundamentalsCSharp
ProgrammingFundamentalsCSharp/07Lists/05ArrayManipulator/ArrayManipulator.cs
2,326
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> //--...
38.486111
173
0.601949
[ "MIT" ]
mxttwoods/ISM240-ClassMaterial
archive/ISM240HW1/FlagsHW/Properties/Resources.Designer.cs
2,773
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
20.15493
63
0.663173
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-digitalstore/Digitalstore/Model/V20200107/GrantRightsResponse.cs
1,431
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Xml.Linq; using Mono.Cecil; namespace Project { public sealed class Reference: Item { private XElement _originalItemElement; public string Include { get; private set; } public Version ReferenceAssemblyVersion { ...
34.086022
112
0.656782
[ "MIT" ]
configit-open-source/csmerge
Project/Reference.cs
6,340
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.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.Code...
38.525424
161
0.678619
[ "Apache-2.0" ]
GigabyteUB1B1/roslyn
src/EditorFeatures/CSharpTest/Formatting/Indentation/CSharpFormatterTestsBase.cs
4,548
C#
// Copyright (c) 2009, Semyon A. Chertkov (semyonc@gmail.com) // 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...
42.172414
88
0.637367
[ "BSD-3-Clause" ]
3rdandUrban-dev/Nuxleus
src/Xameleon/QueryMachine/QueryMachine.XQuery/XQueryParameter.cs
2,448
C#
using AmuletOfManyMinions.Projectiles.Minions.MinonBaseClasses; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace AmuletOfManyMinions.Projectiles.Minions.EclipseHerald ...
28.75188
118
0.705936
[ "MIT" ]
TheBambino/tModLoader_Minions
Projectiles/Minions/EclipseHerald/EclipseHerald.cs
7,650
C#
using Newtonsoft.Json; namespace io.nem2.sdk.Infrastructure.Buffers.Model { public class MultisigAccountInfoDTO { [JsonProperty("multisig")] public MultisigDTO Multisig { get; set; } } }
19.727273
50
0.677419
[ "Apache-2.0" ]
SoloEnergy/nem2-sdk-csharp
src/nem2-sdk/src/Infrastructure/Buffers/Model/MultisigInfoDTO.cs
219
C#
namespace MrRobot.Core.Boundaries.Clean { public sealed class Response { public int UniquePlacesCleaned { get; } public Response(int uniquePlacesCleaned) { UniquePlacesCleaned = uniquePlacesCleaned; } } }
23.636364
54
0.634615
[ "Apache-2.0" ]
ivanpaulovich/MrRobot
source/MrRobot.Core/Boundaries/Clean/Response.cs
260
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("Pe...
37.432432
84
0.74296
[ "MIT" ]
mdraganov/Telerik-Academy
C#/OOP/CommonTypeSystem/Person/Properties/AssemblyInfo.cs
1,388
C#
using System; using System.Text.RegularExpressions; using Coypu.Drivers; using Coypu.Drivers.Selenium; using NUnit.Framework; using OpenQA.Selenium; namespace Coypu.AcceptanceTests { [TestFixture] public class ExternalExamples { private SessionConfiguration SessionConfiguration; ...
33.449153
154
0.568026
[ "Unlicense", "MIT" ]
KMASubhani/coypu
src/Coypu.AcceptanceTests/ExternalExamples.cs
3,949
C#
// // Copyright (C) 2015 crosire & contributors // License: https://github.com/crosire/scripthookvdotnet#license // namespace GTA { public interface IPedVariation { int Count { get; } int Index { get; set; } int TextureCount { get; } int TextureIndex { get; set; } string Name ...
11.52
64
0.618056
[ "MIT" ]
cekkr/gtav-js
thirds/scripthookvdotnet-master/source/scripting_v3/GTA/Entities/Peds/IPedVariation.cs
576
C#
using System; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("PivotSecurity.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fda57af14a288d46e3efea89617037585c4de57159cd536ca6dff792ea1d6addc665f2fccb4285413d9d44db5a1be87cb82686db200d16325ed9c42c89cd4824...
144.666667
396
0.942396
[ "Apache-2.0" ]
Pivotsecurity/pivotsecurity-dotnet
PivotSecurity/AssemblyInfo.cs
870
C#
using System.Collections.Generic; namespace WebForum.Entities { public class BoardEntity { public int Id { get; set; } public string Title { get; set; } public IEnumerable<ForumEntity> Forums { get; set; } } }
14.933333
54
0.696429
[ "MIT" ]
Zsombi55/CS_ASP.NET_Forum
MyWebForum/WebForum/Entities/BoardEntity.cs
226
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.Runtime.InteropServices; using Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel.Interop; using Microsoft.VisualStudio.LanguageServices.I...
34.53125
161
0.723077
[ "Apache-2.0" ]
20chan/roslyn
src/VisualStudio/CSharp/Impl/CodeModel/Extenders/ExtensionMethodExtender.cs
1,107
C#
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします // </auto-generated> //----------------------------------------------------------...
35.888889
175
0.599845
[ "MIT" ]
isudzumi/Per30minSound
playSound/Properties/Resources.Designer.cs
3,226
C#
using Abp.Application.Features; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.MultiTenancy; using Abp.Runtime.Caching; using ASPNetCoreAngularApp2.Authorization.Users; using ASPNetCoreAngularApp2.MultiTenancy; namespace ASPNetCoreAngularApp2.Features { public class FeatureValueStore : AbpFeatureVa...
32.516129
79
0.657738
[ "MIT" ]
eduflornet/ASPNetCoreAngularApp2
aspnet-core/src/ASPNetCoreAngularApp2.Core/Features/FeatureValueStore.cs
1,008
C#
using System; using System.Collections.Generic; using System.Runtime; using System.Text; using System.Text.RegularExpressions; using System.Reflection; using System.IO; using System.Linq; namespace Libraries.Starlight { public interface IRule : ICloneable { string Name { get; } IProduction this[int index] { get;...
25.3
67
0.733202
[ "BSD-3-Clause" ]
DrItanium/ImageProcessingApplication
src/lib/Starlight/IFixedRule.cs
1,012
C#
using System.Collections.Generic; using JetBrains.Annotations; using EasyAbp.Abp.TencentCloud.Common.Models; namespace EasyAbp.Abp.TencentCloud.CloudMonitor.BaseMonitor { public class GetMonitorDataRequest : CommonRequest { public GetMonitorDataRequest(string region, List<Instance> instanc...
24.648148
59
0.534185
[ "MIT" ]
EasyAbp/Abp.TencentCloud
src/EasyAbp.Abp.TencentCloud.CloudMonitor/BaseMonitor/GetMonitorDataRequest.cs
1,333
C#
namespace UsersData.Models.Attributes { using System; using System.ComponentModel.DataAnnotations; [AttributeUsage(AttributeTargets.Property)] public class TagAttribute : ValidationAttribute { protected override ValidationResult IsValid(object value, ValidationContext validationContext) ...
28.413793
102
0.56068
[ "MIT" ]
pirocorp/Databases-Advanced---Entity-Framework
06. Advanced Relations/Exercises/UsersData/UsersData.Models/Attributes/TagAttribute.cs
826
C#
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 appli...
38.866667
114
0.621498
[ "Apache-2.0" ]
jeanluctritsch/CommunityServer
web/studio/ASC.Web.Studio/Products/Files/Utils/FileShareLink.cs
3,498
C#
// %BANNERBEGIN% // --------------------------------------------------------------------- // %COPYRIGHTBEGIN% // <copyright file="MLLocation.cs" company="Magic Leap"> // // Copyright (c) 2018-present, Magic Leap, Inc. All Rights Reserved. // // </copyright> // // %COPYRIGHTEND% // --------------------------------------...
53.256579
207
0.645707
[ "Apache-2.0" ]
kedarshashi/UnityTemplate
Assets/MagicLeap/Lumin/Deprecated/MLLocation.cs
8,095
C#
using UnityEngine; public interface NextStationSelector { Station GetNextStation (Station station, Vector3 position, Camera camera); }
19.571429
75
0.817518
[ "Apache-2.0" ]
alvarogzp/nextation
Assets/Scripts/Station/NextStationSelector/NextStationSelector.cs
137
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.Generic; using System.Linq; namespace Microsoft.CodeAnalysis.Shared.Utiliti...
37.407692
155
0.595826
[ "MIT" ]
06needhamt/roslyn
src/Workspaces/Core/Portable/Shared/Utilities/SignatureComparer.cs
9,728
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Fra...
31.342466
81
0.577797
[ "MIT" ]
Squirrelbear/Overrun-City
Project Source Code/GameDev2D/GameObjects/Button.cs
2,290
C#
namespace Milou.Deployer.Waws { internal class DeploymentRule { public static readonly DeploymentRule DoNotDeleteRule = new(nameof(DoNotDeleteRule)); public DeploymentRule(string name) => Name = name; public string Name { get; } } }
24.636364
93
0.675277
[ "MIT" ]
niklaslundberg/milou.deployer
src/Milou.Deployer.Waws/DeploymentRule.cs
273
C#
namespace Naos.Tracing.Domain { public enum SpanStatus { /// <summary> /// The operation is running. /// </summary> Transient = 0, /// <summary> /// The operation completed successfully. /// </summary> Succeeded = 1, /// <summary> ...
22.2
75
0.488288
[ "MIT" ]
vip32/Naos.Core
src/Tracing.Domain/Model/Span/SpanStatus.cs
557
C#
using STUN.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Net; namespace STUN.Message.Attributes { /// <summary> /// https://tools.ietf.org/html/rfc5389#section-15.2 /// </summary> public class XorMappedAddressAttribute : AddressAttribute { private readonly byte[] _magicC...
19.916667
95
0.647141
[ "MIT" ]
MarkZJQ/NatTypeTester
STUN/Message/Attributes/XorMappedAddressAttribute.cs
1,434
C#
using FewBox.Core.Utility.Formatter; using Microsoft.Extensions.Caching.Distributed; using System; using System.Linq; using System.Security.Claims; namespace FewBox.Core.Web.Token { public class DistributedTokenCache : TokenService { private IDistributedCache DistributedCache { get; set; } pu...
35.55
145
0.634318
[ "Apache-2.0" ]
FewBox/FewBox.Core.Web
FewBox.Core.Web/Token/DistributedTokenCache.cs
2,135
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Opereta.Models { public class CompanyTask { public int Id { get; set; } public CompanyTask() { this.Participants = new Ha...
27.057143
75
0.62302
[ "MIT" ]
morskibg/MVC_Individual_Project
Opereta/Opereta/Models/CompanyTask.cs
949
C#
using Microsoft.ML.Data; namespace FraudPredictionFunction { internal class FraudPrediction { [ColumnName("PredictedLabel")] public bool IsFraud { get; set; } [ColumnName("Score")] public float Score { get; set; } } }
18.928571
41
0.618868
[ "MIT" ]
JohnnyFayad/mldotnet-real-time-data-streaming-workshop
src/real-time-data-streaming/fraud-prediction-function/FraudPrediction.cs
267
C#
using System; using System.Collections.Generic; public class NaturalComparer<T> : IComparer<T> where T: IComparable<T> { public int Compare (T a, T b) { return a.CompareTo (b); } } public class X { class Test : IComparable<Test> { public int CompareTo (Test that) { return 0; } public bool Equals (...
14.25
53
0.631579
[ "Apache-2.0" ]
CRivlaldo/mono
mcs/tests/gtest-114.cs
513
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Scripts { using System; using System.IO; using System.Threading; using System.Thr...
42.957317
169
0.64017
[ "MIT" ]
Liphi/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/Resource/Scripts/ScriptsInlineCore.cs
14,092
C#
using System.Collections.Generic; using osuTK; namespace GD.Game.Legacy { public static class Dictionaries { public static readonly List<DefaultLevel> DEFAULT_LEVELS = new() { new DefaultLevel { Name = "Stereo Madness", StarDiff = 1, ...
31.809249
72
0.415591
[ "MIT" ]
EVAST9919/GDUI
GD.Game/Legacy/Dictionaries.cs
5,505
C#
using System; using System.IO; namespace C_fileIO101.Files { public class CreateFolder { public string createFolder(string path) { string pathReady = ""; try { if (!Directory.Exists(path)) { Directory.Creat...
20.151515
62
0.4
[ "MIT" ]
giprim/C_fileIO101
Files/MenuItems/CreateFolder.cs
665
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace YPIConnect.Persistence { public class ListProperty : System.Attribute { private string m_SqlPropertyName; public ListProperty(string sqlPropertyName) { this.m_SqlPropertyName = ...
19.416667
53
0.643777
[ "MIT" ]
SidHarder/ypi-connect
Persistence/ListProperty.cs
468
C#
// OCSPRef.cs // // XAdES Starter Kit for Microsoft .NET 3.5 (and above) // 2010 Microsoft France // Published under the CECILL-B Free Software license agreement. // (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt) // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, // WHETHE...
26.578313
109
0.707389
[ "BSD-3-Clause" ]
RIP-webmaster/CommunalServices.Communication
Library/OCSPRef.cs
4,412
C#
using System; using System.Data; using System.Web.Mvc; using BrnShop.Core; using BrnShop.Services; using BrnShop.Web.Framework; using BrnShop.Web.Admin.Models; namespace BrnShop.Web.Admin.Controllers { /// <summary> /// 后台商品评价控制器类 /// </summary> public partial class ProductReviewController : BaseAdmi...
39.5
176
0.558931
[ "MIT" ]
leafcxy/BrnShop
Presentation/BrnShop.Web/administration/controllers/ProductReviewController.cs
3,755
C#
using ao_id_extractor.Helpers; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; namespace ao_id_extractor.Extractors { public class ItemExtractor : BaseExtractor { protected override void ExtractFromXML(Stream inputXmlFile, MultiStream ou...
37.661538
184
0.625613
[ "MIT" ]
ao-data/ao-id-extractor
Extractors/ItemExtractor.cs
4,898
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
23.724138
62
0.731105
[ "BSD-3-Clause" ]
dataexplorer/dataexplorer
Presentation/Panes/Navigation/StartMenu/StartMenuView.xaml.cs
690
C#
using System.Drawing; namespace GdiPlusExtensions.Filters { /// <summary> /// These filters process the image based on the process of convolution /// </summary> public struct ConvolutionFilter : IFilterType { /// <inheritdoc/> public string FilterName { get; private set; } /// <inheritdoc/> public byte Ke...
32.247059
210
0.631157
[ "MIT" ]
AzuxirenLeadGuy/GdiPlusExtension
GdiPlusExtensions/src/Filters/ConvolutionFilter.cs
2,741
C#
using System; using System.Diagnostics; using System.Text.RegularExpressions; using Unity.Collections; #if UNITY_EDITOR using UnityEditor; #endif using UnityEngine; using UnityEngine.Experimental.Rendering; using UnityEngine.Perception.GroundTruth; namespace GroundTruthTests { static class TestHelper { ...
39.195402
195
0.641056
[ "Apache-2.0" ]
2dpodcast/com.unity.perception
com.unity.perception/Tests/Runtime/GroundTruthTests/TestHelper.cs
3,410
C#
using Godot; using Quadrecep.GameMode.Navigate.Map; namespace Quadrecep.GameMode.Navigate { public class NoteNode : Node2D { /// <summary> /// How long before the note is actually pressed /// </summary> public const float FadeInTime = 1000; /// <summary> ///...
24.861538
85
0.532797
[ "MIT" ]
QiuFeng54321/Quadrecep
Scripts/GameMode/Navigate/NoteNode.cs
1,616
C#
namespace Authentiqr.NET.Code.EncryptionV3 { public class CryptoConfig { /// <summary> /// Number of iterations to derive a strong password /// </summary> public int Iterations { get; set; } /// <summary> /// Size of salt to prepend to data prior to encryption, ...
27.904762
87
0.559727
[ "MIT" ]
richard-green/Authentiqr.NET
src/Authentiqr.NET/Code/EncryptionV3/CryptoConfig.cs
588
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("Ak...
37.972222
84
0.749086
[ "Apache-2.0" ]
Smartware/AkureMvcTraining
AkureTraining.Web/Properties/AssemblyInfo.cs
1,370
C#
using HealthyNutGuysDomain.Models; using HealthyNutGuysDomain.Repositories; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace HealthyNutGuysDataCore.Repositories { public class ...
27.241379
102
0.734177
[ "MIT" ]
omikolaj/healthy-nut-guys-api
HealthyNutGuysDataCore/Repositories/SpecialOfferRepository.cs
792
C#
using System.Threading; using System.Threading.Tasks; using Acs3; using AElf.Contracts.MultiToken; using AElf.Contracts.TestKit; using AElf.Cryptography.ECDSA; using AElf.Sdk.CSharp; using AElf.Types; using Google.Protobuf; using Google.Protobuf.WellKnownTypes; using Shouldly; using Xunit; using ApproveInpu...
48.907583
121
0.654489
[ "MIT" ]
IamWenboZhang/AElf
test/AElf.Contracts.ParliamentAuth.Tests/ParliamentAuthContractTest.cs
20,639
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// AlipayMarketingActivityOrdervoucherCreateModel Data Structure. /// </summary> [Serializable] public class AlipayMarketingActivityOrdervoucherCreateModel : AopObject { /// <summary> ...
31.468354
125
0.55712
[ "Apache-2.0" ]
piaoye2019/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/AlipayMarketingActivityOrdervoucherCreateModel.cs
3,038
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; namespace TimeTakenTestServer.Areas.HelpPage.ModelDescriptions { internal static class ModelNameHelper { // Modify this to provide custom model name mapping. public static string GetModelName(Type type) ...
40.222222
140
0.638122
[ "Apache-2.0" ]
joymon/dotnet-demos
web/iis/time-taken-field-demo/TestServer/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs
1,448
C#
using Cysharp.Threading.Tasks; namespace Mirror.Tests { public class MockComponent : NetworkBehaviour { public int cmdArg1; public string cmdArg2; [ServerRpc] public void Test(int arg1, string arg2) { cmdArg1 = arg1; cmdArg2 = arg2; } ...
22.818182
85
0.557769
[ "MIT" ]
dragonslaya84/MirrorNG
Assets/Tests/Runtime/MockComponent.cs
1,506
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.SharpDevelop.Dom; using NUnit.Framework; using XmlEditor.Tests.Utils; namespace XmlEditor.Tes...
23.949153
103
0.707006
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/DisplayBindings/XmlEditor/Test/Folding/MultiLineCommentFoldTestFixture.cs
1,415
C#
/* * MIT License * * Copyright (c) 2021 [FacuFalcone] * * 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,...
38.487805
81
0.712294
[ "MIT" ]
caidevOficial/CSharp_UTN_LaboII
2_Modelos_Examenes/PP_2021_Hospital/Hospital.GUI/Program.cs
1,581
C#
using UnityEngine; namespace UnityAtoms.BaseAtoms { /// <summary> /// Variable of type `Vector2`. Inherits from `EquatableAtomVariable&lt;Vector2, Vector2Pair, Vector2Event, Vector2PairEvent, Vector2Vector2Function&gt;`. /// </summary> [EditorIcon("atom-icon-lush")] [CreateAssetMenu(menuName = "Uni...
39.945946
158
0.638024
[ "MIT" ]
AdamRamberg/unity-atoms
Packages/BaseAtoms/Runtime/Variables/Vector2Variable.cs
1,478
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawn : MonoBehaviour { public GameObject[] Enemy; public GameObject SpawnPosition; public GameObject TheCity; int index; // Start is called before the first frame update void Start() { ...
27.88
106
0.69297
[ "Apache-2.0" ]
Adityanand/Bullzye
Assets/Scripts/EnemySpawn.cs
699
C#
using System; using Elide.Scintilla.Internal; namespace Elide.Scintilla.ObjectModel { public enum SciKey { Add = Sci.SCK_ADD, Back = Sci.SCK_BACK, Delete = Sci.SCK_DELETE, Divide = Sci.SCK_DIVIDE, Down = Sci.SCK_DOWN, End = Sci.SCK_END, ...
16.244898
38
0.518844
[ "MIT" ]
vorov2/ela
Elide/Elide.Scintilla/ObjectModel/SciKey.cs
798
C#
using System; using Marten.Events.Projections; using Marten.Schema; using Npgsql; using Shouldly; using Xunit; namespace Marten.Testing.Schema { public class UniqueIndexTests { private class UserCreated { public Guid UserId { get; set; } public string Emai...
38.683333
161
0.509838
[ "MIT" ]
Maximusya/marten
src/Marten.Testing/Schema/UniqueIndexTests.cs
6,965
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. /*============================================================ ** ** ** ** ** ** Purpose: Default way to access St...
46.851795
189
0.5854
[ "MIT" ]
MSHOY/coreclr
src/System.Private.CoreLib/src/System/Resources/ResourceManager.cs
61,329
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 k8s.Models { using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using Sys...
40.716981
182
0.604032
[ "Apache-2.0" ]
AshenW0lf/csharp
src/KubernetesClient/generated/Models/V1beta1ClusterRoleList.cs
4,316
C#
namespace SIS.HTTP.Headers { public interface IHttpHeaderCollection { void AddHeader(HttpHeader header); bool ContainsHeader(string key); HttpHeader GetHeader(string key); } }
17.916667
42
0.665116
[ "Apache-2.0" ]
AJMitev/Simple-Information-Services
SIS/SIS.HTTP/Headers/IHttpHeaderCollection.cs
217
C#