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
// SampSharp // Copyright 2017 Tim Potze // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
41.153034
156
0.543823
[ "Apache-2.0" ]
KirillBorunov/SampSharp
src/SampSharp.GameMode/SAMP/Commands/CommandsManager.cs
15,597
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CircleOnTerrain : Cycle { public Body body; public Life life; public int rows; public int columns; public Vector3 set; public float radius; public float height = 1; private SceneCircleVerts verts; priva...
15.481013
62
0.640229
[ "MIT" ]
cabbibo/IMMATERIAL
Assets/IMMATERIA/Scene/CircleOnTerrain.cs
1,225
C#
using System.Collections.Generic; namespace Swish { class EntryPoint : ISyntaxNode, IMethod { public string Name { get; set; } public IType ReturnType { get { return new AsmType("System.Void"); } set { } } public Namespace Namespace { get; set; }...
24.512195
66
0.495522
[ "MIT" ]
noahmorrison/swish
compiler/SyntaxNode/EntryPoint.cs
1,005
C#
using System; using Android.Content; namespace Microsoft.Maui.Controls.Handlers.Items { internal class SizedItemContentView : ItemContentView { readonly Func<int> _width; readonly Func<int> _height; public SizedItemContentView(Context context, Func<int> width, Func<int> height) : base(context) { _wid...
22.571429
107
0.725316
[ "MIT" ]
41396/maui
src/Controls/src/Core/Handlers/Items/Android/SizedItemContentView.cs
792
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Server; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoti...
48.812766
191
0.627269
[ "MIT" ]
Hwangjonggyun/PowerShell
src/System.Management.Automation/engine/remoting/server/serverremotesession.cs
57,355
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; namespace armipsSimpleGui { class Settings { public const string SETTINGS_FILENAME = "settings.xml"; public static uint fileRAM = 0; public static List<String> u...
33.634921
107
0.512978
[ "MIT" ]
DavidSM64/SimpleArmipsGui
Settings.cs
4,240
C#
using Palindrome.library; using System; namespace PalindromeApp { class Program { static void Main(string[] args) { IIsPalindrome palindromeCheckGeneral = new PalindromeChecker(); ; // upcasting Console.WriteLine("Enter a string to check if it's a palindrome"); ...
25.085714
91
0.568337
[ "MIT" ]
2002-feb24-net/harold-code
Palindrome/PalindromeApp/Program.cs
880
C#
using System.Collections.Generic; using ZKWeb.Localize; using ZKWebStandard.Extensions; using ZKWebStandard.Ioc; namespace ZKWeb.Plugins.Common.Admin.src.Components.Translates { /// <summary> /// 中文翻译 /// </summary> [ExportMany, SingletonReuse] public class zh_CN : ITranslateProvider { private stati...
36.243902
90
0.550135
[ "MIT" ]
303248153/ZKWeb.Plugins
src/ZKWeb.Plugins/Common.Admin/src/Components/Translates/zh_CN.cs
7,446
C#
using HandHistories.Objects.GameDescription; using HandHistories.Parser.Parsers.Base; using HandHistories.Parser.Parsers.Exceptions; using HandHistories.Parser.UnitTests.Parsers.Base; using NUnit.Framework; using System.Collections.Generic; using System.Linq; namespace HandHistories.Parser.UnitTests.Parsers.HandSumma...
41.385714
163
0.652399
[ "Unlicense" ]
HHSmithy/PokerHandHistoryParser
HandHistories.Parser.UnitTests/Parsers/HandSummaryParserTests/IsValidHandTests/HandParserValidHandTests.cs
5,796
C#
#region License // // MIT License // // CoiniumServ - Crypto Currency Mining Pool Server Software // // Copyright (C) 2013 - 2017, CoiniumServ Project // Copyright (C) 2017 - 2021 The Merit Foundation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this ...
31.142857
109
0.584862
[ "MIT" ]
meritlabs/CoiniumServ
src/CoiniumServ/Utils/Buffers/RingBuffer.cs
2,618
C#
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
24.658537
76
0.715134
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Vpc/Apis/OpModifyElasticIpResult.cs
1,043
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.ComponentModel; using System.Diagnostics.Contracts; usi...
45.167832
151
0.623316
[ "MIT" ]
ehtick/Uno.WindowsCommunityToolkit
CommunityToolkit.Mvvm/Messaging/Messages/AsyncCollectionRequestMessage{T}.cs
6,459
C#
namespace TestSetControlLibrary { partial class SerialSettingsForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
45.651376
108
0.572046
[ "ECL-2.0", "Apache-2.0" ]
demirelcan/dnp3
windows/TestSetControlLibrary/SerialSettingsForm.Designer.cs
9,954
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 NuGet.Services.Entities; using NuGetGallery; namespace GitHubVulnerabilities2Db.Fakes { publ...
25.533569
111
0.596457
[ "Apache-2.0" ]
0xced/NuGetGallery
src/GitHubVulnerabilities2Db/Fakes/FakeFeatureFlagService.cs
7,228
C#
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for Additional information regarding copyright ownership. The ASF licenses this file to Y...
37.905512
118
0.609472
[ "Apache-2.0" ]
68681395/npoi
testcases/ooxml/XSSF/UserModel/TestXSSFSheetUpdateArrayFormulas.cs
4,814
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NamelessRogue.Engine.Components.ItemComponents { public class AmmoLibrary : Component { public List<AmmoType> AmmoTypes { get; set; } = new List<AmmoType>(); public ov...
23.631579
77
0.674833
[ "MIT" ]
GreyArmor/SomeRogueMonogame
NamelessRogue_updated/Engine/Components/ItemComponents/AmmoLibrary.cs
451
C#
/**************************************************************************** *项目名称:MicroServiceGateway.Model *CLR 版本:4.0.30319.42000 *机器名称:WALLE-PC *命名空间:MicroServiceGateway.Model *类 名 称:MicroServiceConfig *版 本 号:V1.0.0.0 *创建人: yswenli *电子邮箱:yswenli@outlook.com *创建时间:2020/8/20 9:38:09 *描述: *==========================...
26.530303
110
0.470017
[ "MIT" ]
yswenli/MicroServiceGateway
MicroServiceGateway/MicroServiceGateway.Model/MicroServiceConfig.cs
1,933
C#
using Application.Interfaces.Repositories; using Domain.Entities; using Infrastructure.Persistence.Contexts; using Infrastructure.Persistence.Repository; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace In...
32.137931
125
0.757511
[ "MIT" ]
Devsquares/AdlerZentrum-BackEnd
Infrastructure.Persistence/Repositories/PlacementReleaseReopsitoryAsync.cs
932
C#
//___________________________________________________________________________________ // // Copyright (C) 2020, Mariusz Postol LODZ POLAND. // // To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI //__________________________________________________________________________________...
34.383721
210
0.634258
[ "MIT" ]
mpostol/WindowsForms
CAS.Windows.Forms/DockPanelUserControl.cs
5,916
C#
// <copyright file="Histogram.cs" company="Allan Hardy"> // Copyright (c) Allan Hardy. All rights reserved. // </copyright> using App.Metrics.Benchmarks.Fixtures; using App.Metrics.Benchmarks.Support; using Xunit; namespace App.Metrics.Benchmarks.Facts { public class Histogram : IClassFixture<MetricsCoreTestFixt...
30.285714
80
0.513561
[ "Apache-2.0" ]
geffzhang/AppMetrics
benchmarks/App.Metrics.Benchmarks/Facts/Histogram.cs
1,698
C#
using System; using Forum.Data; using Forum.Services.Contracts; using Microsoft.EntityFrameworkCore; namespace Forum.Services { public class DatabaseInitializerService : IDatabaseInitializerService { private readonly ForumDbContext context; public DatabaseInitializerService(ForumDbContext context) { this....
18.391304
70
0.775414
[ "MIT" ]
VeselinBPavlov/database-advanced-entity-framework-core
22. Best Practices And Architecture - Lab/Forum.Services/DatabaseInitializerService.cs
425
C#
using System; using System.Collections.Generic; using System.Text; namespace _04.WildFarm.Models.Animals.Contracts { public interface IAnimal { string Name { get; } double Weight { get; } } }
16.5
47
0.636364
[ "MIT" ]
StelaKaneva/Csharp-OOP
Polymorphism/Exercise/04.WildFarm/04.WildFarm/04.WildFarm/Models/Animals/Contracts/IAnimal.cs
233
C#
using System; namespace AdapterPatternRealWorldSample { class Program { private static CertainThirdPartyControl certainThirdPartyControl = new CertainThirdPartyControl(); private static CertainFrameworkControl certainFrameworkControl = new CertainFrameworkControl(); private static Edit...
35.611111
130
0.649506
[ "MIT" ]
OvidiuCaba/AdapterPatternRealWorldSample
AdapterPatternRealWorldSample/Program.cs
1,925
C#
/* * OANDA v20 API * * The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. * * The version of the OpenAPI document: 3.0.25 * Contact: api@oanda.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using ...
27.0875
136
0.618366
[ "MIT" ]
geriremenyi/oanda-dotnet-client
src/GeriRemenyi.Oanda.V20.Client.Test/Model/Error4xxBodyTests.cs
2,167
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System.Runtime.InteropServices; using static Root; [StructLayou...
31.267857
91
0.521987
[ "BSD-3-Clause" ]
0xCM/z0
src/part/src/api/archives/ApiExtractSettings.cs
1,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; using Microsoft.Xunit.Performance; namespace Functions { public static partial class MathTests ...
31.163265
118
0.575639
[ "MIT" ]
JetBrains/coreclr
tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/PowSingle.cs
1,529
C#
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 wit...
34.435897
463
0.735666
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/System/Sources/System.Runtime.InteropServices.ComTypes.cs
2,686
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must ...
43.046512
118
0.709346
[ "BSD-3-Clause" ]
N3X15/VoxelSim
OpenSim/Server/Handlers/Hypergrid/GatekeeperServerConnector.cs
3,704
C#
using Octopus.Server.Extensibility.Authentication.OpenIDConnect.Common.Identities; namespace Octopus.Server.Extensibility.Authentication.GoogleApps.Identities { class GoogleAppsIdentityCreator : IdentityCreator, IGoogleAppsIdentityCreator { protected override string ProviderName => GoogleAppsAuthentic...
35.333333
96
0.811321
[ "Apache-2.0" ]
OctopusDeploy/OpenIDConnectAuthenticationProviders
source/Server.GoogleApps/Identities/GoogleAppsIdentityCreator.cs
426
C#
using System.Linq; using War3Map.Template.Common.Constants; using War3Net.Build.Info; namespace War3Map.Template.Launcher { internal static class PlayerAndForceSettings { public static void ApplyToMapInfo(MapInfo mapInfo) { // Create players var team0Players = new Pla...
34.55
103
0.586107
[ "MIT" ]
Bia10/War3Map.Template
src/War3Map.Template.Launcher/PlayerAndForceSettings.cs
2,075
C#
using NUnit.Framework; namespace DataStructuresAndAlgos.LinkedLists; public class LinkedListCycle { [Test] public void Test_LinkedListCycle() { } private bool HasLinkedListCycle(ListNode head) { var slow = head; var fast = head; while (fast != null &...
16.7
50
0.53493
[ "MIT" ]
manasa-konidena/DataStructuresAndAlgos
DataStructuresAndAlgos/LinkedLists/LinkedListCycle.cs
501
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace nunit.v3 { [TestFixture] public class Issue3472 { [TestCase(@"сÐ")] public void Test_ND(string name) { Ass...
17.9
41
0.592179
[ "MIT" ]
rprouse/nunit-tests
nunit-v3/Issue3472.cs
361
C#
using System; using System.Reflection; namespace FluentAssertions.Equivalency { /// <summary> /// Provides details about the subject's root or nested property. /// </summary> public interface ISubjectInfo { /// <summary> /// Gets the <see cref="PropertyInfo"/> of the property that r...
33.894737
128
0.59472
[ "Apache-2.0" ]
blairconrad/fluentassertions
FluentAssertions.Net35/Equivalency/ISubjectInfo.cs
1,288
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Woc.Book.Base.BusinessEntity; using Woc.Book.Base; using Woc.Book.Staff.Service; using Woc.Book.Staff.BusinessEntity; namespace Woc.Book.Staff { internal class StaffController : IRegistrationController,IStaffController ...
32.961905
93
0.58538
[ "MIT" ]
harlandgomez/woc
src/Staff/StaffController.cs
3,463
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace jjnguy.RegexBuilder { public record Builder(IEnumerable<ISegment> _pieces) : ISegment { public Builder() : this(new ISegment[0]) { } public Builder(string text) : this(new ISegment[] ...
33.370968
108
0.697922
[ "MIT" ]
jjnguy/RegexBuilder
src/jjnguy.RegexBuilder/Builder.cs
2,069
C#
using System.Collections.Generic; namespace Contoso.Forms.View.Common { public class ConditionGroupView { public string Logic { get; set; } public List<ConditionView> Conditions { get; set; } public List<ConditionGroupView> ConditionGroups { get; set; } } }
25.181818
63
0.722022
[ "MIT" ]
BlaiseD/LogicBuilder.Samples
.NetCore/Contoso/Contoso.Forms.View/Common/ConditionGroupView.cs
279
C#
using System.Collections.Generic; using System.Threading.Tasks; using SeatsSuggestions.Domain.Helper; namespace SeatsSuggestions.Domain { /// <summary> /// The functional and imperative shell/orchestration core. /// </summary> public static class SeatAllocator { private const int Numbe...
46.267606
189
0.684932
[ "Apache-2.0" ]
ptillemans/livecoding-beyond-hexagonal-architecture
SeatsSuggestions/SeatsSuggestions.Domain/SeatAllocator.cs
3,287
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApp { public partial class Site_Mobile : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } } }
18.705882
63
0.694969
[ "Apache-2.0" ]
AkhilNaidu09/IdentityServer3.Samples
source/Clients/WebFormsClient/Site.Mobile.Master.cs
318
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. // The function signature of the following architectures is know for the constrained call helper functions #if ARM...
53.055369
240
0.622308
[ "MIT" ]
hoyMS/corert
src/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/ConstrainedCallSupport.cs
31,623
C#
using GitTfs.Commands; using GitTfs.Core; using GitTfs.Core.TfsInterop; using GitTfs.Util; using StructureMap; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace GitTfs.VsFake { public class MockBranchObject : IBranchObject { public s...
37.346552
260
0.592817
[ "Apache-2.0" ]
ecomachio/git-tfs
src/GitTfs.VsFake/TfsHelper.VsFake.cs
21,661
C#
using static System.Console; class FractionDemo2 { static void Main() { Fraction f1 = new Fraction(1, 4); Fraction f2 = new Fraction(1, 8); Fraction f3 = new Fraction(2, 1, 2); Fraction f4 = new Fraction(); Fraction answer = new Fraction(); answer = f1 + f2; ...
24
82
0.465593
[ "MIT" ]
ikemtz/COP2360
Chapter 9/Programming Exercise 9-9B/Program.cs
3,170
C#
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class galleryadmin : System.Web.UI.Page { SqlConnection con = new SqlConnection(@"Data Source=.;Initial Catalog=interiord...
34.545455
138
0.580921
[ "MIT" ]
akshaykolhapure995c/agent-webapp
WebSite10/galleryadmin.aspx.cs
1,522
C#
using System; using System.Windows.Input; using Microsoft.Maui; using Microsoft.Maui.ApplicationModel; using Microsoft.Maui.Controls; using Microsoft.Maui.Devices; namespace Samples.ViewModel { public class VibrationViewModel : BaseViewModel { int duration = 500; bool isSupported = true; public VibrationViewM...
16.662338
58
0.663289
[ "MIT" ]
10088/maui
src/Essentials/samples/Samples/ViewModel/VibrationViewModel.cs
1,283
C#
namespace Rediska.Commands.Geo { public enum Sorting : byte { None = 0, AscendingByDistance = 1, DescendingByDistance = 2 } }
18.888889
33
0.552941
[ "MIT" ]
TwoUnderscorez/Rediska
Rediska/Commands/Geo/Sorting.cs
172
C#
using System; namespace CyclomaticComplexity { // CC = 1 public class IfStatements { // CC = 1 public string Process(DateTime dt) { // CC = 1 Console.WriteLine("Processing..."); var result = ""; // CC = 2 if (dt.Year < D...
25
125
0.470968
[ "MIT" ]
webteckie/CSharpCodeMetrics
CyclomaticComplexity/IfStatements.cs
777
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...
30.28125
122
0.639835
[ "ECL-2.0", "Apache-2.0" ]
sacloud/pulumi-sakuracloud
sdk/dotnet/Inputs/MobileGatewaySimRouteArgs.cs
969
C#
namespace ContosoUniversity.Features.Course { using System.ComponentModel.DataAnnotations; using AutoMapper; using DAL; using MediatR; using Models; public class Create { public class Command : IRequest { [Display(Name = "Number")] publi...
26.081081
67
0.512953
[ "Apache-2.0" ]
MeltedFreddo/ContosoUniversity
src/ContosoUniversity/Features/Course/Create.cs
967
C#
using FluentValidation; namespace SendMail.WebApi.Models.Validators { public static class ValidatorExtensions { //Reusable property validators //https://docs.fluentvalidation.net/en/latest/custom-validators.html#reusable-property-validators public static IRuleBuilderOptions<T, TElement>...
42.357143
178
0.730185
[ "MIT" ]
AngeloDotNet/FacileBudget-2
src/FacileBudget/Backend/SendMail.WebApi/Models/Validators/ValidatorExtensions.cs
593
C#
using UnityEngine; public class BabyConstrainer : MonoBehaviour { #region Variables #endregion #region Monobehaviour Methods void Awake () { } void Update () { transform.localRotation = Quaternion.Euler(30, 0, transform.localEulerAngles.z); } #endregion #region Methods #endregion }
15.25
85
0.72459
[ "MIT" ]
Spierek/NGJ15
Unity/Assets/Scripts/BabyConstrainer.cs
307
C#
using System.Collections.Generic; namespace AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL { public class QuartzJobDetail { public string SchedulerName { get; set; } = null!; public string JobName { get; set; } = null!; public string JobGroup { get; set; } = null!; public string? Description { get; ...
33.4
67
0.693114
[ "MIT" ]
shaykhullinsergey/AppAny.Quartz.EntityFrameworkCore.Migrations
src/AppAny.Quartz.EntityFrameworkCore.Migrations/Quartz/QuartzJobDetail.cs
668
C#
using System.Collections.Generic; using System.Collections.Immutable; using Sunrise.RaaS.Sdk.Core.Helpers; namespace Sunrise.RaaS.Sdk.Core.Requests.Rest { public abstract class AbstractRestRequest : IRestRequest { protected AbstractRestRequest(HttpVerb httpVerb, string route, IReadOnlyDictionary<string, string>...
26.428571
66
0.75
[ "MIT" ]
sunriseraas/DotNet.Sdk.Core
Sunrise.RaaS.Sdk.Core/Requests/Rest/AbstractRestRequest.cs
740
C#
using System; using System.Collections.Generic; using System.Linq; namespace HtmlTags.Conventions { public class TagCategory : ITagBuildingExpression { private readonly Cache<string, BuilderSet> _profiles = new(name => new BuilderSet()); public TagCategory() { _...
33.962025
137
0.626537
[ "Apache-2.0" ]
DarthFubuMVC/htmltags
src/HtmlTags/Conventions/TagCategory.cs
2,683
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Mouse : MonoBehaviour { public bool mobilesupport = false; public static float mouseSpeed = 5f; public Transform playerBody; public Camera cam; private Touch initTouch = new Touch(); float xRotation = 0...
26.259843
88
0.463868
[ "MIT" ]
kangmin1972/Legend-of-Daecheol
DaeCheolSchool/Assets/scripts/Mouse.cs
3,337
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MapMaker : MonoBehaviour { // The dimensions of the map public int mapRowCnt; public int mapColCnt; public int secWidth; public int Sections { get { return mapRowCnt * mapC...
13.698113
50
0.555096
[ "MIT" ]
Dave864/Grid_Game
Grid_Game/Assets/Scripts/Scene_OverWorld/MapMaker.cs
728
C#
namespace HansKindberg.IdentityServer.FeatureManagement { public enum Feature { CertificateForwarding, DataDirectory, DataSeeding, DataTransfer, Debug, Development, Diagnostics, DynamicAuthenticationProviders, FormsAuthentication, ForwardedHeaders, Home, Hsts, HttpsRedirection, Saml, Sec...
16.045455
55
0.773371
[ "MIT" ]
HansKindberg/IdentityServer-Extensions
Source/Project/FeatureManagement/Feature.cs
353
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* GblCorrec.cs -- * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Status: poor */ #region Using dir...
26.471698
84
0.62889
[ "MIT" ]
amironov73/ManagedClient.45
Source/Classic/Libs/ManagedIrbis/Source/Gbl/Infrastructure/Ast/GblCorrec.cs
5,572
C#
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Windows.Media; namespace ColorPicker.ViewModelContracts { public interface IMainViewModel { ///...
28.882353
81
0.590631
[ "MIT" ]
10088/PowerToys
src/modules/colorPicker/ColorPickerUI/ViewModelContracts/IMainViewModel.cs
951
C#
// // Copyright (c) 2008-2019 the Urho3D project. // Copyright (c) 2017-2019 the rbfx project. // // 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 li...
31.330922
148
0.466063
[ "MIT" ]
mostafa901/rbfx
Source/Urho3D/CSharp/Managed/Math/Color.cs
17,328
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> ...
39.888889
191
0.591226
[ "MIT" ]
Foxpips/ProgrammingCSharp
WindowsFormsApplication1/Properties/Resources.Designer.cs
2,874
C#
// Copyright (c) 2020 Sergio Aquilini // This code is licensed under MIT license (see LICENSE file for details) using System.Diagnostics; using System.Reflection; using System.Threading.Tasks; using Silverback.Diagnostics; using Silverback.Util; namespace Silverback.Messaging.Subscribers { internal static class ...
41.285714
120
0.633651
[ "MIT" ]
BEagle1984/silverback
src/Silverback.Core/Messaging/Subscribers/MethodInvokerExtensions.cs
2,314
C#
namespace System.Runtime.CompilerServices { [Serializable] [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] public sealed class AsyncStateMachineAttribute : StateMachineAttribute { public AsyncStateMachineAttribute(Type stateMachineType) : b...
28.846154
88
0.677333
[ "MIT" ]
NETMF/llilum
Zelig/Zelig/RunTime/Framework/mscorlib/System/Runtime/CompilerServices/AsyncStateMachineAttribute.cs
377
C#
#if UNITY_EDITOR using UnityEngine; using System.Collections; using System.Collections.Generic; using System; using System.Linq; namespace Sabresaurus.SabreCSG { public class AdjacencyFilters { public interface BaseFilter { bool IsPolygonAcceptable(Polygon polygonToTest); }...
23.375
72
0.543316
[ "MIT" ]
CloudDevStudios/SabreCSG
Scripts/Geometry/AdjacencyFilters.cs
937
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace SoftJail.Data.Models { public class OfficerPrisoner { public int PrisonerId { get; set; } [Required] public Prisoner Prisoner { get; set; } public int Offi...
21.684211
46
0.648058
[ "MIT" ]
TodorNikolov89/SoftwareUniversity
DatabasesAdvancedEntityFrameworkFeb2019/Exam_Preparation_SoftJail/SoftJail/Data/Models/OfficerPrisoner.cs
414
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...
27.851064
81
0.618793
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Synapse/V20210601Preview/Outputs/EnvironmentVariableSetupResponse.cs
1,309
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace ApiPeliculas.Migrations { public partial class MigrationIsumos4 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { ...
18.833333
71
0.675516
[ "MIT" ]
edevs911/Invent
ApiPeliculas/ApiPeliculas/Data/Migrations/20200702061416_MigrationIsumos4.cs
341
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.Reflection; using System.Text.Json.Serialization; using Microsoft.DotNet.RemoteExecutor; using Xunit; namespace System.Text.Json.SourceGeneration.Tests { public st...
44.829787
149
0.631941
[ "MIT" ]
3DCloud/runtime
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/JsonSerializerContextTests.cs
4,216
C#
/******************************************************************************* * * Filename: UdpDevice.cs * * Description: * Encapsulates a UDP port * * Copyright (C) 2013 - 2017 Pico Technology Ltd. See LICENSE file for terms. * *******************************************************...
26.721649
100
0.618827
[ "ISC" ]
Livius90/picosdk-ethernet-protocol-examples
usbpt104/c-sharp/USBPT104Protocol/UdpDevice.cs
2,594
C#
#region MIT license // // MIT license // // Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne // // 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...
46.348592
160
0.620299
[ "MIT" ]
RWooters/dblinq2007
src/Backup/DbLinq/Data/Linq/Sugar/Implementation/ExpressionQualifier(2).cs
13,163
C#
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Reflection; using System.Text; using UnityEditor.Timeline; namespace UnityEngine.Timeline { [Serializable] class DirectorNamedColor : ScriptableObject { [SerializeField] p...
34.487273
136
0.581717
[ "Apache-2.0" ]
yeliheng/BasketballVR
Library/PackageCache/com.unity.timeline@1.1.0/Editor/DirectorNamedColor.cs
9,484
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // ANTLR Version: 4.6 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------...
31.844737
321
0.671983
[ "MIT" ]
gwendallg/autumn.mvc
src/Autumn.Mvc/Models/Queries/QueryParser.cs
36,303
C#
// ----------------------------------------------------------------------- // <copyright file="NotificationController.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ----------------------------------------------------------------------- u...
50.090452
724
0.541132
[ "MIT" ]
Lauragra/aspnet-security-api-sample
V3.0/MicrosoftGraph_Security_API_Sample/Services/DemoExample.cs
9,970
C#
#if LESSTHAN_NET40 #pragma warning disable CC0061 // Asynchronous method can be terminated with the 'Async' keyword. using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; namespace System.Threading.Tasks { public partial class Task { /// <summary> /// C...
45.794872
203
0.557437
[ "MIT" ]
Terricide/Theraot
Framework.Core/System/Threading/Tasks/Task.when.cs
21,434
C#
using NHibernate.Mapping.ByCode; using NHibernate.Mapping.ByCode.Conformist; namespace NHibernate.GraphQL.Tests.Dto.Mapping { public class AddressMapping: ClassMapping<Address> { public AddressMapping() { Id(x => x.Id, map => { map.Generator(Generators.A...
29.185185
63
0.513959
[ "MIT" ]
raidenyn/NHibernate.GraphQL
src/NHibernate.GraphQL.Tests/Dto/Mapping/AddressMapping.cs
790
C#
/* The MIT License(MIT) Copyright(c) mxgmn 2016. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
25.488789
460
0.619282
[ "MIT" ]
woodyhoko/Isaac-Moduler-3D-approach
4451_Game/Assets/unity-wave-function-collapse/impl/Model.cs
5,686
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> //----------------------------------------...
35.774347
85
0.550096
[ "Apache-2.0" ]
Ruke45/DManagement
DSCMS/DSCMS/Views/Certificate/PendingCertificates.aspx.designer.cs
15,063
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.ServiceFab...
47.940171
144
0.601177
[ "MIT" ]
aL3891/service-fabric-client-dotnet
src/Microsoft.ServiceFabric.Client.Http/Serialization/ClusterUpgradeDomainCompleteEventConverter.cs
5,609
C#
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities;...
31.113971
153
0.561621
[ "BSD-3-Clause" ]
BlackMael/SubSonic-2.0
SubSonic.Tests/Generated/SouthwindRepository/ProductsByCategory.cs
8,463
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; namespace Ldartools.Common.DataStructures { [Obsolete("Please DO NOT use this collection as certain framework controls do not subscribe to update events do to their implementation fai...
33.433333
196
0.668993
[ "MIT" ]
LDARtools/CommonShared
Ldartools.Common/Ldartools.Common/DataStructures/ObservableCollectionExt.cs
1,005
C#
using SCide.WPF.Commence; using System.ComponentModel; using System.Runtime.CompilerServices; namespace SCide.WPF.Models { public class StatusBarModel : INotifyPropertyChanged { #region Fields private string _statusText = string.Empty; private ICommenceScript _commenceScript; ...
26.666667
94
0.551282
[ "MIT" ]
arnovb-github/CmcScriptNet.WPF
SCide.WPF/Models/StatusBarModel.cs
3,122
C#
using FluentAssertions; using System; using System.Threading.Tasks; using Xunit; namespace Aornis.Tests { public class FlatMap { const string initialValue = "Test"; const string newValue = "bees"; private readonly Optional<string> value; public FlatMap() { ...
27.876923
160
0.610927
[ "Apache-2.0" ]
Foritus/optional-dot-net
Aornis.Optional.Tests/FlatMap.cs
1,814
C#
using NMaier.SimpleDlna.Server.Metadata; namespace NMaier.SimpleDlna.Server.Comparers { internal class DateComparer : TitleComparer { public override string Description => "Sort by file date"; public override string Name => "date"; public override int Compare(IMediaItem x, IMediaItem y) { ...
22.36
62
0.618962
[ "BSD-2-Clause" ]
Xen0byte/simpleDLNA
server/Comparers/DateComparer.cs
561
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.md file in the project root for more information. using Microsoft.VisualStudio.Composition; using Microsoft.VisualStudio.ProjectSystem; namespace Microsoft.Visual...
41.73913
201
0.525781
[ "MIT" ]
adamint/project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed/Telemetry/ITelemetryService.cs
3,751
C#
namespace MSBuild.Conversion.Package { public class PackagesConfigPackage { /// <summary> /// Name of the package. /// </summary> public string? ID { get; set; } /// <summary> /// Exact version of the package depended upon. /// </summary> public ...
32.177419
124
0.576942
[ "MIT" ]
19317362/try-convert
src/MSBuild.Conversion.Package/Packages.cs
1,997
C#
using System; using System.Collections; using System.Collections.Specialized; namespace Zeus.UserInterface { public interface IGuiComboBox : IGuiListControl { string SelectedText { get; } string SelectedValue { get; set; } } }
236
236
0.762712
[ "BSD-3-Clause" ]
cafephin/mygeneration
src/mygeneration/Zeus/UserInterface/Interfaces/IGuiComboBox.cs
236
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.Reflection; using System.Diagnostics; using System.Reflection.Runtime.TypeInfos; using I...
41.580729
158
0.569738
[ "MIT" ]
Dotnet-GitSync-Bot/corert
src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/Assignability.cs
15,967
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using Altinn.Authorization.ABAC.Xacml.JsonProfile; using Altinn.Common.PEP.Helpers; using Altinn.Common.PEP.Interfaces; using Altinn.Platform.Storage.Clients; using Altinn.Platform.Storage.Configuration;...
42.334254
180
0.597423
[ "BSD-3-Clause" ]
astromoskar/altinn-studio
src/Altinn.Platform/Altinn.Platform.Storage/Storage/Controllers/InstancesController.cs
30,650
C#
using System; using System.Collections.Concurrent; using System.Linq; using System.Threading; using System.Threading.Tasks; using Learning.EventStore.DataStores; using Learning.EventStore.Domain; namespace Learning.EventStore.Cache { public class CacheRepository : IRepository { private readonly IRepos...
38.988889
134
0.568823
[ "Apache-2.0" ]
learningcom/Learning.EventStore
src/Learning.EventStore/Cache/CacheRepository.cs
3,511
C#
#nullable enable namespace System; public interface IFunc<in T1, in T2, in T3, in T4, in T5, out TResult> { TResult Invoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5); }
19.666667
70
0.689266
[ "MIT" ]
pfpack/pfpack-core
src/core-func/Func/IFunc/IFunc.05.cs
177
C#
using MongoDB.Driver; namespace MongoDB.Entities { public static partial class DB { /// <summary> /// Represents a ReplaceOne command, which can replace the first matched document with a given entity /// <para>TIP: Specify a filter first with the .Match(). Then set entity with ...
44.411765
155
0.643709
[ "MIT" ]
cuongdo926/MongoDB.Entities
MongoDB.Entities/DB/DB.Replace.cs
757
C#
namespace TasSample.Models { public enum ActivitiesUnit { OneActivity, AllActivities, } }
14.111111
31
0.566929
[ "MIT" ]
sakapon/Speedrunner
Speedrunner/Speedrunner.Core/Models/ActivitiesUnit.cs
129
C#
using System; using System.IO; using System.Threading.Tasks; using MediatR.Pipeline; using StructureMap; using StructureMap.Pipeline; namespace MediatR.Examples.StructureMap { class Program { static Task Main() { var writer = new WrappingWriter(Console.Out); var mediator...
38.053571
106
0.609573
[ "Apache-2.0" ]
dadhi/MediatR
samples/MediatR.Examples.StructureMap/Program.cs
2,131
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 AspNetAzureAdGroupsAutorization { public class Program ...
26.407407
70
0.654979
[ "MIT" ]
GanduNavakanth/AD_Auth-.Net-Core
AspNetAzureAdGroupsAuthorization/Program.cs
713
C#
using System; class CurrentDateTime { static void Main() { Console.Title = "Current Date and Time"; DateTime now = DateTime.Now; Console.WriteLine(now); } }
16.25
48
0.594872
[ "MIT" ]
PetarMetodiev/Telerik-Homeworks
C# Part 1/01 Introduction to programming/05 Current time/CurrentDateTime.cs
197
C#
// #define ENABLE_UNLOAD_MANAGER // Disabled, was an old workaround on memory hungry platforms using UnityEngine; using System.Collections; using System.Collections.Generic; // This is deliberately an ExecuteInEditMode object as opposed to InitializeOnLoad static // to get it to unload stuff when scripts are reloaded...
32.697248
184
0.738496
[ "MIT" ]
cq-pandora/projects
services/parser/bin/CQSpritesDecompiler/Assets/TK2DROOT/tk2d/Code/Sprites/tk2dEditorSpriteDataUnloader.cs
3,564
C#
using HotChocolate.Types; using HotChocolate.Types.Relay; using HotChocolate.StarWars.Models; using HotChocolate.StarWars.Resolvers; namespace HotChocolate.StarWars.Types { public class HumanType : ObjectType<Human> { protected override void Configure(IObjectTypeDescriptor<Human> descriptor) ...
30.891892
86
0.590551
[ "MIT" ]
BaptisteGirard/hotchocolate
src/HotChocolate/Core/test/StarWars/Types/HumanType.cs
1,145
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.Linq; using Microsoft.AspNetCore.Razor.Language.CodeGeneration; using Xunit; namespace Microsoft.AspNetCore.Razor.Language; #pragma warning disable CS0618 // Type or m...
29.84375
102
0.641536
[ "MIT" ]
MitrichDot/aspnetcore
src/Razor/Microsoft.AspNetCore.Razor.Language/test/RazorEngineBuilderExtensionsTest.cs
2,867
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace TheBuildingsEyes { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application ...
18.333333
42
0.709091
[ "MIT" ]
zuhlke-smartone-hackathon-2018/smartone-hackathon-2018-facerecognition
TheBuildingsEyes/App.xaml.cs
332
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using DW.Lua.Extensions; using DW.Lua.Language; using DW.Lua.Misc; using DW.Lua.Syntax; namespace DW.Lua.Lexer { public class Tokenizer { private static readonly HashSet<char> SingleCharTokenChars = new Has...
33.327778
107
0.521254
[ "MIT" ]
DarkWanderer/DW.Lua
DW.Lua/Lexer/Tokenizer.cs
6,001
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a genera...
44.291667
95
0.652869
[ "MIT" ]
marcvil/.NET-course
Bloc C# y Java/Bloc exercici Ciutats/Bloc 3- A4 CSharp y Java/Bloc 3- A4 CSharp y Java/obj/Debug/netcoreapp3.0/Bloc 3- A4 CSharp y Java.AssemblyInfo.cs
1,068
C#
// // Copyright (c) 2006 Mainsoft Co. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publ...
24.929348
92
0.675496
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Data.OracleClient/Test/System.Data.OracleClient.jvm/OracleCommand/OracleCommand_CommandText.cs
9,174
C#