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 Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BibleForum.Data.Migrations
{
public partial class NewPropertiesforPostReply : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddCo... | 29.76087 | 91 | 0.543462 | [
"Apache-2.0"
] | kelvincrtz/BibleForum | BibleForumSolution/BibleForum.Data/Migrations/20181126222413_New Properties for Post Reply.cs | 1,371 | 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.616667 | 110 | 0.640485 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/EventBridge/Generated/Model/ActivateEventSourceRequest.cs | 1,897 | C# |
using Xunit;
namespace _860_LemonadeChange
{
class Program
{
static void Main(string[] args)
{
var solution = new Solution();
Assert.True(solution.LemonadeChange(new[] { 5, 5, 5, 10, 20 }));
Assert.True(solution.LemonadeChange(new[] { 5, 5, 10 }));
... | 26.555556 | 78 | 0.546025 | [
"MIT"
] | kodoftw/LeetCode | LeetCode/860-LemonadeChange/Program.cs | 480 | C# |
// This file was automatically generated and may be regenerated at any
// time. To ensure any changes are retained, modify the tool with any segment/component/group/field name
// or type changes.
namespace Machete.HL7Schema.V26
{
using HL7;
/// <summary>
/// OSR_Q06_PATIENT (Group) -
/// </summary>
... | 24.416667 | 104 | 0.571672 | [
"Apache-2.0"
] | ahives/Machete | src/Machete.HL7Schema/V26/Groups/OSR_Q06_PATIENT.cs | 586 | C# |
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Orleans.Runtime;
using Orleans.Runtime.Configuration;
using Orleans.TestingHost;
using TestExtensions;
using UnitTests.GrainInterfaces;
using UnitTests.Grains;
using Xunit;
using System.Collections.Generic;
using System.Li... | 42.786127 | 169 | 0.651446 | [
"MIT"
] | berdon/orleans | test/Tester/DependencyInjectionGrainTests.cs | 7,402 | C# |
using Amazon.JSII.Runtime.Deputy;
using Amazon.JSII.Tests.Calculator.Lib;
namespace Amazon.JSII.Tests.Calculator
{
[JsiiClass(typeof(GiveMeStructs), "jsii-calc.GiveMeStructs", "[]")]
public class GiveMeStructs : DeputyBase
{
public GiveMeStructs(): base(new DeputyProps(new object[]{}))
{
... | 42.604167 | 165 | 0.63423 | [
"Apache-2.0"
] | mindstorms6/jsii | packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.Calculator/GiveMeStructs.cs | 2,045 | C# |
// Copyright 2007-2008 The Apache Software Foundation.
//
// 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 re... | 29.962264 | 118 | 0.703401 | [
"Apache-2.0"
] | DavidChristiansen/MassTransit | src/MassTransit/Services/Subscriptions/LocalSubscriptionService.cs | 1,588 | C# |
using System;
namespace DontPanic.API.Areas.HelpPage
{
/// <summary>
/// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
/// </summary>
public class TextSample
{
public TextSample(string text)
{
... | 24.027027 | 140 | 0.533183 | [
"MIT"
] | andy-c-jones/event-app-backend | DontPanic/DontPanic.API/Areas/HelpPage/SampleGeneration/TextSample.cs | 889 | C# |
using System.Linq;
using System.Threading.Tasks;
using Bedrock.DomainBuilder.EntityFramework;
using Bedrock.DomainBuilder.Enumerations;
namespace Bedrock.DomainBuilder.Builder
{
public class BuilderEnumeration : BuilderBase, IBuilder
{
#region Protected Methods
protected override async Task<i... | 30.314286 | 106 | 0.64656 | [
"MIT"
] | BedrockNet/Bedrock.DomainBuilder | Bedrock.DomainBuilder/Builder/BuilderEnumeration.cs | 1,063 | C# |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baskerville.Data.Contracts.Repository
{
public interface IDbContext
{
IDbSet<TEntity> Set<TEntity>() where TEntity : class;
int SaveChanges()... | 19.411765 | 61 | 0.721212 | [
"Apache-2.0"
] | MarioZisov/Baskerville | BaskervilleWebsite/Baskerville.Data/Repository/Contracts/IDbContext.cs | 332 | C# |
using UnityEngine;
using System.Collections.Generic;
using System;
public enum AttrTraitName{
strPlus, intPlus, speedPlus, maxHPPlus, pDefPlus, mDefPlus, mvRangePlus,
strPluspDefMinus, strPlusmDefMinus, strPlusHPMinus,
intPlusmDefMinus, intPluspDefMinus, intPlusHPMinus,
speedPlusHPMinus, speedPlusDefMinus,
p... | 35.324561 | 170 | 0.711448 | [
"MIT"
] | Fellowship-of-the-Bus/Draconia-Unity | Assets/Script/Character/Trait.cs | 4,027 | C# |
using System;
using System.Collections.Generic;
namespace PnP.Core.Transformation.SharePoint.KQL
{
/// <summary>
/// Class to parse KQL queries
/// </summary>
public class KQLParser
{
/// <summary>
/// Parses a KQL query and returns a list of tokens
/// </summary>
/... | 38.032787 | 130 | 0.436351 | [
"MIT"
] | PaoloPia/pnpcore | src/sdk/PnP.Core.Transformation.SharePoint/Utilities/KQL/KQLParser.cs | 6,962 | C# |
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using YouGe.Core.Commons.Helper;
using YouGe.Core.Commons.SystemConst;
using YouGe.Core.Commons;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace YouGe.Core.Common.Helper
{
public cl... | 30.606557 | 88 | 0.506695 | [
"MIT"
] | chenqiangdage/YouGe.Core | YouGe.Core.Common/Helper/IPAddressHelper.cs | 1,931 | 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;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading;
using JetB... | 57.043478 | 125 | 0.659451 | [
"Apache-2.0"
] | Pankraty/EntityFrameworkCore | src/EFCore/Metadata/Internal/TypeBase.cs | 19,680 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fixatic.Types
{
public interface IDBConnector
{
public string GetCns();
}
}
| 16 | 33 | 0.71875 | [
"MIT"
] | Fjarik/Fixatic | src/Fixatic/Infrastructure/Fixatic.Types/IDBConnector.cs | 226 | C# |
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HypermediaAPI.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
... | 28.625 | 110 | 0.600873 | [
"MIT"
] | ngiakhanh96/k8s-playground | HypermediaAPI/Controllers/WeatherForecastController.cs | 1,147 | C# |
namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401
{
using static Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.Extensions;
/// <summary>Lease Container request schema.</summary>
public partial class LeaseContainerRequest
{
/// <summary>
/// <c>Af... | 79.376147 | 295 | 0.699723 | [
"MIT"
] | Arsasana/azure-powershell | src/Functions/generated/api/Models/Api20190401/LeaseContainerRequest.json.cs | 8,544 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.WonderSwan
{
[Core("Cygne/Mednafen", "Dox, Mednafen Team", true, true, "0.9.36.5", "http://mednafen.sourceforge.net/")]
[ServiceNotApplicable(typeof(IDriveLight), typeof(IRe... | 28.568807 | 219 | 0.685774 | [
"MIT"
] | Asnivor/BizHawk | BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs | 6,230 | C# |
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
internal class Foo
{
}
internal interface FooInterface
{
}
internal struct FooStruct
{
}
internal enum FooEnum
{
}
internal delegate void FooDelegate();
... | 15.740741 | 160 | 0.752941 | [
"Apache-2.0"
] | TechnoridersForks/Roslynator | source/Test/AnalyzersTest/DeclareTypeInsideNamespace.cs | 427 | C# |
using Forum.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace Forum.Data
{
public class ForumData
{
public List<Category> Categories { get; set; }
public List<User> Users { get; set; }
public List<Post> Posts { get; set; }
public List<Reply> R... | 26.875 | 58 | 0.59186 | [
"MIT"
] | ewgeni-dinew/06.C_Sharp-OOP_I | OOP-Fundamentals/08.Forum/Forum.Data/ForumData.cs | 862 | 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... | 45.5 | 178 | 0.669556 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/Lambda/Generated/Model/InvalidSecurityGroupIDException.cs | 6,461 | C# |
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data.Mongo
{
public interface IMongoUnitOfWorkFactory
{
Task<IMongoUnitOfWork> CreateAsync(CancellationToken cancellationToken);
}
}
| 20.363636 | 80 | 0.763393 | [
"MIT"
] | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/IMongoUnitOfWorkFactory.cs | 224 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.EventHubs;
namespace EventHubSender
{
class Program
{
static string eventHubName = "xxxx";
static string connectionString = "Endpoin... | 32.301887 | 148 | 0.574766 | [
"MIT"
] | gjuljo/HelloAzureEventHub | CSharp/EventHubSender/EventHubSender/Program.cs | 1,714 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AngleSharp.Html.Dom;
using AngleSharp.Html.Parser;
using Newtonsoft.Json;
using Tw.Net.Core;
using Tw.Net.Models;
namespace Tw.Net
{
public class Twitter
{
... | 32.98227 | 130 | 0.449414 | [
"MIT"
] | BenDerPan/Tw.Net | Tw.Net/Twitter.cs | 9,303 | C# |
using System.IO;
namespace MatrixIO.IO.Bmff.IO.Bmff.Boxes.Dash
{
/// <summary>
/// Segment Index Box ("sidx")
/// </summary>
[Box("sidx", "Segment Index Box")]
public class SegmentIndexBox : FullBox
{
public SegmentIndexBox()
: base() { }
public SegmentIndexBox(Str... | 27.612676 | 87 | 0.544249 | [
"MIT"
] | electric-monk/bmff | MatrixIO.IO.Bmff/IO/Bmff/Boxes/Dash/SegmentIndexBox.cs | 3,923 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace fac.ASTs.Types {
public class AstType_ArrayWrap: IAstType {
public IAstType ItemType { init; get; }
public override string ToString () => $"{ItemType}[]";
public override string Gene... | 27.944444 | 103 | 0.735586 | [
"MIT"
] | fa-org/fa | fa/fac/ASTs/Types/AstType_ArrayWrap.cs | 505 | C# |
using System.Collections.Generic;
using System.Linq;
using ESFA.DC.ILR.Model.Interface;
using ESFA.DC.ILR.ValidationService.Interface;
using ESFA.DC.ILR.ValidationService.Rules.Abstract;
using ESFA.DC.ILR.ValidationService.Rules.Constants;
namespace ESFA.DC.ILR.ValidationService.Rules.CrossEntity
{
public class R... | 39.246154 | 150 | 0.632693 | [
"MIT"
] | SkillsFundingAgency/DC-ILR-2021-ValidationService | src/ESFA.DC.ILR.ValidationService.Rules/CrossEntity/R125Rule.cs | 2,553 | C# |
using ExampleToDo.Application.BusinessModels;
using ExampleToDo.Application.BusinessModels.Response;
using ExampleToDo.Application.Interfaces.Services.Results;
using System.Threading.Tasks;
namespace ExampleToDo.Application.Interfaces.Services
{
public interface ICustomTaskListGroupService
{
Task<ISer... | 39.882353 | 99 | 0.820059 | [
"MIT"
] | PrizrakNight/ExampleToDo | ExampleToDo/ExampleToDo.Application/Interfaces/Services/ICustomTaskListGroupService.cs | 680 | C# |
namespace MediaApps.Series.Core.Models
{
public class Actor
{
public string Image { get; set; }
public string Name { get; set; }
public string Role { get; set; }
public int SortOrder { get; set; }
}
}
| 22.363636 | 42 | 0.573171 | [
"MIT"
] | wernervn/media-apps | src/series/MediaApps.Series.Core/Models/Actor.cs | 248 | C# |
using System;
using System.Collections.Generic;
namespace RockPaperScissors
{
public class Program
{
public static void Main()
{
ConsoleKeyInfo moveA;
ConsoleKeyInfo moveB;
string move1 = "error: invalid move";
string move2 = "error: invalid move";
while (move1 == "error: in... | 23.080357 | 137 | 0.516828 | [
"MIT"
] | HoldenJC/rps-c | RPS/Program.cs | 2,585 | C# |
/******************************************************************************
* Copyright (C) Ultraleap, Inc. 2011-2021. *
* *
* Use subject to the terms of the Apache License 2.0 available at *
... | 50.762136 | 407 | 0.529406 | [
"MIT"
] | Gustav-Rixon/M7012E-DRv3 | Remote control/Assets/ThirdParty/Ultraleap/Tracking/Interaction Engine/Runtime/Plugins/GrabClassifierHeuristics.cs | 10,457 | C# |
using System;
namespace Spice_Must_Flow
{
class Program
{
static void Main(string[] args)
{
int startingYield = int.Parse(Console.ReadLine());
int totalSpice = 0;
int daysCount = 0;
while (startingYield>=100)
{
total... | 21.965517 | 62 | 0.477237 | [
"MIT"
] | ITonev/SoftUni | Technology-Fundamentals-C#/Data-Types-and-Variable/Exercise/Spice Must Flow/Program.cs | 639 | C# |
using System;
using System.Threading;
using Xwt;
using Xwt.Backends;
using Xwt.GtkBackend;
using Xwt.Drawing;
using Gtk;
namespace GtkTest
{
class MainClass
{
public static void Main (string [] args)
{
using (var engine = new GtkEngine ()) {
engine.Initialize (false... | 37.396341 | 107 | 0.497962 | [
"MIT"
] | ritalin/Xwt.Minimum | MacTest/GtkTest/Program.cs | 6,169 | C# |
namespace iWay.RemoteControlClient.RemoteExplorer
{
partial class ContentGetWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | 37.61194 | 113 | 0.586905 | [
"Apache-2.0"
] | PHPPlay/RemoteControl | RemoteControlClient/RemoteExplorer/ContentGetWindow.Designer.cs | 2,526 | C# |
using MinecraftMappings.Internal;
using MinecraftMappings.Internal.Textures.Block;
namespace MinecraftMappings.Minecraft.Java.Textures.Block
{
public class Torch : JavaBlockTexture
{
public Torch() : base("Torch")
{
BlendMode = BlendModes.Cutout;
AddVersion("torch")
... | 27.555556 | 98 | 0.653226 | [
"MIT"
] | null511/MinecraftMappings.NET | MinecraftMappings.NET/Minecraft/Java/Textures/Block/Torch.cs | 498 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace UtilKits.RabbitMQ
{
public interface IProducerBase<in T>
{
/// <summary>
/// 上傳 QUEUE
/// </summary>
/// <param name="Source">QUEUE 字串</param>
void Publish(T Source);
}
}
| 18.9375 | 49 | 0.584158 | [
"MIT"
] | kai-sheng/RabbitMQ | UtilKits/RabbitMQ/IProducerBase.cs | 313 | C# |
using AutoMapper;
using MediatR;
using Microsoft.Extensions.Logging;
using Ordering.Application.Contracts.Persistence;
using Ordering.Application.Exceptions;
using Ordering.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Thread... | 37.888889 | 133 | 0.71261 | [
"MIT"
] | pmakanga/AspnetMicroservices | src/Services/Ordering/Ordering.Application/Features/Orders/Commands/DeleteOrder/DeleteOrderCommandHandler.cs | 1,707 | C# |
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Identity;
using PierresTreats.Models;
using PierresTreats.ViewModels;
using System.Threading.Tasks;
using System.Security.Claims;
namespace PierresTreats.Controllers
{
public class AccountController : Controller
{
p... | 28.073529 | 176 | 0.67627 | [
"MIT"
] | JohnNilsOlson/PierresTreats.Solution | PierresTreats/Controllers/AccountController.cs | 1,909 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 43.546875 | 178 | 0.613563 | [
"Unlicense"
] | oggy22/LanguageTools | TextAnalyzer/Properties/Resources.Designer.cs | 2,789 | C# |
// ------------------------------------------------------------------------------
// <auto-generated>
// Generated by Xsd2Code. Version 3.4.0.38967
// <NameSpace>NPOI.OpenXmlFormats.Dml</NameSpace><Collection>List</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><EnableLazyLoadi... | 26.802221 | 1,334 | 0.490886 | [
"Apache-2.0"
] | Cy-Team/npoi | ooxml/OpenXmlFormats/Drawing/TextCharacter.cs | 38,622 | 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;
using Microsoft.EntityFrameworkCore.Storage;
namespace Microsoft.EntityFrameworkCore.Metadata
{
/// <summary>
/// Represents ... | 29.35 | 111 | 0.576661 | [
"Apache-2.0"
] | computamike/efcore | src/EFCore.Relational/Metadata/IDbFunctionParameter.cs | 1,174 | C# |
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using MoreMountains.Tools;
using System;
using System.Collections.Generic;
using UnityEngine.Tilemaps;
namespace MoreMountains.Tools
{
/// <summary>
/// A class to put on a tilemap so it acts as a shadow/copy of another reference ti... | 35.368421 | 101 | 0.580729 | [
"Apache-2.0"
] | notFR/Game-Economics-Template | Assets/ThirdParty/LoadingScene/MMTools/Tools/Tilemaps/MMTilemapShadow.cs | 2,690 | C# |
/*
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.6.7
* Contact: me@ruby.js.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
us... | 37.726667 | 251 | 0.593921 | [
"MIT"
] | vrchatapi/vrchatapi-csharp | src/VRChat.API/Model/ModerateUserRequest.cs | 5,659 | C# |
using System;
using System.Net.Http;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace GymLog.Client.Controllers {
public class MusclesController : Controller
{
/* HttpClient client;
string url = GymLogConstants.API + "api/muscles";
public M... | 32.125 | 109 | 0.619326 | [
"MIT"
] | piters3/GymLogIdServ | GymLog.Client/Controllers/MusclesController.cs | 1,544 | C# |
using System.Collections.Generic;
namespace AndreyAndBilliard
{
class Customer
{
public string Name { get; set; }
public Dictionary<string, int> ShopList { get; set; }
public decimal Bill { get; set; }
}
}
| 17.571429 | 61 | 0.617886 | [
"MIT"
] | Iliyan7/SoftUni | ProgrammingFundamentals/Objects_and_Classes-Exercises/AndreyAndBilliard/Customer.cs | 248 | C# |
using System;
namespace STTClient.Models
{
/// <summary>
/// Wrapper of the pointer used for the decoding stream.
/// </summary>
public class Stream : IDisposable
{
private unsafe IntPtr** _streamingStatePp;
/// <summary>
/// Initializes a new instance of <see cref="Stream... | 32.5 | 132 | 0.607692 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | AigizK/STT | native_client/dotnet/STTClient/Models/Stream.cs | 1,172 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using BaselineTypeDiscovery;
using LamarCodeGeneration.Util;
using Microsoft.Extensions.DependencyInjection;
#pragma warning disable 1591
[assembly:IgnoreAssembly]
namespace Lama... | 32.41433 | 125 | 0.607689 | [
"MIT"
] | JasperFx/lamar | src/Lamar/Scanning/Conventions/AssemblyScanner.cs | 10,405 | C# |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* 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 sour... | 40.668919 | 133 | 0.524173 | [
"BSD-3-Clause"
] | PaintLab/poly2tri-cs | Triangulation/TriangulationUtil.cs | 6,023 | 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... | 33.179487 | 185 | 0.6051 | [
"MIT"
] | 0rland0Wats0n/azure-sdk-for-net | sdk/hybriddatamanager/Microsoft.Azure.Management.HybridDataManager/src/Generated/Models/ErrorDetails.cs | 2,588 | C# |
using System;
using NHapi.Base.Model;
using NHapi.Base.Log;
using NHapi.Base;
using NHapi.Base.Model.Primitive;
namespace NHapi.Model.V25.Datatype
{
///<summary>
/// <p>The HL7 DLT (Delta) data type. Consists of the following components: </p><ol>
/// <li>Normal Range (NR)</li>
/// <li>Numeric Threshold (NM)<... | 30.059259 | 134 | 0.641695 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | afaonline/nHapi | src/NHapi.Model.V25/Datatype/DLT.cs | 4,058 | C# |
namespace JL.Core.Dicts.CustomWordDict;
public class CustomWordEntry : IResult
{
public string PrimarySpelling { get; }
public List<string>? AlternativeSpellings { get; }
public List<string>? Readings { get; }
public List<string> Definitions { get; }
public List<string> WordClasses { get; }
p... | 30.84 | 139 | 0.573714 | [
"Apache-2.0"
] | rampaa/JL | JL.Core/Dicts/CustomWordDict/CustomWordEntry.cs | 2,315 | C# |
using System;
using Org.BouncyCastle.Asn1.X509;
namespace Org.BouncyCastle.Asn1.Cmp
{
public class CmpCertificate
: Asn1Encodable, IAsn1Choice
{
private readonly X509CertificateStructure x509v3PKCert;
private readonly AttributeCertificate x509v2AttrCert;
/**
* Note: ... | 29.580247 | 113 | 0.579716 | [
"MIT"
] | SchmooseSA/Schmoose-BouncyCastle | Crypto/asn1/cmp/CmpCertificate.cs | 2,398 | C# |
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using InvokeIR.Win32;
namespace InvokeIR.PowerForensics.Ntfs
{
#region UsnJrnlClass
public class UsnJrnl
{
#region Enums
[FlagsAttribute]
public enum USN_REASON : uint
{
DATA_O... | 37.70405 | 198 | 0.55102 | [
"Apache-2.0"
] | 0x0mar/PowerForensics_Source | Invoke-IR.PowerForensics/PowerForensics/FileSystems/NTFS/MetadataFiles/11 - $Extend/UsnJrnl.cs | 12,105 | C# |
using System;
using Foundation.StateMachine;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Foundation.Tests.StateMachine
{
[TestClass]
public class StateTransitionTests
{
[TestMethod, ExpectedException(typeof(InvalidOperationException))]
public void IsValid_throws_... | 28.722222 | 89 | 0.692456 | [
"Apache-2.0"
] | DavidMoore/Foundation | Tests/UnitTests/Foundation.Tests/StateMachine/StateTransitionTests.cs | 517 | C# |
namespace ErrorsAndPatterns
{
public sealed class Ignore
{
private static readonly Ignore use = new Ignore();
public static Ignore Use() => Ignore.use;
private Ignore() { }
}
} | 20.666667 | 52 | 0.704301 | [
"MIT"
] | JasonBock/ExceptionalDevelopment | Exceptions/ErrorsAndPatterns/Ignore.cs | 188 | C# |
//
// Copyright (c) Microsoft. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... | 41.736842 | 245 | 0.654897 | [
"MIT"
] | 3quanfeng/azure-powershell | src/ApiManagement/ApiManagement.ServiceManagement/Models/PsApiManagementGatewayHostnameConfiguration.cs | 2,325 | C# |
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using VueExample.Models;
using VueExample.ServiceModels;
namespace VueExample.Providers
{
public class DefectiveDieProvider
{
public string GetByDangerLevel(List<Defect> defectList, DangerLevel dangerLevel)
{
... | 42.84375 | 140 | 0.670314 | [
"MIT"
] | 7is7/SVR2.0 | Providers/DefectiveDieProvider.cs | 1,371 | C# |
using MediatR;
using PromotionSales.Api.Application.Common.EntitiesDto;
namespace PromotionSales.Api.Application.PromotionApplication.Queries.GetByFilters;
public sealed class GetPromotionByIdQuery : IRequest<PromotionDto>
{
public Guid Id { get; set; }
}
| 26.3 | 83 | 0.813688 | [
"MIT"
] | RandhHaven/PromotionSales | src/PromotionSales.Api.Application/PromotionApplication/Queries/GetByFilters/GetPromotionByIdQuery.cs | 265 | C# |
// <auto-generated/>
// Contents of: hl7.fhir.r3.core version: 3.0.2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Hl7.Fhir.Introspection;
using Hl7.Fhir.Serialization;
using Hl7.Fhir.Specification;
using Hl7.Fhir.Utility;
using Hl7.Fhir.Validation;
/*
... | 37.348837 | 130 | 0.689212 | [
"MIT"
] | FirelyTeam/fhir-codegen | generated/CSharpFirely2_R3/Generated/EnrollmentResponse.cs | 12,848 | C# |
//*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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, ... | 45.707317 | 265 | 0.673959 | [
"MIT"
] | Muraad/VisualRust | Microsoft.VisualStudio.Project/ProjectDocumentsListener.cs | 7,496 | 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>
//--... | 43.703125 | 183 | 0.614945 | [
"Unlicense"
] | libertyernie/RawTextureManager | Properties/Resources.Designer.cs | 2,799 | C# |
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using Microshoppy.Warehouse.Repositories;
namespace Microshoppy.Warehouse.CQRS.Command
{
public class DeleteWarehouseProductCommandHandler : Handler, IRequestHandler<DeleteWarehouseProductCommand, Unit>
{
public DeleteWarehouseProductCommandHand... | 27.190476 | 114 | 0.810858 | [
"MIT"
] | micro-shoppy/warehouse | Microshoppy.Warehouse/src/CQRS/Command/DeleteWarehouseProductCommandHandler.cs | 573 | C# |
namespace MineCrypto
{
partial class AES
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | 45.157025 | 136 | 0.55765 | [
"CC0-1.0"
] | MinegamesAdministrationTool-zz/CryptoPrivacy | MineCrypto/AESForm.Designer.cs | 10,930 | C# |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Jotunn.Entities;
using Jotunn.Managers;
using UnityEngine;
namespace JotunnDoc.Docs
{
public class CharacterDoc : Doc
{
public CharacterDoc() : base("prefabs/character-list.md")
{
On.Player.OnSpawned += Doc... | 31.955224 | 159 | 0.545072 | [
"MIT"
] | heinermann/Jotunn | JotunnDoc/Docs/CharacterDoc.cs | 2,143 | C# |
using SS.Common.BuldingBlocks;
using SS.Common.Exceptions;
using SS.Organizations.Domain.Exceptions;
using SS.Organizations.Domain.Roles;
using System;
using System.Collections.Generic;
using System.Linq;
namespace SS.Organizations.Domain.Rules
{
public class CanUserBeChangedRule : IBusinessRule
{
pri... | 28.333333 | 175 | 0.62549 | [
"MIT"
] | KamilKarpus/SecretStorage | src/SS.Organization.Domain/Rules/CanUserBeChangedRule.cs | 1,022 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | 42.206612 | 116 | 0.607793 | [
"MIT"
] | snowmiqi/WW.Cad.NetStandard.Examples | UniversalWindowsExample/App.xaml.cs | 5,109 | C# |
/*
Copyright (c) Perpetual Intelligence L.L.C. All Rights Reserved.
For license, terms, and data policies, go to:
https://terms.perpetualintelligence.com
*/
using PerpetualIntelligence.Shared.Attributes;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certifica... | 37.969231 | 134 | 0.632901 | [
"Apache-2.0"
] | perpetualintelligence/protocols | src/PerpetualIntelligence.Protocols/Security/Certificates/X509Store.cs | 2,470 | C# |
using System;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Skimur.Data.ReadModel;
using Skimur.Web.Services;
using Skimur.Web.ViewModels.Subs;
using Skimur.Messaging;
using Skimur.Data.Commands;
using Skimur.Web.Infrastructure;
using Skimur.Web.ViewModels;
using Skimur.Common.Utils;
... | 33.490683 | 157 | 0.608494 | [
"MIT"
] | skimurio/Skimur | src/Skimur.Web/Controllers/SubsController.cs | 5,394 | C# |
using Guppy.DependencyInjection;
using Guppy.Extensions.System.Collections;
using Guppy.Extensions.System;
using Guppy.Interfaces;
using Microsoft.Xna.Framework;
namespace Guppy.Lists
{
public class FrameableList<TFrameable> : FactoryServiceList<TFrameable>, IFrameable
where TFrameable : class, IFrameable... | 29.170732 | 87 | 0.604515 | [
"MIT"
] | rettoph/Guppy | src/Guppy/Lists/FrameableList.cs | 2,394 | 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>
//------------------------------------------... | 31.121212 | 90 | 0.545278 | [
"Apache-2.0"
] | LightosLimited/RailML | v3.1/Models/XsdConvert/genericRailML/IAOrientation.cs | 1,027 | C# |
#nullable enable
using System.Threading;
using System.Threading.Tasks;
namespace System.Net
{
internal static class GraphExtensions
{
public static ValueTask<bool> IsRootedTreeAsync<TValue>(
this IAsyncFuncService<TValue> vertex,
bool allowSingleton,
CancellationTo... | 26.74359 | 71 | 0.597315 | [
"MIT"
] | andreise/func-service-tree-orchestra | src/Net.FuncServiceOrchestrator/Implementation/GraphExtensions.cs | 1,045 | C# |
#region Copyright
//
<<<<<<< HEAD
<<<<<<< HEAD
=======
=======
>>>>>>> update form orginal repo
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// d... | 38.121951 | 116 | 0.727447 | [
"MIT"
] | DnnSoftwarePersian/Dnn.Platform | DNN Platform/DotNetNuke.Web.Deprecated/UI/WebControls/DnnAjaxPanel.cs | 1,566 | C# |
using System.Windows.Controls;
using TournamentAssistantShared.Models;
namespace TournamentAssistantUI.UI.UserControls
{
/// <summary>
/// Interaction logic for UserDialog.xaml
/// </summary>
public partial class PlayerDialog : UserControl
{
public Player Player { get; set; }
publ... | 20.73913 | 51 | 0.616352 | [
"MIT"
] | Auros/TournamentAssistant | TournamentAssistantUI/UI/UserControls/PlayerDialog.xaml.cs | 479 | C# |
using System;
using NetRuntimeSystem = System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;
using NetOffice;
namespace NetOffice.PowerPointApi
{
///<summary>
/// DispatchInterface Protect... | 40.787129 | 234 | 0.722296 | [
"MIT"
] | NetOffice/NetOffice | Source/PowerPoint/DispatchInterfaces/ProtectedViewWindows.cs | 8,239 | 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.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http.Hosting;
using Microsoft.TestCommon;
using Newtonsoft.Json... | 44.213675 | 111 | 0.566596 | [
"Apache-2.0"
] | belav/AspNetWebStack | test/System.Web.Http.Integration.Test/ExceptionHandling/IncludeErrorDetailTest.cs | 5,175 | C# |
// WARNING
//
// This file has been generated automatically by Visual Studio from the outlets and
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
namespace MetroMate
{
[Register ... | 25.857143 | 84 | 0.575506 | [
"MIT"
] | luxwig/MetroMate | SubwayConnect/StopSelCell.designer.cs | 1,086 | 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... | 37.893891 | 183 | 0.563258 | [
"Apache-2.0"
] | Melvinerall/aws-sdk-net | sdk/src/Services/CognitoIdentityProvider/Generated/Model/InitiateAuthRequest.cs | 11,785 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Balrond3PersonMovements
{
public class Balrond3personCameraCollision : MonoBehaviour
{
private Vector3 dollyDir;
private Vector3 dollyDirAdjusted;
private Balrond3pCameraFollow follow;
pri... | 36.727273 | 279 | 0.615718 | [
"MIT"
] | HoBeenH/Second-Popol | Assets/LanFang/Scrips/Balrond3Pcontroller/Balrond3personCameraCollision.cs | 1,618 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | 44.56 | 206 | 0.631059 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/CalendarAllowedCalendarSharingRolesRequestBuilder.cs | 2,228 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using LinqToDB;
using NUnit.Framework;
namespace Tests.Linq
{
using Model;
using VisualBasic;
[TestFixture]
public class VisualBasicTests : TestBase
{
[Test]
public void CompareString([DataSources] string context)
{
... | 23.71123 | 105 | 0.636446 | [
"MIT"
] | williamlee1982/linq2db | Tests/Linq/Linq/VisualBasicTests.cs | 4,250 | C# |
using System.Threading.Tasks;
using MSFramework.Common;
using MSFramework.DependencyInjection;
using Template.Application.DTO;
namespace Template.Application.Query
{
public interface IProductQuery : IScopeDependency
{
Task<ProductOut> GetByNameAsync(string name);
Task<PagedResult<ProductOut>> PagedQueryAsync(st... | 25.714286 | 85 | 0.811111 | [
"MIT"
] | jonechenug/MSFramework | template/Content/src/Template.Application/Query/IProductQuery.cs | 360 | 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 code es... | 43.988095 | 177 | 0.605954 | [
"MIT"
] | nicelife90/SignToolGUI | Properties/Resources.Designer.cs | 3,733 | 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.916667 | 80 | 0.647658 | [
"MIT"
] | ShashangkaShekhar/LibrarySystem-Core2.1-Angular6 | LibrarySystem/DataModels/obj/Release/netstandard2.0/DataModels.AssemblyInfo.cs | 982 | C# |
//******************************************************************************************************
// InterprocessReaderWriterLock.cs - Gbtc
//
// Copyright © 2012, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreem... | 44.967742 | 156 | 0.579914 | [
"MIT"
] | GridProtectionAlliance/gsf | Source/Libraries/GSF.Core/Threading/InterprocessReaderWriterLock.cs | 13,943 | C# |
namespace Bbt.Campaign.Public.Dtos.CampaignRule
{
public class CampaignRuleInsertFormDto
{
public List<ParameterDto> BusinessLineList { get; set; }
public List<ParameterDto> JoinTypeList { get; set; }
public List<ParameterDto> BranchList { get; set; }
public List<ParameterDto> C... | 35.666667 | 69 | 0.684579 | [
"MIT"
] | evrenarifoglu69/bbt.loyalty | src/Bbt.Campaign.Api/Bbt.Campaign.Public/Dtos/CampaignRule/CampaignRuleInsertFormDto.cs | 430 | C# |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// PosDeviceInfoVO Data Structure.
/// </summary>
[Serializable]
public class PosDeviceInfoVO : AopObject
{
/// <summary>
/// 设备对应的软件方公司名称,比如:美味不用等;银盒子;二维火;云纵;雅座;辰森;
/// ... | 28.075862 | 107 | 0.497666 | [
"Apache-2.0"
] | 554393109/alipay-sdk-net-all | AlipaySDKNet.Standard/Domain/PosDeviceInfoVO.cs | 4,813 | C# |
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;
using HLApps.Revit.Utils;
// A node in a BoundsOctree
// Copyright 2014 Nition, BSD licence (see LICENCE file). http://nition.co
namespace HLApps.Revit.Geometry.Octree
{
public delegate bool Filter<T>(T gelm);
public class BoundsOc... | 39.798722 | 152 | 0.512162 | [
"MIT"
] | menome/BuildingGraph-Client-Revit | BuildingGraph.Integration.Revit/Geometry/Octree/BoundsOctreeNode.cs | 24,916 | C# |
using MG_Library;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Hwatu.MonoGameComponents.Drawables
{
public class OutlineImage : Sprite2D
{
public OutlineImage(Game game) : base(game, null)
{ }
protected override void LoadContent()
{
... | 30.125 | 73 | 0.561203 | [
"MIT"
] | ALee1303/GoStop | Hwatu/MonoGameComponents/Drawables/SpriteImage/OutlineImage.cs | 966 | C# |
using System;
using System.Collections.Generic;
using NHapi.Base.Log;
using NHapi.Model.V27.Group;
using NHapi.Model.V27.Segment;
using NHapi.Model.V27.Datatype;
using NHapi.Base;
using NHapi.Base.Parser;
using NHapi.Base.Model;
namespace NHapi.Model.V27.Message
{
///<summary>
/// Represents a RPI_I04 message structu... | 27.023404 | 145 | 0.65672 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | AMCN41R/nHapi | src/NHapi.Model.V27/Message/RPI_I04.cs | 12,701 | C# |
using System.Threading.Tasks;
using SpotifyAPI.Web;
namespace Spiralfy.Core.Interfaces
{
public interface ISpiralfyPlayer
{
public Task Play();
public Task Play(IPlayableItem item);
public Task PlayShuffle(SimplePlaylist playlist);
public Task Pause();
public Task<bool>... | 27.75 | 57 | 0.661261 | [
"MIT"
] | DanteDeRuwe/spiralfy | controls/Spiralfy.Core/Interfaces/ISpiralfyPlayer.cs | 557 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Diagnostic... | 48.274605 | 389 | 0.565303 | [
"MIT"
] | smurfpandey/SqlClient | src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs | 158,920 | C# |
using Microsoft.Azure.Cosmos;
using System;
namespace Connecterra.StateTracking.Persistent.Connection
{
public interface IDbClient
{
CosmosClient GetClient();
Container GetLeaseContainer();
Container GetEventContainer();
Container GetViewContainer();
Container GetSnapsho... | 42 | 121 | 0.717358 | [
"MIT"
] | ASMaharana/AI.Connecterra.StateTracking | src/Connecterra.StateTracking.Persistent/Connection/CosmosDbClient.cs | 1,302 | C# |
// Copyright (c) Jeremy W. Kuhne. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using WInterop.Storage.Native;
namespace WInterop.Storage
{
/// <summary>
/// Callback for [IO_APC_ROUTINE]. Defined in wdm.h.
/// </... | 29.3125 | 101 | 0.69936 | [
"MIT"
] | JeremyKuhne/WInterop | src/WInterop.Desktop/Storage/AsyncProcedureCall.cs | 471 | 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, modif... | 47.5 | 149 | 0.660102 | [
"MIT"
] | Altair7610/SharpDX | Source/SharpDX.Direct2D1/DirectWrite/LocalizedStrings.cs | 2,945 | C# |
//Problem URL: https://www.hackerrank.com/challenges/arrays-ds/problem
static int[] reverseArray(int[] a) {
for(int i = 0; i < Math.Floor(a.Length / 2d); i++){
int temp = a[i];
a[i] = a[a.Length - i - 1];
a[a.Length - i - 1] = temp;
}
return a;
}
| 25.818182 | 70 | 0.53169 | [
"Unlicense"
] | DKLynch/HackerRank-Challenges | Data Structures/Arrays/Arrays - DS (Reverse Array)/reverseArray.cs | 284 | C# |
using System.Configuration;
namespace Stove.Demo.ConsoleApp
{
public static class ConnectionStringHelper
{
/// <summary>
/// Gets connection string from given connection string or name.
/// </summary>
public static string GetConnectionString(string nameOrConnectionString)
... | 28.772727 | 117 | 0.635071 | [
"MIT"
] | eraydin/Stove | test/Stove.Demo.ConsoleApp/ConnectionStringHelper.cs | 635 | C# |
using System;
namespace MLD.Library.Helper
{
/// <summary>
/// 判断数据类型
/// </summary>
public static class Vilidate
{
/// <summary>
/// 判断数据是否是日期类型
/// </summary>
/// <param name="date">待判断的数据</param>
/// <returns>判断后的bool值</returns>
public static bool... | 24 | 56 | 0.50119 | [
"Apache-2.0"
] | huahuajjh/mld | MLD/MLD/MLD.Library/Helper/Vilidate.cs | 950 | C# |
using System;
using FluentAssertions;
using Xunit;
namespace Bogus.Tests
{
public class StrictModeTests : SeededTest
{
[Fact]
public void should_throw_exception_on_incomplete_rules()
{
var testOrders = new Faker<Examples.Order>()
.StrictMode(true)
.RuleFor(o => ... | 30.918367 | 68 | 0.481848 | [
"BSD-3-Clause"
] | GillCleeren/Bogus | Source/Bogus.Tests/StrictModeTests.cs | 3,030 | C# |
namespace InteriorDesign.Data.Common.Repositories
{
using System.Linq;
using System.Threading.Tasks;
using InteriorDesign.Data.Common.Models;
public interface IDeletableEntityRepository<TEntity> : IRepository<TEntity>
where TEntity : class, IDeletableEntity
{
IQueryable<TEntity> A... | 25.181818 | 79 | 0.709386 | [
"MIT"
] | vanya-ant/InteriorDesign | InteriorDesign/Data/InteriorDesign.Data.Common/Repositories/IDeletableEntityRepository.cs | 556 | C# |
namespace UglyToad.PdfPig.Parser
{
using System;
using System.Collections.Generic;
using Annotations;
using Content;
using Core;
using Filters;
using Geometry;
using Graphics;
using Logging;
using Parts;
using Tokenization.Scanner;
using Tokens;
using Util;
inte... | 36.116071 | 154 | 0.562052 | [
"Apache-2.0"
] | mcjt/PdfPig | src/UglyToad.PdfPig/Parser/PageFactory.cs | 8,092 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.