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;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Access device end point that can have multiple contacts.
/// Port numbers are... | 29.590604 | 129 | 0.577909 | [
"MIT"
] | JTOne123/broadworks-connector-net | BroadworksConnector/Ocip/Models/AccessDeviceMultipleContactEndpointRead20.cs | 4,409 | C# |
namespace UnityEngine.U2D
{
/// <summary>
/// The Pixel Perfect Camera component ensures your pixel art remains crisp and clear at different resolutions, and stable in motion.
/// </summary>
[DisallowMultipleComponent]
[AddComponentMenu("Rendering/Pixel Perfect Camera")]
[RequireComponent(typeof... | 40.908046 | 205 | 0.624333 | [
"BSD-2-Clause"
] | KrauseKurt/LD44 | Library/PackageCache/com.unity.2d.pixel-perfect@1.0.1-preview/Runtime/PixelPerfectCamera.cs | 10,677 | C# |
using Netnr.Blog.Data;
namespace Netnr.Blog.Web.Areas.Gist.Controllers
{
[Area("Gist")]
public class RawController : Controller
{
public ContextBase db;
public RawController(ContextBase cb)
{
db = cb;
}
/// <summary>
/// 原始数据
/// </summ... | 26.355556 | 111 | 0.458685 | [
"MIT"
] | netnr/np | src/Netnr.P/Netnr.Blog.Web/Areas/Gist/Controllers/RawController.cs | 1,196 | C# |
public static class Constants
{
public static class FunctionNames
{
public const string CosmosDbChangeFeedListener = "changefeed-listener";
}
} | 23.285714 | 79 | 0.717791 | [
"MIT"
] | alexanderwjrussell/stacks-dotnet-cqrs-events | src/functions/func-cosmosdb-worker/xxAMIDOxx.xxSTACKSxx.Worker/Constants.cs | 163 | C# |
// References:
// https://gist.github.com/tomkail/ba4136e6aa990f4dc94e0d39ec6a058c
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace Scri... | 32.625806 | 209 | 0.733834 | [
"MIT"
] | maxartz15/ScriptableData | Editor/Drawers/ExtendedScriptableObjectDrawer.cs | 5,059 | C# |
using System.Collections.Generic;
namespace RoverSupertramp
{
class Invoker
{
private Coordinate _plateauSize;
private Rover _rover = new Rover();
private List<Command> _commands = new List<Command>();
/// <summary>
///
/// </summary>
/// ... | 25.206349 | 69 | 0.478589 | [
"MIT"
] | beratiyilik/RoverSupertramp | RoverSupertramp/Invoker.cs | 1,590 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LeetCode.Naive.Problems
{
/// <summary>
/// Problem: https://leetcode.com/problems/valid-tic-tac-toe-state/
/// Submission: https://leetcode.com/submissions/detail/400212633/
/// </summary>
intern... | 29.068182 | 112 | 0.508991 | [
"MIT"
] | viacheslave/leetcode-naive | c#/Problems/P0794.cs | 1,279 | C# |
using System;
using Terraria;
using Terraria.Achievements;
namespace Terraria.GameContent.Achievements
{
public class CustomFloatCondition : AchievementCondition
{
private float _value;
private float _maxValue;
public float Value
{
get
{
return this._value;
}
set
{
... | 19.946429 | 73 | 0.64906 | [
"MIT"
] | BloodARG/tModLoaderTShock | TShock-general-devel/TerrariaServerAPI/Terraria/GameContent/Achievements/CustomFloatCondition.cs | 1,062 | C# |
using Microsoft.ServiceFabric.Data;
using System;
using System.Fabric;
using System.IO;
using System.IO.Compression;
using System.Threading;
using System.Threading.Tasks;
using Trinity.Diagnostics;
using Trinity.DynamicCluster.Consensus;
using Trinity.DynamicCluster.Persistency;
using Trinity.Utilities;
namespace Tri... | 43.291667 | 214 | 0.614822 | [
"MIT"
] | Bhaskers-Blu-Org2/GraphEngine | src/Modules/GraphEngine.ServiceFabric/Trinity.ServiceFabric.Infrastructure/Interfaces/ServiceFabricBackupManager.cs | 5,197 | C# |
//-----------------------------------------------------------------------------
// FILE: DisconnectRequest.cs
// CONTRIBUTOR: Jeff Lill
// COPYRIGHT: Copyright (c) 2005-2021 by neonFORGE LLC. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ex... | 30.190476 | 95 | 0.634069 | [
"Apache-2.0"
] | nforgeio/neonKUBE | Lib/Neon.Cadence/Internal/ClientMessages/DisconnectRequest.cs | 1,904 | C# |
using System.Linq;
using System;
using System.Collections.Generics;
namespace Programs
{
public class MyQueue {
/** Initialize your data structure here. */
public MyQueue() {
}
/** Push element x to the back of queue. */
public void Push(int x) {... | 19.860465 | 83 | 0.468384 | [
"MIT"
] | shobhitmishra/CodingProblems | LeetCode/problem232.cs | 854 | C# |
using FIMSpace.FEditor;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace FIMSpace.FTail
{
public partial class FTailAnimator2_Editor
{
// RESOURCES ----------------------------------------
public static Texture2D _TexTailAnimIcon { get { if (__texTailAnimIcon ... | 42.993631 | 232 | 0.59437 | [
"MIT"
] | omerasikoglu/Capstone-Runner | Assets/Tools/FImpossible Creations/Editor/Tail Animator/TailAnimator.Editor.Helpers.cs | 6,752 | C# |
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using System.IO;
using S... | 41.514286 | 107 | 0.527529 | [
"MIT"
] | JasonFreeberg/Oryx | tests/Oryx.Integration.Tests/Php/PhpDynamicInstallationTest.cs | 2,839 | C# |
using System;
using System.Collections.Generic;
using System.Net;
using AlertToCare.Models;
namespace AlertToCare.DatabaseOperations
{
public class PatientDbOps: DbOps
{
public PatientDbOps(string filePath) : base(filePath) { }
public object AddPatientToDb(PatientModel newPatient)
{
... | 33.86087 | 113 | 0.491525 | [
"MIT"
] | Engin-Boot/alert-to-care-s21b7 | AlertToCare/DatabaseOperations/PatientDbOps.cs | 3,896 | C# |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace LeakBlocker
{
internal static class EntryPoint
{
private static volatile bool loaded;
... | 32.22561 | 208 | 0.495364 | [
"MIT"
] | imanushin/leak-blocker | Projects/LeakBlocker.AdminView/EntryPoint.cs | 5,287 | 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/mmeapi.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.InteropService... | 31.529412 | 145 | 0.73694 | [
"MIT"
] | DaZombieKiller/terrafx.interop.windows | sources/Interop/Windows/um/mmeapi/MIXERCONTROLDETAILS_UNSIGNED.cs | 538 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado ... | 74.766667 | 279 | 0.740526 | [
"MIT"
] | danielm2512/CooperSystem | CooperSystem.UnitTests/obj/Debug/net5.0/CooperSystem.UnitTests.AssemblyInfo.cs | 2,252 | C# |
/*
MIT LICENSE
Copyright 2017 Digital Ruby, LLC - http://www.digitalruby.com
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, ... | 63.814815 | 460 | 0.763784 | [
"MIT"
] | edalmasso/ExchangeSharp | ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs | 1,725 | C# |
#region License
// The PostgreSQL License
//
// Copyright (C) 2017 The Npgsql Development Team
//
// Permission to use, copy, modify, and distribute this software and its
// documentation for any purpose, without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
// and... | 34.14 | 84 | 0.727592 | [
"MIT"
] | muhammet-kandemir-95/MA.Dal.Dao | MA.Dao.Generate.VSIX/MA.Dao.Generate.VSIX.App/Other Databases/Npgsql/FrontendMessages/TerminateMessage.cs | 1,709 | C# |
using UnityEngine;
using UnityEditor;
using System.Globalization;
using System.Linq;
using System.IO;
using System.Collections.Generic;
[CustomEditor(typeof(YarnImporter))]
public class YarnImporterEditor : UnityEditor.AssetImporters.ScriptedImporterEditor {
int selectedLanguageIndex;
int selectedNewTransla... | 43.74813 | 281 | 0.596192 | [
"CC0-1.0"
] | CommanderKeef/Space-Voyager-Odyssey-Stories-Ep.-I | Assets/YarnSpinner/Editor/YarnImporterEditor.cs | 17,544 | C# |
using Godot;
public class Bee : Muff
{
[Export] protected int chance = 0;
[Export] protected Color bulletModulate = default(Color);
[Export] protected float shootTimer = 0;
public override void _Ready()
{
base._Ready();
GetNode<Timer>("ShootTimer").WaitTime = shootTimer;
GD... | 30.451613 | 74 | 0.545551 | [
"MIT"
] | youkaicountry/yknytt | knytt/objects/banks/bank2/Bee.cs | 944 | C# |
using UnityEngine;
namespace TotalAI
{
[CreateAssetMenu(fileName = "RandomTF", menuName = "Total AI/Target Factors/Random", order = 0)]
public class RandomTF : TargetFactor
{
public override float Evaluate(Agent agent, Entity entity, Mapping mapping, bool forInventory)
{
return... | 26.928571 | 102 | 0.668435 | [
"MIT"
] | TotalAI/TotalAI | TotalAI/Scripts/ScriptableObjects/TargetFactors/RandomTF.cs | 379 | C# |
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalys... | 42.556962 | 184 | 0.661808 | [
"Apache-2.0"
] | codemonkey85/roslyn | Src/Compilers/CSharp/Test/Syntax/IncrementalParsing/NodeValidators.cs | 3,364 | C# |
using Microsoft.AspNetCore.Mvc;
namespace PierresTreatAndFlavor.Controllers
{
public class Homecontroller : Controller
{
[HttpGet("/")]
public ActionResult Index()
{
return View();
}
}
} | 16.538462 | 43 | 0.665116 | [
"MIT"
] | keidsiri/PierresTreatAndFlavor | PierresTreatAndFlavor/Controllers/HomeController.cs | 215 | C# |
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/
//
// 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 req... | 38.323529 | 96 | 0.709133 | [
"Apache-2.0"
] | belav/Core | src/Castle.Core.Tests/DynamicProxy.Tests/CustomAttributesTestCase.cs | 1,303 | C# |
using System.Linq;
using Mapster;
namespace Kasp.ObjectMapper.Mapster;
public class Mapster : IObjectMapper<Mapster>, IObjectMapper {
public TDestination MapTo<TDestination>(object source) => source.Adapt<TDestination>();
public TDestination MapTo<TSource, TDestination>(TSource source, TDestination destination) =>... | 35.692308 | 121 | 0.801724 | [
"MIT"
] | mo3in/Kasp | src/Kasp.ObjectMapper.Mapster/Mapster.cs | 464 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generi... | 31.244186 | 99 | 0.628582 | [
"MIT"
] | Benjaminrivard/ttc2019-tt2bdd | solutions/NMF/Metamodels/TruthTables/IRow.cs | 2,689 | C# |
namespace IDisposableAnalyzers.NetCoreTests.IDISP005ReturnTypeShouldBeIDisposableTests
{
using Gu.Roslyn.Asserts;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using NUnit.Framework;
public static class Valid
{
private static readonly DiagnosticAnalyzer Analyz... | 25.125 | 116 | 0.68408 | [
"MIT"
] | AraHaan/IDisposableAnalyzers | IDisposableAnalyzers.NetCoreTests/IDISP005ReturnTypeShouldBeIDisposableTests/Valid.cs | 806 | C# |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HouseBuilderWithSyntax.cs" company="bbv Software Services AG">
// Copyright (c) 2014 - 2020
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you m... | 30.164286 | 120 | 0.570211 | [
"Apache-2.0"
] | bbvch-academy/CleanCode.Academy | source/Testing.Sample/5 Builder with Syntax Sample/Builder/HouseBuilderWithSyntax.cs | 4,225 | C# |
using System;
using System.Linq;
using System.Reactive.Linq;
using ReactiveProperty;
namespace ReactiveViewModels
{
public partial class ReactiveTestViewModel : IReactiveProperty
{
private const string _answer = "Answer to the Ultimate Question of Life, the Universe, and Everything";
private c... | 28.621622 | 111 | 0.502361 | [
"MIT"
] | b-straub/BlazorSourceGeneratorTests | ReactiveViewModels/ReactiveTestViewModel.cs | 1,061 | C# |
using Entitas;
namespace FineGameDesign.Entitas
{
public sealed class PetriGameSystems : Feature
{
public PetriGameSystems(Contexts contexts)
{
Add(new TransmissionSystem(contexts));
}
}
}
| 18.307692 | 50 | 0.638655 | [
"MIT"
] | ethankennerly/digestion-defense | DigestionDefense/Assets/Sources/Logic/Features/PetriGameSystems.cs | 238 | C# |
using System;
using System.IO;
using Functional.Maybe;
using JetBrains.Annotations;
namespace Tauron.Temp
{
[PublicAPI]
public sealed class TempStorage : TempDic
{
private static TempStorage? _default;
public TempStorage()
: this(Path.GetRandomFileName, Path.GetTempPath(), fal... | 26.2 | 91 | 0.565579 | [
"MIT"
] | augustoproiete-bot/Project-Manager-Akka | Tauron.Application.Common/Temp/TempStorage.cs | 1,443 | 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: AssemblyTit... | 38.361111 | 85 | 0.729906 | [
"Apache-2.0"
] | rncode/Rn.Mailer | src/Rn.Mailer/Properties/AssemblyInfo.cs | 1,384 | C# |
/*
* FactSet Estimates Report Builder
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
us... | 34.383562 | 258 | 0.507703 | [
"Apache-2.0"
] | factset/enterprise-sdk | code/dotnet/FactSetEstimatesReportBuilder/v1/src/FactSet.SDK.FactSetEstimatesReportBuilder/Model/ErrorObject.cs | 7,530 | C# |
/*
* Copyright 2010-2013 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... | 43.320988 | 183 | 0.634654 | [
"Apache-2.0"
] | jdluzen/aws-sdk-net-android | AWSSDK/Amazon.RDS/Model/Internal/MarshallTransformations/DescribeDBSubnetGroupsRequestMarshaller.cs | 3,509 | C# |
namespace NaCl.Core
{
using System;
using System.Security.Cryptography;
using Base;
using Internal;
/// <summary>
/// A stream cipher based on https://download.libsodium.org/doc/advanced/xchacha20.html and https://tools.ietf.org/html/draft-arciszewski-xchacha-02.
///
/// Th... | 42.62069 | 182 | 0.614887 | [
"MIT"
] | idaviddesmet/NaCl.Core | src/NaCl.Core/XChaCha20.cs | 2,474 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Airline.FleetInfoBot.Web.Helper
{
public class Constants
{
public const string ShowAirCraftDetails = "Show me aircraft details";
public const string Rebook = "Rebook the passenger";
public co... | 30.875 | 77 | 0.710526 | [
"MIT"
] | Bhaskers-Blu-Org2/msteams-sample-line-of-business-apps-csharp | Airline/FleetInfoBot/Helper/Constants.cs | 496 | 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/appnotify.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System;
using System.Runti... | 57.678571 | 284 | 0.757895 | [
"MIT"
] | DaZombieKiller/terrafx.interop.windows | sources/Interop/Windows/um/appnotify/Windows.cs | 1,617 | C# |
using System.Text;
using Bing.Utils.Extensions;
namespace Bing.Domains.Repositories
{
/// <summary>
/// 分页参数
/// </summary>
public class Pager : IPager
{
#region 构造函数
/// <summary>
/// 初始化一个<see cref="Pager"/>类型的实例
/// </summary>
public Pager() : this(1)
... | 25.341772 | 91 | 0.461538 | [
"MIT"
] | Alean-singleDog/Bing.NetCore | src/Bing/Domains/Repositories/Pager.cs | 4,338 | C# |
using System;
using System.Collections.Generic;
using GloomChars.GameData.Interfaces;
namespace GloomChars.GameData.Models
{
public class PerkBuilder
{
private Perk _perk { get; set; }
public PerkBuilder(string id, int qty)
{
_perk = new Perk(id, qty);
}
p... | 29.149254 | 111 | 0.592422 | [
"Unlicense"
] | Yend0r/gloomhaven-api-csharp | src/GloomChars.GameData/Services/PerkBuilder.cs | 1,955 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GbxRemoteNet.Structs {
public class ForcedMods {
public bool Override;
public ForcedMods[] Mods;
}
}
| 19.461538 | 33 | 0.719368 | [
"Apache-2.0"
] | reaby/GbxRemote.Net | GbxRemote.Net/Structs/ForcedMods.cs | 255 | C# |
namespace Reportr.Filtering
{
using System.ComponentModel;
/// <summary>
/// Defines input types for parameter values
/// </summary>
public enum ParameterInputType
{
[Description("Text")]
Text = 0,
[Description("Whole Number")]
WholeNumber = 1,
[Descri... | 19.578947 | 48 | 0.545699 | [
"MIT"
] | JTOne123/Reportr | src/Reportr/Filtering/ParameterInputType.cs | 746 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EnemyHpBar : MonoBehaviour {
private Slider hpSlider;
private Enemy enemy;
private int maxHp;
// Use this for initialization
void Start () {
enemy = transform.parent.parent.G... | 25 | 81 | 0.64 | [
"MIT"
] | satokibi/houti_dungeon | Assets/Scripts/Enemy/EnemyHpBar.cs | 727 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ForgedOnce.TsLanguageServices.FullSyntaxTree.AstBuilder
{
public static partial class StCatchClauseExtensions
{
public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCatchClause WithVariableDeclaration(... | 64.897436 | 383 | 0.780719 | [
"MIT"
] | YevgenNabokov/ForgedOnce.TSLanguageServices | ForgedOnce.TsLanguageServices.FullSyntaxTree/AstBuilder/Generated/StCatchClauseExtensions.cs | 2,531 | C# |
using Informapp.InformSystem.WebApi.Models.Http;
using Informapp.InformSystem.WebApi.Models.Requests;
using Informapp.InformSystem.WebApi.Models.Responses;
using Informapp.InformSystem.WebApi.Models.Version1.Constants;
using Informapp.InformSystem.WebApi.Models.Version1.Errors;
using System.Net;
using System.Runtime.S... | 38.333333 | 89 | 0.78744 | [
"MIT"
] | InformappNL/informapp-api-dotnet-client | src/WebApi.Models/Version1/EndPoints/Tests/Methods/GetMethod/GetMethodV1Request.cs | 1,037 | C# |
using System;
using System.Collections.Generic;
namespace Faforever.Qai.Core.Models
{
public class FetchPlayerStatsResult
{
public string Name { get; set; } = default!;
public string Id { get; set; } = default!;
public GameStatistics? LadderStats { get; set; } = null;
public Gam... | 30.317073 | 72 | 0.576026 | [
"MIT"
] | Crotalus/faf-qai | src/Faforever.Qai.Core/Models/FetchPlayerStatsResult.cs | 1,243 | C# |
[BLToolkitGenerated]
public sealed class TestClass : CounterAspectTest.TestClass
{
private static CallMethodInfo _methodInfo;
private static IInterceptor _interceptor;
public override void TestMethod()
{
if (_methodInfo == null)
{
_methodInfo = new CallMethodInfo((MethodInfo)MethodBase.GetCurre... | 26.362319 | 109 | 0.674546 | [
"MIT"
] | igor-tkachev/bltoolkit | Tools/DocGen/Content/Doc/Aspects/CounterAspect.cs | 1,821 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace wechat_hook
{
public class CommandLineArgumentParser
{
List<CommandLineArgument> _arguments;
public static CommandLineArgumentParser Parse(string[] args)
{
return new CommandLin... | 23.351351 | 96 | 0.493827 | [
"MIT"
] | Alioth1017/wechat-hook | wechat-hook/CommandLineArgumentParser.cs | 2,594 | 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... | 32.802817 | 120 | 0.747102 | [
"Apache-2.0"
] | Bit-Quill/opensearch-net | src/Osc/Modules/SnapshotAndRestore/Snapshot/Snapshot.cs | 2,329 | C# |
using System.Threading.Tasks;
using Unofficial.Owlet.Models.Response;
namespace Unofficial.Owlet.Interfaces
{
/// <summary>
/// Provides access to user-level information of your Owlet account, including authentication tasks.
/// </summary>
public interface IOwletUserApi
{
/// <summary>
... | 42.884615 | 146 | 0.667265 | [
"MIT"
] | mitch-b/owlet-api-dotnet | src/Unofficial.Owlet/Interfaces/IOwletUserApi.cs | 1,117 | C# |
// Copyright (c) 2017 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using NUnit.Framework;
namespace LfMerge.AutomatedSRTests.Tests
{
[TestFixture]
public class CommentsTests
{
private const string LexemeA =
// language=json
@"{ 'lexeme': { 'fr' :... | 27.987526 | 170 | 0.564404 | [
"MIT"
] | TobiasNickelWycliff/lfmerge-autosrtests | LfMerge.AutomatedSRTests/Tests/CommentsTests.cs | 26,924 | C# |
using Apiology.Hal.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Apiology.Hal
{
public class HalModelConfig : IHalModelConfig
{
public string RelativePathBase { get; set; }
public string RequestPathBas... | 30.914286 | 94 | 0.422366 | [
"MIT"
] | IsaacSanch/APIology.HAL | src/Apiology.Hal/src/Configuration/HalModelConfig.cs | 2,166 | C# |
namespace MyDownloader.Core.UI
{
partial class Connection
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | 42.48503 | 107 | 0.572516 | [
"MIT"
] | 1alireza32109/NiceHashMiner | src/3rdparty/DownloadManager/MyDownloader.Core/UI/Connection.Designer.cs | 7,095 | C# |
using System.ComponentModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Http;
using Microsoft.Extensions.Options;
using Sentry.Extensibility;
namespace Sentry.Extensions.Logging.Extensions.DependencyInjection;
/// <summary>
///... | 34.918367 | 108 | 0.687902 | [
"MIT"
] | TawasalMessenger/sentry-dotnet | src/Sentry.Extensions.Logging/Extensions/DependencyInjection/ServiceCollectionExtensions.cs | 1,711 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using BulletSharp;
using BulletSharp.SoftBody;
using VVVV.Internals.Bullet;
using VVVV.Bullet.Core;
namespace VVVV.Bullet.Core
{
//Just to make it easier to manage than having million of stuff in
//World node. Can also easily switch broadphases
pu... | 26.197232 | 147 | 0.653943 | [
"BSD-3-Clause"
] | laurensrinke/dx11-vvvv | Nodes/VVVV.DX11.Nodes.Bullet/Core/SoftWorldContainer.cs | 7,573 | C# |
using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Access
{
public class SharedIdCardConsoleComponent : Component
{
public override ... | 34.158537 | 100 | 0.625491 | [
"MIT"
] | 4dplanner/space-station-14 | Content.Shared/GameObjects/Components/Access/SharedIdCardConsoleComponent.cs | 2,801 | C# |
using System;
namespace Melanchall.DryWetMidi.Common
{
internal sealed class ParsingResult
{
#region Constants
public static readonly ParsingResult Parsed = new ParsingResult(ParsingStatus.Parsed);
public static readonly ParsingResult EmptyInputString = new ParsingResult(ParsingStatus... | 24.653333 | 114 | 0.56517 | [
"MIT"
] | Amalgam-Cloud/drywetmidi | DryWetMidi/Common/Parsing/ParsingResult.cs | 1,851 | C# |
using ColossalFramework;
using ColossalFramework.Math;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrafficManager.Custom.AI;
using TrafficManager.State;
using TrafficManager.Geometry;
using TrafficManager.TrafficLight;
using UnityEngine;
using TrafficManager.Manager;
usi... | 37.72301 | 308 | 0.665168 | [
"MIT"
] | Sipke82/Cities-Skylines-Traffic-Manager-President-Edition | TLM/TLM/UI/SubTools/TimedTrafficLightsTool.cs | 69,186 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TracerAttributes;
namespace Tracer.Lib.Async
{
public class AsyncMethod
{
[NoTrace]
public AsyncMethod()
{
}
private async Task<int> Double(int p)... | 22.234568 | 89 | 0.533592 | [
"MIT"
] | hhko/Books | 1.Tutorials/Observability/NLog/Tracer/Tracer.Lib/Async/AsyncMethod.cs | 1,803 | C# |
#region references
using acDb = Autodesk.AutoCAD.DatabaseServices;
using acDynNodes = Autodesk.AutoCAD.DynamoNodes;
using acDynApp = Autodesk.AutoCAD.DynamoApp.Services;
using acGeom = Autodesk.AutoCAD.Geometry;
using civApp = Autodesk.Civil.ApplicationServices;
using Autodesk.DesignScript.Geometry;
using AeccProfileV... | 40.661017 | 148 | 0.624635 | [
"BSD-3-Clause"
] | mzjensen/Camber | Camber/Civil/Labels/ProfileViewDepthLabel.cs | 4,800 | C# |
#region Licences
// Copyright (C) 2005 Sebastian Faltoni <sebastian@dotnetfireball.net>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 o... | 25.969683 | 92 | 0.58606 | [
"MIT"
] | RivenZoo/FullSource | Jx3Full/Source/Source/Tools/GameDesignerEditor/Controls/luaEditor/fireball_src/Fireball.Ssh/Fireball.Ssh/jsch/ChannelSftp.cs | 52,712 | C# |
using System;
namespace Pixytech.Core.Logging
{
public class NLogLogger : ILog
{
private readonly object _logger;
private static readonly Func<object, bool> IsDebugEnabledDelegate;
private static readonly Func<object, bool> IsInfoEnabledDelegate;
private static readonly Func<ob... | 42.954248 | 107 | 0.64227 | [
"Apache-2.0"
] | Pixytech/Frameworks | Pixytech.Core/Logging/NLogLogger.cs | 6,574 | C# |
using UnityEngine;
namespace ExpressoBits.Console.UI
{
[CreateAssetMenu(fileName = "New Theme", menuName = "Expresso Bits/Console/Theme", order = 0)]
public class Theme : ScriptableObject
{
public Font font;
[Header("Log Attributes")]
public LogAttribute defaultLogAttribut... | 30.470588 | 98 | 0.689189 | [
"MIT"
] | ExpressoBits/EBConsole | Runtime/Scripts/UI/Theme.cs | 520 | C# |
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
//
// 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, modi... | 41.68254 | 211 | 0.677837 | [
"MIT"
] | VirusFree/SharpDX | Source/Toolkit/SharpDX.Toolkit.Graphics/SetDataOptions.cs | 2,628 | C# |
namespace Spectre.Console.Rendering;
/// <summary>
/// Contains extension methods for <see cref="BoxBorder"/>.
/// </summary>
public static class BoxExtensions
{
/// <summary>
/// Gets the safe border for a border.
/// </summary>
/// <param name="border">The border to get the safe border for.</param>
... | 29.071429 | 87 | 0.614251 | [
"MIT"
] | BlackOfWorld/spectre.console | src/Spectre.Console/Extensions/BoxExtensions.cs | 814 | C# |
//*******************************************************************************************//
// //
// Download Free Evaluation Version From: https://bytescout.com/download/web-installer //
// ... | 49.297872 | 95 | 0.483815 | [
"Apache-2.0"
] | atkins126/ByteScout-SDK-SourceCode | Data Extraction Suite/C#/Convert PDF To XLS with PDF Extractor SDK/Properties/AssemblyInfo.cs | 2,320 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... | 38.182143 | 228 | 0.576747 | [
"ECL-2.0",
"Apache-2.0"
] | suresh198526/pulumi-azure | sdk/dotnet/Monitoring/ActionRuleActionGroup.cs | 10,691 | C# |
// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
// © Component Factory Pty Ltd, 2006 - 2016, All rights reserved.
// The software and associated documentation supplied hereunder are the
// prop... | 38.564315 | 157 | 0.573596 | [
"BSD-3-Clause"
] | Krypton-Suite-Legacy/Krypton-NET-5.460 | Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Designers/KryptonBreadCrumbDesigner.cs | 9,297 | C# |
using CSRedis;
using Microsoft.Extensions.Configuration;
using OptionsPractice.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OptionsPractice.Extension
{
public static class RedisConfigurationExtensions
{
public static ICo... | 28.263158 | 137 | 0.746741 | [
"MIT"
] | Regularly-Archive/2020 | src/OptionsPractice/Extension/RedisConfigurationExtensions.cs | 539 | C# |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System;
using System.Linq;
using System.Sec... | 42.902256 | 188 | 0.68647 | [
"Apache-2.0"
] | Ed-Fi-Exchange-OSS/MappingEDU | src/MappingEdu.Service/MappingProjects/MappingProjectTemplateService.cs | 5,708 | C# |
using System.Diagnostics;
using Discord.WebSocket;
namespace HoLLy.DiscordBot.Permissions.Conditions.Users
{
[DebuggerDisplay("DEFAULTUSER")]
internal class DefaultUserCondition : IUserCondition
{
public bool Match(SocketUser user, ISocketMessageChannel c) => true;
}
}
| 24.666667 | 76 | 0.746622 | [
"BSD-3-Clause"
] | HoLLy-HaCKeR/DiscordBotV5 | DiscordBot5/Permissions/Conditions/Users/DefaultUserCondition.cs | 298 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.ContractsLight;
using System.IO;
using System.IO.Compression;... | 46.163842 | 179 | 0.574838 | [
"MIT"
] | MatisseHack/BuildXL | Public/Src/Engine/Dll/Serialization/EngineSerializer.cs | 24,513 | C# |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2021 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE fil... | 25.833333 | 64 | 0.540943 | [
"Apache-2.0"
] | 10by10pixel/YAFNET | yafsrc/YAF.Types/Objects/ThankYouInfo.cs | 1,941 | C# |
using System;
using System.Text;
namespace Eto.Parse.Samples.Markdown
{
static class Extensions
{
public static void AppendUnixLine(this StringBuilder builder)
{
builder.Append('\n');
}
public static void AppendUnixLine(this StringBuilder builder, string line)
{
builder.Append(line);
builder.Appe... | 16.190476 | 76 | 0.711765 | [
"MIT"
] | ArsenShnurkov/Eto.Parse | Eto.Parse.Samples/Markdown/Extensions.cs | 340 | 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... | 50.404792 | 152 | 0.65828 | [
"Apache-2.0"
] | Hazy87/aws-sdk-net | sdk/test/Services/MediaPackageVod/UnitTests/Generated/Marshalling/MediaPackageVodMarshallingTests.cs | 162,001 | C# |
/*
Copyright (c) 2018-2021 Festo AG & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international>
Author: Michael Hoffmeister
This source code is licensed under the Apache License 2.0 (see LICENSE.txt).
This source code may use other Open Source software components (see LICENSE.txt).
*/
using System;
u... | 26.085106 | 107 | 0.606852 | [
"Apache-2.0"
] | JMayrbaeurl/aasx-package-explorer | src/AasxIntegrationBase/AasxPluginHelper.cs | 1,228 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependenc... | 29.632653 | 106 | 0.663223 | [
"MIT"
] | ARambazamba/20487 | AllFiles/Mod04/DemoFiles/01 ErrorHandlingMiddleware/Starter/BlueYonder.Flights.Service/Startup.cs | 1,454 | C# |
//
// Copyright (c) 2008-2015 the Urho3D project.
// Copyright (c) 2015 Xamarin Inc
// Copyright (c) 2016 THUNDERBEAST GAMES LLC
//
// 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 ... | 37.929936 | 139 | 0.596306 | [
"MIT"
] | AtomicGameEngine/AtomicExamples | FeatureExamples/CSharp/Resources/Scripts/14_SoundEffects.cs | 5,955 | C# |
using System;
using System.Collections.Generic;
using Umbraco.Core.Configuration;
using umbraco.BusinessLogic.Actions;
using umbraco.businesslogic;
using umbraco.cms.businesslogic.web;
using umbraco.cms.presentation.Trees;
using umbraco.interfaces;
using Umbraco.Core;
using Action = umbraco.BusinessLogic.Acti... | 38.484018 | 150 | 0.541172 | [
"MIT"
] | AdrianJMartin/Umbraco-CMS | src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadContent.cs | 8,430 | C# |
using System.Text;
namespace Tortuga.Dragnet;
public class VerificationStep
{
public VerificationStep(string? checkType, string message, Severity severity)
{
Message = message;
CheckType = checkType;
Severity = severity;
if (severity != Severity.Message)
StackTrace = Environment.StackTrace;
}
public S... | 24.085714 | 78 | 0.737841 | [
"MIT"
] | TortugaResearch/Anchor | Tortuga.Anchor/Tortuga.Anchor.Tests/Dragnet/VerificationStep.cs | 843 | C# |
using System.Web.Mvc;
using System.Web.Routing;
namespace Demo.Quartz3.Web.Owin
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
GlobalFilters.Filters.Add(new HandleErrorAttribute());
RouteCollection routes = RouteTable.R... | 28.909091 | 99 | 0.577044 | [
"MIT"
] | MyTkme/CrystalQuartz | src/Demo.Quartz3.Web.Owin/Global.asax.cs | 638 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace RepoInsight.BusinessLogic.Repository
{
/// <summary>
/// Contains methods to create <see cref="IRepoObjectInfo"/> objects for an repository.
/// </summary>
public interface IRepoObjectInfoFactory
{
/// <summary>
... | 35.26087 | 127 | 0.649815 | [
"MIT"
] | Aeddi13/RepoInsight | RepoInsight.BusinessLogic/Repository/IRepoObjectInfoFactory.cs | 813 | C# |
using eCommerceStarterCode.Data;
using eCommerceStarterCode.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace eComme... | 26.851852 | 63 | 0.621379 | [
"MIT"
] | almessier/ClothingECommerceBackEnd | eCommerceStarterCode/Controllers/ProductsController.cs | 1,452 | C# |
using UnityEngine;
using System.Collections;
public class UIControllerMainScene : MonoBehaviour {
public GameObject office;
public GameObject bedroom;
private Player player;
private const string OFFICE = "office";
private const string BEDROOM = "bedroom";
void Start () {
this.player... | 24.607143 | 88 | 0.616836 | [
"MIT"
] | brunopagno/abandon-gds | Assets/Scripts/Controls/UIControllerMainScene.cs | 691 | C# |
version https://git-lfs.github.com/spec/v1
oid sha256:932232227861cd6d0b1cdf7f5d24146bcfe58b0ee239732254e392d66d7e2d9c
size 965
| 32 | 75 | 0.882813 | [
"MIT"
] | kenx00x/ahhhhhhhhhhhh | ahhhhhhhhhh/Library/PackageCache/com.unity.test-framework@1.1.9/UnityEditor.TestRunner/TestLaunchers/PlatformSetup/ApplePlatformSetup.cs | 128 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Build.Data
{
public interface IDataMemberProvider
{
void ResolveDataMembers(Type type, List<DataMember> members);
}
}
| 14.9375 | 69 | 0.723849 | [
"MIT"
] | liuwenjiexx/Unity.Build.Data | src/BuildData/IDataMemberProvider.cs | 241 | C# |
using Emgu.CV;
using Emgu.CV.Structure;
using FaceDetection;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
u... | 37.644986 | 182 | 0.511986 | [
"Apache-2.0"
] | nguyendev/DATN | Code/FisherFaceRecognizer/TrainingForm.cs | 13,893 | C# |
using System;
using System.Collections.Generic;
#nullable disable
namespace Project0.Data
{
public partial class Order
{
public Order()
{
Items = new HashSet<Item>();
}
public int Id { get; set; }
public int StoreId { get; set; }
public int? Custom... | 22.44 | 60 | 0.579323 | [
"MIT"
] | 2011-nov02-net/Joseph-project0 | Project0/Project0.Data/Order.cs | 563 | C# |
using System.ComponentModel.DataAnnotations;
using MarketingBox.AffiliateApi.Pagination;
using Microsoft.AspNetCore.Mvc;
namespace MarketingBox.AffiliateApi.Models.CampaignBoxes.Requests
{
public class CampaignBoxesSearchRequest : PaginationRequest<long?>
{
[FromQuery(Name = "id")]
public long... | 27.473684 | 70 | 0.676245 | [
"MIT"
] | MyJetWallet/MarketingBox.AffiliateApi | src/MarketingBox.AffiliateApi/Models/CampaignBoxes/Requests/CampaignsSearchRequest.cs | 524 | 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.
namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
{
internal readonly struct ILEmitCallSiteAnalys... | 31.703704 | 91 | 0.67757 | [
"MIT"
] | 06needhamt/runtime | src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/ILEmit/ILEmitCallSiteAnalysisResult.cs | 856 | 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... | 28.970588 | 81 | 0.697462 | [
"Apache-2.0"
] | pulumi/pulumi-azure-nextgen | sdk/dotnet/MachineLearningServices/V20200515Preview/Outputs/RegistryListCredentialsResultResponseResult.cs | 985 | C# |
using AspNetSeo.Testing;
using Xunit;
namespace AspNetSeo.Mvc.Tests
{
public class SeoMetaDescriptionAttributeTest
{
[Fact]
public void OnHandleSeoValues_TestMetaDescription_SetsMetaDescription()
{
// Arrange
var attribute = new SeoMetaDescriptionAttribute(TestD... | 27.243902 | 86 | 0.606983 | [
"MIT"
] | techbuzzz/AspNetSeo | test/AspNetSeo.Mvc.Tests/SeoMetaDescriptionAttributeTest.cs | 1,119 | C# |
/***************************************************************************************************
*
* Copyright © 2017 Florian Schneidereit
*
* 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 ... | 46.118644 | 109 | 0.70158 | [
"MIT"
] | flatcode/VSEssentials | src/Extensions/InsertGuidCommand/Sources/GuidParenthesis.cs | 2,724 | C# |
// SwitchParser.cs
//
// Copyright 2010 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.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 51.707306 | 161 | 0.344226 | [
"MIT"
] | 4vz/jovice | Aphysoft.Share/External/AjaxMin/SwitchParser.cs | 111,123 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly... | 34.62963 | 77 | 0.757219 | [
"Apache-2.0"
] | ZeroGachis/xamarin-caoc | Cat.Ereza.Customactivityoncrash/Properties/AssemblyInfo.cs | 938 | C# |
// Copyright (c) MOSA Project. Licensed under the New BSD License.
using Mosa.Kernel.BareMetal.Extension;
using Mosa.Runtime.x86;
using System;
namespace Mosa.Kernel.BareMetal.x86
{
/// <summary>
/// Page Table
/// </summary>
internal static class PageTable
{
public static IntPtr PageDirectory;
public stati... | 32.789474 | 151 | 0.70626 | [
"BSD-3-Clause"
] | TekuSP/MOSA-Project | Source/Mosa.Kernel.BareMetal.x86/PageTable.cs | 1,871 | C# |
using System;
using System.Diagnostics;
namespace ProtoBuf.Internal.Serializers
{
internal sealed class TimeSpanSerializer : IRuntimeProtoSerializerNode
{
private static TimeSpanSerializer s_Legacy, s_Duration;
private static readonly Type expectedType = typeof(TimeSpan);
private reado... | 35.390625 | 131 | 0.624724 | [
"Apache-2.0"
] | AlexMihalev/protobuf-net | src/protobuf-net/Internal/Serializers/TimeSpanSerializer.cs | 2,267 | C# |
// (c) 2010-2015 IndiegameGarden.com. Distributed under the FreeBSD license in LICENSE.txt
using System.IO;
using MyDownloader.Core;
using IndiegameGarden.Base;
namespace IndiegameGarden.Download
{
/**
* a downloader to download a game file such as .zip / .rar / .exe but also .ogg (for music tracks)
* ... | 29.255814 | 117 | 0.591415 | [
"BSD-2-Clause"
] | IndiegameGarden/IndieGig | Game1/Game1/Download/GameDownloader.cs | 1,260 | C# |
using Chat.DAL.Interfaces;
using Chat.DAL.Models;
using Microsoft.EntityFrameworkCore;
namespace Chat.DAL.Implementations
{
public class ChatDbContext : DbContext, IChatDbContext
{
public ChatDbContext(DbContextOptions<ChatDbContext> options)
: base(options) { }
public DbSet<User... | 24.47619 | 70 | 0.663424 | [
"MIT"
] | FominVlad/MobileDevApp | MobileDevApp/Chat.DAL/Implementations/ChatDbContext.cs | 516 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------... | 50.962963 | 143 | 0.696948 | [
"MIT"
] | ROKT/dotnet-spider | src/DotnetSpider.Agent/obj/Debug/net5.0/DotnetSpider.Agent.AssemblyInfo.cs | 1,376 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.