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
// Copyright © Conatus Creative, Inc. All rights reserved. // Licensed under the Apache 2.0 License. See LICENSE.md in the project root for license terms. using System; namespace Pixel3D.Audio { public delegate float GetSingle(IDisposable owner); }
31.375
95
0.772908
[ "Apache-2.0" ]
caogtaa/Pixel3D
src/Pixel3D.Audio/GetSingle.cs
254
C#
// ----------------------------------------------------------------------------------- // // GRABCASTER LTD CONFIDENTIAL // ___________________________ // // Copyright © 2013 - 2016 GrabCaster Ltd. All rights reserved. // This work is registered with the UK Copyright Service: Registration No:284701085 // // // NOT...
41.578947
87
0.700844
[ "MIT" ]
debiaggi/GrabCaster
Events/EmbeddedEvent/Properties/AssemblyInfo.cs
2,374
C#
using System; using Microsoft.Maui.Graphics; using Microsoft.Maui.Graphics.Android; using Android.Runtime; using Android.Content; using Android.Views; using Android.Widget; using GraphicsTester.Scenarios; using Microsoft.Maui.Graphics.Native; namespace GraphicsTester.Android { public class MainView : LinearLayout { ...
27.403846
102
0.761404
[ "MIT" ]
JimBobSquarePants/Microsoft.Maui.Graphics
samples/GraphicsTester.Android/MainView.cs
1,425
C#
using UnityEngine; using System.Collections; public class Fish : MonoBehaviour { public Vector3 destination; // Use this for initialization void Start () { // after 0 seconds, it will randomize its destination every 5 sec. InvokeRepeating( "RandomizeDestination", 0f, 5f); } void RandomizeDestination () {...
21.933333
77
0.721884
[ "MIT" ]
radiatoryang/buildingworlds_spring2014
buildingworlds_week06/Assets/scripts/Fish.cs
660
C#
namespace DXDecompiler.Decompiler.IR.ResourceDefinitions { public enum IrResourceClass { SRV = 0, UAV, CBuffer, Sampler, Invalid } }
12.25
57
0.714286
[ "MIT" ]
lanyizi/DXDecompiler
src/DXDecompiler/Decompiler/IR/ResourceDefinitions/IrResourceClass.cs
149
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using SmartHead.Essentials.Abstractions.Behaviour; using SmartHead.Essentials.Abstractions.Ddd.Interfaces; using SmartHead.Essentials.Extensions; namespace SmartHead.Essentials.Implementation.Uo...
31.327273
96
0.592571
[ "Apache-2.0" ]
neonbones/SmartHead.Essentials
src/SmartHead.Essentials.Implementation/UoW/UnitOfWork.cs
1,725
C#
using System; using System.Collections.Generic; using System.Net; using Microsoft.AspNetCore.Mvc; using NBitcoin; using NLog; using Stratis.Bitcoin.Features.Interop.Models; using Stratis.Bitcoin.Utilities.JsonErrors; using Stratis.Features.FederatedPeg.Conversion; namespace Stratis.Bitcoin.Features.Interop.Controller...
37.415094
161
0.581694
[ "MIT" ]
Amazastrophic/StratisFullNode
src/Stratis.Bitcoin.Features.Interop/Controllers/InteropController.cs
3,968
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...
35.9375
135
0.589372
[ "Apache-2.0" ]
costleya/aws-sdk-net
sdk/src/Services/DataSync/Generated/Model/Internal/MarshallTransformations/UpdateTaskRequestMarshaller.cs
5,175
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.Composition; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Editor;...
43.826425
245
0.574629
[ "Apache-2.0" ]
DotNetSparky/WebEssentials2013
EditorExtensions/JavaScript/Completion/JavaScriptCompletionController.cs
16,919
C#
/* MIT License Copyright (c) 2017 Saied Zarrinmehr 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, publis...
35.47541
138
0.653882
[ "MIT" ]
zarrinmehr/OccupancySimulationModel
OSM/Data/Visualization/AddDataField.xaml.cs
4,328
C#
using System; using System.Collections.Generic; using System.Text; namespace ForeSpark.Home.Dto { public class RequestsHomeDto { public int Pending { get; set; } public int Approved { get; set; } public int Declined { get; set; } public int Processed { get; set; } } }
21
42
0.628571
[ "MIT" ]
ali-kiyani/ForeSpark
aspnet-core/src/ForeSpark.Application/Home/Dto/RequestsHomeDto.cs
317
C#
using Prism.Mvvm; namespace BookViewer.Models { public class Page : IPage { public int ChapterNo { get; } public int PageNo { get; } public string Text { get; } public Page(int chapterNo, int pageNo) { ChapterNo = chapterNo; PageNo = pageNo; ...
21.722222
56
0.531969
[ "MIT" ]
nuitsjp/BookViewer
BookViewer/BookViewer/Models/Page.cs
393
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace Microsoft.ProjectOxford.Search.Core { /// <summary> /// Client for interacting with the search ...
27.791667
124
0.520906
[ "MIT" ]
Bhaskers-Blu-Org2/Cognitive-Search-DotNet
ClientLibrary/Microsoft.ProjectOxford.Search/Core/SearchClient.cs
6,005
C#
using System; using System.Reflection; namespace Giver.ValueGenerators { public class SingleGenerator : RandomGenerator<float> { public override float GetValue(MemberInfo memberInfo) { var mantissa = Random.NextDouble() * 2.0 - 1.0; var exponent = Math.Pow(2.0, Random.Next(-126, ...
26.333333
65
0.627848
[ "MIT" ]
umutozel/Giver
Giver/ValueGenerators/SingleGenerator.cs
397
C#
// <copyright file="WpPmProMembershipLevel.cs" company="Andrii Kurdiumov"> // Copyright (c) Andrii Kurdiumov. All rights reserved. // </copyright> namespace AndriiKurdiumov.Wordpress.EntityFrameworkCore { using System.ComponentModel.DataAnnotations.Schema; /// <summary> /// Membership level. /// </su...
25.703704
75
0.592219
[ "MIT" ]
kant2002/wordpress-netcore
EntityFrameworkCore/WpPmProMembershipLevel.cs
696
C#
using System; using System.Collections.Generic; using System.Text; namespace System.Linq { /// <summary> /// 数据结果 /// </summary> /// <typeparam name="T">数据源类型</typeparam> [Serializable] public class DataResult<T> : IDataResult<T> { /// <summary> /// 数据结果 /// </summar...
22.083333
56
0.461635
[ "Apache-2.0" ]
jm6041/Extensions
src/Linq/src/Jimlicat.Extensions.Linq/DataResult.cs
831
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...
32.935484
107
0.685602
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MediaLive/Generated/Model/Internal/MarshallTransformations/DvbTdtSettingsMarshaller.cs
2,042
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
26.135135
71
0.67425
[ "Unlicense" ]
mrychlicki/working_time_monitoring
working_time_monitoring_management/Add_employee.xaml.cs
969
C#
using System; using System.IO.Ports; using System.Text; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using Microsoft.SPOT.Platform.Test; namespace Microsoft.SPOT.Platform.Tests { public class TestPorts : IMFTestInterface { private MFTestResults result; private i...
36.171264
179
0.501795
[ "Apache-2.0" ]
Sirokujira/MicroFrameworkPK_v4_3
Test/Platform/Tests/CLR/Microsoft.SPOT.Hardware/EmulateHardware/TestPorts.cs
31,469
C#
namespace Waves.UI.Dialogs.Interfaces { /// <summary> /// Interface for text tools. /// </summary> public interface IWavesDialogTextTool : IWavesDialogTool { /// <summary> /// Gets or sets text. /// </summary> string Text { get; } } }
20.857143
60
0.547945
[ "MIT" ]
ambertape/waves.ui
sources/Waves.UI/Dialogs/Interfaces/IWavesDialogTextTool.cs
294
C#
using UnityEngine; using System.Collections; public class CollectableTrigger : MonoBehaviour { public Collectable[] collectableList; private bool trigger = false; // Update is called once per frame void Update () { if (!trigger) { trigger = true; for (int i = 0; i < collectableList.Length; i++) { ...
17.3125
66
0.648014
[ "Apache-2.0" ]
jl4312/Project-Orion-Redo
BridgePrototype/Assets/scripts/Environment Scripts/CollectableTrigger.cs
556
C#
using System.Web.Mvc; namespace MVC5Template.Areas.WebApi { public class WebApiAreaRegistration : AreaRegistration { public override string AreaName { get { return "WebApi"; } } public override void RegisterArea(AreaRegist...
23.833333
75
0.506993
[ "MIT" ]
JapanComputerServicesInc/AspnetMVC5Template
MVC5Template/MVC5Template/Areas/WebApi/WebApiAreaRegistration.cs
574
C#
namespace TransitCity.UI { using System; using System.Windows; using System.Windows.Input; using Utility.Coordinates; /// <summary> /// Interaction logic for GameControl.xaml /// </summary> public partial class GameControl { public GameControl() { Initi...
25.029412
94
0.571093
[ "MIT" ]
gartenriese2/TransitCity
TransitCity/TransitCity/UI/GameControl.xaml.cs
853
C#
// (c) Copyright HutongGames. All rights reserved. namespace HutongGames.PlayMaker.Actions { [ActionCategory(ActionCategory.Math)] [Tooltip("Sets the value of a Bool Variable.")] public class SetBoolValue : FsmStateAction { [RequiredField] [UIHint(UIHint.Variable)] [Tooltip("Bool Variable to set.")] ...
21.416667
87
0.679961
[ "MIT" ]
aiden-ji/oneButtonBoB
Assets/PlayMaker/Actions/Math/SetBoolValue.cs
1,028
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2021 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file...
38.819071
174
0.498299
[ "Apache-2.0" ]
thecarnie/YAFNET
yafsrc/YetAnotherForum.NET/Pages/PostPrivateMessage.ascx.cs
30,940
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
35.795455
145
0.632381
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/shellapi/SHNAMEMAPPINGWTests.cs
1,577
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
38.744898
134
0.591783
[ "MIT" ]
IMaeland/IronSmalltalk
DLR/Microsoft.Dynamic/Actions/Calls/ReferenceArgBuilder.cs
3,797
C#
using System; using System.Collections.Generic; namespace DeviceSim.DataObjects.Models { public partial class TripPoints { public string Id { get; set; } public string TripId { get; set; } public double Latitude { get; set; } public double Longitude { get; set; } public...
37.388889
64
0.615899
[ "MIT" ]
AndrewConniff/openhack-devops-proctor
simulator/DeviceSim/DataObjects/Models/TripPoints.cs
1,348
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\d3d12.h(14211,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct D3D12_AUTO_BREADCRUMB_NODE1 { [MarshalAs(UnmanagedType.LPStr)] p...
34.142857
84
0.685146
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/D3D12_AUTO_BREADCRUMB_NODE1.cs
958
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Skoruba.IdentityServer4.Admin.Constants; namespace Skoruba.IdentityServer4.Admin.Controllers { [Authorize] public cla...
28
137
0.694048
[ "MIT" ]
Sindrenj/IdentityServer4.Admin
src/Skoruba.IdentityServer4.Admin/Controllers/AccountController.cs
842
C#
using DesktopWidgets.Helpers; using DesktopWidgets.WidgetBase; using DesktopWidgets.WidgetBase.ViewModel; namespace DesktopWidgets.Widgets.Calculator { public class ViewModel : WidgetViewModelBase { public ViewModel(WidgetId id) : base(id) { Settings = id.GetSettings() as Settings;...
23.315789
52
0.616253
[ "Apache-2.0" ]
Yourrrrlove/DesktopWidgets
DesktopWidgets/Widgets/Calculator/ViewModel.cs
445
C#
using TES3Lib.Base; using Utility; namespace TES3Lib.Subrecords.REFR { public class INDX : Subrecord { public int Unknown { get; set; } public INDX() { } public INDX(byte[] rawData) : base(rawData) { var reader = new ByteReader(); Unkno...
18.47619
66
0.53866
[ "MIT" ]
NullCascade/TES3Tool
TES3Lib/Subrecords/REFR/INDX.cs
390
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/grafeas.proto // </auto-generated> // Original file comments: // Copyright 2019 The Grafeas Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
70.418519
367
0.7224
[ "Apache-2.0" ]
garrettwong/google-cloud-dotnet
apis/Grafeas.V1/Grafeas.V1/GrafeasGrpc.g.cs
76,052
C#
using EM.GIS.Data; using EM.GIS.Geometries; using System; using System.Drawing; using System.Threading; namespace EM.GIS.Symbology { /// <summary> /// 图层接口 /// </summary> public interface ILayer : ILegendItem,IDynamicVisibility, IDrawable { /// <summary> /// 数据集 /// </summa...
23.435897
71
0.497812
[ "MIT" ]
chiraylu/EMap
EM.GIS.Symbology/Layers/ILayer.cs
968
C#
using System; using System.IO; using System.Linq; using Bit.Core.Contracts; using Bit.Core.Models; namespace Bit.Core.Implementations { public class DefaultAppEnvironmentProvider : IAppEnvironmentProvider { private AppEnvironment _activeEnvironment; private static IAppEnvironmentProvider _curr...
32.754098
114
0.609109
[ "MIT" ]
lightdawncoders/bit-framework
src/Server/Bit.Core/Implementations/DefaultAppEnvironmentProvider.cs
2,000
C#
using System.Security.Claims; using AuctionMarket.Server.Application.Abstractions; using AuctionMarket.Server.Domain.Entities; using Microsoft.AspNetCore.Http; namespace AuctionMarket.Server.Infrastructure.Services; public class CurrentAccountService : ICurrentAccountService { private readonly IHttpContextAccess...
37.25
81
0.791946
[ "MIT" ]
MustafaNesin/AuctionMarket
src/Server.Infrastructure/Services/CurrentAccountService.cs
896
C#
// ———————————————————————– // <copyright file="ImmunizationSummary.cs" company="EDXLSharp"> // 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/LI...
28.263158
123
0.640782
[ "Apache-2.0" ]
1stResponder/em-serializers
EDXLSHARP/MEXLSitRepLib/ImmunizationSummary.cs
5,420
C#
namespace SRMLExtras.Templates { /// <summary> /// A template to create new activator UIs /// </summary> public class ActivatorUITemplate : ModPrefab<ActivatorUITemplate> { // The UI component protected Create<BaseUI> baseUI; /// <summary> /// Template to create new activator UIs /// </summary> /// <...
26.361111
103
0.683878
[ "MIT" ]
RicardoTheCoder/SRMLExtras
NewThings/Templates/UIs/ActivatorUITemplate.cs
951
C#
#if USE_HOT using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using System.Linq; using ILRuntime.CLR.TypeSystem; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Stack; using ILRuntime...
54.686275
207
0.692465
[ "MIT" ]
huangchaoqun/XIL
Assets/XIL/Auto/System_Reflection_FieldInfo_Binding.cs
39,046
C#
using PontoID.Web.Models; using PontoID.Web.Services.Contracts; using PontoID.Web.Services.IntegrationsConfig; using RestSharp; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace PontoID.Web.Services { public class TurmaService : IntegrationApi, ITurmaService { pub...
36.641509
90
0.664264
[ "MIT" ]
ronilsonsilva/pontoid
src/Presentation/PontoID.Web/Services/TurmaService.cs
1,944
C#
#region Copyright // Copyright © EPiServer AB. All rights reserved. // // This code is released by EPiServer AB under the Source Code File - Specific License Conditions, published August 20, 2007. // See http://www.episerver.com/Specific_License_Conditions for details. #endregion using System; using System.Collecti...
28.166667
126
0.781065
[ "MIT" ]
Episerver-trainning/episerver6r2_sso
Templates/Advanced/Workroom/Pages/NotificationEmail.aspx.cs
679
C#
namespace Rhino.Licensing { using System; using System.Runtime.Serialization; /// <summary> /// Thrown when a valid license file can not be /// found on the client machine. /// </summary> [Serializable] public class LicenseFileNotFoundException : RhinoLicensingException {...
33.08
85
0.574365
[ "Apache-2.0", "MIT" ]
ianbattersby/NServiceBus
src/NServiceBus.Core/Rhino.Licensing/LicenseFileNotFoundException.cs
1,605
C#
using ObjectMentor.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Console { class Program { static void Main(string[] args) { try { var arg = new Args("l,p#,d*", ar...
24.1
102
0.51314
[ "Unlicense" ]
Pvlerick/CommandLineArgumentParser
Console/Program.cs
725
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 you under the Apache License, Version 2.0 (the * "License"); you ...
35.475
84
0.755462
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-ecs/Ecs/Transform/V20140526/ModifyCommandResponseUnmarshaller.cs
1,419
C#
namespace UnitTestRunnerApiAdaptor.Runners.NUnit { using System.IO; using System.Xml; using System.Xml.Serialization; using global::NUnit.Engine; using UnitTestRunnerApiAdaptor; using UnitTestRunnerApiAdaptor.Runners.NUnit.Serialization; /// <summary> /// Entry point to the main NUnit ...
38.309859
100
0.653676
[ "MIT" ]
bradwilson/UnitTestRunnerApiAdaptor
UnitTestRunnerApiAdaptor/Runners/NUnit/NUnitTestRunner.cs
2,722
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestParser.Parser { public abstract class ATestParser : IParser { /// <summary> /// Parser to read function list. /// </summary> public AParser Functio...
25.333333
68
0.642857
[ "MIT" ]
CountrySideEngineer/TestSupportTools
AutoTestPrep/dev/src/TestParser/Parser/ATestParser.cs
1,066
C#
using System.Collections; using System.Collections.Generic; using System; using UnityEngine; using UnityEngine.UI; namespace ET { public static class DlgTestSystem { public static void RegisterUIEvent(this DlgTest self) { self.View.EButton_Test.AddListener(() => { self.OnTestClickHandler(); }); } publ...
17.517241
77
0.716535
[ "MIT" ]
RushBitch/ET-EUI
Unity/Codes/HotfixView/Demo/UI/DlgTest/DlgTestSystem.cs
510
C#
using System; using System.Collections.Generic; namespace Lox { public sealed class Token : SyntaxNode { public string Lexeme { get; } public object Literal { get; } public int Line { get; } public override SyntaxKind Kind { get; } public Token(SyntaxKind type, string...
22.909091
78
0.539683
[ "MIT" ]
FaberSanZ/Lox.NET
Src/Lox/Syntax/Token.cs
758
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...
42.824176
196
0.575186
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/DataExchange/Generated/Model/Internal/MarshallTransformations/GetDataSetResponseUnmarshaller.cs
7,794
C#
using Minidump.Templates; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using static Minidump.Helpers; namespace Minidump.Decryptor { public class KerberosSessions { public static List<KerberosLogonItem> FindSessions(Program.MiniDump minidump, kerberos.KerberosT...
43.710145
178
0.661472
[ "BSD-3-Clause" ]
Bl4d3666/SharpMapExec
SharpMapExec/Projects/MiniDump/Decryptor/KerberosSessions.cs
3,018
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BenchmarkDotNet.Attributes; namespace BenchPlayground.Benchmarks.System.Text { public class StringBuilderAppendFormat { [ParamsSource(nameof(Values))] public byte[] Data { get; set; } public IE...
28.020408
68
0.518572
[ "MIT" ]
Therzok/BenchPlayground
BenchPlayground/Benchmarks/System.Text/StringBuilderAppendFormat.cs
1,375
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #if NET452 || NETCOREAPP1_0 using System; namespace Internal.Microsoft.Extensions.DependencyModel { internal class EnvironmentWrapper : IEn...
25.590909
101
0.721137
[ "Apache-2.0" ]
erikbra/xunit
src/common/Microsoft.Extensions.DependencyModel/EnvironmentWrapper.cs
563
C#
//----------------------------------------------------------------------- // <copyright file="Parsers.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //----------------------------...
37.396552
114
0.558783
[ "BSD-2-Clause" ]
armadillo-winX/ThScoreFileConverter
ThScoreFileConverter/Models/Th14/Parsers.cs
2,171
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using System.Net.Http; using System.Net.Http.Json; using Microsoft.AspNetCore.Components.Forms; using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Components.Web...
27.772727
93
0.708674
[ "MIT" ]
DevCisse/PlannerApp
src/PlannerApp/Components/Plans/PlansTable.razor.cs
1,833
C#
using System; using Musical_WebStore_BlazorApp.Server.Data.Models; namespace Admin.Models { public class ChatUser { public int ChatId {get;set;} public virtual Chat Chat {get;set;} public string UserId {get;set;} public virtual User User {get;set;} } }
21.285714
52
0.657718
[ "MIT" ]
Burion/AdminMS
Musical_WebStore_BlazorApp/Server/Models/ChatUser.cs
298
C#
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace Blog.API.Installers { public interface IInstaller { void InstallServices(IServiceCollection services, IConfiguration configuration); } }
23.545455
88
0.783784
[ "MIT" ]
AbhijithSugunan/NetBlog
Blog.API/Blog.API/Installers/IInstaller.cs
261
C#
using System.Runtime.Serialization; using FluentAssertions; using Xunit; namespace Code.Library.Tests.Models { public class SerializationTests { private static readonly string _errorMessage = "this failed"; [Fact] public void GetObjectData_sets_correct_statuses_on_success_result() ...
42.376471
123
0.687396
[ "Apache-2.0" ]
Abhith/Code.Library
src/Code.Library.Tests/Models/ResultTests/SerializationTests.cs
3,604
C#
using Forum.App.Contracts; namespace Forum.App.ViewModels { public class ReplyViewModel : ContentViewModel, IReplyViewModel { public ReplyViewModel(string author, string text) : base(text) { this.Author = author; } public string Author { get; } } }
21.333333
67
0.6
[ "MIT" ]
GeorgiGarnenkov/CSharp-Fundamentals
C#OOPAdvanced/Workshop/Forum.App/ViewModels/ReplyViewModel.cs
322
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 you under the Apache License, Version 2.0 (the * "License"); you ...
26.465116
63
0.718805
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-vpc/Vpc/Model/V20160428/DisableVpcClassicLinkResponse.cs
1,138
C#
using System; using Paynova.Api.Client.EnsureThat; namespace Paynova.Api.Client.Model { public class ProfilePaymentOptions { /// <summary> /// Your identifier for the customer profile. /// </summary> public string ProfileId { get; private set; } /// <summary> /...
44.807692
105
0.622604
[ "MIT" ]
Paynova/paynova-api-net-client
src/projects/Paynova.Api.Client/Model/ProfilePaymentOptions.cs
3,497
C#
// Only one of the next 5 should be uncommented. #define CODEFIRST_PROVIDER //#define DATABASEFIRST_NEW //#define ORACLE_EDMX //#define NHIBERNATE using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.OData; using System.Web.Http; #if CODEFIR...
31.426744
170
0.63111
[ "MIT" ]
ColinBlair/breeze.server.net
Tests/Test.WebApi2.Odata4.EF6/Controllers/NorthwindIBController.cs
27,029
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("Ad...
38.241379
84
0.752029
[ "Apache-2.0" ]
AdaptiveConsulting/ReactiveTrader
src/Adaptive.ReactiveTrader.Client.WindowsStoreApp/Properties/AssemblyInfo.cs
1,112
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; using ItemTappedEventArgs = Syncfusion.ListView.XForms.ItemTappedEventArgs; namespace SfListViewTapIssue { public partial class MainPage : ContentPag...
24.702703
86
0.640044
[ "MIT" ]
MartinZikmund/SfListViewTapProblem
SfListViewTapIssue/SfListViewTapIssue/MainPage.xaml.cs
916
C#
using Zenit.Ast; using Zenit.Semantics.Symbols; namespace Zenit.Semantics.Resolvers { class ClassPropertySymbolResolver : INodeVisitor<SymbolResolverVisitor, ClassPropertyNode, ISymbol> { public ISymbol Visit(SymbolResolverVisitor binder, ClassPropertyNode node) { /*var classScope ...
41.925
132
0.661896
[ "MIT" ]
lbrugnara/flsharp
FrontEnd/Semantics/Resolvers/ClassPropertySymbolResolver.cs
1,679
C#
using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; using MessageBlaster.ViewModels; using MessageBlaster.Views; namespace MessageBlaster { public class App : Application { public override void Initialize() { AvaloniaXamlLoader.Load(this); ...
27.071429
87
0.621372
[ "MIT" ]
Kakarot/MessageBlaster
MessageBlaster/App.xaml.cs
758
C#
using Routine.Core.Configuration; using System; namespace Routine.Engine.Virtual { public class VirtualParameter : IParameter { private readonly IParametric owner; public SingleConfiguration<VirtualParameter, string> Name { get; } public SingleConfiguration<VirtualParameter, IType> ParameterType { get;...
30.681818
103
0.722222
[ "MIT" ]
multinetinventiv/routine
src/Routine/Engine/Virtual/VirtualParameter.cs
1,352
C#
using System; using System.Collections.Generic; using System.Linq; using Ardalis.GuardClauses; using VPBot.DataObjects.Base; using VPBot.DataObjects.Contracts.Core; using VPBot.DataObjects.Contracts.Services; using VPBot.DataObjects.Models; namespace VPBot.Application.Queries { public class GetMessagesQuery : B...
30.407407
96
0.6419
[ "MIT" ]
Jerajo/PVBot
vpbot/vpbot.Application/Queries/GetMessagesQuery.cs
1,644
C#
using System; using System.Collections.Generic; using Microsoft.OpenApi.Models; namespace Swashbuckle.AspNetCore.SwaggerGen { public abstract class SchemaGeneratorBase : ISchemaGenerator { private readonly SchemaGeneratorOptions _generatorOptions; private readonly List<SchemaGeneratorHandler> ...
37.013889
169
0.663039
[ "MIT" ]
mchandschuh/Swashbuckle.AspNetCore
src/Swashbuckle.AspNetCore.SwaggerGen/SchemaGenerator/SchemaGeneratorBase.cs
2,667
C#
// This file isn't generated, but this comment is necessary to exclude it from StyleCop analysis. // For more info see: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2108 // <auto-generated/> using System.Diagnostics.Contracts; namespace Alba.CsConsoleFormat { internal interface IConsoleBufferSo...
24.478261
98
0.642984
[ "MIT" ]
nseedio/nseed
src/NSeed/ThirdParty/CsConsoleFormat/Formatting/IConsoleBufferSource.cs
563
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("8....
38.405405
84
0.748065
[ "MIT" ]
aleksandra992/CSharp
Databases/XML Processing in .NET/8.AlbumInfoFromCatalogue/Properties/AssemblyInfo.cs
1,424
C#
using System.Collections.Generic; using System.Linq; using Cosmos.I18N.Core; using EnumsNET; namespace Cosmos.I18N.Countries.Europe { /// <summary> /// France Regions /// </summary> public static partial class France { private static IEnumerable<EnumMember<EnumValues>> InternalEnumMembersCa...
28.699681
141
0.448781
[ "Apache-2.0" ]
alexinea/I18N
src/Cosmos.I18N.Countries/Cosmos/I18N/Countries/Europe/France.Regions.cs
45,139
C#
using IdentityServer4.Stores; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using System.Threading.Tasks; namespace Jp.UI.SSO.Util { public static class Extensions { /// <summary> /// Determines whether the client is configured to use PKCE. /// </summary...
32.764706
108
0.625673
[ "MIT" ]
aeleftheriadis/JPProject.IdentityServer4.SSO
src/Frontend/Jp.UI.SSO/Util/Extensions.cs
1,116
C#
using System; using UnityEditor.ShaderGraph; using UnityEngine.Rendering; namespace UnityEditor.Rendering.Universal.ShaderGraph { static class CreateSpriteLitShaderGraph { [MenuItem("Assets/Create/Shader Graph/URP/Sprite Lit Shader Graph", priority = CoreUtils.Sections.section1 + CoreUtils.Priorities.a...
38.833333
174
0.680687
[ "MIT" ]
Liaoer/ToonShader
Packages/com.unity.render-pipelines.universal@12.1.3/Editor/2D/ShaderGraph/AssetCallbacks/CreateSpriteLitShaderGraph.cs
1,165
C#
using System; using Newtonsoft.Json; using SharpYaml.Serialization; using WorkflowCore.Models.DefinitionStorage.v1; namespace WorkflowCore.Services.DefinitionStorage { public static class Deserializers { private static Serializer yamlSerializer = new Serializer(); public static Func<string, D...
33.294118
139
0.765018
[ "MIT" ]
201512130144/demo
src/WorkflowCore.DSL/Services/Deserializers.cs
568
C#
using System; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; using SIS.WebServer.Routing; namespace SIS.WebServer { public class Server { private const string LocalhostIpAddress = "127.0.0.1"; private readonly int port; private readonly TcpListener listener;...
27.416667
92
0.613222
[ "MIT" ]
stoyanovmiroslav/CSharp-Web
CSharp Web Development Basics/CSharp-Web-Development-Basics-Exams/SIS.WebServer/Server.cs
1,316
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Dependenc...
31.020408
143
0.661184
[ "MIT" ]
victoliveiramos/toy
src/toy-web/Startup.cs
1,522
C#
// <copyright file="EnvironmentModule.cs"> // Copyright 2019 Marcus Walther // </copyright> // <author>Marcus Walther</author> // ReSharper disable UnusedMember.Global namespace EnvironmentModuleCore { using System.Collections.Generic; using System.Linq; /// <summary> /// This class represents a ...
44.715054
166
0.620055
[ "MIT" ]
MarcusWalther/EnvironmentModuleCoreSrc
EnvironmentModuleCore/EnvironmentModule.cs
8,319
C#
using myoddweb.directorywatcher.interfaces; namespace myoddweb.directorywatcher.utils.Helper { internal class Statistics : IStatistics { /// <inheritdoc /> public long Id { get; } /// <inheritdoc /> public double ElapsedTime { get; } /// <inheritdoc /> public long NumberOfEvents { get; }...
20.833333
72
0.652
[ "MIT" ]
FFMG/myoddweb.directorywatcher
src/myoddweb.directorywatcher/utils/Helper/Statistics.cs
502
C#
namespace EA.Iws.Requests.Movement { using System; using Core.Authorization; using Core.Authorization.Permissions; using Core.Documents; using Prsd.Core.Mediator; [RequestAuthorization(ExportMovementPermissions.CanReadExportMovements)] public class GenerateMovementDocuments : IRequest<File...
25.85
76
0.688588
[ "Unlicense" ]
DEFRA/prsd-iws
src/EA.Iws.Requests/Movement/GenerateMovementDocuments.cs
519
C#
using System; using System.IO.Ports; using System.Text; using System.Windows; using System.Diagnostics; using Newtonsoft.Json; using System.Windows.Threading; using System.Windows.Controls.Primitives; using System.Threading; using System.Dynamic; using System.Collections.ObjectModel; using System.Windows.Controls; usin...
38.767442
125
0.558788
[ "MIT" ]
spiked3/pilot_test
pilot_test/CurrentTest.cs
3,334
C#
using System; using System.Data; using System.Data.SqlClient; using Csla; using Csla.Data; namespace SelfLoadRO.Business.ERCLevel { /// <summary> /// D03Level11ReChild (read only object).<br/> /// This is a generated base class of <see cref="D03Level11ReChild"/> business object. /// </summ...
34.044776
162
0.564226
[ "MIT" ]
CslaGenFork/CslaGenFork
tags/DeepLoad sample v.1.0.0/SelfLoadRO.Business/ERCLevel/D03Level11ReChild.Designer.cs
4,562
C#
using DepthChartManager.Helpers; using System; namespace DepthChartManager.Domain { public class Player { public Player(League league, Team team, string name) { Contract.Requires<Exception>(league != null, Resource.LeagueNameIsInvalid); Contract.Requires<Exception>(team...
26.392857
105
0.600812
[ "MIT" ]
stackpond/depth-chart-manager
DepthChartManager.Domain/Player.cs
741
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Solid.Lsp; namespace Solid.Lsp { public class ClienteOuro: Cliente { public override double Disconto() { return ValorTotal - 100; } } }
17.111111
41
0.652597
[ "MIT" ]
CasaDoCodigoORG/Solid
2-Lsp/ClienteOuro.cs
310
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Threading....
50.992168
221
0.61264
[ "MIT" ]
Didovgopoly/DynamicData
DynamicData/List/ObservableListEx.cs
104,179
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: AssemblyTi...
38.945946
85
0.727967
[ "MIT" ]
vivibau/CanastaCSharpOld
Client/Canasta/Properties/AssemblyInfo.cs
1,444
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 * ...
49.627907
831
0.680881
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet-intl-en
TencentCloud/As/V20180419/Models/CreateScalingPolicyRequest.cs
4,268
C#
namespace Workout.Services.Privilege { /// <summary> /// Class describing a privilege status. /// </summary> public class PrivilegeItem { #region properties /// <summary> /// The privilege key. /// </summary> public string Privilege { get; } /// <su...
25.647059
93
0.54052
[ "Apache-2.0" ]
AchoWang/Tizen-CSharp-Samples
Wearable/Workout/src/Workout/Services/Privilege/PrivilegeItem.cs
1,310
C#
/* * Copyright 2004 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 required by a...
29.962185
127
0.640583
[ "Apache-2.0" ]
OpenPSS/psm-mono
mcs/tools/monodoc/Lucene.Net/Lucene.Net/Store/RAMDirectory.cs
7,131
C#
namespace SqlOptimizerBenchmark.Controls.BenchmarkObjectControls { partial class TestRunDetail { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources b...
59.359756
175
0.663225
[ "Apache-2.0" ]
RadimBaca/QueryOptimizerBenchmark
benchmark_runner/src/SqlOptimizerBechmark/SqlOptimizerBenchmark/Controls/BenchmarkObjectControls/TestRunDetail.Designer.cs
38,942
C#
using System.Security.Claims; namespace BookFast.Security { public interface ISecurityContextAcceptor { ClaimsPrincipal Principal { set; } } }
18.111111
45
0.711656
[ "MIT" ]
PeterJD/book-fast-service-fabric
Common/BookFast.Security/ISecurityContextAcceptor.cs
163
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.Collections.Generic; using System.Collections.Tests; using System.Diagnostics; namespace System.Collec...
41.347826
134
0.709779
[ "MIT" ]
OceanYan/corefx
src/System.Collections.Specialized/tests/ListDictionary/ListDictionary.Values.Tests.cs
1,902
C#
using Cryptography.Domain.Abstractions; using Cryptography.Domain.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cryptography.BusinessLogic.Services { public class A5Service : IA5Service { public int[] Encrypt(A5Dat...
27.222222
71
0.511565
[ "MIT" ]
val-ugs/UDevMe.Cryptography
Cryptography.BusinessLogic/Services/A5Service.cs
2,207
C#
using System; using System.Collections; using System.Collections.Generic; using AggregateSource.Properties; namespace AggregateSource { /// <summary> /// Represents an optional value. /// </summary> /// <typeparam name="T">The type of the optional value.</typeparam> public struct Optional<T> : IEn...
33.686957
123
0.54285
[ "BSD-3-Clause" ]
danbarua/AggregateSource
src/Core/AggregateSource/Optional.cs
3,876
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...
34.707692
165
0.654255
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DataMigration/Outputs/GetTdeCertificatesSqlTaskPropertiesResponse.cs
2,256
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Models.ViewModels { public class InventoryViewModel { [Display(Name = "Store Name")] [RegularExpression(@"^[a-zA-Z]+$", Er...
25.413043
85
0.597947
[ "MIT" ]
12142020-dotnet-uta/TrevorGrahamRepo1
P1_TrevorGraham/MvcStoreApplication/Models/ViewModels/InventoryViewModel.cs
1,171
C#
using System; using System.ComponentModel.Composition; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem { [Export(typeof...
45.970588
178
0.735765
[ "Apache-2.0" ]
Therzok/roslyn
src/VisualStudio/Core/Def/Implementation/ProjectSystem/FileChangeWatcherProvider.cs
1,565
C#
namespace WebApi.Services.Models { using AutoMapper; using WebApi.Common.Mapping; using WebApi.Data.Models.Products; public class ProductServiceModel: IMapFrom<Product>, IMapExplicitly { public int Id { get; set; } public string Name { get; set; } public void RegisterMapp...
25.428571
73
0.602996
[ "MIT" ]
zrusev/product-store
WebApi/WebApi.Services/Models/ProductServiceModel.cs
536
C#
using UnityEngine; public class DoorDetails : MonoBehaviour { public int ID; void OnCollisionEnter2D() { Managers.RoomNavigationManager.ChangeRoom(ID); } }
17.9
54
0.698324
[ "MIT" ]
virtuoushub/game-off-2016
Assets/Scripts/DoorDetails.cs
181
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using ProjetoFinal2.Models; namespace ProjetoFinal2.Controllers { public class CadastroVoluntariosControll...
32.27451
184
0.558323
[ "MIT" ]
N-Potato/APRESENTACAO
ProjetoFinal terceira squad 7/ProjetoFinal2/Controllers/CadastroVoluntariosController.cs
4,940
C#
 using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle(resource.package.PreviewTOML.CONSTANT.NAME)] [assembly: AssemblyDescription(resource.package.PreviewTOML.CONSTANT.DESCRIPTION)] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct(reso...
43.125
82
0.824638
[ "Apache-2.0" ]
viacheslav-lozinskyi/Preview-TOML
application/preview-toml.vs/properties/AssemblyInfo.cs
692
C#