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 Solnet.Rpc.Utilities;
using Solnet.Wallet;
using Solnet.Wallet.Utilities;
using System;
using System.Collections.Generic;
using System.IO;
namespace Solnet.Rpc.Models
{
/// <summary>
/// The message header.
/// </summary>
public class MessageHeader
{
#region Layout
... | 42.253061 | 121 | 0.575734 | [
"MIT"
] | IgorBelinsky/Solnet | src/Solnet.Rpc/Models/Message.cs | 10,352 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | 46.235849 | 186 | 0.638033 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Models/Generated/SecureScore.cs | 4,901 | C# |
namespace Owin.Scim.Model.Groups
{
using System;
using Configuration;
public class MemberDefinition : ScimTypeDefinitionBuilder<Member>
{
public MemberDefinition(ScimServerConfiguration serverConfiguration)
: base(serverConfiguration)
{
For(p => p.Value)
... | 45.896552 | 150 | 0.649887 | [
"MIT"
] | Mysonemo/Owin.Scim | source/Owin.Scim/Model/Groups/MemberDefinition.cs | 1,331 | C# |
using BuildingGraph.Client.Introspection;
public class ClientMapping
{
public ClientMapping(string mappingJSON)
{
var clienMapping = new BuildingGraphMapping(mappingJSON);
}
}
| 15.461538 | 65 | 0.726368 | [
"MIT"
] | menome/BuildingGraph-Client-Revit | BuildingGraph.Integration.Dynamo/ClientMapping.cs | 203 | C# |
using UnityEngine;
using System.Collections;
public class ManagesAI : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| 12.875 | 40 | 0.679612 | [
"MIT"
] | skoam/fumiko-ai | ManagesAI.cs | 208 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Host... | 51.616822 | 204 | 0.595419 | [
"MIT"
] | amr-elsehemy/BotBuilder-Samples | samples/csharp_dotnetcore/21.luis-with-appinsights/Startup.cs | 11,048 | C# |
namespace MARC.HI.EHRS.CR.Core.Configuration
{
partial class ucServiceSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | 47.660099 | 165 | 0.595762 | [
"Apache-2.0"
] | MohawkMEDIC/openiz | OpenIZ.Core/Configuration/UI/ucServiceSettings.designer.cs | 9,677 | C# |
using Innovator.Client;
using System;
namespace Innovator.Client.Model
{
///<summary>Class for the item type fr_RepType_Characteristic </summary>
[ArasName("fr_RepType_Characteristic")]
public class fr_RepType_Characteristic : Item, INullRelationship<fr_RepresentationType>, IRelationship<xPropertyDefinition>
{... | 40.333333 | 199 | 0.741965 | [
"MIT"
] | GCAE/Innovator.Client | src/Innovator.Client/Aml/Model/fr_RepType_Characteristic.cs | 1,089 | C# |
#nullable enable
using System;
using System.Collections.Generic;
namespace DotVVM.Framework.Hosting
{
public class CustomResponsePropertiesManager
{
private readonly Dictionary<string, object> properties = new Dictionary<string, object>();
public bool PropertiesSerialized { get; internal set; ... | 33.333333 | 150 | 0.637778 | [
"Apache-2.0"
] | AMBULATUR/dotvvm | src/DotVVM.Framework/Hosting/CustomResponsePropertiesManager.cs | 902 | C# |
//
// DefaultAuthenticationModuleCas.cs
// - CAS unit tests for System.Web.Security.DefaultAuthenticationModule
//
// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy o... | 31.336735 | 98 | 0.755454 | [
"Apache-2.0"
] | 121468615/mono | mcs/class/System.Web/Test/System.Web.Security/DefaultAuthenticationModuleCas.cs | 3,071 | C# |
using Earth.Core;
namespace Earth.Renderer
{
public abstract class VertexArray : Disposable
{
public virtual VertexBufferAttributes Attributes
{
get { return null; }
}
public virtual IndexBuffer IndexBuffer
{
get { return null; }
set... | 18.714286 | 56 | 0.547074 | [
"MIT"
] | Shakenbake158/Earth | Assets/Scripts/Renderer/VertexArray/VertexArray.cs | 395 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace Hinode.Editors
{
/// <summary>
///
/// </summary>
public abstract class GameTheoryEditor<TGame, TNode> : ManualEditorBas... | 36.5 | 153 | 0.587863 | [
"Apache-2.0"
] | tositeru/hinode | Editor/AI/GameTheoryEditor.cs | 6,791 | C# |
using Alabo.Domains.Entities;
using Alabo.Extensions;
using Alabo.Framework.Core.WebApis.Filter;
using Microsoft.AspNetCore.Mvc;
using System;
using System.ComponentModel.DataAnnotations;
using ZKCloud.Open.ApiBase.Models;
namespace Alabo.Framework.Core.WebApis.Controller {
public abstract class ApiDeleteControl... | 33.007407 | 107 | 0.56351 | [
"MIT"
] | tongxin3267/alabo | src/01.framework/02-Alabo.Framework.Core/WebApis/Controller/ApiDeleteController.cs | 4,964 | C# |
using System;
using NtfsSharp.Contracts;
namespace NtfsSharp.Drivers
{
public abstract class BaseDiskDriver : IDiskDriver, IDisposable
{
/// <summary>
/// Guessed sectors per cluster
/// </summary>
/// <remarks>Since we don't know the size of a cluster yet (cause that info is i... | 39.191781 | 184 | 0.601538 | [
"Unlicense",
"MIT"
] | little-apps/NtfsSharp | NtfsSharp.Drivers/BaseDiskDriver.cs | 2,863 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Platform.MacOS
{
using Graphics;
class MacOSGraphicsMode : IGraphicsMode
{
#region IGraphicsMode Members
public GraphicsMode SelectGraphicsMode(ColorFormat color, int depth, int stencil, int samples, ColorFo... | 30.5 | 147 | 0.627422 | [
"MIT"
] | PaintLab/PixelFarm.External | src/OpenTK.PlatformMini/Platform/MacOS/MacOSGraphicsMode.cs | 671 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Common
{
public class OrganizationSummary : Organization
{
public OrganizationSummary()
{
}
public int QARolesCount { get; set; }
public List<string> Subjects { get; set; ... | 32.538462 | 102 | 0.721828 | [
"Apache-2.0"
] | CredentialEngine/CredentialFinderEditor | Models/Common/OrganizationSummary.cs | 1,271 | C# |
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
// Unless requi... | 56.074074 | 136 | 0.698811 | [
"Apache-2.0"
] | NakedObjectsGroup/NakedObjectsFramework | Programming Model/NakedObjects/NakedObjects.Types/Async/IAsyncService.cs | 1,516 | C# |
/*****************************************************************************
Copyright 2018 The TensorFlow.NET Authors. 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 Licen... | 33.661017 | 94 | 0.509063 | [
"Apache-2.0"
] | Aangbaeck/TensorFlow.NET | src/TensorFlowNET.Core/Operations/string_ops.cs | 1,988 | C# |
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
namespace Domain.Data
{
public partial class ExampleContext : DbContext
{
public virtual DbSet<Country> Countries { get; set; }
public virtual DbSet<User> Users { get; set; }
public virtual DbSet<UserLog> UserLogs { get; set; ... | 25 | 71 | 0.627826 | [
"Apache-2.0"
] | AlexScigalszky/angular-dotnet-code | backend/src/Domain/Data/ExampleContext.cs | 577 | C# |
#region Copyright
/*Copyright (C) 2015 Wosad 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/licenses/LICENSE-2.0
Unless required by applicable law or a... | 25.416667 | 75 | 0.743169 | [
"Apache-2.0"
] | Wosad/Wosad.Design | Wosad.Steel/AISC/Interfaces/IDesignElement.cs | 915 | C# |
namespace NewsAPI.Dtos
{
public class CreateNewsDto
{
public string Title { get; set; }
public string Description { get; set; }
}
} | 19.875 | 47 | 0.603774 | [
"MIT"
] | kira001/NewsAPI | Dtos/CreateNewsDto.cs | 159 | C# |
/* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*
* Licensed to Elasticsearch B.V. unde... | 36.5 | 100 | 0.772603 | [
"Apache-2.0"
] | opensearch-project/opensearch-net | src/OpenSearch.Client/CommonOptions/MinimumShouldMatch/MinimumShouldMatch.cs | 1,825 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace NSubstitute.Core
{
public class CallActions : ICallActions
{
static readonly Action<CallInfo> EmptyAction = x => { };
readonly ICallInfoFactory _callInfoFactory;
readonly List<CallAction> _actions = new List<C... | 32.725 | 129 | 0.595111 | [
"BSD-3-Clause"
] | dtchepak/NSubstitute | src/NSubstitute/Core/CallActions.cs | 2,620 | C# |
//======================================================================
//
// Copyright © 2016 - 2020 NetInfo Technologies Ltd.
// All rights reserved
// guid1: 3d12c792-f5db-4907-9cc0-10317c76f4aa
// CLR Version: 4.0.30319.42000
// Name: ... | 29.045455 | 78 | 0.462441 | [
"MIT"
] | cqssc/ssc | ShiShiCai/Models/DateItem.cs | 1,281 | C# |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core.Serialization;
namespace Stride.C... | 36.555556 | 163 | 0.611955 | [
"MIT"
] | Alan-love/xenko | sources/core/Stride.Core.Design/IO/UDirectorySerializer.cs | 987 | C# |
using FluentValidation;
using Microsoft.Extensions.Logging;
using Ordering.API.Application.Commands;
namespace Ordering.API.Application.Validations
{
public class CancelOrderCommandValidator : AbstractValidator<CancelOrderCommand>
{
public CancelOrderCommandValidator(ILogger<CancelOrderCommandValidato... | 33.5 | 91 | 0.718284 | [
"MIT"
] | 1448376744/eShopOnContainers | src/Services/Ordering/Ordering.API/Application/Validations/CancelOrderCommandValidator.cs | 538 | C# |
namespace DesignPatternsInCSharp.Behavioral.State.Conceptual;
public class Context
{
public State State { get; set; }
public Context(State state)
{
State = state ?? throw new ArgumentNullException(nameof(state));
}
public void Request() => State.Handle(this);
}
| 20.928571 | 72 | 0.686007 | [
"MIT"
] | adamradocz/DesignPatternsInCSharp | DesignPatternsInCSharp/Behavioral/State/Conceptual/Context.cs | 293 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.Serialization;
using System.Threading;
namespace DynamicCRUD.Emit
{
public class DynamicClassFactory
{
private AppDomain _appDomain;
private AssemblyBu... | 45.871921 | 191 | 0.655284 | [
"MIT"
] | Behnam-Emamian/DynamicCRUD | DynamicCRUD.Emit/DynamicClassFactory.cs | 9,314 | C# |
namespace ClassLib089
{
public class Class044
{
public static string Property => "ClassLib089";
}
}
| 15 | 55 | 0.633333 | [
"MIT"
] | 333fred/performance | src/scenarios/weblarge2.0/src/ClassLib089/Class044.cs | 120 | C# |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics... | 30.096386 | 93 | 0.528823 | [
"MIT"
] | AtomCrafty/osu | osu.Game/Screens/Play/Break/BreakInfoLine.cs | 2,418 | C# |
using System;
using System.Collections.Generic;
namespace EGO.Util
{
public static class EventDispatcher
{
private static Dictionary<int,Action<object>> mRegisteredEvents = new Dictionary<int, Action<object>>();
public static void Register<T>(T key,Action<object> onEvent) where T : ICo... | 29.576271 | 112 | 0.534097 | [
"MIT"
] | Zlogn/QFramework | Assets/QFramework/Framework/0.Core/Editor/0.EditorKit/Framework/Util/EventDispatcher.cs | 1,745 | 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... | 44.623211 | 176 | 0.558536 | [
"BSD-3-Clause"
] | Michelle-Argus/ArribasimExtract | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | 28,068 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------... | 43.90411 | 227 | 0.616537 | [
"MIT"
] | guillermocorrea/DDDSkeletonNET | DDDSkeletonNET/DDDSkeleton.Portal.Domain/Customer/CustomerBusinessRuleMessages.Designer.cs | 3,207 | C# |
using System;
using System.Collections.Generic;
using System.Json;
namespace Rankings_Common
{
public class Rank
{
private static string defaultCategoryType = "handheld";
public Rank (List<DateTime> dateList, JsonValue json)
{
Country = json ["country"];
JsonValue category = json ["category"];
Cate... | 25.113636 | 91 | 0.657919 | [
"MIT"
] | Smileek/AppFiguresRanks | Rankings_Common/Rank.cs | 1,107 | C# |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace WeChatManagementSample.Migrations
{
public partial class init : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AbpAuditLogs",
... | 57.044385 | 136 | 0.543495 | [
"MIT"
] | zhangke4300/WeChatManagement | samples/WeChatManagementSample/aspnet-core/src/WeChatManagementSample.EntityFrameworkCore/Migrations/20210830034622_init.cs | 84,827 | C# |
/// ETML
/// Author: Gil Balsiger
/// Date: 18.05.2018
/// Summary: Handles the weapons spawning
using UnityEngine;
using UnityEngine.Networking;
/// <summary>
/// Handles the weapons spawning
/// </summary>
public class WeaponSpawner : NetworkBehaviour {
/// <summary>
/// Different weapons to instantiate r... | 23.847826 | 96 | 0.606199 | [
"Apache-2.0"
] | balsigergil/Oxynite | Assets/Scripts/Weapons/WeaponSpawner.cs | 1,099 | C# |
using Orleans.Serialization.Codecs;
using Orleans.Serialization;
using Orleans.Serialization.GeneratedCodeHelpers;
using Orleans.Serialization.Serializers;
using Orleans.Serialization.Buffers;
using Orleans.Serialization.WireProtocol;
using Orleans.Serialization.Cloning;
using System.Net;
using System;
using System.Buf... | 37.252874 | 178 | 0.622339 | [
"MIT"
] | BearerPipelineTest/orleans | src/Orleans.Core.Abstractions/IDs/SiloAddressCodec.cs | 3,241 | C# |
using System;
using System.Collections.Generic;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// AOP API: alipay.offline.marketing.voucher.offline
/// </summary>
public class AlipayOfflineMarketingVoucherOfflineRequest : IAopRequest<AlipayOfflineMarketingVoucherOfflineResponse>
{
... | 23.5 | 120 | 0.60735 | [
"MIT"
] | erikzhouxin/CSharpSolution | NetSiteUtilities/AopApi/Request/AlipayOfflineMarketingVoucherOfflineRequest.cs | 2,591 | C# |
namespace GameStore.Models.Games
{
public class GameShoppingCartViewModel
{
public int Id { get; init; }
public string Name { get; init; }
public string Publisher { get; init; }
public string PegiRating { get; init; }
public decimal Price { get; init; }
publi... | 21.235294 | 47 | 0.595568 | [
"MIT"
] | radostinatanasov98/GameStore | GameStore/GameStore/Models/Games/GameShoppingCartViewModel.cs | 363 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BookLibrary
{
class Program
{
static void Main()
{
string[] inputLines = File.ReadAllLines(@"..\..\input.txt");... | 31.463415 | 118 | 0.489922 | [
"MIT"
] | nikistoianov/TechMod-homeworks | FilesDirectoriesAndExceptions/BookLibrary/09.StartUp.cs | 2,582 | C# |
using System;
// ReSharper disable once CheckNamespace
namespace NcnnDotNet.Layers
{
public sealed class BatchNorm : Layer
{
#region Constructors
public BatchNorm()
{
NativeMethods.layer_layers_BatchNorm_new(out var ret);
this.NativePtr = ret;
}
... | 19.204545 | 72 | 0.559763 | [
"MIT"
] | AvenSun/NcnnDotNet | src/NcnnDotNet/Layer/Layers/BatchNorm.cs | 847 | 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 "li... | 31.436364 | 107 | 0.666859 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/Pinpoint/Generated/Model/DeleteUserEndpointsResponse.cs | 1,729 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using BinarySerializer;
using BinarySerializer.Ray1;
using Sprite = UnityEngine.Sprite;
namespace R1Engine
{
public class Unity_Object_R1Jaguar : Unity_SpriteObject
{
public Unity_Object_R1Jaguar(Unity_ObjectManager_R1Jaguar objManager... | 45.668478 | 193 | 0.593002 | [
"MIT"
] | Adsolution/Ray1Map | Assets/Scripts/DataTypes/Unity/LevelObj/Games/Rayman1_Jaguar/Unity_Object_R1Jaguar.cs | 8,405 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BasicBoss : Enemy
{
[SerializeField] private float chargeTime;
[SerializeField] private float turnTime;
private BasicBossMode mode;
private float currentModeTime;
private Vector3 chargeDirection;
protec... | 25.327273 | 100 | 0.590811 | [
"MIT"
] | ashwingur/Turret-Spinner | TurretSpinner/Assets/Scripts/Enemies/BasicBoss.cs | 1,393 | C# |
using UnityEngine;
namespace ModComponentAPI
{
public class ModCookingPotComponent : ModComponent
{
[Tooltip("Can the item cook liquids?")]
public bool CanCookLiquid;
[Tooltip("Can the item cook grub? Cookable canned food counts as grub.")]
public bool CanCookGrub;
[Too... | 28.25 | 81 | 0.632743 | [
"MIT"
] | johnjollystupid/ModComponent | ModComponentAPI_Unity/VisualStudio/src/Components/ModCookingPotComponent.cs | 680 | 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.Linq;
using Cake.Cli;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
... | 33.08125 | 109 | 0.542037 | [
"MIT"
] | epaulsen/cake | src/Cake.Frosting/Internal/Commands/DefaultCommand.cs | 5,295 | C# |
using System;
namespace Validation.Validators
{
public class ObjectValidator
{
private const string DefaultError = "Invalid object.";
private readonly object value;
public ObjectValidator(object value)
{
this.value = value;
}
public ObjectValidato... | 26.397059 | 106 | 0.519777 | [
"Apache-2.0"
] | digovc/DirectValidation | src/validation/Validators/ObjectValidator.cs | 1,797 | C# |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Reliance.Core.Infrastructure;
using Reliance.Core.Services.Infrastructure;
using Reliance.Core.Services.Queries.DevOps;
using Reliance.Web.Client;
using SnowStorm.QueryExecutors;
using System.Threading.Tasks;
namespace R... | 38.901961 | 124 | 0.635585 | [
"MIT"
] | BenVanZyl/Reliance | src/Reliance.Core/Domain/DevOps/App.cs | 1,986 | C# |
/*
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovingObject : MonoBehaviour
{
public float moveTime = 0.1f;
public LayerMask blockingLayer;
private BoxCollider2D boxCollider;
private Rigidbody2D rb2d;
private float inverseMoveTime;
public Comp... | 25.87013 | 108 | 0.63253 | [
"Unlicense"
] | BizarroKlyza/Spells-N-Shells | Assets/Scripts/Enemy movement/MovingObject.cs | 1,994 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 39.666667 | 151 | 0.583567 | [
"MIT"
] | tanaka-takayoshi/VSTOSample | ExcelVSTOSignalR/ExcelVSTOSignalR/Properties/Settings.Designer.cs | 1,073 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Naos.HubSpot.Domain.Contracts.ContactsApi.PayloadContracts
{
using Naos.HubSpot.Domain.Contracts.ContactsApi.QueryModels;
public class CreateOrUpdateBatchContactsPayload
{
... | 25.607143 | 101 | 0.651325 | [
"MIT"
] | ghostofrecon/Naos.HubSpot | Naos.HubSpot.Domain/Contracts/ContactsApi/PayloadContracts/CreateOrUpdateBatchContactsPayload.cs | 719 | C# |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.R... | 46.692308 | 353 | 0.68575 | [
"MIT"
] | DaZombieKiller/terrafx.interop.windows | sources/Interop/Windows/um/ShObjIdl_core/INewWindowManager.cs | 2,430 | 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("Te... | 38.527778 | 84 | 0.754146 | [
"MIT"
] | trafi/clickatell-csharp | TestLibraryConsume/Properties/AssemblyInfo.cs | 1,390 | C# |
#pragma warning disable 0626
#pragma warning disable 0649
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using ETGGUI;
using System;
public class ETGModGUI : MonoBehaviour {
public enum MenuOpened {
None,
Loader,
Logger,
Console,
Inspector
... | 28.891566 | 117 | 0.532666 | [
"MIT"
] | Gl0rfindel/ETGMod | Assembly-CSharp.Base.mm/src/ETGGUI/ETGModGUI.cs | 7,196 | C# |
#if UNITY_EDITOR && UNITY_ANDROID
using System.IO;
using UnityEditor;
using UnityEngine;
internal static class Directories
{
private static readonly string UnityDirectory = Path.GetDirectoryName(EditorApplication.applicationPath);
private static readonly string UnityAssetsDirectory = Application.dataPath;
publi... | 45.785714 | 184 | 0.808892 | [
"MIT"
] | skillz/Unity-Pinball | Pinball/Assets/Skillz/Internal/Directories.cs | 1,284 | 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>
//--... | 37.805195 | 174 | 0.541395 | [
"MIT"
] | Shabibii/CorbaHub | CorbaHub/CorbaHub/Properties/Resources.Designer.cs | 5,824 | C# |
#region License
//--------------------------------------------------
// <License>
// <Copyright> 2018 © Top Nguyen </Copyright>
// <Url> http://topnguyen.net/ </Url>
// <Author> Top </Author>
// <Project> Elect </Project>
// <File>
// <Name> StringHelper.cs </Name>
// <Created> 21/... | 28.345794 | 119 | 0.444774 | [
"MIT"
] | nminhduc/Elect | src/Web/Elect.Web/StringUtils/StringHelper.cs | 3,036 | C# |
using System.ComponentModel;
namespace SharpUnarc.Events
{
public enum EventType : byte
{
/// <summary>
/// An unknown event type.
/// This should never be the case unless a new version of Unarc is released.
/// </summary>
Unknown,
/// <summary>
/// An event that occurs at the... | 26.156627 | 93 | 0.608936 | [
"MIT"
] | Wildenhaus/SharpUnarc | SharpUnarc/SharpUnarc/Events/EventType.cs | 2,173 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Microsoft.AspNetCore.Components.Reflection... | 47.179612 | 175 | 0.606338 | [
"MIT"
] | FWest98/MicrosoftAspNetCore | src/Components/Components/src/Routing/QueryParameterValueSupplier.cs | 9,719 | C# |
using UnityEngine;
/// <summary>
/// Used as a tag to detect upon game over collision
/// </summary>
public class Killer : MonoBehaviour
{
public bool active = true;
}
| 18 | 53 | 0.661111 | [
"MIT"
] | RLst/KomiOuch | Assets/Scripts/Killer.cs | 182 | C# |
using CommunityToolkit.Mvvm.DependencyInjection;
using IoC.Services;
using IoC.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.UI.Xaml;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace IoC
... | 34.391304 | 98 | 0.644121 | [
"MIT"
] | PacktPublishing/Modernizing-Your-Windows-Applications-with-the-Windows-Apps-SDK-and-WinUI | Chapter06/03-IoC/IoC/App.xaml.cs | 1,584 | C# |
///////////////////////////////////////////////////////////////////////////////
// //
// EditorForm.cs //
// Copyright (C) Microsoft Corporation. All rights reserved. //... | 38.623677 | 192 | 0.501788 | [
"MIT"
] | AlexScapillati/RenderingEngine | Source/External/dxc/tools/clang/tools/dotnetc/EditorForm.cs | 135,069 | C# |
namespace Sharpdown
{
internal enum MarkdownInHtmlMode
{
NA,
Block,
Span,
Deep,
Off
}
} | 12.636364 | 36 | 0.47482 | [
"MIT"
] | stevancorre/sharpdown | src/MarkdownInHtmlMode.cs | 139 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SoundManager : Singleton<SoundManager>
{
AudioPlayer m_AudioPlayer;
public AudioPlayer AudioPlayer
{
get { return m_AudioPlayer; }
}
Player m_Player;
GameObject m_PlayerGameObject;
bool m_Fir... | 33.204819 | 112 | 0.642054 | [
"Apache-2.0"
] | adrianrodriguesm/Detective-Z | Assets/Scripts/SoundManager.cs | 5,512 | C# |
using System.ComponentModel;
using System.Drawing;
using YamlDotNet.Serialization;
namespace HSDRawViewer.Rendering.GX
{
public class GXLightParam
{
[Category("1. Lighting Settings"), DisplayName("Use Camera Light"), Description("When true makes the light source emit from the camera's location")]
... | 50.1 | 176 | 0.657934 | [
"MIT"
] | Ploaj/HSDLib | HSDRawViewer/Rendering/GX/GXLightParam.cs | 4,010 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30311.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-------... | 29.421053 | 80 | 0.463327 | [
"Apache-2.0"
] | 0xced/NuGetGallery | src/NuGetGallery/Areas/Admin/DynamicData/FieldTemplates/Enumeration.ascx.designer.cs | 559 | C# |
/*
The MIT License (MIT)
Copyright (c) 2020 Simon Bogutzky
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, m... | 39.280702 | 461 | 0.685574 | [
"MIT"
] | sbogutzky/RollerShutterApp | iOS/ViewController.cs | 2,249 | C# |
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace SmartSchool.Core.Entities
{
public class Measurement : EntityObject
{
public int SensorId { get; set; }
[ForeignKey(nameof(SensorId))]
public Sensor Sensor { get; set; }
public DateTime Time { get; ... | 18.9 | 51 | 0.637566 | [
"MIT"
] | BernhardGrasch/csharp_samples_ef_uow_smartschool-template | source/SmartSchool.Core/Entities/Measurement.cs | 380 | C# |
using System;
using UnityEngine;
using UnityEngine.Assertions;
[CreateAssetMenu(fileName = "Data", menuName = "ScriptableObjects/Weighted Pool")]
public class WeightedPoolAsset : ScriptableObject
{
[Serializable]
public class Entry
{
public GameObject contextGameObject; // but this can be anything... | 33.828571 | 128 | 0.647804 | [
"MIT"
] | ChrisMasterton/SomeUnityUtils | WeightedPool/WeightedPoolAsset.cs | 1,186 | C# |
using System.Text;
using System.Web;
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
namespace SmartStore.Collections
{
/// <summary>
/// http://weblogs.asp.net/bradvincent/archive/2008/10/27/helper-class-querystring-builder-chainable.aspx
/// </summary>
public class Query... | 30.779736 | 136 | 0.544583 | [
"MIT"
] | jenmcquade/csharp-snippets | SmartStoreNET-3.x/src/Libraries/SmartStore.Core/Collections/Querystring.cs | 6,989 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Editor
{
/// <summary>
/// Unity has a strange bug when it tries to import a D... | 42.810345 | 184 | 0.546516 | [
"MIT"
] | HyperLethalVector/ProjectEsky-UnityIntegration | Assets/MRTK/Core/Utilities/Editor/ScriptedImporterAssetReimporter.cs | 2,485 | C# |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace YEasyModel
{
/// <summary>
/// 排序表达式类型
/// </summary>
/// <typeparam name="T">实体类</typeparam>
public class OrderBy<T>
{
Dictionary<Expression<Func<T, object>>, OrderByEnum> orderList;
publ... | 24.825 | 84 | 0.548842 | [
"Apache-2.0"
] | michaelyes/LiteORM-For-DotNet | ClassLibrary1/OrderBy.cs | 1,063 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//... | 32.708333 | 84 | 0.51465 | [
"MIT"
] | undersoft-org/NET.Undersoft.Picatch.Devel | NET.Undersoft.Picatch.Agent.Win/Undersoft.Picatch.Agent/dok.cs | 785 | C# |
using System;
using Microsoft.Owin.Security.Infrastructure;
using Microsoft.Owin;
using Owin;
using Microsoft.Owin.Logging;
using System.Net.Http;
using Beginor.Owin.Security.Gdep.Provider;
using Microsoft.Owin.Security.DataProtection;
using Microsoft.Owin.Security.DataHandler;
using Microsoft.Owin.Security;
namespac... | 37.038961 | 121 | 0.65007 | [
"MIT"
] | beginor/beginor-owin-security-gdep | src/Beginor.Owin.Security.Gdep/GdepAuthenticationMiddleware.cs | 2,854 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace KLib
{
public class KDataFormat
{
public const SByte BYTE = 1;
public const SByte INT = 4;
public const SByte UINT = 6;
public const SByte NUMBER = 10;
public const SByte ... | 18.153846 | 41 | 0.559322 | [
"MIT"
] | linchenrr/kakaTools | donetCore/KLib/KLib/data/KDataFormat.cs | 724 | C# |
/* Movement.cs - Moves a player around the scene */
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour {
// Character movement and physics
[Header("Character Physics")]
public float moveForce = 365f;
public float maxSpeed = 5f;
public float... | 22.46988 | 112 | 0.64933 | [
"MIT"
] | bdickason/mobifight | Assets/Characters/Movement.cs | 1,867 | C# |
using System.Collections.Generic;
using System.Linq;
using Blockcore.Consensus.ScriptInfo;
using Blockcore.Consensus.TransactionInfo;
using Blockcore.Networks;
using NBitcoin;
using NBitcoin.BitcoinCore;
namespace OpenExo.Networks.Policies
{
/// <summary>
/// Blockcore sample coin-specific standard transactio... | 35 | 100 | 0.675906 | [
"MIT"
] | Botcoin-Abacus/blockcore | src/Networks/Blockcore.Networks.OpenExo/Networks/Policies/OpenExoStandardScriptRegistry.cs | 2,347 | C# |
namespace RJCP.Diagnostics.Log.Dlt.Control
{
using ControlArgs;
using NUnit.Framework;
using RJCP.Core;
[TestFixture(DecoderType.Line, Endianness.Little)]
[TestFixture(DecoderType.Packet, Endianness.Little)]
[TestFixture(DecoderType.Specialized, Endianness.Little)]
[TestFixture(DecoderType... | 53.938462 | 149 | 0.667998 | [
"MIT"
] | jcurl/RJCP.DLL.Log | TraceReader.Dlt/DltTraceReaderTest/Dlt/Control/BufferOverflowNotificationDecoderTest.cs | 3,508 | C# |
//------------------------------------------------------------------------------
// <copyright file="ExternDll.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace Syst... | 36.736842 | 81 | 0.485673 | [
"Unlicense"
] | bestbat/Windows-Server | com/netfx/src/framework/data/system/data/common/externdll.cs | 698 | C# |
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp.PixelFormats
{
/// <summary>
/// Packed pixel type containing four 8-bit unsigned integer values, ranging ... | 41.086486 | 131 | 0.610972 | [
"Apache-2.0"
] | asmodat/ImageSharp | src/ImageSharp/PixelFormats/PixelImplementations/Byte4.cs | 7,601 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Core.Math.Polynomials
{
public static partial class PolynomialExtensionMethods
{
public static Polynomial<double> Integrate(this Polynomial<int> polynomial, int initial_value)
{
int n = polynomial.Coeffici... | 30.536585 | 110 | 0.583866 | [
"MIT"
] | HolisticWare/HolisticWare.Core.Math.Polynomials | source/HolisticWare.Core.Math.Polynomials/Core/Math/Polynomials/Polynomial.ExtensionMethods.Calculus.cs | 1,254 | C# |
namespace CommandLineSyntax
{
public class ProgramConfoguration
{
[Option]
[OptionAlias("--help")]
[OptionAlias("-h")]
public bool ShowHelp { get; set; }
[Option]
[OptionAlias("--version")]
[OptionAlias("-v")]
public bool ShowVersion { get; set; ... | 23 | 54 | 0.557971 | [
"MIT"
] | sebastiandymel/CLI-Argument-Parser | src/CommandLineParser/CommandLineSyntax/ProgramConfoguration.cs | 416 | C# |
namespace Example.Library
{
public class AnotherConfig
{
public string Name { get; set; }
}
} | 16.285714 | 40 | 0.605263 | [
"MIT"
] | xpike/settings | examples/Example.Library/AnotherConfig.cs | 116 | 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... | 57.561404 | 469 | 0.718379 | [
"ECL-2.0",
"Apache-2.0"
] | Otanikotani/pulumi-aws | sdk/dotnet/Rds/Outputs/ProxyDefaultTargetGroupConnectionPoolConfig.cs | 3,281 | 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.ComponentModel.Composition;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Editor.Shared.Options;
... | 51.225225 | 170 | 0.711748 | [
"Apache-2.0"
] | GigabyteUB1B1/roslyn | src/EditorFeatures/Core/Implementation/KeywordHighlighting/HighlighterViewTaggerProvider.cs | 5,688 | C# |
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Test.Common;
using Test.Common.Models;
using Horse.Messaging.Server.Queues;
using Xunit;
namespace Test.Persistency
{
public class QueueFillTest
{
[Fact]
public async Task FillJson()
{
L... | 31.119048 | 75 | 0.555853 | [
"Apache-2.0"
] | horse-framework/horse-messaging | src/Tests/Test.Persistency/QueueFillTest.cs | 2,614 | C# |
/*
Copyright 2006 Jerry Huxtable
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 writing, software
d... | 30.294118 | 91 | 0.585437 | [
"Apache-2.0"
] | jugstalt/gview5 | gView.Proj/Proj4Net/Projection/Eckert2Projection.cs | 2,060 | C# |
using AutoMapper;
using Diploms.Core;
using Diploms.Dto.Specialities;
namespace Diploms.Services.Specialities
{
public class SpecialitiesMappings : Profile
{
public SpecialitiesMappings()
{
CreateMap<SpecialityEditDto, Speciality>();
}
}
} | 20.571429 | 55 | 0.673611 | [
"MIT"
] | vanonavi/dcs | src/Diploms.Services/Specialities/SpecialitiesMappings.cs | 288 | C# |
using System.Threading.Tasks;
using ActiveMQ.Artemis.Client.TestUtils;
using Xunit;
namespace ActiveMQ.Artemis.Client.Testing.UnitTests;
public class SubscriptionSpec
{
[Fact]
public async Task Should_subscribe_on_a_given_address()
{
var endpoint = EndpointUtil.GetUniqueEndpoint();
using v... | 32.148148 | 85 | 0.715438 | [
"MIT"
] | Havret/ActiveMQ.Net | test/ArtemisNetClient.Testing.UnitTests/SubscriptionSpec.cs | 868 | C# |
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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... | 48.610169 | 201 | 0.775802 | [
"Apache-2.0"
] | gnurg/aws-sdk-net | sdk/src/Services/CodePipeline/Properties/AssemblyInfo.cs | 2,868 | 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.Tests.TestUtilities.Attributes;
using Pomelo.EntityFramework... | 34.635762 | 128 | 0.672658 | [
"MIT"
] | lauxjpn/Pomelo.EntityFrameworkCore.MySql | test/EFCore.MySql.IntegrationTests/Tests/Models/GeneratedTypesTest.cs | 5,232 | C# |
using System;
namespace Lucene.Net.Codecs.Lucene40
{
/*
* 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... | 61.338346 | 211 | 0.645379 | [
"Apache-2.0"
] | DiogenesPolanco/lucenenet | src/Lucene.Net/Codecs/Lucene40/Lucene40FieldInfosFormat.cs | 8,158 | C# |
using Microsoft.AspNetCore.Mvc;
using NetDream.Web.Areas.Blog.Repositories;
namespace NetDream.Web.Areas.Blog.Controllers
{
[Area("Blog")]
public class TagController : Controller
{
private readonly BlogRepository _repository;
public TagController(BlogRepository repository)
{
... | 23.181818 | 55 | 0.617647 | [
"MIT"
] | zx648383079/netdream | src/NetDream.Web/Areas/Blog/Controllers/TagController.cs | 512 | C# |
using System;
using System.Linq;
namespace CodeBreaker.Core
{
public struct Code : IEquatable<Code>
{
public static Code Empty = new Code();
public Code(int[] digits)
{
Digits = digits;
}
public int[] Digits { get; }
public... | 25.765306 | 76 | 0.397624 | [
"MIT"
] | vlesierse/codebreaker | src/CodeBreaker.Core/Code.cs | 2,527 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18408
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 29.082353 | 165 | 0.563107 | [
"Apache-2.0"
] | Missouri-BMI/popmednet | Plugins/CHORDS/Chords.Dns.PubHealth/Chords.Dns.PubHealth/Views/Create.cs | 2,474 | C# |
// This is an automatically generated file, based on settings.json and PackageSettingsGen.tt
/* settings.json content:
{
"settings": [
{
"name": "CollectMetrics",
"type": "bool",
"default": "true"
},
{
"name": "EditorComments",
"type": "bool",
"default": ... | 28.470588 | 111 | 0.603719 | [
"MIT"
] | alsamer2008/VisualStudio | src/GitHub.VisualStudio/Settings/generated/PackageSettingsGen.cs | 2,422 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json.Utilities;
namespace Newtonsoft.Json.Linq
{
internal class JPath
{
private readonly string _expression;
public List<object> Parts { get; private set; }
private int _currentIndex;
public JPath(string ... | 28.170588 | 149 | 0.572144 | [
"Apache-2.0"
] | DanielLazarov/test_me-windows_phone_ui | test_me-windows_phone_ui/json/Source/Src/Newtonsoft.Json/Linq/JPath.cs | 4,789 | C# |
using System.Collections.Generic;
using UnityEngine;
namespace ET
{
namespace EventType
{
public struct AppStart
{
}
public struct ChangePosition
{
public Unit Unit;
}
public struct ChangeRotation
{
public Unit Unit;
... | 21.743169 | 57 | 0.512943 | [
"MIT"
] | futouyiba/ClubET | Unity/Assets/Model/NKGMOBA/EventType.cs | 3,981 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEditor;
using AnswerTypes;
public class TriviaDesignerWindow : EditorWindow
{
Texture2D headerSectionTexture;
Texture2D mainSectionTexture;
Color headerSectionColor = new Color(0f/255f, 125f/25... | 34.072917 | 123 | 0.644655 | [
"MIT"
] | hsm170330/Trivia-System-Developer-Tool | Assets/editor/TriviaDesignerWindow.cs | 9,815 | C# |
using Core.Block;
using Core.Block.Blocks;
using Game.World.Interface.DataStore;
namespace Game.World.Interface.Event
{
public class BlockRemoveEventProperties
{
public readonly Coordinate Coordinate;
public readonly IBlock Block;
public BlockRemoveEventProperties(Coordinate coordinate... | 23.722222 | 78 | 0.672131 | [
"MIT"
] | moorestech/moorestech | Game.World.Interface/Event/BlockRemoveEventProperties.cs | 427 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.