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 Hive.Backend.DataModels;
using Hive.Backend.Repositories;
using Hive.Backend.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Hive.Backend.Services
{
public class SurveyService : ISurveyService
{
private readonly ISurveyReposi... | 27.712644 | 90 | 0.621319 | [
"MIT"
] | Mobioos/SmartApp-Hive | backend/Services/SurveyService.cs | 2,413 | C# |
// Amplify Shader Editor - Visual Shader Editing Tool
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
using System.Globalization;
namespace AmplifyShaderEditor
{
public enum AvailableSurfaceInputs
{
DEPTH = 0,
UV... | 40.496154 | 277 | 0.692321 | [
"Unlicense"
] | hosoji/Grafight | Grafight/Assets/AmplifyShaderEditor/Plugins/Editor/Utils/UIUtils.cs | 94,761 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FilterPipelineExample.Filters;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace FilterPipeli... | 32.105263 | 106 | 0.604918 | [
"MIT"
] | AnzhelikaKravchuk/asp-dot-net-core-in-action | chapter13/2.0/FilterPipelineExample/FilterPipelineExample/Startup.cs | 1,832 | C# |
using Chii.OneBot.SDK.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Chii.OneBot.SDK.Model.Params
{
/// <summary>
/// 群組單人禁言
/// </summary>
internal class SetGroupBanParams :... | 22.514286 | 46 | 0.568528 | [
"Apache-2.0"
] | MiharaIchiro/Chii.OneBot.SDK | src/Model/Param/SetGroupBanParams.cs | 846 | C# |
using Microsoft.Xna.Framework;
using System;
using System.IO;
namespace FSO.Content.Model
{
public class CityMap
{
private static Color TERRAIN_GRASS = new Color(0, 255, 0);
private static Color TERRAIN_WATER = new Color(12, 0, 255);
private static Color TERRAIN_SNOW = new Color(255, 2... | 33.597087 | 115 | 0.498772 | [
"MPL-2.0"
] | HarryFreeMyLand/newso | Src/tso.content/model/CityMap.cs | 6,923 | C# |
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
namespace Microsoft.Azure.EventGridEdge.Samples.Common.Auth
{
public static class CertificateHelper
{
public static void ImportCertificate(params X509Certificate2[] certificates)
{
if (certif... | 40.924528 | 140 | 0.585062 | [
"MIT"
] | Azure/event-grid-iot-edge | Common/auth/CertificateHelper.cs | 2,171 | 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Mic... | 39.853953 | 252 | 0.573945 | [
"Apache-2.0"
] | DongchengWang/roslyn | src/Compilers/CSharp/Test/Semantic/Semantics/OperatorTests.cs | 435,554 | C# |
using System;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using Azure.ResourceManager.Resources;
using NUnit.Framework;
namespace Azure.ResourceManager.Tests
{
public class ProviderOperationsTests : ResourceManagerTestBase
{
public ProviderOperationsTests(bool isAsync)
: bas... | 39.282353 | 114 | 0.654987 | [
"MIT"
] | OlhaTkachenko/azure-sdk-for-net | sdk/resourcemanager/Azure.ResourceManager/tests/Scenario/ProviderOperationsTests.cs | 3,341 | C# |
using HatTrick.DbEx.CodeTemplating.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HatTrick.DbEx.CodeTemplating.Builder
{
public class TypeBuilder
{
private static readonly TypeModel _bool = new TypeModel<bool>("bool");
private static read... | 43.63786 | 108 | 0.524896 | [
"Apache-2.0"
] | HatTrickLabs/dbExpression | tools/HatTrick.DbEx.CodeTemplating/Builder/TypeBuilder.cs | 10,606 | 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("p05... | 38 | 84 | 0.747511 | [
"MIT"
] | vesy53/SoftUni | Programming Basics - C#/Exercises/05.SimpleLoops/p05MaxNumber/Properties/AssemblyInfo.cs | 1,409 | C# |
using LitJson;
using System;
namespace Assets.Scripts.Tool
{
public static class JsonDataHelper
{
public static int GetValue(this JsonData data, string valueName, int defaultValue)
{
if (valueName == null)
{
return defaultValue;
}
int result;
try
{
JsonData jsonData = data[valueName];
... | 17.125 | 90 | 0.621168 | [
"MIT"
] | moto2002/kaituo_src | src/Assets.Scripts.Tool/JsonDataHelper.cs | 1,370 | C# |
using Locust.ServiceModel;
using Locust.Modules.Api.Model;
using Locust.ServiceModel.Babbage;
namespace Locust.Modules.Api.Strategies
{
public class ServiceSettingAddContext : BabbageContext<ServiceSettingAddResponse, object, ServiceSettingAddStatus, ServiceSettingAddRequest>
{
}
} | 29.2 | 141 | 0.825342 | [
"MIT"
] | mansoor-omrani/Locust.NET | Modules/Locust.Modules.Api/Service/ServiceSetting/Add/Context.cs | 292 | C# |
using ModelEditor.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModelEditor.Main.ViewModels
{
class PropertyViewModel
{
public PropertyViewModel(CommonViewModel commonViewModel)
{
_commonView... | 20.7 | 65 | 0.719807 | [
"MIT"
] | MUV38/Tools | ModelEditor/Main/ViewModels/PropertyViewModel.cs | 416 | C# |
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myproject.Authors.DTO
{
[AutoMapFrom(typeof(Author))]
public class CreateAuthorInput : EntityDto
{
public string... | 19.782609 | 49 | 0.703297 | [
"MIT"
] | ahmetkursatesim/ASPNETProject | src/Myproject.Application/Authors/DTO/CreateAuthorInput.cs | 457 | C# |
//
// Copyright 2020 Google LLC
//
// 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, Ver... | 37.992248 | 108 | 0.681698 | [
"Apache-2.0"
] | Bhisma19/iap-desktop | sources/Google.Solutions.IapDesktop.Extensions.Activity.Test/Views/UsageReport/TestReportViewModel.cs | 4,903 | C# |
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (a... | 44.148148 | 110 | 0.753356 | [
"MIT"
] | eyeofstorm/AzerothSharp | Common/Auth.Network/Readers/AUTH_LOGON_CHALLENGE_C_Reader.cs | 2,384 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameStart : MonoBehaviour {
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(0))
{
TransitionToResult();
}
... | 18.863636 | 41 | 0.640964 | [
"MIT"
] | dependd/Fight-Animal | Assets/Scripts/GameStart.cs | 417 | C# |
namespace Ann.Layers
{
internal class BaseLayer
{
private readonly MessageShape _inputMessageShape;
private readonly MessageShape _outputMessageShape;
public BaseLayer(
MessageShape inputMessageShape,
MessageShape outputMessageShape)
{
_outp... | 24.111111 | 58 | 0.619048 | [
"MIT"
] | koryakinp/ann | Ann/Layers/BaseLayer.cs | 653 | 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>
//---... | 41.083333 | 80 | 0.649087 | [
"MIT"
] | dabina2018/20486D-Developing-ASP-NET-MVC-Web-Apps | Allfiles/Mod01/Labfiles/02_CakeStoreApi_begin/CakeStoreApi/CakeStoreApi/obj/Debug/netcoreapp2.1/CakeStoreApi.AssemblyInfo.cs | 986 | C# |
using Probability.Core.Models;
namespace Probability.Core.Contracts
{
public interface IProbabilityCalculator
{
decimal Calculate(CalculateProbabilityInput input);
}
} | 21 | 59 | 0.751323 | [
"MIT"
] | alex-piccione/ProbabilityExercise | Core/Contracts/IProbabilityCalculator.cs | 191 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using BlazorBoilerplate.Server.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
//# Links
//## ASP.NET Core Roles/Policies/Claims
//- htt... | 37.892308 | 146 | 0.697523 | [
"MIT"
] | marcoscavaleiro/blazorboilerplate | src/BlazorBoilerplate.Server/Authorization/AdditionalUserClaimsPrincipalFactory.cs | 2,465 | 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("Vi... | 39.705882 | 77 | 0.758519 | [
"MIT"
] | ookumaneko/Blog_XNA | Vibration/Vibration/Vibration/Properties/AssemblyInfo.cs | 1,353 | C# |
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef
using Beef.Entities;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Beef.RefData
{
/// <summary>
/// Represents a collection that supports multiple Reference Data collections.
/// </summary>
... | 36.365385 | 156 | 0.617663 | [
"MIT"
] | Avanade/Beef | src/Beef.Abstractions/RefData/ReferenceDataMultiCollection.cs | 1,893 | 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("St... | 37.756757 | 84 | 0.745168 | [
"MIT"
] | siderisltd/Telerik-Academy | All Courses Homeworks/C#_Part_2/6. StringsAndText/StringLength/Properties/AssemblyInfo.cs | 1,400 | C# |
//
// Copyright (c) 2004-2019 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen
//
// 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 s... | 42.805714 | 148 | 0.618609 | [
"BSD-3-Clause"
] | ALFNeT/NLog | tests/NLog.UnitTests/LogLevelTests.cs | 14,982 | C# |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using UCS.Core.Network;
using UCS.Files;
using UCS.Files.CSV;
using UCS.Files.Logic;
using UCS.Logic;
using UCS.PacketProcessing.Messages.Server;
using Timer ... | 32.622222 | 109 | 0.59094 | [
"Apache-2.0"
] | Dekryptor/UCS | Ultrapowa Clash Server/Core/ObjectManager.cs | 5,872 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le c... | 42.148148 | 152 | 0.579086 | [
"Apache-2.0"
] | Cocotteseb/imagelistview | ImageListViewDemo/Properties/Settings.Designer.cs | 1,151 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EDA
{
class Program
{
static void Main(string[] args)
{
//UT_BOA_Binary.RunMain();
//UT_UMDA_Binary.RunMain();
//UT_CGA_Binary.RunM... | 22.428571 | 54 | 0.593949 | [
"MIT"
] | chen0040/cs-estimation-of-distribution-algorithms | cs-estimation-of-distribution-algorithms-samples/Program.cs | 630 | C# |
namespace Sisu_Nipunatha
{
partial class competition_name_list
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// ... | 32.361702 | 108 | 0.551611 | [
"Apache-2.0"
] | oshadaamila/Sisu-Nipunatha-2017 | Sisu Nipunatha/Sisu Nipunatha/competition_name_list.Designer.cs | 1,523 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.Owin.Hosting;
using Owin;
namespace KatanaIntro
{
using AppFunc = Func<IDictionary<string, object>, Tas... | 28.992188 | 79 | 0.484506 | [
"MIT"
] | kenwilcox/KatanaIntro | KatanaIntro/Program.cs | 3,713 | C# |
using Microsoft.Extensions.DependencyInjection;
using Sentry.Extensibility;
using Sentry.Reflection;
namespace Sentry.AspNetCore.Grpc;
/// <summary>
/// Extension methods for <see cref="ISentryBuilder"/>
/// </summary>
public static class SentryBuilderExtensions
{
/// <summary>
/// Adds gRPC integration to Se... | 30.981132 | 101 | 0.657125 | [
"MIT"
] | TawasalMessenger/sentry-dotnet | src/Sentry.AspNetCore.Grpc/SentryBuilderExtensions.cs | 1,642 | 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... | 32.017857 | 132 | 0.644172 | [
"MIT"
] | 93mishra/azure-sdk-for-net | sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/ExpansionResultsMetadata.cs | 1,793 | C# |
using System;
using Microsoft.Extensions.DependencyInjection;
namespace Scorpio.EntityFrameworkCore
{
internal class DefaultDbContextProvider<TDbContext> : IDbContextProvider<TDbContext>
where TDbContext : ScorpioDbContext<TDbContext>
{
private readonly IServiceProvider _serviceProvider;
... | 35.466667 | 112 | 0.781955 | [
"MIT"
] | project-scorpio/Scorpio | src/EntityFrameworkCore/src/Scorpio.EntityFrameworkCore/Scorpio/EntityFrameworkCore/DefaultDbContextProvider.cs | 534 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | 56.616667 | 213 | 0.659111 | [
"MIT"
] | Aliases/msgraph-sdk-dotnet | src/Microsoft.Graph/Generated/requests/IEventMessageResponseContentRequest.cs | 3,397 | C# |
using MathNet.Numerics.Distributions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utilities;
namespace EddiDataDefinitions
{
/// <summary>
/// Details of a star class
/// </summary>
public class StarClass
{
priva... | 41.405229 | 263 | 0.614207 | [
"Apache-2.0"
] | cmdrmcdonald/EliteDangerousDataProvider | DataDefinitions/StarClass.cs | 6,337 | C# |
using System.Collections.Generic;
using PizzaWorld.Domain.Abstracts;
using PizzaWorld.Domian.Models;
namespace PizzaWorld.Domain.Models
{
public class VeggiePizza : APizzaModel
{
protected override void AddCrust()
{
Crust = new Crust();
}
protected override void AddSize()
{
Size = ... | 19.30303 | 41 | 0.610675 | [
"MIT"
] | elock721/project-p0 | PizzaWorld.Domain/Models/VeggiePizza.cs | 637 | C# |
using System;
using System.Threading;
namespace AMWD.Modbus.Proxy
{
internal static class Extensions
{
public static IDisposable GetReadLock(this ReaderWriterLockSlim rwLock, int millisecondsTimeout = -1)
{
if (!rwLock.TryEnterReadLock(millisecondsTimeout))
throw new TimeoutException("Trying to... | 31.639175 | 114 | 0.739655 | [
"MIT"
] | blinds52/Modbus | src/Modbus.Proxy/Extensions.cs | 3,071 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Data.Entity.Infrastructure.DependencyResolution
{
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity.Core.Commo... | 52.045872 | 157 | 0.728715 | [
"MIT"
] | dotnet/ef6tools | src/EntityFramework/Infrastructure/DependencyResolution/RootDependencyResolver.cs | 5,673 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using EncompassRest.Loans.Enums;
using EncompassRest.Schema;
namespace EncompassRest.Loans
{
/// <summary>
/// Application
/// </summary>
public sealed partial class Application : DirtyExtensibleObject, IIdentifiable... | 49.509079 | 207 | 0.660473 | [
"MIT"
] | TimH-SL/EncompassRest | src/EncompassRest/Loans/Application.cs | 73,620 | 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>
//--... | 34.580645 | 151 | 0.583955 | [
"Unlicense"
] | Fiw7a/snackautomat | UnserSnackautomat/UnserSnackautomat/Properties/Settings.Designer.cs | 1,074 | C# |
namespace ForumSystem.Web.InputModels.Feedbacks
{
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ForumSystem.Data.Models;
using ForumSystem.Web.Infrastructure.Mapping;
public class CreateFeedbackModel : IMapFrom<Feedback>
{
[Required]
[MaxLength(2... | 25.625 | 57 | 0.613008 | [
"MIT"
] | hrist0stoichev/Telerik-Exams | MVC-Exam-2014/ForumSystem/Source/Web/ForumSystem.Web/InputModels/Feedbacks/CreateFeedbackModel.cs | 617 | C# |
using BlazorHero.CleanArchitecture.Shared.Settings;
using System.Threading.Tasks;
using BlazorHero.CleanArchitecture.Shared.Wrapper;
namespace BlazorHero.CleanArchitecture.Shared.Managers
{
public interface IPreferenceManager
{
Task SetPreference(IPreference preference);
Task<IPreference> Get... | 27.066667 | 63 | 0.770936 | [
"MIT"
] | 10GeekJames/CleanArchitecture | src/Shared/Managers/IPreferenceManager.cs | 408 | 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 System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using Interna... | 40.681614 | 143 | 0.636299 | [
"MIT"
] | CometstarMH/runtime | src/coreclr/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs | 18,144 | C# |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Karenia.Rurikawa.Helpers {
/// <summary>... | 37.227092 | 103 | 0.553938 | [
"MIT"
] | BUAA-SE-Compiling/rurikawa | coordinator/Helpers/FlowSnakeId.cs | 9,344 | 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.Collections.Generic;
using System.Text;
namespace CoreWCF.Dispatcher
{
internal class WebHttpDispatchOperationSelectorData
{
internal List<string> Allo... | 29 | 91 | 0.493942 | [
"MIT"
] | JonathanHopeDMRC/CoreWCF | src/CoreWCF.WebHttp/src/CoreWCF/Dispatcher/WebHttpDispatchOperationSelectorData.cs | 1,075 | C# |
//
// Copyright 2019 Desert Software Solutions Inc.
// Refactored from ServiceKit.cs:
// https://github.com/DesertSoftware/Solutions
//
// 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 t... | 45.329718 | 191 | 0.473322 | [
"Apache-2.0"
] | DesertSoftware/Solutions | Solutions.Service/ServiceFactory.cs | 20,899 | C# |
using System.Text.RegularExpressions;
namespace Toggl.Shared
{
public struct Email
{
//Taken from reference source: https://github.com/Microsoft/referencesource/blob/master/System.ComponentModel.DataAnnotations/DataAnnotations/EmailAddressAttribute.cs#L54
private const string pattern = @"^((([... | 56.305556 | 948 | 0.601381 | [
"BSD-3-Clause"
] | moljac/mobileapp | Toggl.Shared/Email.cs | 2,029 | C# |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Gov.Jag.Embc.Interfaces.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.G... | 47.952756 | 2,631 | 0.68358 | [
"Apache-2.0"
] | CodingVelocista/embc-ess | embc-interfaces/Dynamics-Autorest/Models/MicrosoftDynamicsCRMmsdynPostconfig.cs | 12,180 | C# |
namespace SpyfallBot.Domain.EndGame
{
using System.Collections.Generic;
using SpyfallBot.Messaging;
using SpyfallBot.Persistence;
public sealed class EndGameCommandHandler : ICommandHandler<EndGameCommand>
{
private readonly IStore store;
public EndGameCommandHandler(IStore store)... | 23.655172 | 79 | 0.597668 | [
"CC0-1.0"
] | iaingalloway/SpyfallBot | src/SpyfallBot/Domain/EndGame/EndGameCommandHandler.cs | 688 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace FormatterWebSite
{
// A System.Securit... | 31.62963 | 111 | 0.711944 | [
"Apache-2.0"
] | 06b/AspNetCore | src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs | 856 | 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.... | 42.792453 | 88 | 0.601411 | [
"Apache-2.0"
] | mathewc/durabletask | Framework/TaskHubDescription.cs | 2,270 | C# |
using Megaman5Randomizer.RandomizationStrategy;
using RomWriter;
using System;
using System.Collections.Generic;
using System.Text;
namespace Megaman5Randomizer
{
public class Randomizer
{
public int Seed {
get; set;
}
public Random RNG {
get; set;
}
... | 25.098361 | 64 | 0.54017 | [
"MIT"
] | dmarchand/mm5randomizer | mm5rando/Megaman5Randomizer/Randomizer.cs | 1,533 | C# |
using System;
using System.Runtime.Serialization;
namespace SatelliteService
{
public class SatelliteServiceException : Exception
{
public SatelliteServiceException()
{
}
public SatelliteServiceException(string message) : base(message)
{
}
public Satel... | 24.125 | 115 | 0.661485 | [
"Apache-2.0"
] | adoconnection/AspNetDeploy | SatelliteService/SatelliteServiceException.cs | 581 | 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>
//---... | 40.958333 | 80 | 0.648016 | [
"Apache-2.0"
] | beyondnetPeru/BeyondNet.MyNetSamples | delegates-events-lambda/Finished/Delegates/Composable2/obj/Debug/net5.0/Composable2.AssemblyInfo.cs | 983 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Xunit;
namespace Linq.Extras.Tests.XEnumerableTests
{
public class FlattenTests
{
[Fact]
public void Flatten_Throws_If_Source_Is_Null()
{
IEnumerable<F... | 42.814607 | 143 | 0.480383 | [
"Apache-2.0"
] | lbragaglia/Linq.Extras | tests/Linq.Extras.Tests/XEnumerableTests/FlattenTests.cs | 7,623 | C# |
using Medallion.Threading.Oracle;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
namespace Medallion.Threading.Tests.Oracle
{
public class OracleDistributedSynchronizationProviderTest
{
[Test]
public vo... | 35.78 | 126 | 0.648407 | [
"MIT"
] | SammyEnigma/DistributedLock | DistributedLock.Tests/Tests/Oracle/OracleDistributedSynchronizationProviderTest.cs | 1,791 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | 40.913043 | 172 | 0.659511 | [
"Apache-2.0"
] | NGL321/aws-sdk-net | sdk/src/Services/KinesisVideo/Generated/Model/Internal/MarshallTransformations/ListSignalingChannelsResponseUnmarshaller.cs | 4,705 | C# |
using System.Collections.Generic;
using AppName.Web.Models;
namespace AppName.Web.Repositories
{
public interface IAirportRepository
{
List<Airport> GetAirports();
Airport GetAirport(string code);
void AddAirport(AirportInput airport);
}
} | 19.928571 | 46 | 0.702509 | [
"MIT"
] | ryanrodemoyer/AccrualCalculator | src/presentation/AccrualCalculator.Web/Repositories/Contracts/IAirportRepository.cs | 281 | C# |
namespace KvmSwitch.Tests.Hardware.DDC
{
using System;
using System.Collections.Generic;
using FluentAssertions;
using KvmSwitch.Hardware.DDC;
using Xunit;
public class DisplayCapabilitiesTest
{
[Fact]
public void Ctor_Does_Not_Throw_If_Capabilities_Are_Null()
{
#pr... | 34.640449 | 111 | 0.604282 | [
"MIT"
] | Holger-H/KvmSwitch | tests/KvmSwitch.Tests/Hardware/DDC/DisplayCapabilitiesTest.cs | 3,085 | C# |
#region Copyright (C) 2005 Rob Blackwell & Active Web Solutions.
//
// L Sharp .NET, a powerful lisp-based scripting language for .NET.
// Copyright (C) 2005 Rob Blackwell & Active Web Solutions.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library Ge... | 36 | 77 | 0.727623 | [
"BSD-3-Clause"
] | leppie/IronScheme.Editor | LSharp/SpecialForm.cs | 1,296 | C# |
using UnityEngine;
using UnityEngine.UI;
public class Event_Text : MonoBehaviour
{
private void Start()
{
if (null == Event_EventManager._buttonClickedEvent)
{
Debug.LogError("Event_EventManager._buttonClickedEvent is null.");
return;
}
Event_EventManag... | 24.307692 | 78 | 0.611814 | [
"Unlicense"
] | DominicFrei/UnityExamples | Assets/Event/Event_Text.cs | 950 | C# |
#Mon Feb 27 04:08:31 GMT 2017
lib/com.ibm.ws.cdi.1.2.jndi.1.0.0_1.0.16.jar=92dfcc5a7cca30141ee29aef92f9bc06
lib/features/com.ibm.websphere.appserver.cdi1.2-jndi1.0.mf=581a7e08d9ede0dadf1a20f7a73986b5
| 50 | 91 | 0.82 | [
"Apache-2.0"
] | jeffwdg/chansyapp | target/liberty/wlp/lib/features/checksums/com.ibm.websphere.appserver.cdi1.2-jndi1.0.cs | 200 | C# |
// Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Nerdbank.Streams
{
using System;
using System.Buffers;
using System.CodeDom.Compiler;
using System.Data;
using System.Diagnostics;
... | 49.600779 | 248 | 0.538143 | [
"MIT"
] | AArnott/Nerdbank.Streams | src/Nerdbank.Streams/MultiplexingStream.Channel.cs | 50,942 | C# |
// Copyright (c) 2019, WebsitePanel-Support.net.
// Distributed by websitepanel-support.net
// Build and fixed by Key4ce - IT Professionals
// https://www.key4ce.com
//
// Original source:
// Copyright (c) 2015, Outercurve Foundation.
// All rights reserved.
//
// Redistribution and use in source and binary f... | 42.859375 | 84 | 0.68611 | [
"BSD-3-Clause"
] | Key4ce/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebDav.Core/Attributes/Resources/LocalizedDescriptionAttribute.cs | 2,743 | C# |
/*
* Copyright (c) Adam Chapweske
*
* Licensed under MIT (https://github.com/achapweske/silvernote/blob/master/LICENSE)
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DOM.SVG
{
public interface SVGAnimatedPathData
{
ISVGPathSegList PathSegList ... | 23.090909 | 84 | 0.71063 | [
"MIT"
] | achapweske/silvernote | SilverNote.DOM/SVG/SVGAnimatedPathData.cs | 510 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace FCGagarin.PL.Admin.Models.ManageViewModels
{
public class RemoveLoginViewModel
{
public string LoginProvider { get; set; }
public string Provi... | 23.266667 | 52 | 0.739255 | [
"MIT"
] | logical8/FCGagarin | FCGagarin.PL.Admin/Models/ManageViewModels/RemoveLoginViewModel.cs | 351 | C# |
using Neo.AST.Expressions;
using Neo.Frontend.Lexer;
namespace Neo.AST.Statements {
public sealed class ReturnNode : StatementNode {
public ReturnNode(SourcePosition position, ExpressionNode value) : base(position) {
Value = value;
}
public ExpressionNode Value { get; }
... | 26.875 | 91 | 0.648837 | [
"MIT"
] | sci4me/Neo-old | src/main/AST/Statements/ReturnNode.cs | 432 | C# |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.TestCommon;
using Moq;
namespace System.Web.Mvc.Test
{
public class MultiServiceResolverTest
{
[Fac... | 41.311594 | 175 | 0.64936 | [
"Apache-2.0"
] | charliefr/aspnetwebstack | test/System.Web.Mvc.Test/Test/MultiServiceResolverTest.cs | 5,703 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
namespace SuperTiled2Unity.Editor
{
[CanEditMultipleObjects]
[CustomEditor(typeof(TmxAssetImporter))]
class TmxAssetImporterEditor : TiledAssetImporterEditor<TmxAssetImpor... | 41.569536 | 261 | 0.647762 | [
"MIT"
] | Alkanov/SuperTiled2Unity | SuperTiled2Unity/Assets/SuperTiled2Unity/Scripts/Editor/Importers/TmxAssetImporterEditor.cs | 6,279 | C# |
using System;
using System.Linq;
using FluentAssertions;
using FsCheck.Xunit;
using Xunit;
namespace Toggl.Foundation.Tests
{
public sealed class DurationFieldInfoTests
{
public abstract class BaseDurationFieldInfoTest
{
protected DurationFieldInfo Field;
public BaseDu... | 33.150877 | 137 | 0.519581 | [
"BSD-3-Clause"
] | AzureMentor/mobileapp | Toggl.Foundation.Tests/DurationFieldInfoTests.cs | 9,450 | C# |
using UnityEngine;
using System.Collections;
public interface IProjectileWeapon {
Transform ProjectileSpawn { get; set; }
void CastProjectile();
}
| 10.933333 | 43 | 0.719512 | [
"Unlicense"
] | S00156670/TheForeverCave | Assets/Scripts/IProjectileWeapon.cs | 166 | C# |
namespace WebAssembly.Instructions
{
/// <summary>
/// Sign-agnostic shift left.
/// </summary>
public class Int32ShiftLeft : ValueTwoToOneInstruction
{
/// <summary>
/// Always <see cref="OpCode.Int32ShiftLeft"/>.
/// </summary>
public sealed override OpCode OpCode =... | 29.48 | 88 | 0.610583 | [
"Apache-2.0"
] | MuhammadTayyab1/dotnet-webassembly | WebAssembly/Instructions/Int32ShiftLeft.cs | 737 | C# |
using System;
using System.Globalization;
using FluentAssertions;
using Sentry.Tests.Helpers;
using Xunit;
namespace Sentry.Tests
{
public class SessionTests
{
[Fact]
public void Serialization_Session_Success()
{
// Arrange
var session = new Session(
... | 31.134831 | 96 | 0.464814 | [
"MIT"
] | ajbeaven/sentry-dotnet | test/Sentry.Tests/SessionTests.cs | 2,773 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml... | 37.680162 | 151 | 0.590523 | [
"MIT"
] | Ranin26/msdn-code-gallery-microsoft | Official Windows Platform Sample/Windows Phone 8.1 samples/111541-Windows Phone 8.1 samples/ScreenRecorderQuickstart/C#/MainPage.xaml.cs | 9,307 | C# |
using Sandbox;
using System;
using System.Collections.Generic;
[Library( "ent_car_ferrari", Title = "Ferrari", Spawnable = true )]
public partial class FerrariEntity : Prop, IUse
{
[ConVar.Replicated( "debug_car" )]
public static bool debug_car { get; set; } = false;
private FerrariWheel frontLeft;
private Ferr... | 30.260965 | 163 | 0.699109 | [
"MIT"
] | rayzoxisback/xnbox | code/entities/cars/Ferrari/FerrariEntity.cs | 13,799 | C# |
using Lyra.Core.Accounts;
using Lyra.Core.API;
using Lyra.Core.Blocks;
using Lyra.Core.Cryptography;
using Lyra.Exchange;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Syst... | 45.182377 | 201 | 0.53372 | [
"MIT"
] | wizd/WizardDAG | Core/Lyra.Core/Exchange/DealEngine.cs | 22,051 | C# |
namespace MvcForum.Web.ViewModels.Registration
{
using System.ComponentModel.DataAnnotations;
using Application;
public class ForgotPasswordViewModel
{
[ForumMvcResourceDisplayName("Members.Label.EmailAddressBlank")]
[EmailAddress]
[Required]
public string EmailAddress ... | 26.230769 | 72 | 0.697947 | [
"MIT"
] | YodasMyDad/mvcforum | MVCForum.Website/ViewModels/Registration/ForgotPasswordViewModel.cs | 343 | 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.030303 | 113 | 0.556641 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/ServiceCatalog/Generated/Model/AssociatePrincipalWithPortfolioRequest.cs | 4,096 | C# |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace MornLib.Mono {
[RequireComponent(typeof(RectTransform))]
public class AnimationLayoutMono : MonoBehaviour {
[SerializeField] private Dir _dir;
[SerializeField] private int _spacing;
[SerializeField] private boo... | 42.142857 | 122 | 0.556416 | [
"Unlicense"
] | matsufriends/MornLib | Mono/AnimationLayoutMono.cs | 2,067 | C# |
//Problem 5. Workdays
//Write a method that calculates the number of workdays between today and given date, passed as parameter.
//Consider that workdays are all days from Monday to Friday except a fixed list of public holidays specified preliminary as array.
using System;
using System.Linq;
class Workdays
{
st... | 30.597015 | 130 | 0.572195 | [
"MIT"
] | zvet80/TelerikAcademy | 02.C#2/05.ClassesAndObjects/05.Workdays/Workdays.cs | 2,052 | C# |
using System;
using System.Linq;
namespace Slides
{
class Program
{
static void Main()
{
// read dimensions
string[] line = Console.ReadLine().Split(' ');
int cuboidWidth = int.Parse(line[0]);
int cuboidHeigth = int.Parse(line[1]);
in... | 36.069307 | 121 | 0.39171 | [
"MIT"
] | AYankova/CSharp | Exams2012/03.Slides/Program.cs | 3,645 | C# |
using Address.Contract.DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Address.Contract.Mappers
{
/// <summary>
/// Maps between the entity and the dto.
/// </summary>
public static class AddressMapper
{
//... | 33.397849 | 117 | 0.569221 | [
"MIT"
] | LuisSanchez/WebApi-Core-3.0-Boilerplate | Address.Contract/Mappers/AddressMapper.cs | 3,108 | C# |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using BDSA2019.Lecture09.Models;
using BDSA2019.Lecture09.Web.Controllers;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Moq;
using Xunit;
using static BDSA2019.Lecture09.Models.Response;
namespace BDSA2019.Lectur... | 35.542373 | 121 | 0.654268 | [
"MIT"
] | ondfisk/BDSA2019 | BDSA2019.Lecture09/BDSA2019.Lecture09.Web.Tests/Controllers/SuperheroesControllerTests.cs | 4,194 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
namespace AlphaBIM
{
class LocCot : ISelectionFilter
{
public bool AllowElement(Element elem)
{
// Cách 2:... | 23.228571 | 80 | 0.578106 | [
"MIT"
] | alphabim/Revit-API-Basic-Course | Lesson04_SelectionFiltering/LocCot.cs | 828 | C# |
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.Internal;
using SamuraiAp... | 32.053846 | 117 | 0.487881 | [
"MIT"
] | davikawasaki/csharp-ef2-core-pluralsight | SamuraiAppEFCoreGettingStarted/SamuraiApp.Data/Migrations/20190912135139_relationships.Designer.cs | 4,169 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Windows;
using System.Windows.Input;
using System.Windows.Shell;
using System.Windows.Threading;
using System.Xml;
using GalaSoft.MvvmLight.Mess... | 33.511905 | 233 | 0.569734 | [
"MIT"
] | ekblom/noterium | src/Noterium/App.xaml.cs | 14,077 | C# |
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using TicketCode.Core.Data;
namespace TicketCode.WebHost.Migrations
{
[DbContext(typeof(TcDbContext))]
partial class TcDbCon... | 35.482993 | 92 | 0.438938 | [
"BSD-3-Clause"
] | tanlingyun/ticketcode | src/TicketCode/TicketCode/Migrations/TcDbContextModelSnapshot.cs | 10,434 | C# |
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
namespace MastersThesisCountDown.I2C
{
public abstract class I2C : IDisposable
{
protected I2CDevice Device { get; }
protected int Timeout { get; }
public ushort Address { get; }
public I2C(ushort address, int c... | 31.329412 | 120 | 0.568907 | [
"MIT"
] | terry-u16/MastersThesisCountDown | MastersThesisCountDown/I2C/I2C.cs | 2,663 | C# |
using HealthyLifestyleTrackingApp.Services.LifeCoaches;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using static HealthyLifestyleTrackingApp.Areas.Admin.AdminConstants;
using static HealthyLifestyleTrackingApp.WebConstants;
namespace HealthyLifestyleTrackingApp.Areas.Admin.Controllers
... | 29.657895 | 100 | 0.705413 | [
"MIT"
] | VeselinaSidova/Healthy-Lifestyle-Tracking-App | HealthyLifestyleTrackingApp/Areas/Admin/Controllers/LifeCoachesController.cs | 1,129 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace SakerCore.Serialization.DynmaicType
{
#region DynmaicClassSerialize
/************这里使用服务器动态编译的方法实现类型的序列化和反序列化************/
/// <summary>
/// 表示一个类型的动态... | 35.746702 | 201 | 0.54067 | [
"MIT"
] | shenrui93/sakercore | SakerCore/Serialization/DynmaicType/DynmaicSerialize.cs | 30,500 | 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.Runtime.InteropServices;
namespace System.ComponentModel
{
/// <summary>
/// A "container" is ... | 39.113636 | 90 | 0.647298 | [
"MIT"
] | ARhj/corefx | src/System.ComponentModel.Primitives/src/System/ComponentModel/IContainer.cs | 1,721 | C# |
using ENet;
using MHLab.AspNetCore.Enet.Handlers;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Host = ENet.Host;
namespace MHLab.AspNetCore.Enet.Servers
{
public sealed class EnetServer : IHostedService
{
... | 34.911111 | 121 | 0.527689 | [
"MIT"
] | manhunterita/MHLab.AspNetCore.Enet | MHLab.AspNetCore.Enet/Servers/EnetServer.cs | 4,715 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
// ReSharper disable once CheckNamespace
public static class EnumHelper
{
#region Static Methods
public static Dictionary<int, string> GetDictionary<T>() where T : struct
{
if (!typeof(T).IsEnum)
{
throw new Ar... | 28.935484 | 113 | 0.559272 | [
"MIT"
] | modular-net/Modular.NET | src/Modular.NET.Core/Helpers/EnumHelper.cs | 2,693 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace Gamekit3D.GameCommands
{
public static class CommandGizmos
{
static GUIStyle sceneNote;
static CommandGizmos()
{
sceneNote = new GUIStyle("box");
sceneNo... | 37.510638 | 115 | 0.614861 | [
"Apache-2.0"
] | Scottdyt/3DGamekitWeb | Frontend/Assets/3DGamekit/Packages/Interactive/Editor/TeleporterGizmo.cs | 1,765 | C# |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace ServiceStack
{
//Interfaces and DTO's used in AutoQuery
public interface IQuery
{
int? Skip { get; set; }
int? Take { get; set; }
string OrderBy { get; set; }
string Or... | 31.066667 | 114 | 0.594114 | [
"Apache-2.0"
] | Chris-Kim/ServiceStack | src/ServiceStack.Interfaces/IQuery.cs | 3,160 | C# |
using System.Collections.Generic;
namespace OneScriptDocumenter.Model
{
abstract class AbstractSyntaxItem
{
public MultilangString Caption { get; set; }
public MultilangString Description { get; set; }
public IList<AbstractSyntaxItem> Children { get; protected set; }
}
}
| 23.923077 | 73 | 0.697749 | [
"MIT"
] | EvilBeaver/OneScriptDocumenter | OneScriptDocumenter/Model/AbstractSyntaxItem.cs | 313 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RazorCompile
{
using System.Text.RegularExpressions;
/// <summary>
/// An incredibly shoddy implementation of the Razor Web View compiler.
/// There are certain C# syntax combinations which are currently u... | 38.708333 | 188 | 0.481364 | [
"BSD-2-Clause"
] | lostromb/pokemon_world | RazorCompile/RazorTemplate.cs | 14,866 | C# |
using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace Serialization.Tests.ExampleModel
{
[Serializable]
[JsonObject]
public class ClassC : ISerializable
{
public ClassC() { }
public ClassC(string className, DateTime dateTimeValue, ClassA a)
{
... | 28.736842 | 83 | 0.60348 | [
"Apache-2.0"
] | Nawrok/tp | Task_2/Serialization.Tests/ExampleModel/ClassC.cs | 1,094 | C# |
using System.Collections.Generic;
namespace CTournament.Models.CReplay.Players
{
public class PlayersDataInfo
{
public int GameId { get; set; }
public long MetaId { get; set; }
public int Level { get; set; }
public bool HasPremium { get; set; }
public int Role { get; se... | 31.139535 | 70 | 0.547423 | [
"MIT"
] | djserega/CTournament | src/CTournament/CTournament/Models/CReplay/Players/PlayersDataInfo.cs | 1,341 | C# |
using System;
namespace Shriek.ServiceProxy.Socket
{
/// <summary>
/// 定义服务器插件行为
/// </summary>
public interface IPlug
{
/// <summary>
/// 会话连接成功后触发
/// 如果关闭了会话,将停止传递给下个插件的OnConnected
/// </summary>
/// <param name="sender">发生者</param>
/// <param nam... | 29.102041 | 63 | 0.545582 | [
"MIT"
] | 1051324354/shriek-fx | src/Shriek.ServiceProxy.Socket/IPlug.cs | 1,748 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.