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.Collections.Generic; using System.Linq; //Cleanup on reload. using System.Text.Json; using System.Threading.Tasks; using Pulumi; using Aws = Pulumi.Aws; class MyStack : Stack/* JamCRC info */ { public MyStack() {/* Create dateAppointed.server.model.test.js */ var dict = Output.Create(Init...
39.161074
140
0.431962
[ "Apache-2.0", "MIT" ]
CDMiXer/Woolloomooloo
pkg/codegen/internal/test/testdata/aws-eks.pp.cs
11,670
C#
// // Copyright 2012, 2019 Carbonfrost Systems, Inc. (http://carbonfrost.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 // // Un...
37.162162
95
0.637091
[ "Apache-2.0" ]
Carbonfrost/f-core
dotnet/src/Carbonfrost.Commons.Core/Runtime/DefaultActivationFactory.cs
1,375
C#
using System; using System.Collections.Generic; using System.Text; //https://blog.csdn.net/u011437229/article/details/53188837 namespace leetcodesln { public class LetterCasePermutation { public IList<string> LetterCasePermutationSln(string S) { List<string> resList = new List<str...
24.103448
85
0.461373
[ "MIT" ]
matwming/TrialOfTheGrasses
CSharp/leetcodesln/LetterCasePermutation.cs
1,482
C#
using System; namespace Aksl.BulkInsert.Configuration { public class BlockSettings { public static BlockSettings Default => new BlockSettings(); public BlockSettings() { BlockCount = Environment.ProcessorCount * 4;//块数 MinPerBlock = 20;//至少有一块8条 Max...
25
73
0.6032
[ "MIT" ]
aksl2019/Aksl-3.0
Aksl.BulkInsert/Aksl.BulkInsert/Configure/BlockSettings.cs
653
C#
// *********************************************************************** // Copyright (c) Charlie Poole and TestCentric GUI contributors. // Licensed under the MIT License. See LICENSE.txt in root directory. // *********************************************************************** using System; using TestCentric.En...
26.666667
74
0.576316
[ "MIT" ]
jurczakk/testcentric-gui
src/TestModel/model/TestServices.cs
1,520
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...
37.171429
372
0.600307
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/recoveryservicesbackupCrossregionRestoe/Generated/Models/OperationStatus.cs
3,903
C#
using System; using System.CodeDom; using System.Configuration; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; namespace Looksfamiliar.D2C2D.Dashboard { /// <summary> /// Inter...
26.807229
95
0.577079
[ "MIT" ]
bobfamiliar/d2c2d
dashboard/Dashboard/MainWindow.xaml.cs
2,227
C#
using System; namespace KissLogApp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
18.909091
70
0.668269
[ "MIT" ]
rafaelraah/KissLogApp
KissLogApp/KissLogApp/Models/ErrorViewModel.cs
208
C#
namespace DotNetInterceptTester.My_System.ComponentModel.UInt64Converter { public class GetStandardValues_System_ComponentModel_UInt64Converter { public static bool _GetStandardValues_System_ComponentModel_UInt64Converter( ) { //Parameters //ReturnType/Value System.Collections.ICollection returnVal_R...
23.553191
127
0.717254
[ "MIT" ]
SecurityInnovation/Holodeck
Test/Automation/DotNetInterceptTester/DotNetInterceptTester/System.ComponentModel.UInt64Converter.GetStandardValues().cs
1,107
C#
using Fame; using System; using FILE; using Dynamix; using FAMIX; using System.Collections.Generic; namespace FAMIX { [FamePackage("FAMIX")] [FameDescription("Trait")] public class Trait : FAMIX.Type { private List<FAMIX.TraitUsage> incomingTraitUsages = new List<FAMIX.TraitUsage>(); [FameProperty...
22.344828
86
0.683642
[ "Apache-2.0" ]
impetuosa/roslyn2famix
RoslynMonoFamix/Model/FAMIX/Trait.cs
648
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V25.Segment; using NHapi.Model.V25.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V25.Group { ///<summary> ///Represents the RDE_O11_INSURANCE Group. A Group is an ord...
31.238636
156
0.658421
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V25/Group/RDE_O11_INSURANCE.cs
2,749
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System; using System.Configuration; using System.Data.Common; using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; namespace Microsoft.Practices.EnterpriseLibrary.Data.Configura...
40.145833
141
0.667878
[ "Apache-2.0" ]
EnterpriseLibrary/data-access-application-block
source/Src/Data/Configuration/GenericDatabaseData.cs
1,927
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Advert.Database.Migrations { public partial class AddedBasicBannerTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( "Banners", t...
37.068182
74
0.507051
[ "Unlicense" ]
MPD97/APBD-Project
APBD-Advert-Project/src/Core/Advert_Database/Migrations/20200614134914_AddedBasicBannerTable.cs
1,633
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...
42.847271
521
0.531274
[ "BSD-3-Clause" ]
N3X15/VoxelSim
OpenSim/Data/SQLiteLegacy/SQLiteSimulationData.cs
97,349
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Core.Query.PlanCompiler { using System.Diagnostics.CodeAnalysis; // <summary> // A nested propertyref describes a nested property access - think...
37.333333
132
0.618214
[ "Apache-2.0" ]
CZEMacLeod/EntityFramework6
src/EntityFramework/Core/Query/PlanCompiler/NestedPropertyRef.cs
2,800
C#
using HK.Framework; using UnityEngine; using UnityEngine.Assertions; using UnityEngine.UI; namespace LGW { /// <summary> /// /// </summary> public sealed class CellController : MonoBehaviour { [SerializeField] private SpriteRenderer graphic; private Transform cachedTransf...
28.776316
101
0.460905
[ "MIT" ]
hiroki-kitahara/LGW
Assets/LGW/Scripts/CellController.cs
2,189
C#
using ApiGateway.Core.AuthenticationServices; using ApiGateway.Core.HttpServices; using ApiGateway.Core.Models.Enums; using ApiGateway.Core.Models.RequestModels; using ApiGateway.Core.Models.ResponseModels; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; usi...
42.7
188
0.712947
[ "MIT" ]
ASxCRO/Api-Gateway-.NET
ApiGateway/ApiGateway.Core/Services/AutoStoperUIServices/AutoStoperService.cs
2,991
C#
namespace OpenGLBindings { /// <summary> /// Not used directly. /// </summary> public enum ColorMaterialFace { /// <summary> /// Original was GL_FRONT = 0x0404 /// </summary> Front = 1028, /// <summary> /// Original was GL_BACK = 0x0405 /// </s...
22.904762
51
0.492723
[ "MIT" ]
DeKaDeNcE/WoWDatabaseEditor
Rendering/OpenGLBindings/ColorMaterialFace.cs
481
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TransformModifier : MonoBehaviour { public void EjeX(int x) { transform.position = new Vector3(x, transform.position.y, transform.position.z); } public void EjeY(int y) { transform.position = new Vector3(transform.posi...
39.333333
112
0.75
[ "MIT" ]
HexStar27/cse-investigaciones
SQL game/Assets/Scripts/Otros/TransformModifier.cs
474
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Threading.Tasks; namespace AdvertismentPlatform.Handlers { public class EmailHandler : IEmailSender { private IConfigur...
30.150943
90
0.613267
[ "Apache-2.0" ]
GikuMironica/AdvertismentPlatform
Handlers/EmailHandler.cs
1,600
C#
#region License // Copyright (c) 2007 James Newton-King // // 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,...
32.164835
93
0.607106
[ "MIT" ]
stimulsoft/Stimulsoft.Controls.Net
Stimulsoft.Base/Json/IO/Utilities/ThreadSafeStore.cs
2,929
C#
/* * My API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; namespace ApiClientProject.Client { /// <summary> /// API Exception...
31.065574
104
0.580475
[ "MIT" ]
gunmaden/TestTask
RestService/ApiClientProject/Client/ApiException.cs
1,895
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileScript : MonoBehaviour { //public Collider endTrigger; public GameObject ramp; public List<Transform> rampSpawnPoints; //Side Objects // Start is called before the first frame update void ...
19.888889
77
0.545092
[ "MIT" ]
DibasDebnath/CarBooster
Assets/Scripts/TileScript.cs
1,255
C#
using System; using Microsoft.Extensions.DependencyInjection; using Polly; using Volo.Abp.Http.Client; using Volo.Abp.Http.Client.IdentityModel; using Volo.Abp.Modularity; namespace BookStore.HttpApi.Client.ConsoleTestApp { [DependsOn( typeof(BookStoreHttpApiClientModule), typeof(AbpHttpClientIden...
31.933333
118
0.640919
[ "MIT" ]
344089386/abp-samples
DomainTenantResolver/MVC/test/BookStore.HttpApi.Client.ConsoleTestApp/BookStoreConsoleApiClientModule.cs
960
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.458333
172
0.601661
[ "MIT" ]
masher1/CSE483_Code
ConsoleApp/Week 9/Week 9/Properties/Resources.Designer.cs
2,771
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...
25.511628
81
0.605287
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Media/V20180330Preview/Outputs/TrackPropertyConditionResponse.cs
1,097
C#
namespace Merchello.Web.WebApi { using System; using System.Linq; using System.Web.Http; using Core; using Core.Configuration; using Core.Services; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi; /// <summary> /// Schedu...
34.342857
142
0.638519
[ "MIT" ]
benjaminhowarth1/Merchello
src/Merchello.Web/WebApi/ScheduledTasksController.cs
2,406
C#
namespace Course_project.Entity { using System; using MongoDB.Bson; public class User { public User(string login, string password, string firstName, string lastName, string timeZone) { this.Login = login; this.Password = password; this.FirstName = firstName; this.LastName = lastName; this.TimeZ...
19.566667
96
0.684838
[ "MIT" ]
VerkhovtsovPavel/BSUIR_Labs
Course projects/Course_project_taskManager/source/Entity/DB/User.cs
589
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 08.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
26.284672
144
0.530964
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/NotEqual/Complete/NullableSByte/NullableSingle/TestSet_504__param__03__NV.cs
3,603
C#
using LagoVista.Core.Attributes; using LagoVista.Core.Interfaces; using LagoVista.Core.Models; using LagoVista.Core.Validation; using LagoVista.UserAdmin.Models.Resources; using System; using System.Collections.Generic; using System.Text; namespace LagoVista.UserAdmin.Models.Orgs { [EntityDescription(Domains.Orga...
43.836066
178
0.708676
[ "MIT" ]
LagoVista/UserAdmin
src/LagoVista.UserAdmin.Models/Orgs/HolidaySet.cs
2,676
C#
/* _BEGIN_TEMPLATE_ { "id": "DRG_207", "name": [ "深渊召唤者", "Abyssal Summoner" ], "text": [ "<b>战吼:</b>召唤一个属性值等同于你的手牌数量并具有<b>嘲讽</b>的恶魔。", "[x]<b>Battlecry:</b> Summon a\nDemon with <b>Taunt</b> and stats\nequal to your hand size." ], "cardClass": "WARLOCK", "type": "MINION", "cost": 6, "...
23.172414
96
0.59375
[ "MIT" ]
chi-rei-den/Silverfish
cards/DRAGONS/DRG/Sim_DRG_207.cs
804
C#
#region Using directives using System; using System.Reflection; using System.Runtime.InteropServices; #endregion // 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: Asse...
32.4375
78
0.757225
[ "Apache-2.0" ]
pWnH/CarsonAgainstHumanity
DummyLib/CarsonDummy/Testing/Properties/AssemblyInfo.cs
1,040
C#
public abstract class TerrainRule { private float _terrainHeight; protected TerrainRule(float terrainHeight) { _terrainHeight = terrainHeight; } protected int CountTerrainType<T>(Terrain[] neighbors) where T : TerrainRule { int count = 0; foreach (Terrain terrain in ne...
22.814815
80
0.642857
[ "MIT" ]
geldoronie/the-azure-lux-game-jam-2021
Assets/Scripts/Terrain/TerrainRule.cs
616
C#
using System; using System.Collections.Generic; using NUnit.Framework; namespace OrigoDB.Core.Test { [Serializable] public class MyModel<T> : Model { internal List<T> Items = new List<T>(); public void Add(T item) { Items.Add(item); } public T ItemAt(i...
22.098039
69
0.525288
[ "MIT" ]
DevrexLabs/OrigoDB
src/OrigoDB.Core.UnitTests/GenericModelTest.cs
1,127
C#
using Demo.SignalR.Server.DTOs; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; using System; using System.Threading.Tasks; namespace Demo.SignalR.Server.Hubs { [Authorize] public class ChatHub : Hub<IChatHub> { private readonly ILo...
33.68
166
0.63361
[ "MIT" ]
NelsonBN/demo-signalr-authentication
src/Demo.SignalR.Server/Hubs/ChatHub.cs
1,686
C#
using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; namespace Abp.Module.Inventory.Controllers { public class HomeController : AbpController { public ActionResult Index() { return Redirect("/swagger"); } } }
19.214286
47
0.639405
[ "MIT" ]
AbpApp/Inventory
host/Abp.Module.Inventory.HttpApi.Host/Controllers/HomeController.cs
271
C#
using System; using System.Text.Json.Serialization; namespace open_court.Models { public class User { // public int Id { get; set; } // public string UserName { get; set; } // public Dictionary<int, string> Favorites { get; set; } // public Dictionary<int, Dictionary<int, string>> Interactions { ge...
25.3125
82
0.637037
[ "MIT" ]
Tien96ng/open-court
Models/User.cs
405
C#
/************************************************************************** * * * Website: https://github.com/florinleon/ActressMas * * Description: Zeuthen strategy using the ActressMas framework * * Copyright: ...
37.844595
141
0.514372
[ "Apache-2.0" ]
dimven/ActressMas
ActressMas Examples/Concurrent Examples/C07 Zeuthen Strategy/BargainingAgent.cs
5,603
C#
namespace MacroMan { /// <summary> /// Source: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes /// </summary> public enum VirtualKey { /// <summary> /// Left mouse button /// </summary> LBUTTON = 0x01, /// <summary> /// Right...
24.053929
256
0.409199
[ "MIT" ]
oxters168/MacroMan
BlenderGISMacro/WindowsValues/VirtualKey.cs
15,613
C#
using CsvHelper; using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace OpenCsvByExcel { class Program { //App.config internal static Properties.Settings Settings { get; } = Properties.Settings.Default; static void Main(string[] args) ...
27.06383
92
0.420597
[ "MIT" ]
mitaken/OpenCsvByExcel
OpenCsvByExcel/Program.cs
1,274
C#
/* // // INTEL CORPORATION PROPRIETARY INFORMATION // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Intel Corporation and may not be copied // or disclosed except in accordance with the terms of that agreement. // Copyright(c) 200...
59.134819
260
0.809476
[ "MIT" ]
ctddjyds/CSharp-ParallelProgramming
CH11PerformanceLibrary/Listing11_4/ippcv.cs
156,589
C#
using SQLite; using System; using System.Collections.Generic; using System.Text; namespace Hangfire.Storage.SQLite.Entities { [Table(DefaultValues.SetTblName)] public class Set { [PrimaryKey, AutoIncrement] public int Id { get; set; } [MaxLength(DefaultValues.MaxLengthKeyColumn)] ...
27.392857
70
0.636245
[ "MIT" ]
Yaevh/Hangfire.Storage.SQLite
src/main/Hangfire.Storage.SQLite/Entities/Set.cs
769
C#
namespace CharlieBackend.AdminPanel.Models.Calendar { public class CalendarThemeViewModel { public long Id { get; set; } public string Name { get; set; } } }
18.8
52
0.638298
[ "MIT" ]
ITA-Dnipro/WhatBackend
CharlieBackend.AdminPanel/Models/Calendar/CalendarThemeViewModel.cs
190
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.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnaly...
35.473684
136
0.801187
[ "MIT" ]
333fred/roslyn
src/Features/Core/Portable/InlineHints/IInlineHintsService.cs
676
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace CarsIsland.WebAPI { public class Program { ...
24.52
76
0.694943
[ "Apache-2.0" ]
vijayraavi/Pluralsight-1
CarsIsland/cars-island-web-api/CarsIsland/CarsIsland.WebAPI/Program.cs
615
C#
using OpenTK.Graphics.OpenGL; using ReOsuStoryboardPlayer; using ReOsuStoryboardPlayer.Core.Utils; using ReOsuStoryboardPlayer.Graphics.PostProcesses; using ReOsuStoryboardPlayer.Graphics.PostProcesses.Shaders; using ReOsuStoryboardPlayer.Kernel; using ReOsuStoryboardPlayer.OutputEncoding.Kernel; using ReOsuStoryboard...
34.620253
126
0.695795
[ "MIT" ]
MikiraSora/OsuStoryBoardPlayer
ReOsuStoryboardPlayer/OutputEncoding/Graphics/PostProcess/CaptureRenderPostProcess.cs
2,737
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; namespace IO.Ably.Types { /// <summary> /// A message sent and received over the Realtime protocol. /// A ProtocolMessage always relates to a single channel on...
31.276094
118
0.515448
[ "Apache-2.0" ]
dpflucas/ably-dotnet
src/IO.Ably.Shared/Types/ProtocolMessage.cs
9,291
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...
35.910448
172
0.684123
[ "Apache-2.0" ]
orinem/aws-sdk-net
sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/GetBucketPolicyStatusRequestMarshaller.cs
2,406
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PhilipDaubmeier.GraphIoT.App.Data...
38.623596
119
0.456262
[ "MIT" ]
philipdaubmeier/GraphIoT
src/GraphIoT.App/Migrations/20200504205036_Sonnen_Charger_v1.Designer.cs
34,377
C#
using System; using System.Collections.Generic; namespace OpenMagic.Collections.Generic { /// <summary> /// Represents a cache for <typeparamref name="TKey" />. /// </summary> /// <typeparam name="TKey">The type of the keys in the cache.</typeparam> /// <typeparam name="TValue">The type of the...
34.780488
127
0.551192
[ "MIT" ]
OpenMagic/OpenMagic
source/OpenMagic/Collections/Generic/Cache`1.cs
1,428
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace BTM.Models { public class User// : IdentityUser<int> { [Key] public int Id { get; set; } ...
30.55814
59
0.612633
[ "MIT" ]
TheDoomKing/BTM
BTM.Models/User.cs
1,316
C#
/** * Copyright 2017 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
31.742308
151
0.512783
[ "Apache-2.0" ]
Revmaker/dialogflow-dotnet-client
ApiAiSDK/Util/VoiceActivityDetector.cs
8,255
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace King_of_Thieves.Map { class ComponentFactory : Gears.Playable.UnitTypeFactory { public ComponentFactory(King_of_Thieves.Actors.CComponent[] components) { base.Register(components); ...
21.382353
79
0.568088
[ "MIT" ]
MGZero/king-of-thieves-mono
King of Thieves/Map/ComponentFactory.cs
729
C#
using BulletSharp.Math; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; namespace BulletSharp { public class ConvexHullShape : PolyhedralConvexAabbCachingShape { private Vector3Array _points; private Vector3Array _unscaledPoints; ...
39.699422
228
0.639051
[ "Apache-2.0" ]
xtom0369/BulletPhysicsForUnity
Unity/Assets/Plugins/BulletUnity/BulletSharp/Collision/ConvexHullShape.cs
6,868
C#
using System; using Bunit; using FluentAssertions; using LinkDotNet.Blog.Web.Shared.Admin.Dashboard; using Xunit; namespace LinkDotNet.Blog.UnitTests.Web.Shared.Admin.Dashboard; public class DateRangeSelectorTests : TestContext { [Fact] public void ShouldSetBeginDateWhenSet() { Filter filter = nu...
27.278689
90
0.588942
[ "MIT" ]
linkdotnet/Blog
tests/LinkDotNet.Blog.UnitTests/Web/Shared/Admin/Dashboard/DateRangeSelectorTests.cs
1,666
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using VkBot.Core.Commands; using VkBot.Core.Structures; using VkNet.Enums.SafetyEnums; using VkNet.Model.Keyboard; namespace VkBot.Keyboards { public class KeyboardBackButton : MessageKeyboardButton { publ...
25.709677
59
0.598494
[ "MIT" ]
ufa3110/vkchatbotnew
VkBot/Keyboards/KeyboardBackButton.cs
799
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BuildXL.Cache.Monitor.App.Scheduling; using BuildXL.Cache.Monitor.Library.Rules; using Kusto.Data.Common; using static BuildXL.Cac...
44.664921
240
0.540968
[ "MIT" ]
BearerPipelineTest/BuildXL
Public/Src/Cache/Monitor/Library/Rules/Kusto/OperationPerformanceOutliersRule.cs
8,533
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Telegraphy.IO.Exceptions; using Telegraphy.Net; namespace Telegraphy.IO { public class RecieveFileInfo : FileActionBase, IActor { private string folderName; ...
26.59375
85
0.661575
[ "MIT" ]
Mossharbor/Telegraphy
Telegraphy.IO/Actors/RecieveFileInfo.cs
853
C#
using namasdev.Templates; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace namasdev.Net.UnitTests._TestUtils { public class GeneradorDeContenidoSinLogica : IGeneradorDeContenido { public string GenerarContenido<TMo...
25.888889
114
0.703863
[ "MIT" ]
MatiasALopez/namasdev
Source/namasdev.Net.UnitTests/_TestUtils/GeneradorDeContenidoSinLogica.cs
468
C#
namespace foodtruacker.Authentication.Exceptions { class InvalidAuthenticationException : AuthenticationException { public InvalidAuthenticationException() : base("Wrong Username or Password.") { } } }
27.875
89
0.744395
[ "MIT" ]
hiiammalte/foodtruacker
foodtruacker.Framework/Authentication/Exceptions/InvalidAuthenticationException.cs
225
C#
/* * Copyright (c) 2016, Furore (info@furore.com) and contributors * Copyright (c) 2021, Incendi (info@incendi.no) and contributors * See the file CONTRIBUTORS for details. * * This file is licensed under the BSD 3-Clause license * available at https://raw.githubusercontent.com/FirelyTeam/spark/stu3/master/LIC...
29.44
91
0.706522
[ "BSD-3-Clause" ]
jjrdk/spark
src/Spark.Engine/Service/FhirServiceExtensions/IResourceStorageService.cs
738
C#
// This software is open source software available under the BSD-3 license. // // Copyright (c) 2018, Triad National Security, LLC // All rights reserved. // // Copyright 2018. Triad National Security, LLC. This software was produced under U.S. Government contract 89233218CNA000001 for Los Alamos National Laboratory ...
40.21608
773
0.521867
[ "MIT", "Unlicense", "BSD-3-Clause" ]
lanl/Omniscient
Omniscient/OmniscientCore.cs
16,008
C#
using System.Collections.Generic; using System.Threading.Tasks; using Dapper; using Microsoft.Extensions.Configuration; using Monitoring.Business.Abstract.Repository; using Monitoring.Business.Model; namespace Monitoring.Data.Repository { public class MeasurementRepository : IMeasurementRepository { pr...
42.302632
130
0.613686
[ "MIT" ]
Saifanl/home-temperature-monitoring
src/Monitoring.Web/Monitoring.Data/Repository/MeasurementRepository.cs
3,215
C#
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; namespace AiCodo.Data { public static class DbProviderFactories { static Dictionary<string, IDbProvider> _Items = new Dictionary<string, IDbProvider>(); static DbProvid...
27.072727
80
0.558093
[ "MIT" ]
singbaX/aicodo
src/AiCodo.Data/Provider/DbProviderFactories.cs
1,491
C#
using CppMemoryVisualizer.ViewModels; using System.Diagnostics; using System.Linq; namespace CppMemoryVisualizer.Commands { class MemorySegmentPointerValueClickCommand : MemorySegmentClickCommand { public MemorySegmentPointerValueClickCommand(MainViewModel mainViewModel) : base(mainViewMod...
32.03125
89
0.582439
[ "MIT" ]
jubin-park/CppMemoryVisualizer
Commands/MemorySegmentPointerValueClickCommand.cs
1,027
C#
using System; namespace LoRDeckCodes { /* * Derived from https://github.com/google/google-authenticator-android/blob/master/AuthenticatorApp/src/main/java/com/google/android/apps/authenticator/Base32String.java * * Copyright (C) 2016 BravoTango86 * * Licensed under the Apache License, Version 2.0 (the "Lice...
34.679012
169
0.487896
[ "Apache-2.0" ]
Bamiji/LoRDeckCodes
LoRDeckCodes/Base32.cs
5,620
C#
/** * Copyright 2017-2020 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * 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/...
30.516667
102
0.614965
[ "ECL-2.0", "Apache-2.0" ]
brntbeer/plexus-interop
desktop/src/Plexus.Interop.Protocol.Common.Contracts/ErrorHeader.cs
1,833
C#
using System; using Source.DataServices.EFCore.DataContext; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace Source.EFCore.Setup { public class EntityFrameworkCoreInitializer { public static EntityFrameworkCoreIniti...
38.311111
119
0.707077
[ "MIT" ]
JDavidBC/DDDSample
Infrastructure.EFCore/Source.EFCore.Setup/EntityFrameworkCoreInitializer.cs
1,726
C#
using Autodesk.AdvanceSteel.CADAccess; using Autodesk.AdvanceSteel.ConstructionTypes; using Autodesk.AdvanceSteel.Geometry; using Autodesk.AdvanceSteel.Modeler; using Autodesk.AdvanceSteel.Modelling; using Autodesk.DesignScript.Runtime; using System; using System.Collections.Generic; using System.Linq; using SteelServ...
42.11094
211
0.602452
[ "Apache-2.0" ]
DynamoDS/Dynamo-Advance-Steel
src/AdvanceSteelNodes/Util/Beam.cs
27,334
C#
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved. using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory(ActionCategory.Input)] [Tooltip("Gets the pressed state of a Key.")] public class GetKey : FsmStateAction { [RequiredField] [Tooltip("The key to test.")] public KeyC...
18.096154
84
0.655685
[ "MIT" ]
517752548/UnityFramework
GameFrameWork/ThirdParty/PlayMaker/Actions/Input/GetKey.cs
941
C#
using System; namespace Application.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.5
70
0.666667
[ "MIT" ]
OmarThinks/.NET-MVC-Project
src/Models/ErrorViewModel.cs
210
C#
// *********************************************************************** // Copyright (c) 2008-2014 Charlie Poole, Rob Prouse // // 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 r...
45.417178
111
0.637985
[ "MIT" ]
Antash/nun
src/NUnitFramework/framework/Internal/Builders/DefaultTestCaseBuilder.cs
7,403
C#
#nullable enable using System; using Robust.Shared.Serialization; namespace Content.Shared.GameObjects.Components.Trigger { [NetSerializable] [Serializable] public enum TriggerVisuals { VisualState, } [NetSerializable] [Serializable] public enum TriggerVisualState { ...
16.181818
55
0.662921
[ "MIT" ]
BingoJohnson/space-station-14
Content.Shared/GameObjects/Components/Trigger/TriggerVisuals.cs
358
C#
/* https://www.decentlab.com/support */ using System; using System.IO; using System.Collections.Generic; public class DecentlabDecoder { private delegate double conversion(double[] x); public const int PROTOCOL_VERSION = 2; private class Sensor { internal int length { get; set; } internal List<Senso...
26.5
248
0.596286
[ "MIT" ]
Realscrat/decentlab-decoders
DL-10HS/DL-10HS.cs
3,345
C#
using System; namespace Neo.SmartContract.Native { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false)] internal class ContractMethodAttribute : Attribute { public string Name { get; set; } public long Price { get; } public CallFlags RequiredC...
28.157895
96
0.665421
[ "MIT" ]
Qiao-Jin/neo
src/neo/SmartContract/Native/ContractMethodAttribute.cs
535
C#
/************************************************************************************* Extended WPF Toolkit Copyright (C) 2007-2013 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license For ...
31.135802
169
0.645519
[ "MIT" ]
DavosLi0bnip/daranguizu
Others/Xceed.Wpf/Xceed.Wpf.DataGrid/FilterCriteria/LessThanFilterCriterion.cs
2,524
C#
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
35.91
150
0.741576
[ "MIT" ]
nguyenthiennam1992/Decompiler
ILSpy-master/ICSharpCode.Decompiler.Tests/TestCases/Pretty/PInvoke.cs
3,593
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using GitHub.Models; using GitHub.VisualStudio; using Microsoft.Win32; using System.IO; namespace GitHub.TeamFoundation { internal class Registr...
44.074766
167
0.53011
[ "MIT" ]
karimkkanji/VisualStudio
src/GitHub.TeamFoundation.14/RegistryHelper.cs
4,718
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
46.223529
117
0.614787
[ "Apache-2.0" ]
OctopusDeploy/azure-sdk-tools
WindowsAzurePowershell/src/Management.Store.Test/UnitTests/Cmdlet/GetAzureStoreAddOnTest.cs
7,860
C#
using Heimdall.Core.Commands; using Heimdall.Mongo.Infrastructure; using LibCore.CQRS.Validation; using System; using System.Linq; using System.Threading.Tasks; namespace Heimdall.Mongo.Commands.Validation { public class AddEndpointValidator : Validator<AddEndpoint> { private IDbContext _db; ...
36.538462
156
0.625965
[ "MIT" ]
mizrael/heimdall
Heimdall.Mongo/Commands/Validation/AddEndpointValidator.cs
1,427
C#
using System; using System.IO; using System.Collections; using ILRuntime.Reflection; #if FEAT_IKVM using Type = IKVM.Reflection.Type; using IKVM.Reflection; #else using System.Reflection; #endif namespace ProtoBuf.Meta { /// <summary> /// Provides protobuf serialization support for a number of types /// ...
45.799074
233
0.570542
[ "MIT" ]
306739889/guessGame
Unity/Assets/ThirdParty/protobuf-net/Meta/TypeModel.cs
79,097
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("AS...
38.189189
84
0.746638
[ "MIT" ]
MThornell256/SimpleAStar
AStar/Properties/AssemblyInfo.cs
1,416
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> //--...
42.395604
219
0.606532
[ "Apache-2.0" ]
Xorsiphus/TaskManagement
TaskManagement/Resources/Controllers.TaskController.en.Designer.cs
3,860
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace BaseModels.Migrations { public partial class UpdateItemIconToNullable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn<string>( name: "IconURL", ...
28.84375
71
0.516793
[ "Apache-2.0" ]
DeKuczma/GW2-Trader
backend/Db_Models/Migrations/20210106131333_UpdateItemIconToNullable.cs
925
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Discord { /// <summary> /// A class used to build Message commands. /// </summary> public class MessageCommandBuilder { ///...
28.966292
101
0.531808
[ "MIT" ]
envyvox/Discord.Net-Labs
src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs
2,578
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...
31.395349
145
0.637037
[ "ECL-2.0", "Apache-2.0" ]
AdminTurnedDevOps/pulumi-azure
sdk/dotnet/ContainerService/Outputs/KubernetesClusterIdentity.cs
1,350
C#
using System; namespace HttpServer.Controllers { /// <summary> /// Methods marked with BeforeFilter will be invoked before each request. /// </summary> /// <remarks> /// BeforeFilters should take no arguments and return false /// if controller method should not be invoked. /// </remarks> ...
32.8
137
0.58885
[ "BSD-3-Clause" ]
Ana-Green/halcyon-1
ThirdParty/HttpServer/HttpServer/Controllers/BeforeFilter.cs
2,296
C#
using Sandbox; [Library( "heist_pistol", Title = "Pistol" )] partial class Pistol : BaseHeistWeapon { public override string ViewModelPath => "weapons/rust_pistol/v_rust_pistol.vmdl"; public override float PrimaryRate => 15.0f; public override float SecondaryRate => 1.0f; public override float ReloadTime => 3....
18.745763
106
0.664557
[ "MIT" ]
yoranmandema/sbox-heist
code/weapons/Pistol.cs
1,108
C#
using System.Collections.Generic; using System.Linq; using CppSharp.AST; namespace CppSharp.Passes { /// <summary> /// This pass generates internal classes that implement abstract classes. /// When the return type of a function is abstract, these internal /// classes provide since the real type cannot...
40.034483
104
0.545937
[ "MIT" ]
doc22940/cppsharp
src/Generator/Passes/GenerateAbstractImplementationsPass.cs
6,968
C#
namespace School.Domain.Students { public class StudentBuilder { private Student _student; public StudentBuilder WithCpfNameEmailPasswordHash(string cpf, string name, string email, string passwordHash) { _student = new Student(new Cpf(cpf), name, new Email(email), passwordHa...
22.518519
118
0.583882
[ "MIT" ]
flaviogf/Cursos
alura/java_e_clean_architecture/src/School.Domain/Students/StudentBuilder.cs
608
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Windows.Forms.DataVisualization.Charting; namespace TestSetControlLibrary { public partial class TimeSeriesChartForm...
26.733333
91
0.605154
[ "ECL-2.0", "Apache-2.0" ]
meaw/dnp3
windows/TestSetControlLibrary/TimeSeriesChartForm.cs
1,205
C#
using Couchbase.Search.Sort; using Newtonsoft.Json; using NUnit.Framework; namespace Couchbase.UnitTests.Search { [TestFixture] public class IdSearchSortTests { [Test] public void Outputs_Valid_Json() { var sort = new IdSearchSort(true); var result = sort.Ex...
24
65
0.540625
[ "Apache-2.0" ]
4thOffice/couchbase-net-client
Src/Couchbase.UnitTests/Search/IdSearchSortTests.cs
962
C#
using AnnoSavegameViewer.Serialization.Core; using System.Collections.Generic; namespace AnnoSavegameViewer.Structures.Savegame.Generated { public class BudgetValue { } }
19.666667
60
0.819209
[ "MIT" ]
brumiros/AnnoSavegameViewer
AnnoSavegameViewer/Structures/Savegame/Generated/Empty/BudgetValue.cs
177
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.Diagnostics; using Microsoft.CSharp.RuntimeBinder.Syntax; namespace Microsoft.CSharp.RuntimeBinder.Sem...
37.131868
118
0.488014
[ "MIT" ]
Acidburn0zzz/corefx
src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/UnaOpSig.cs
3,379
C#
namespace ImproHound { public static class DefaultTieringConstants { public const int DefaultTierNumber = 1; public static WellKnownADObject[] WellKnownADObjects = { // Well-known Tier 0 SIDs new WellKnownADObject("S-1-5-17", "IUSR", "0"), new WellKnownADOb...
66.333333
105
0.582812
[ "Apache-2.0" ]
improsec/ImproHound
src/classes/static/DefaultTieringConstants.cs
9,753
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
44.735294
156
0.627548
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/ServicePrincipalCreatedObjectsCollectionReferencesRequest.cs
3,042
C#
using System.Threading; using PostgresTraining.V1.UseCase; using Bogus; using FluentAssertions; using Microsoft.Extensions.HealthChecks; using Moq; using NUnit.Framework; using Xunit; namespace PostgresTraining.Tests.V1.UseCase { public class DbHealthCheckUseCaseTests { private Mock<IHealthCheckServic...
30.666667
120
0.680707
[ "MIT" ]
LBHackney-IT/postgres-training
PostgresTraining.Tests/V1/UseCase/DbHealthCheckUseCaseTests.cs
1,472
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
32.724138
81
0.638567
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Ocr/V20181119/Models/VehicleRegCertOCRRequest.cs
2,274
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
32.030612
83
0.585218
[ "Apache-2.0" ]
tencentcloudapi-test/tencentcloud-sdk-dotnet
TencentCloud/Cme/V20191029/Models/StorageNewFileCreatedEvent.cs
3,461
C#
using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.Events.Bus; using Abp.Events.Bus.Entities; using Abp.NHibernate.Tests.Entities; using Shouldly; using System.Linq; using Xunit; namespace Abp.NHibernate.Tests { public class Basic_Repository_Tests : NHibernateTestBase { private readonly IR...
33.874016
121
0.573919
[ "MIT" ]
380086154/aspnetboilerplate
test/Abp.NHibernate.Tests/Basic_Repository_Tests.cs
4,304
C#