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 ALE.ETLBox; using ALE.ETLBox.ConnectionManager; using ALE.ETLBox.ControlFlow; using ALE.ETLBox.DataFlow; using ALE.ETLBox.Helper; using ALE.ETLBox.Logging; using ALE.ETLBoxTests.Fixtures; using System; using System.Collections.Generic; using Xunit; namespace ALE.ETLBoxTests.DataFlowTests { [Collection("DataF...
30.929825
104
0.633579
[ "MIT" ]
SipanOhanyan/etlbox
TestsETLBox/src/DataFlowTests/DBSource/DBSourceTableDefinitionTests.cs
1,763
C#
namespace ProcessTests.Api.Components.Health { using System.Net; using System.Reflection; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; [ApiController] [AllowAnonymous] [Route("api/[controller]")] [Produces(...
35.431818
142
0.632457
[ "MIT" ]
TomaszSynak/ProcessTests
Projects/ProcessTests.Api/Components/Health/HealthController.cs
1,561
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("UnitTest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProdu...
25.324324
56
0.712914
[ "MIT" ]
D15190304050/WpfGames
UnitTest/Properties/AssemblyInfo.cs
1,278
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace WebMarket.Models.AdministrationModels { public class EditUserViewModel { public string Id { get; set; } [Required] public string User...
23.633333
48
0.603667
[ "MIT" ]
DewhiteE/WebMarket
WebMarket/Models/AdministrationModels/EditUserViewModel.cs
711
C#
using System; using System.Collections.Generic; using Xms.Core.Context; using Xms.Business.Filter.Domain; using Xms.Core; namespace Xms.Business.Filter { public interface IFilterRuleFinder { FilterRule FindById(Guid id); List<FilterRule> FindAll(); List<FilterRule> Query(Func<QueryDesc...
42.222222
154
0.761842
[ "MIT" ]
feilingdeng/xms
Libraries/Business/Xms.Business.Filter/IFilterRuleFinder.cs
762
C#
using System; using DemoParser.Parser.Components.Abstract; using DemoParser.Utils; using DemoParser.Utils.BitStreams; namespace DemoParser.Parser.Components.Messages.UserMessages { public class Fade : UserMessage { public float Duration; public ushort HoldTime; // yeah idk what this is about public FadeFlags...
26.981132
99
0.670629
[ "MIT" ]
UncraftedName/UncraftedDemoParser
DemoParser/src/Parser/Components/Messages/UserMessages/Fade.cs
1,430
C#
using System.Text.RegularExpressions; namespace Microsoft.Recognizers.Text.DateTime.Utilities { public interface IDateTimeUtilityConfiguration { Regex AgoRegex { get; } Regex LaterRegex { get; } Regex InConnectorRegex { get; } Regex SinceYearSuffixRegex { get; } ...
20.75
56
0.593373
[ "MIT" ]
AzureMentor/Recognizers-Text
.NET/Microsoft.Recognizers.Text.DateTime/Utilities/IDateTimeUtilityConfiguration.cs
666
C#
namespace Wareh.Controllers { using System.Data.Entity; using System.Linq; using System.Web.Mvc; using Models; using ViewModels; using System.Web; using System.IO; using System; public class ProductController : Controller { [HttpGet] [Authorize] public A...
33.04
119
0.452785
[ "MIT" ]
ninetensfive/wareh
Wareh/Controllers/ProductController.cs
7,436
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace lib...
36.42
112
0.630972
[ "Apache-2.0" ]
CaveJ/NetCoreBasicRestServer
Startup.cs
1,823
C#
using UnityEngine; using Lean.Common; #if UNITY_EDITOR using UnityEditor; #endif namespace Lean.Gui { /// <summary>This component allows you to draw a UI element between two points in the scene (e.g. 3D objects). /// NOTE: To see the line you also need to add a <b>Graphic</b> to your line GameObject, like <b>LeanBo...
33.688889
169
0.710642
[ "MIT" ]
DrScatman/vr-mod
Assets/Lean/GUI Shapes/Scripts/LeanLine.cs
4,550
C#
using System; using System.Collections.Generic; namespace DevAchievements.Domain.UnitTests { public class AvailableAchievementProvider : IAchievementProvider { #region IAchievementProvider implementation public void CheckAvailability () { } public bool Enabled { get { return true; } } pu...
19.230769
85
0.658
[ "MIT" ]
giacomelli/DevAchievements
src/DevAchievements.Domain.UnitTests/Stubs/TwoAvailableAchievementProvider.cs
1,000
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. // This code was generated by an automated template. using Mosa.Compiler.Framework; namespace Mosa.Platform.x86.Instructions { /// <summary> /// MovLoad8 /// </summary> /// <seealso cref="Mosa.Platform.x86.X86Instruction" /> public sealed class ...
37.506579
204
0.755832
[ "BSD-3-Clause" ]
kthompson/MOSA-Project
Source/Mosa.Platform.x86/Instructions/MovLoad8.cs
5,701
C#
using UnityEngine; using System.Collections; public class BushHealthScript : HealthScript { public string nameOfLeafPool; public GameObject dropOnKill; private BoxCollider2D _collider; private GameObjectPool _leafPool; GameObject leafs; private void Start () { _collider = GetComponent<BoxCollider2D>(); ...
19.681818
77
0.713626
[ "MIT" ]
alectyre/ElfQuest
Assets/Scripts/BushHealthScript.cs
1,301
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
32.083333
83
0.610823
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Cpdp/V20190820/Models/QueryReconciliationDocumentRequest.cs
2,444
C#
namespace _05.ClosestTwoPoints { using System; using System.Collections.Generic; using System.Linq; public class ClosestTwoPoints { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var points = new List<Point>(); ...
30.422535
84
0.480556
[ "MIT" ]
stoyanov7/SoftwareUniversity
TechnologiesFundamentals/ProgrammingFundamentals-Extended/ObjectsAndSimpleClasses-Lab/05.ClosestTwoPoints/05.ClosestTwoPoints/ClosestTwoPoints.cs
2,162
C#
using System.Collections.Generic; using System.ComponentModel; namespace Frontend.Core.Model.Paths.Interfaces { public interface IRequiredItemBase : INotifyPropertyChanged { string FriendlyName { get; } string SelectedValue { get; set; } string TagName { get; } string...
30.894737
64
0.618399
[ "MIT" ]
Deinos65/paradoxGameConverters
Frontend/ParadoxConverters.Frontend/Frontend.Core/Model/Paths/Interfaces/IRequiredItemBase.cs
589
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.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using RikardWeb.Controllers; usin...
40.28877
122
0.596761
[ "MIT" ]
wapxmas/rikard-csharp-net-core
RealEstate/RikardWeb/Startup.cs
7,536
C#
// 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 regenerated. namespace Mi...
72.921717
463
0.666413
[ "MIT" ]
AzureSDKAutomation/azure-powershell
src/DiskPool/generated/cmdlets/GetAzDiskPoolZone_List.cs
28,482
C#
using System; namespace DaHo.Library.Utilities { public struct Time { public int Hours { get; set; } public int Minutes { get; set; } public Time(int hours, int minutes) { Hours = hours; Minutes = minutes; } public override string ToStr...
24.869565
72
0.529138
[ "MIT" ]
Davee02/DaHo.Library
src/DaHo.Library.Utilities/Time.cs
1,718
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace Inventory_System { public class Program { ...
26.814815
71
0.624309
[ "MIT" ]
galexbh/Inventory_System
Program.cs
724
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Abp.Authorization.Users; using Abp.Domain.Services; using Abp.IdentityFramework; using Abp.Runtime.Session; using Abp.UI; using myEventCloud.A...
30.663717
157
0.603463
[ "MIT" ]
lyzr2507/myEventCloud
aspnet-core/src/myEventCloud.Core/Authorization/Users/UserRegistrationManager.cs
3,467
C#
using System; using System.IO; using Newtonsoft.Json; namespace Login.Proxy.Config { internal class LoginProxyConfig { private static Lazy<LoginProxyConfig> _instance = new Lazy<LoginProxyConfig>(ReadProxyConfig); public static LoginProxyConfig Values => _instance.Value; private st...
29.073171
130
0.693792
[ "MIT" ]
burak3000/LoginServiceInRedisAndDotnetFive
Login.Proxy/Config/LoginProxyConfig.cs
1,194
C#
using DiscordV.Models; using DiscordV.Core; using System.Threading.Tasks; namespace DiscordVTest { class Program { static void Main(string[] args) => new Program().Run().GetAwaiter().GetResult(); async Task Run() { Message message = new Message() { ...
24.166667
99
0.543103
[ "MIT" ]
Lulzboat-Mods/DiscordV
DiscordVTest/Program.cs
582
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> //---...
63.530612
201
0.688725
[ "Apache-2.0" ]
akhegr/Skoleprojekter
4. semester projekt/MobilSemProjekt/MobilSemProjekt/MobilSemProjekt/MobilSemProjekt/obj/Debug/netstandard2.0/View - Kopi/CreateUserPage.xaml.g.cs
3,113
C#
// Copyright (c) 2008-2012, Lex Li // 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 source code must retain the above copyright notice, this list // of cond...
34.048611
134
0.560473
[ "BSD-3-Clause" ]
3rdandUrban-dev/Nuxleus
src/external/sharpsnmp/SharpSnmpLib/Mib/Assembler.cs
4,903
C#
using NowWhat.Shared.Constants.Permission; using Microsoft.AspNetCore.Authorization; using System.Linq; using System.Threading.Tasks; namespace NowWhat.Server.Permission { internal class PermissionAuthorizationHandler : AuthorizationHandler<PermissionRequirement> { public PermissionAuthorizationHandle...
35.366667
132
0.568332
[ "MIT" ]
zoldacic/NoNonense
src/Server/Permission/PermissionAuthorizationHandler.cs
1,063
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Security.Claims; using System.Threading; using System.Threading.Tasks; us...
48.299625
154
0.681994
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Identity/Extensions.Stores/src/RoleStoreBase.cs
12,896
C#
using System; using DNTProfiler.ServiceLayer.Contracts; using DNTProfiler.TestEFContext.DataLayer; using DNTProfiler.TestEFContext.Domain; namespace DNTProfiler.WebFormsTest { public partial class WebForm2 : BasePage { public IUnitOfWork UoW { set; get; } public IProductService ProductService ...
30.162791
74
0.588281
[ "Apache-2.0" ]
Mohsenbahrzadeh/DNTProfiler
Tests/DNTProfiler.WebFormsTest/AddProduct.aspx.cs
1,299
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Eaf.Notifications { /// <summary> /// Used to manage notification definitions. /// </summary> public interface INotificationDefinitionManager { /// <summary> /// Adds the specified notification definition. ...
34.721311
96
0.614731
[ "MIT" ]
afonsoft/EAF
src/Eaf/Notifications/INotificationDefinitionManager.cs
2,120
C#
using System.IO; using Aspose.Pdf.Facades; using System; namespace Aspose.Pdf.Examples.CSharp.AsposePDF.Bookmarks { public class GetBookmarkPageNumber { public static void Run() { // ExStart:GetBookmarkPageNumber // The path to the documents directory. string...
37.222222
96
0.586567
[ "MIT" ]
Swisscard/Aspose.PDF-for-.NET
Examples/CSharp/AsposePDF/Bookmarks/GetBookmarkPageNumber.cs
1,340
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using Microsoft.CSharp.RuntimeBinder.Errors; using Microsoft.CSharp.RuntimeBinder.Syntax; ...
38.292047
134
0.536364
[ "MIT" ]
AlexGhiondea/corefx
src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Symbols/SymbolLoader.cs
29,370
C#
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; namespace AuthenticodeExaminer { /// <summary> /// An interface for low-level information about Authenticode signature. /// </summary> public interface ICmsSignature...
34.118421
103
0.601234
[ "MIT" ]
Lakritzator/AuthenticodeExaminer
src/AuthenticodeExaminer/ICmsSignature.cs
2,595
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regener...
32.190476
86
0.492604
[ "MIT" ]
abinesh-ragupathy/DDA-Housing-Scheme
HackathonProject/Models/Result_HIG.cs
676
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.PairsByDifference { class PairsByDifference { public static void Main() { int[] arr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); ...
24.806452
82
0.456437
[ "MIT" ]
KristiyanSevov/SoftUni-Programming-Fundamentals
Exercises/06. Arrays-Exercises/10. PairsByDifference/PairsByDifference.cs
771
C#
#Tue Nov 30 21:55:11 EST 2021 lib/com.ibm.ws.org.jboss.classfilewriter_1.2.59.jar=6892241c0dd4e9d194bc275878f26e5e dev/api/ibm/schema/ibm-managed-bean-bnd_1_0.xsd=3b0b778a121ff7c6c28f9e72afd96488 dev/spi/ibm/javadoc/com.ibm.websphere.appserver.spi.cdi_1.1-javadoc.zip=d3ba55dc49da0b0898ecba7e0be69e15 lib/com.ibm.ws.cdi....
76.263158
110
0.855763
[ "MIT" ]
johnojacob99/CSC480-21F
frontend/target/liberty/wlp/lib/features/checksums/com.ibm.websphere.appserver.cdi-2.0.cs
1,449
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace LibrarySystem.Models { [MetadataType(typeof(BookMetadata))] public partial class Book { } public class BookMetadata { ...
20.054054
47
0.609164
[ "MIT" ]
Valersd/LibrarySystemMvc
LibrarySystem.Models/Models/Book.cs
744
C#
using System; using System.Collections.Generic; using System.Text; namespace IocServiceDemo { /// <summary> /// 服务提供者接口类 /// </summary> public interface IDemoServiceProvider { /// <summary> /// 获取服务 /// </summary> /// <returns></returns> IDemoService GetServ...
20.576923
53
0.530841
[ "Apache-2.0" ]
Lc3586/Microservice
src/Applications/SimpleApi/IocServiceDemo/IDemoServiceProvider.cs
581
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...
29.073171
97
0.623322
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-opsgenie
sdk/dotnet/Inputs/IntegrationActionIgnoreFilterConditionArgs.cs
1,192
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensio...
27.658537
106
0.667549
[ "MIT" ]
AgostonAttila/netacademia-lenyugozo-csharp
rpi.server/Startup.cs
1,136
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace Blog.Models { public class Article { [Key] public int Id { get; set; } [Required] ...
22.677419
59
0.621622
[ "MIT" ]
AlexanderVlaskovski/SoftwareTechnologies-SoftUni
09.CSharp net framework Blog/Blog/Blog/Models/Article.cs
705
C#
using System; using System.Collections.Generic; using JsonApiDotNetCore.Configuration; using JsonApiDotNetCore.Controllers; using JsonApiDotNetCore.Exceptions; using JsonApiDotNetCore.Internal.Contracts; using JsonApiDotNetCore.Internal.Queries.Parsing; using JsonApiDotNetCore.Models.Annotation; using JsonApiDotNetCore...
39.545455
155
0.682759
[ "MIT" ]
bjornharrtell/JsonApiDotNetCore
src/JsonApiDotNetCore/Internal/QueryStrings/IncludeQueryStringParameterReader.cs
3,480
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ancestry.Daisy.Tests.Daisy.Component.SilverBulletHandlers { using System.Text.RegularExpressions; using Ancestry.Daisy.Statements; using Ancestry.Daisy.Tests.Daisy.Component.Contr...
30.5625
83
0.630539
[ "MIT" ]
erikhejl/Daisy
Tests/Daisy/Component/SilverBulletHandlers/TimestampBeforeSilverBulletStatement.cs
1,469
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using TMPro; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class TechTreeNav : MonoBehaviour { public static TechTreeNav instance; public GameObject chrSelect; public GameObject chr...
38.443038
190
0.535644
[ "MIT" ]
BradZzz/EldersQuest
Assets/Scripts/TechTree/TechTreeNav.cs
12,150
C#
// -------------------------------------------------------------------------------------------------- // <copyright file="Order.cs" company="FluentPOS"> // Copyright (c) FluentPOS. All rights reserved. // The core team: Mukesh Murugan (iammukeshm), Chhin Sras (chhinsras), Nikolay Chebotov (unchase). // Licensed under t...
32.986111
102
0.559158
[ "MIT" ]
Asad-360/fluentpos
src/server/Modules/Sales/Modules.Sales.Core/Entities/Order.cs
2,375
C#
using System; using System.Collections.Generic; using System.Linq; using ShapeWorld.Library; namespace ShapeWorld.Client { class Program { static void Main(string[] args) { PlayWithRectangle(); } static void PlayWithRectangle() { var r = new Rectangle(); var sq = new Square(...
25.180723
127
0.566507
[ "MIT" ]
brandonmarcum/Week1Test
ShapeWorld/ShapeWorld.Client/Program.cs
2,092
C#
//------------------------------------------------------------------------------ // <copyright file="_NativeSSPI.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ namespace Sy...
46.155907
200
0.381188
[ "Unlicense" ]
bestbat/Windows-Server
com/netfx/src/framework/net/system/net/_nativesspi.cs
67,203
C#
using System; namespace RX { internal class DisposeToken : IDisposable { public Action DisposeAction; public void Dispose() => DisposeAction?.Invoke(); } }
16.909091
57
0.639785
[ "MIT" ]
RPGameStudio/events
Runtime/DisposeToken.cs
188
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.IO; using System.Linq.Expressions; using System.Net.Http; using System.Reflection; using System.Threading.Tasks; using System.Xml.Linq; using FluentAssertions.Collections; using FluentAss...
40.849076
183
0.611582
[ "Apache-2.0" ]
MullerWasHere/fluentassertions
Src/FluentAssertions/AssertionExtensions.cs
39,789
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; public class SkeletonMage : EnemyBase { private double healInterval; private double healTimer; protected override void Update() { base.Update(); if (!isDead) UpdateHea...
19.033333
71
0.532399
[ "MIT" ]
996Studio/GoblinMustDie
Assets/Scripts/Game Assets/Enemy/SkeletonMage.cs
1,142
C#
namespace AbstractFactory { class Program { static void Main(string[] args) { IMachineFactory factory = new HighBudgetMachine();// Or new LowBudgetMachine(); ComputerShop shop = new ComputerShop(factory); shop.AssembleMachine(); } } }
20.666667
91
0.580645
[ "MIT" ]
didimitrov/Algo
SortingAlgorithmsDemo/OOP/DesignPatterns/Creational/AbstractFactory/Program.cs
312
C#
namespace BlazorState.Pipeline.ReduxDevTools; using MediatR; internal class CommitRequest : DispatchRequest<CommitRequest.PayloadClass>, IRequest, IReduxRequest { internal class PayloadClass { public string Type { get; set; } } }
20.166667
99
0.772727
[ "Unlicense" ]
ScriptBox99/blazor-state
Source/BlazorState/Pipeline/ReduxDevTools/Features/Commit/CommitRequest.cs
242
C#
//--------------------------------------------------------------------- // <copyright file="CsdlConstantExpression.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //-----------------------------------...
35.947368
126
0.509517
[ "MIT" ]
GCAE/ODataToolkit
ODataToolkit/Edm/Csdl/Parsing/Ast/CsdlConstantExpression.cs
2,732
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebApi.Template.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home Page"; return...
18.473684
45
0.592593
[ "MIT" ]
cobusbernard/CSharp.WebApi.Template
src/WebApi.Template/Controllers/HomeController.cs
353
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...
41.126866
197
0.636001
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/NetworkManager/Generated/Model/Internal/MarshallTransformations/CreateDeviceResponseUnmarshaller.cs
5,511
C#
using System.Collections.Generic; using System; using System.Collections; public class InstanceUtility { public static object InstanceOfType(Type type) { if (type.IsEnum) { return InstanceOfEnum(type); } else if (type == typeof(DateTime)) { return DateTime.Now; } else if (type.IsPrimitive || ty...
20.726257
83
0.637736
[ "MIT" ]
sric0880/unity-framework
tools/build_codegen_configgen/ConfigGen/ConfigGen/Utility/InstanceUtility.cs
3,712
C#
#region using LoESoft.Core; #endregion namespace LoESoft.GameServer.networking.outgoing { public class PETYARDUPDATE : OutgoingMessage { public int Type { get; set; } public override MessageID ID => MessageID.PETYARDUPDATE; public override Message CreateInstance() => new PETYARDUPD...
19.392857
72
0.607735
[ "MIT" ]
Devwarlt/LOE-V6-SERVER
gameserver/networking/messages/outgoing/PETYARDUPDATE.cs
545
C#
// lucene version compatibility level: 4.8.1 using System.Collections.Generic; using System.Text; namespace Lucene.Net.Analysis.Cn.Smart.Hhmm { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work...
48.555118
122
0.478878
[ "Apache-2.0" ]
DiogenesPolanco/lucenenet
src/Lucene.Net.Analysis.SmartCn/Hhmm/HHMMSegmenter.cs
12,335
C#
using NUnit.Framework; using ScottPlot; using System; using System.Collections.Generic; using System.Text; namespace ScottPlotTests.Ticks { class TickGeneration { [Test] public void Test_DefinedSpacing_NumericAxis() { int pointCount = 20; // create a series of ...
32.547368
89
0.562096
[ "MIT" ]
Jmerk523/ScottPlot
src/tests/Ticks/TickGeneration.cs
3,094
C#
using System; using System.IO; using System.Windows.Forms; using NLog; using NSW.StarCitizen.Tools.Lib.Global; using NSW.StarCitizen.Tools.Properties; namespace NSW.StarCitizen.Tools.Controllers { public sealed class GameModesController { private static readonly Logger _logger = LogManager.GetCurrentCl...
36.820896
104
0.591001
[ "MIT" ]
Terrencetodd/StarCitizen
SCTools/SCTools/Controllers/GameModesController.cs
2,467
C#
using Common.Logging; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Serilog; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; namespace...
26.852941
70
0.657174
[ "MIT" ]
lateef10/CleanArchitectureMicroservice
MicroserviceArchitecture/Services/Basket/Basket.API/Program.cs
913
C#
using System; using System.Collections.Generic; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.CustomControls; using Robust.Shared.Localization; using Robust.Shared.Maths; namespace Content.Client.GameObjects.Components.Body.Surgery { public class ...
28.514925
95
0.490709
[ "MIT" ]
BingoJohnson/space-station-14
Content.Client/GameObjects/Components/Body/Surgery/SurgeryWindow.cs
3,823
C#
/** * Copyright 2015 Canada Health Infoway, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
48.612245
362
0.742653
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-v01_r04_3/Main/Ca/Infoway/Messagebuilder/Model/Pcs_cerx_v01_r04_3/Interaction/DevicePrescriptionDispenseSummaryQueryResp.cs
2,382
C#
namespace BO.Migrations { using System; using System.Data.Entity.Migrations; public partial class InitDb : DbMigration { public override void Up() { CreateTable( "dbo.CategoryPOIs", c => new { Id...
44.12
83
0.437443
[ "MIT" ]
Alexandre-Delaunay/ENI_Projet_Sport
ENI_Projet_Sport/BO/Migrations/201903041503367_InitDb.cs
8,824
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace Linehaul_Helper.Converters { class TrackingNumberValidConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, ...
29.909091
124
0.697568
[ "MIT" ]
RodgerLeblanc/Linehaul-Helper
Linehaul Helper/Linehaul_Helper/Converters/TrackingNumberValidConverter.cs
660
C#
using System; using System.Collections.Generic; namespace SICore.Connections { /// <summary> /// Базовый класс для всех внешних серверов /// </summary> public abstract class ConnectionBase : IConnection { protected bool IsClosed { get; private set; } = false; public string Connect...
26.684685
120
0.54659
[ "MIT" ]
wurunduk/SI
src/SICore/SICore.Connections/ConnectionBase.cs
3,164
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Repository.Pattern.Abstractions; using Repository.Pattern.Abstractions.Batches; using Repository.Pattern.Abstractions.Exceptions; using Repository.Pattern.Abstractions.Exceptions....
37.411765
134
0.588574
[ "MIT" ]
alvaromongon/Repository.Pattern.InMemory
src/Repository.Pattern.InMemory/InMemoryRepository.cs
7,634
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using MvcMovie.Models; namespace MvcMovie.Migrations { [DbContext(typeof(MvcMovieC...
33.085106
125
0.603859
[ "MIT" ]
reelleer/dotNetCoreTutorials
MvcMovie/Migrations/MvcMovieContextModelSnapshot.cs
1,557
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Dingtalkattendance_1_0.Models { public class GetUserHolidaysResponseBody : TeaModel { /// <summary> /// 员工假期列表 /// </summary> ...
30.102941
89
0.49829
[ "Apache-2.0" ]
aliyun/dingtalk-sdk
dingtalk/csharp/core/attendance_1_0/Models/GetUserHolidaysResponseBody.cs
2,163
C#
using NBitcoin; using Stratis.Bitcoin.Utilities; namespace Stratis.Bitcoin.Base.Deployments { public class NodeDeployments { /// <summary>Specification of the network the node runs on - regtest/testnet/mainnet.</summary> private readonly Network network; public ThresholdConditionCache...
32.282051
126
0.622716
[ "MIT" ]
MIPPL/StratisBitcoinFullNode
src/Stratis.Bitcoin/Base/Deployments/NodeDeployments.cs
1,261
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Zeron.ZCore.Utils.Tests { [TestClass()] public class Md5ProviderTests { [TestMethod()] public void GenerateBase64Test() { string encodeMd5 = Md5Provider.GenerateBase64("zeron"); Assert.AreEqual(e...
23.5
67
0.630319
[ "MIT" ]
inwazy/Zeron
ZeronTests/ZCore/Utils/Md5ProviderTests.cs
378
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DataTable { public class Program { public stat...
25.592593
70
0.643994
[ "MIT" ]
reshamkafle/jQuery-DataTable-ASP.NET-5
DataTable/Program.cs
691
C#
namespace PierresSavoryAndSweet.ViewModels { public class LoginViewModel { public string Email { get; set; } public string Password { get; set; } } }
20.375
42
0.699387
[ "Unlicense" ]
mikah-mathews/PierresSavoryAndSweets
PierresSavoryAndSweet/ViewModels/LoginViewModel.cs
163
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.Data.Common; using Microsoft.EntityFrameworkCore.Specification.Tests; using Microsoft.EntityFrameworkCore.SqlServer.Functiona...
42.434211
129
0.567442
[ "Apache-2.0" ]
pmiddleton/EntityFramework
test/EFCore.SqlServer.FunctionalTests/TransactionSqlServerFixture.cs
3,225
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
35.886525
144
0.652767
[ "MIT" ]
IoTFier/dicom-server
converter/dicom-cast/src/Microsoft.Health.DicomCast.Core/Features/Worker/FhirTransaction/Patient/PatientPipelineStep.cs
5,062
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using System; using FeatureBits.Data.EF; namespace FeatureBitsData.Migrations { [DbContext(typeof(FeatureBits...
32.377049
117
0.556962
[ "MIT" ]
Bhaskers-Blu-Org2/featurebits
src/FeatureBits.Data/Migrations/20180424182241_Initial-Create.Designer.cs
1,977
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.ComponentModel; using Pulumi; namespace Pulumi.AzureNextGen.HybridData { /// <summary> /// This is the preferred geo location fo...
48.561728
118
0.680691
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/HybridData/Enums.cs
7,867
C#
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OGFrp.UI { public partial class Config { ConfigModel[] ConfigArray = new ConfigModel[5]; /// <summary> /// 构造函数 /// </summary> ...
28.254777
137
0.403517
[ "Apache-2.0" ]
MarchStudio/OGFrp
src/OGFrp.SharedCS/Config/Config.cs
4,556
C#
using Xunit; using System.Linq; using Newtonsoft.Json; using Elements; using Hypar.Functions.Execution.Local; using Elements.Serialization.glTF; using Elements.Serialization.JSON; using System.Collections.Generic; using Elements.Geometry; namespace SiteBySketch.Tests { public class SiteBySketchTests { ...
32.945946
114
0.521739
[ "MIT" ]
M-JULIANI/BuildingBlocks
Site/SiteBySketch/test/SiteBySketchTests.cs
1,221
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extens...
34.418033
180
0.585377
[ "MIT" ]
Iamkemical/ECommerceApp
src/Spice/Areas/Customer/Controllers/HomeController.cs
4,201
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [System.Serializable] public class Confirm_button_options { public GameObject Collector; } public class Confirm_button : MonoBehaviour { public struct Seed_info { public int plant_type; p...
32.628205
103
0.59332
[ "MIT" ]
ValenDtv/Gargen_AR
Assets/Scripts/Buttons/Confirm_button.cs
2,547
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("Fil...
37.675676
84
0.748207
[ "MIT" ]
SamIge7/SideWork
06NullOperators/FileProcessor/Properties/AssemblyInfo.cs
1,397
C#
using System; using System.Runtime.InteropServices; namespace UMP.Wrappers { internal class WrapperStandalone : IWrapperNative, IWrapperPlayer, IWrapperSpu, IWrapperAudio { private IntPtr _libVLCHandler = IntPtr.Zero; private IntPtr _libUMPHandler = IntPtr.Zero; private int _native...
43.198347
196
0.68371
[ "Apache-2.0" ]
auroraland-vr/auroraland-client
Assets/UniversalMediaPlayer/Scripts/Sources/Wrappers/WrapperStandalone.cs
62,726
C#
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.1 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
28.934783
113
0.675933
[ "BSD-2-Clause" ]
Caprica666/vixen
build/swig/VixenCS/Sources/CoreTree.cs
3,993
C#
using FluentAssertions; using Sirh3e.Rust.Option; using Xunit; namespace Sirh3e.Rust.Test.Option { public partial class OptionUnitTest { [Fact] public void Option_Map() { { var option = Option<string>.Some("Hello, World!"); option.IsSome.Shou...
27.111111
97
0.485246
[ "BSD-3-Clause" ]
sirh3e/Rust
test/Sirh3e.Rust.Test/Option/Methods/Option.Map.UnitTest.cs
1,220
C#
// 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 // regenerated. namespac...
32.238095
102
0.696455
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/RecoveryServices.SiteRecovery/Management.RecoveryServices.SiteRecovery/Generated/Models/VmmToAzureCreateNetworkMappingInput.cs
1,354
C#
using System; using Skybrud.Social.Http; using Skybrud.Social.Twitter.Models.Search; namespace Skybrud.Social.Twitter.Responses.Search { /// <summary> /// Class representing the response of a request to the Twitter API for searching through Twitter status messages (tweets). /// </summary> public class...
33.857143
127
0.678622
[ "MIT" ]
ohunecker/Skybrud.Social.Twitter
src/Skybrud.Social.Twitter/Responses/Search/TwitterSearchTweetsResponse.cs
1,422
C#
using System.Reflection; 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: AssemblyConfiguration("")] [assembly: AssemblyCompany("")...
41.578947
84
0.778481
[ "MIT" ]
leandro-SI/Controle-vendas-dotnetcore
aspnet-core/src/ControleVendas.Core/Properties/AssemblyInfo.cs
792
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSLibrary { public partial class HighLevelInterface { byte[] _recvBuffer = new byte[8 + 255 + 20]; // receive packet buffer int _currentRecvBufferSize = 0; byte...
35.489933
116
0.506051
[ "MIT" ]
cslrfid/CS108-Windows-UWP-App
CSLibrary/CS108READER/CodeFileReceive.cs
5,290
C#
using System; using Pds.Core.Enums; namespace Pds.Api.Contracts.Content { public class GetContentResponse { public string Id { get; set; } public string Title { get; set; } public Guid BillId { get; set; } public decimal BillValue { get; set; } public string BillCom...
21.166667
57
0.610236
[ "Apache-2.0" ]
catdog50rus/bloggers-cms
Pds/Pds.Api.Contracts/Content/GetContentResponse.cs
510
C#
// // Copyright (C) 2010 Novell Inc. http://novell.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, copy, modi...
32.740741
73
0.753959
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Xaml/System.Xaml/XamlXmlWriterSettings.cs
1,768
C#
namespace Primeira_Aula { partial class frmPrincipal { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
50.48
177
0.606313
[ "MIT" ]
LucasValentimK/ADS-OO
Primeira Aula/Primeira Aula/Form1.Designer.cs
7,579
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System.Diagnostics; namespace BlazorExample.Api.Pages { [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public class ErrorModel : PageModel { ...
26.75
89
0.639519
[ "MIT" ]
Forestbrook/BlazorAuthorizationExample
Api/Pages/Error.cshtml.cs
751
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.Globalization; using Xunit; namespace System.ComponentModel.Tests { public class TypeListConverter...
33.583333
131
0.561787
[ "MIT" ]
2E0PGS/corefx
src/System.ComponentModel.TypeConverter/tests/TypeListConverterTests.cs
2,015
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions; /// <summary>Defines reference to an Azure resource.</summary> public partial class AzureResourceReference : Microsoft.Azure...
46.978261
137
0.706155
[ "MIT" ]
3quanfeng/azure-powershell
src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.cs
2,116
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// AlipayCommerceKidsAccountBindModel Data Structure. /// </summary> [Serializable] public class AlipayCommerceKidsAccountBindModel : AopObject { /// <summary> /// 与child_cert_type对应,如果child_...
25.164384
73
0.523136
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Domain/AlipayCommerceKidsAccountBindModel.cs
2,041
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; using SpatialLite.Core; using SpatialLite.Core.API; using SpatialLite.Core.Geometries; namespace Tests.SpatialLite.Core.Geometries { public class GeometryCollectionTests { #region Test Data Point[...
28.61658
131
0.72533
[ "BSD-3-Clause" ]
AntonBursch/spatiallite-net
src/Tests.SpatialLite.Core/Geometries/GeometryCollectionTests.cs
5,525
C#
using System.Data.Entity; using UniversityManagementSystem.Data.Contexts; using UniversityManagementSystem.Data.Entities; namespace UniversityManagementSystem.Services { /// <summary> /// Defines implementations for the inherited members which perform year dimension related business logic. /// </summar...
32
114
0.710069
[ "MIT" ]
tnc1997/wpf-university-management-system
UniversityManagementSystem.Services/YearDimService.cs
576
C#
using System.Collections.Generic; using System.Linq; using NUnit.Framework; using static Linqor.Tests.Helpers; namespace Linqor.Tests { [TestFixture] public class ExceptTests { [TestCaseSource(nameof(GetTestCases))] public string[] Except(string[] left, string[] right) { ...
38.013514
153
0.441877
[ "MIT" ]
b-maslennikov/linqor
Linqor.Tests/ExceptTests.cs
2,815
C#
using System.Text.Json; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; using Microsoft.Extensions.Options; using RSql4Net.Configurations; using RSql4Net.Models.Queries; using Xunit; namespace RSql4Net.Tests.Models.Queries { public class QueryModelBinde...
34.075
100
0.676449
[ "MIT" ]
gwendallg/RSql4Net
src/RSql4Net.Tests/Models/Queries/QueryModelBinderProviderTest.cs
1,365
C#
using UnityEngine; using System.Collections; public class MathUtil { public static Vector3 AngleToVector(float degrees) { return new Vector3(Mathf.Cos(Mathf.Deg2Rad * degrees), Mathf.Sin(Mathf.Deg2Rad * degrees)).normalized; } public static float VectorToAngle(Vector3 vector) { return Mathf.Rad2Deg * Ma...
24.623529
88
0.709508
[ "MIT" ]
zillix/LD46
Assets/Scripts/Util/MathUtil.cs
2,095
C#