content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System.Threading.Tasks; using WeatherDiary.Domain; namespace WeatherDiary.Api { public class EmptyWeatherApiRequester : IWeatherApiRequester { internal static readonly WeatherStamp EmptyStamp = new WeatherStamp(Cloudy.Cloudless, Ph...
37.333333
93
0.390873
[ "MIT" ]
ashenBlade/WeatherDiaryApp
WeatherDiary.Api/EmptyWeatherApiRequester.cs
1,008
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ============================...
32.389313
124
0.542776
[ "MIT" ]
BigHam/squidex
backend/src/Squidex.Domain.Apps.Entities/Assets/AssetFolderGrain.cs
4,246
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
42.571429
98
0.707634
[ "Apache-2.0" ]
emacslisp/TelerikWPF
TelerikWpfMain/TelerikWpfMain/Properties/AssemblyInfo.cs
2,387
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
35.695652
97
0.476248
[ "MIT" ]
3quanfeng/azure-powershell
src/HealthBot/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs
801
C#
// // Copyright (c) Seal Report, Eric Pfirsch (sealreport@gmail.com), http://www.sealreport.org. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://www.apache.org/licenses/LICENSE-2.0.. // using System; using System.Collections.Gen...
43.018265
176
0.60588
[ "Apache-2.0" ]
chinayou25/Seal-Report
Projects/SealLibrary/Forms/EntityCollectionEditor.cs
9,423
C#
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using Org.BouncyCastle.Math; using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Asn1 { public class DerObjectIdentifier : Asn1Object { private readonly string identifier; private byte[] b...
30.022535
110
0.433759
[ "Apache-2.0" ]
Arthurvdmerwe/-ISO-TC-68-SC-2-ISO20038
Crypto/src/asn1/DerObjectIdentifier.cs
10,658
C#
// https://leetcode.com/problems/create-maximum-number/ // // Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative order of the digits from the same array must be preserved. Return an array of the k digits. Yo...
33.782178
316
0.336166
[ "MIT" ]
Gerula/interviews
LeetCode/remote/create_maximum_number.cs
3,412
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.6
103
0.623241
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/Batch/Generated/Model/CancelJobRequest.cs
2,771
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
37.52459
155
0.603757
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/CodeBuild/Generated/Model/Internal/MarshallTransformations/BuildArtifactsUnmarshaller.cs
4,578
C#
namespace TCPingInfoView.Forms { partial class DisplayedColumns { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed r...
39.112245
155
0.732846
[ "MIT" ]
HMBSbige/TCPingInfoView
TCPingInfoView/Forms/DisplayedColumns.Designer.cs
3,849
C#
using System.Windows.Controls; namespace Milvaneth.Overlay { /// <summary> /// Interaction logic for ListTabPage.xaml /// </summary> public partial class ListTabPage : Page { private ListingPresenterViewModel lpvm; public ListTabPage(ListingPresenterViewModel dataContext) {...
24.315789
65
0.632035
[ "MIT" ]
ShadyWhite/Milvaneth
Client/Milvaneth.Overlay/ListTabPage.xaml.cs
464
C#
using Microsoft.Extensions.Logging; using Newtonsoft.Json; using RpgMath; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Adventure.Services { interface IPersistenceWriter { void AddSaveBlock(object blocker)...
29.990099
151
0.58237
[ "MIT" ]
AnomalousMedical/Adventure
Adventure/Services/PersistenceWriter.cs
3,031
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms.VisualStyles; using DG; namespace QoL_Mods.Data_Classes { public class FaceLockMoves { public Style StyleItem { get; set; } public Skill[] BasicSkills { get; set; } public S...
33.053333
115
0.514724
[ "MIT" ]
timcanpy/ExtraGameOptions
QoL Mods/Private/Facelock/FaceLockMoves.cs
2,481
C#
using System.Collections; using System.Collections.Generic; using TMPro; using UniRx.Triggers; using UnityEngine; using UnityEngine.UI; public class WeaponGroupElement : MonoBehaviour { public TextMeshProUGUI Label; public Button Button; public ObservableBeginDragTrigger BeginDragTrigger; public Observ...
25.1875
55
0.816377
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
ArnautS/Aetheria-Economy
Assets/Scripts/UI/Menu/WeaponGroupElement.cs
403
C#
using System.Linq; using NUnit.Framework; using QuestPDF.Examples.Engine; using QuestPDF.Fluent; using QuestPDF.Helpers; using QuestPDF.Infrastructure; using SkiaSharp; namespace QuestPDF.Examples { [TestFixture] public class ElementExamples { [Test] public void Placeholder() { ...
36.179245
116
0.286832
[ "MIT" ]
Bebo-Maker/QuestPDF
QuestPDF.Examples/ElementExamples.cs
30,681
C#
using System; namespace KdSoft { /// <summary> /// Exposes a property to be used for identity purposes. /// </summary> /// <typeparam name="TKey">Type of Id property.</typeparam> public interface IIdentifiable<TKey> where TKey : IEquatable<TKey> { /// <summary>Identifier.</summary> TKey Id { get; ...
21.866667
68
0.64939
[ "MIT" ]
kwaclaw/KdSoft.General
KdSoft.Shared/IIdentifiable.cs
330
C#
using UnityEngine; using System.Collections; public class PauseTime : MonoBehaviour { public bool paused; int rewindcounter; // Use this for initialization void Start () { paused = false; } // Update is called once per frame void Update () { if (Input.GetKeyDown(KeyCode.R)...
18.970588
137
0.473643
[ "MIT" ]
marcosdanix/chrono-squad
Chrono Squad/Assets/Scripts/PauseTime.cs
1,292
C#
#region using System; using System.IO; #endregion namespace LCLog { /// <summary> /// Worlds most basic logger for LegendaryClient /// </summary> public class WriteToLog { /// <summary> /// Where to put the log file /// </summary> public static string Exec...
38.887324
150
0.543281
[ "BSD-2-Clause" ]
nongnoobjung/Legendary-Garena
LCLog/WriteToLog.cs
2,763
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using HuaweiCloud.SDK.Core; namespace HuaweiCloud.SDK.Frs.V2.Model { /// <summary> /// Request Object /// </summary> public ...
29.130435
85
0.505597
[ "Apache-2.0" ]
cnblogs/huaweicloud-sdk-net-v3
Services/Frs/V2/Model/BatchDeleteFacesRequest.cs
2,692
C#
using System; namespace Bender.Extensions { public static class NumericExtensions { public static bool IsNonNumeric(this float value) { return float.IsNaN(value) || float.IsInfinity(value) || float.IsNegativeInfinity(value) || float.IsPositiveInfinity(value)...
31
89
0.599321
[ "MIT" ]
mikeobrien/Bender
src/Bender/Extensions/NumericExtensions.cs
591
C#
namespace SlackNet.Events { /// <summary> /// Sent to all connections for a team when an integration "bot" is updated. /// </summary> public class BotChanged : Event { public BotInfo Bot { get; set; } } }
23.6
80
0.601695
[ "MIT" ]
Cereal-Killa/SlackNet
SlackNet/Events/BotChanged.cs
236
C#
using System.Collections.Generic; namespace SimplyBlog.Website.Models.Response { public class ListResponse<T> : Response { public List<T> Data { get; set; } = new List<T>(); public int MaxPages { get; set; } public int CurrentPage { get; set; } } }
23.916667
58
0.623693
[ "MIT" ]
LadyHail/Simply-Blog
Server/SimplyBlog.Website/Models/Response/ListResponse.cs
289
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Informacje ogólne o zestawie zależą od poniższego // zestawu atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje // związane z zestawem. [assembly: AssemblyTitle("internet")] [assembly: Assembly...
39.638889
121
0.765943
[ "Apache-2.0" ]
BrOlaf45/csharp-projects
repos/Repos/internet/internet/Properties/AssemblyInfo.cs
1,475
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of...
44.258575
141
0.591839
[ "Apache-2.0" ]
WhiteSourceE/LeanUnsafe
Tests/API/ApiTests.cs
33,550
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("15...
38.837838
84
0.746695
[ "MIT" ]
milkokochev/Telerik
C#1/HomeWorks/06. Loops/Hexadecimal to Decimal Number/Properties/AssemblyInfo.cs
1,440
C#
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
41.411765
138
0.682292
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/ads/googleads/v8/googleads-csharp/Google.Ads.GoogleAds.V8.Services.StandaloneSnippets/ConversionValueRuleServiceClient.MutateConversionValueRulesRequestObjectAsyncSnippet.g.cs
2,112
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.System; using Windows.UI.Core; namespace Template10.Services.KeyboardService { // DOCS: https://github.com/Windows-XAML/Template10/wiki/Docs-%7C-KeyboardService public class Keyboa...
43.942857
292
0.672302
[ "Apache-2.0" ]
ArtjomP/Template10
Template10 (Library)/Services/KeyboardService/KeyboardEventArgs.cs
1,540
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace BEDA.CMB.Contracts.Responses { /// <summary> /// 23.11.临时额度取消响应主体 /// </summary> [XmlRoot("CMBSDKPGK")] public c...
23.392857
57
0.603053
[ "MIT" ]
fdstar/BankEnterpriseDirectAttach
src/BEDA.CMB/Contracts/Responses/23/RS23_11.cs
697
C#
/* * Copyright 2018 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 "licens...
47.574468
162
0.694544
[ "Apache-2.0" ]
awslabs/kinesis-agent-windows
Amazon.KinesisTap.FileSystem/ILogParser.cs
2,236
C#
// -------------------------------------------------------------------------- // <copyright file="DiagnosticsClient.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // -------------------------------------------------------------------------- using System.Co...
54.909091
172
0.711093
[ "MIT" ]
NET-C1211/azure-api-kit
src/ArmTemplates/Common/API/Clients/Diagnostics/DiagnosticClient.cs
2,418
C#
//********************************************************************* //xCAD //Copyright(C) 2021 Xarial Pty Limited //Product URL: https://www.xcad.net //License: https://xcad.xarial.com/license/ //********************************************************************* using SolidWorks.Interop.sldworks; using System;...
32.62963
90
0.643587
[ "MIT" ]
EddyAlleman/xcad
src/SolidWorks/Services/PropertyPageHandlerProvider.cs
883
C#
using System; using Microsoft.AspNetCore.Http; namespace DatingApp.API.Helpers { public static class Extensions { public static void AddApplicationError(this HttpResponse response, string message) { response.Headers.Add("Application-Error", message); response.Headers.Add...
29.68
90
0.597035
[ "Unlicense" ]
brauniks/SomeAngularAPP
API/Helpers/Extensions.cs
742
C#
using System; using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.ReactiveUI; namespace IPOCS.JMRI.CONTROL { class Program { // Initialization code. Don't use any Avalonia, third-party APIs or any // SynchronizationContext-reliant code before AppMain is called: things aren't initi...
30.5
94
0.70082
[ "MIT" ]
GMJS/gmjs_ocs_jmri
IPOCS.JMRI.CONTROL/Program.cs
734
C#
using System; using System.Collections.Generic; using Esfa.Vacancy.Application.Commands.CreateApprenticeship; using Esfa.Vacancy.Application.Interfaces; using Esfa.Vacancy.Domain.Entities; using Esfa.Vacancy.Infrastructure.Services; using FluentAssertions; using Moq; using NUnit.Framework; using Ploeh.AutoFixture; usi...
41.729167
103
0.65302
[ "MIT" ]
SkillsFundingAgency/das-vacancyservices-api
src/Esfa.Vacancy.UnitTests/CreateApprenticeship/Application/GivenAMinimumWageSelector/WhenSelectingHourlyRate.cs
2,005
C#
#if !__WATCHOS__ using System; using System.Threading; using Foundation; using Network; using ObjCRuntime; using CoreFoundation; using NUnit.Framework; using MonoTests.System.Net.Http; namespace MonoTouchFixtures.Network { [TestFixture] [Preserve (AllMembers = true)] public class NWProtocolIPOptionsTest { Aut...
29.466019
151
0.724876
[ "BSD-3-Clause" ]
Therzok/xamarin-macios
tests/monotouch-test/Network/NWProtocolIPOptionsTest.cs
3,035
C#
namespace MassTransit.Configurators { using System; using System.Linq; using Util.Scanning; public class SendMessageFilterSpecification : IMessageFilterConfigurator { readonly CompositeFilter<SendContext> _filter; public SendMessageFilterSpecification() ...
34.730769
110
0.624585
[ "ECL-2.0", "Apache-2.0" ]
CodeNotFoundException/MassTransit
src/MassTransit/Configuration/Configurators/SendMessageFilterSpecification.cs
1,806
C#
using System.Threading.Tasks; namespace Resgrid.Model.Services { /// <summary> /// Interface ILimitsService /// </summary> public interface ILimitsService { /// <summary> /// Validates the department is within limits asynchronous. /// </summary> /// <param name="departmentId">The department identifier.</...
42.066667
145
0.71655
[ "Apache-2.0" ]
Joshb888/dfdfd
Core/Resgrid.Model/Services/ILimitsService.cs
4,419
C#
using System.Collections.Generic; using System.IO; namespace XnbUnpacker.ProgressHandling { /// <summary>The context info for the current unpack run.</summary> public interface IUnpackContext { /// <summary>The absolute path to the game folder.</summary> string GamePath { get; } //...
29.863636
90
0.65449
[ "MIT" ]
Steviegt6/XnbUnpacker
XnbUnpacker/ProgressHandling/IUnpackContext.cs
657
C#
using System.Threading; using System.Threading.Tasks; namespace Lucaniss.Dispatcher.Requests { public interface IRequestHandler<in TRequest, TResponse> where TRequest : IRequest<TResponse> { Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken); } }
27.545455
86
0.749175
[ "MIT" ]
lucaniss/dispatcher
Lucaniss.Dispatcher/Requests/IRequestHandler.cs
305
C#
using System; namespace IMDB.Api.Repositories.Interfaces { public interface IUserRepository : IGenericRepository<Entities.User> { } }
14.9
72
0.731544
[ "MIT" ]
eseerigha/IMDB.API
IMDB.Api/Repositories/Interfaces/IUserRepository.cs
151
C#
using System.ServiceModel; namespace UberStrok.WebServices.Contracts { [ServiceContract] public interface IAuthenticationWebServiceContract { [OperationContract] byte[] CreateUser(byte[] data); [OperationContract] byte[] CompleteAccount(byte[] data); ...
24.586207
57
0.612903
[ "MIT" ]
FICTURE7/uberstrok
src/UberStrok.WebServices.Contracts/IAuthenticationWebServiceContract.cs
715
C#
using System; using System.Collections.Generic; using UnityEditor.AddressableAssets.Settings; using UnityEditor.IMGUI.Controls; using UnityEngine; using UnityEngine.AddressableAssets; using System.Linq; namespace UnityEditor.AddressableAssets.GUI { internal class ProfileWindow : EditorWindow { //Min an...
45.689775
224
0.597239
[ "Apache-2.0" ]
BrinisSpark/Space-Invaders-Clone
Library/PackageCache/com.unity.addressables@1.18.16/Editor/GUI/ProfileWindow.cs
26,363
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.Linq; using System.Reflection; using Microsoft.ML.Data...
43.537713
164
0.598525
[ "MIT" ]
AhmedsafwatEwida/machinelearning
src/Microsoft.ML.AutoML/TrainerExtensions/TrainerExtensionUtil.cs
17,896
C#
namespace _01.FriendsOfPesho { using System; using System.Collections.Generic; using System.Linq; public class PriorityQueue<T> { private SortedSet<T> items; public PriorityQueue() { this.items = new SortedSet<T>(); } public int Count {...
18.404762
44
0.469599
[ "Apache-2.0" ]
iliantrifonov/TelerikAcademy
DataStructuresAndAlgorithms/11.GraphsAndGraphAlgorithms/01.FriendsOfPesho/PriorityQueue.cs
775
C#
#region Copyright notice and license // Copyright 2019 The gRPC Authors // // 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...
28.62069
75
0.724096
[ "Apache-2.0" ]
Erguotou/grpc-dotnet
test/FunctionalTests/Infrastructure/TestServerEndpointName.cs
832
C#
// Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information. namespace Remote.Linq { using Aqua.TypeExtensions; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; p...
53.774194
128
0.647071
[ "MIT" ]
6bee/Remote.Linq
src/Remote.Linq/MethodInfos.Queryable.cs
15,005
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...
40.081081
85
0.731625
[ "MIT" ]
benfoster/StructureMap.Integrations
src/StructureMap.Integrations.Owin.WebApi/Properties/AssemblyInfo.cs
1,486
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Globalization; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Micros...
38.218009
122
0.552207
[ "MIT" ]
david-driscoll/azure-webjobs-sdk-extensions
src/Sample.Extension/SampleTriggerAttributeBindingProvider.cs
8,066
C#
namespace Fabric.Terminology.API.Logging { using System.IO; using Fabric.Terminology.API.Configuration; using Serilog; using Serilog.Core; /// <summary> /// Responsible for creating the <see cref="ILogger"/> /// </summary> /// <remarks> /// This class should be removed with Fabric...
37.960784
126
0.667872
[ "Apache-2.0" ]
HealthCatalyst/Fabric.Terminology
Fabric.Terminology.API/Logging/LogFactory.cs
1,936
C#
using Microsoft.Xna.Framework; namespace Pentacorn.Vision.Graphics { interface IRenderable { void Render(object obj, Matrix view, Matrix projection); } }
17.6
64
0.698864
[ "MIT" ]
JaapSuter/Pentacorn
Backup/Nuke/Graphics/IRenderable.cs
178
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * d...
31.258427
97
0.608555
[ "Apache-2.0" ]
azarbara/YAFNET
yafsrc/YAF.Core/Services/Cache/NewUserClearActiveLazyEvent.cs
2,695
C#
// ************************************************************************************* // SCICHART® Copyright SciChart Ltd. 2011-2021. All rights reserved. // // Web: http://www.scichart.com // Support: support@scichart.com // Sales: sales@scichart.com // // ChartTypeViewModel.cs is part of the SCICHART® Ex...
31.946237
148
0.564793
[ "MIT" ]
SHAREVIEW/SciChart.Wpf.Examples
Examples/SciChart.Examples/Examples/CreateMultiseriesChart/DashboardStyleCharts/ChartTypeViewModel.cs
2,976
C#
using System.ComponentModel.DataAnnotations; namespace CharlieBackend.Panel.Models.Mentor { public class MentorViewModel { [Required] public long Id { get; set; } [Required] [EmailAddress] [StringLength(50)] public string Email { get; set; } [Required]...
20.692308
45
0.576208
[ "MIT" ]
ViktorMarhitich/WhatBackend
CharlieBackend.Panel/Models/Mentor/MentorViewModel.cs
540
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("GS...
40.108108
84
0.756065
[ "MIT" ]
GeoSCADA/GSMultiManager
GSMultiManagerConfig/Properties/AssemblyInfo.cs
1,487
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
35.3125
129
0.593274
[ "Apache-2.0" ]
IdolMenendez/KSFramework
KSFramework/Assets/XLua/Gen/UnityEngine_CanvasGroupWrap.cs
8,477
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Return the disk space being used. /// /// The response is either a Group...
29.730159
130
0.616658
[ "MIT" ]
Rogn/broadworks-connector-net
BroadworksConnector/Ocip/Models/GroupAnnouncementRepositoryGetSettingsRequest.cs
1,873
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. namespace NuGet.Services.FeatureFlags { public interface IFeatureFlagClient { /// <summary> /// Get whether a feature is enable...
52.666667
116
0.663291
[ "Apache-2.0" ]
NuGet/ServerCommon
src/NuGet.Services.FeatureFlags/IFeatureFlagClient.cs
1,582
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 Microsoft.Win32.SafeHandles; using System.Collections.Generic; using System.ComponentModel; using System.Diagn...
44.836428
215
0.560126
[ "MIT" ]
BigBadBleuCheese/corefx
src/System.Console/src/System/ConsolePal.Unix.cs
50,710
C#
using System; using MySql.Data.MySqlClient; using System.Collections.Generic; namespace FavoriteRestaurants.Models { public class Cuisine { private int _id; private string _name; public Cuisine(string name, int id=0) { _id = id; _name = name; } public string GetName() { ...
25.586207
103
0.588949
[ "MIT" ]
ReconScout77/favorite-restaurants
FavoriteRestaurants/Models/Cuisine.cs
5,194
C#
using System; using System.Collections.Generic; using System.Text; namespace UHubApi.AspNetCore { public class UHubApiOptions { public string AppSecret { get; set; } public string UHubBaseUrl { get; set; } } }
17.214286
47
0.672199
[ "Apache-2.0" ]
yiyungent/UHub
src/Sdk/UHubApi.AspNetCore/UHubApiOptions.cs
243
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class CBTTaskRiderNotifyScriptedActionOnHorseDef : IBehTreeRiderTaskDefinition...
33.826087
154
0.769923
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/CBTTaskRiderNotifyScriptedActionOnHorseDef.cs
756
C#
// 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, // distribute, sublicense, and/or sell...
24.982143
124
0.688885
[ "Apache-2.0" ]
Sectoid/debian-mono
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs
5,596
C#
// // ClientEngineTests.cs // // Authors: // Alan McGovern alan.mcgovern@gmail.com // // Copyright (C) 2008 Alan McGovern // // 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 rest...
49.937294
207
0.64662
[ "MIT" ]
OneFingerCodingWarrior/monotorrent
src/MonoTorrent.Tests/Client/ClientEngineTests.cs
15,133
C#
using YggdrAshill.Nuadha.Signalization; using YggdrAshill.Nuadha.Unitization; using YggdrAshill.Nuadha.Conduction; using System; namespace YggdrAshill.Nuadha.Units { /// <summary> /// Defines conversion for <see cref="IHandControllerProtocol"/>, <see cref="IHandControllerHardware"/> and <see cref="IHandControl...
42.598291
151
0.618078
[ "MIT" ]
do-i-know-it/YggdrAshill.Nuadha
Units/HandController/ConvertHandControllerInto.cs
9,968
C#
/** * @File : TaskManager.cs * @Author : dtysky (dtysky@outlook.com) * @Link : dtysky.moe * @Date : 2019/09/09 0:00:00PM */ using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; namespace SeinJS { public class TaskManager { List<IEnumerator> _task...
20.654545
78
0.47007
[ "MIT" ]
FreesideStation/Nexus-Unity-Scenes
Assets/SeinJS/SeinJSUnityToolkit/Common/TaskManager.cs
1,138
C#
using Hobby.DomainEvents.Events; using Hobby.DomainEvents.Service; using Ninject; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hobby.Ninject.Containers { public class NinjectEventContainer : IEventDispatcher { private rea...
23.258065
88
0.656033
[ "Artistic-2.0" ]
Deith2/ProjectIntrduction
src/Hobby.Ninject/Containers/NinjectEventContainer.cs
723
C#
using System.Collections.Generic; using Orchard.Security; namespace Orchard.Roles.Models { public class RolesDocument { public List<Role> Roles { get; } = new List<Role>(); public int Serial { get; set; } } }
19.916667
60
0.644351
[ "BSD-3-Clause" ]
PinpointTownes/Orchard2
src/Orchard.Web/Modules/Orchard.Roles/Models/RolesDocument.cs
241
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace TButt.Editor { public static class TBEditorDefines { public static readonly string settingsPath = "Assets/Resources/"; // Location of the TButtSettings folder. public static readonly ...
44.742138
156
0.595164
[ "MIT" ]
jeff-chamberlain/tbutt-vr
Source/Assets/TButt/Core/Scripts/Editor/TBEditorDefines.cs
7,116
C#
/* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
31.88
140
0.585529
[ "Apache-2.0" ]
zz0733/aws-sdk-net
AWSSDK_DotNet35/Amazon.ElasticLoadBalancing/Model/Internal/MarshallTransformations/InstanceUnmarshaller.cs
2,391
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.PooledObjects; using M...
41.75
161
0.705389
[ "Apache-2.0" ]
20chan/roslyn
src/Features/CSharp/Portable/Structure/Providers/DocumentationCommentStructureProvider.cs
1,672
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.AwsN...
32.807018
99
0.648663
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/AppFlow/Outputs/ConnectorProfileGoogleAnalyticsConnectorProfileCredentials.cs
1,872
C#
/* * Copyright 2020 Sage Intacct, 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 * * or in the "LICENSE" file accompanying t...
34.2
80
0.62843
[ "Apache-2.0" ]
Intacct/intacct-sdk-net
Intacct.SDK/Functions/AccountsReceivable/ArAdjustmentLineCreate.cs
2,225
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using MethodRedirect; using System; using System.Reflection; namespace Scenarios_UT { [TestClass] public class Scenario2_UnitTests { [TestMethod] public void Redirect_InternalVirtualInstanceMethod_To_PrivateInstanceMethod_SameInstance() ...
38.888889
169
0.725714
[ "MIT" ]
spinico/MethodRedirect
UnitTests/Scenario2_UnitTests.cs
1,402
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Online.Chat; namespace osu.Game.Tests.Online.Chat { [TestFixture] public class MessageNotifierTest { [Test] public ...
32.455556
118
0.602533
[ "MIT" ]
oldschool-otaku/osu
osu.Game.Tests/Online/Chat/MessageNotifierTest.cs
2,832
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Routing; namespace CompanyName.MyMeetings.API.Configuration.Authorization { public abstract class AttributeAuthorizationHandler<TRequirement, TAttribute> : AuthorizationHandler<TRequirement> ...
36.72
117
0.736383
[ "MIT" ]
Ahmetcanb/modular-monolith-with-ddd
src/API/CompanyName.MyMeetings.API/Configuration/Authorization/AttributeAuthorizationHandler.cs
920
C#
/* _BEGIN_TEMPLATE_ { "id": "TB_LEAGUE_REVIVAL_FinleySandHero", "name": [ "被埋住的芬利", "Buried Finley" ], "text": [ null, null ], "cardClass": "NEUTRAL", "type": "HERO", "cost": null, "rarity": null, "set": "TB", "collectible": null, "dbfId": 56235 } _END_TEMPLATE_ */ namespace HRE...
15.074074
60
0.597052
[ "MIT" ]
chi-rei-den/Silverfish
cards/TB/TB/Sim_TB_LEAGUE_REVIVAL_FinleySandHero.cs
419
C#
#nullable enable using System; using System.Reflection; using Newtonsoft.Json.Linq; namespace Shared.Json { public class JsonMessageDispatcher : MessageDispatcher<JObject> { protected override TParam Deserialize<TParam>(JObject message) => JsonSerialization.Deserialize<TParam>(message)...
31.241379
99
0.708609
[ "MIT" ]
rucosmonaut/SpaceSystem
Shared/Json/JsonMessageDispatcher.cs
908
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class RandomSensor : MonoBehaviour, ISensor { public static IEnumerable<string> LABELS = new List<string> { "Random" }; [SerializeField] public int nReceptors; private float[] receptors; void Start()...
22.925926
77
0.691438
[ "MIT" ]
reubenjohn/AEvo2D
Assets/Creature/Sensor/RandomSensor.cs
621
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
40.735294
153
0.617329
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/ScheduleTimeOffReasonsCollectionResponse.cs
1,385
C#
using System; using Newtonsoft.Json; namespace Alipay.AopSdk.Core.Domain { /// <summary> /// PublishChannel Data Structure. /// </summary> [Serializable] public class PublishChannel : AopObject { /// <summary> /// 当type为MERCHANT_CROWD时,config需填入口令送的密码和图片,样例如下:"config":"{\"PASSWORD\":\"口令送密码\",\"BACKG...
26.540541
148
0.656823
[ "MIT" ]
ArcherTrister/LeXun.Alipay.AopSdk
src/Alipay.AopSdk.Core/Domain/PublishChannel.cs
1,218
C#
using System; using System.Collections.Generic; using Android.App; using Android.Views; using Android.Widget; using iChronoMe.Widgets; namespace iChronoMe.Droid.Adapters { public class ClickActionTypeAdapter : BaseAdapter<string> { List<string> items { get; } = new List<string>(); Dictionary...
31.884615
109
0.566546
[ "MIT-0" ]
maruhe/iChronoMe.Apps
iChronoMe.Android/Source/Adapters/ClickActionTypeAdapter.cs
2,489
C#
using System; using System.Linq; using BenchmarkDotNet.Attributes; using FastEnumUtility.Benchmark.Models; using FastEnumUtility.Internals; namespace FastEnumUtility.Benchmark.Scenarios { public class InitializeBenchmark { #region FastEnum [Benchmark(Baseline = true)] public void Fas...
33.622881
113
0.501449
[ "MIT" ]
OronDF343/FastEnum
src/FastEnum.Benchmark/Scenarios/InitializeBenchmark.cs
7,937
C#
using UnityEngine; public class ChangeMaterial : MonoBehaviour { public Material otherMaterial = null; private MeshRenderer meshRenderer = null; private Material originalMaterial = null; private void Awake() { meshRenderer = GetComponent<MeshRenderer>(); originalMaterial = meshRe...
20.807692
52
0.678373
[ "Apache-2.0" ]
C-Through/XR-SteamVRController
Assets/_SteamVRController/Scripts/Extra/ChangeMaterial.cs
543
C#
using System; using NControl.Abstractions; using Xamarin.Forms; namespace NControl.Controls { /// <summary> /// Paging view. /// </summary> public class PagingView: NControlView { /// <summary> /// Initializes a new instance of the <see cref="NControl.Controls.PagingView"/> class. /// </summary> public P...
26.719008
97
0.646458
[ "MIT" ]
Neseek77/NControl.Controls
NControl.Controls/NControl.Controls/PagingView.cs
3,235
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace DataBindingDemo { public enum ProductCategory { Books, Computers, DvDs, Electronics, Home, Sport...
21.933333
104
0.6231
[ "MIT" ]
21pages/WPF-Samples
Sample Applications/DataBindingDemo/ProductCategory.cs
329
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Meteor : MonoBehaviour { // Start is called before the first frame update public GameObject target; private Rigidbody rigidbody; [SerializeField] float speed; [SerializeField] HexController hexCont...
27.54717
97
0.610274
[ "Apache-2.0" ]
olesgedz/globalgamejam2020
Assets/Scripts/Meteor.cs
1,462
C#
using System; using System.Collections; using System.Drawing; using System.IO; using System.Web; using CookComputing.Blogger; using CookComputing.MetaWeblog; using CookComputing.XmlRpc; using Umbraco.Core.Configuration; using Umbraco.Core.IO; using umbraco.BusinessLogic; using umbraco.cms.businesslogic; usi...
42.298932
158
0.488221
[ "MIT" ]
bowserm/Umbraco-CMS
src/Umbraco.Web/umbraco.presentation/umbraco/channels/UmbracoMetaWeblogAPI.cs
23,772
C#
namespace PartsUnlimited.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<PartsUnlimited.Models.PartsUnlimitedContext> { public Configuration() { ...
32.25
112
0.571705
[ "MIT" ]
ALMTraining/MyPartsUnlimited
src/PartsUnlimitedWebsite/Migrations/Configuration.cs
1,032
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...
56.5
344
0.740177
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementGetArgs.cs
2,825
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. using System; using System.IO; using System.Linq; using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.CommandLine; using Microsoft.DotNet.Cli....
32.222222
103
0.6125
[ "MIT" ]
5l1v3r1/sdk-1
src/Cli/dotnet/commands/dotnet-sln/remove/Program.cs
2,320
C#
using Orchard.ContentManagement; namespace Contrib.RewriteRules.Models { public class RedirectSettingsPart : ContentPart<RedirectSettingsPartRecord> { public string Rules { get { return Record.Rules; } set { Record.Rules = value; } } public bool Enabled { ...
27.6
81
0.596618
[ "BSD-3-Clause" ]
bill-cooper/catc-cms
src/Orchard.Web/Modules/Contrib.RewriteRules/Models/RedirectSettingsPart.cs
414
C#
using Microsoft.EntityFrameworkCore.Storage; using Mix.Cms.Lib.Models.Cms; using Mix.Cms.Lib.Repositories; using Mix.Cms.Lib.Services; using Mix.Cms.Lib.ViewModels.MixConfigurations; using Mix.Common.Helper; using Mix.Domain.Core.ViewModels; using Mix.Domain.Data.ViewModels; using Newtonsoft.Json; using Newtonsoft.Jso...
40.258228
181
0.54402
[ "MIT" ]
Noriffik/mix.core
src/Mix.Cms.Lib/ViewModels/MixThemes/DeleteViewModel.cs
15,904
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tizen.Wearable.CircularUI.Forms; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace WearableUIGallery.TC { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class TCCi...
24.473684
64
0.558065
[ "SHL-0.51" ]
hj-na-park/Tizen.CircularUI
test/WearableUIGallery/WearableUIGallery/TC/TCCircleSliderSurfaceItem1.xaml.cs
932
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...
32.288136
107
0.68084
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/AppConfig/Generated/Model/DeleteDeploymentStrategyRequest.cs
1,905
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VEF.Interfaces.Services { /// <summary> /// Interface IThemeManager /// </summary> public interface IThemeManager { /// <summa...
30.119048
80
0.589723
[ "MIT" ]
devxkh/FrankE
Editor/VEF/VEF.Shared/PCL/Interfaces/Services/IThemeManager.cs
1,267
C#
using System; using System.Collections.Generic; using System.Diagnostics; 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 Sys...
21.509434
76
0.59386
[ "MIT" ]
TW2002/TWX-Sharp
Source/TWX30/Proxy-old/Windows/About.xaml.cs
1,142
C#
using System.Text; namespace LinqToDB.DataProvider.Informix { using System.Collections.Generic; using SqlQuery; partial class InformixSqlBuilder { // VALUES(...) syntax not supported protected override bool IsValuesSyntaxSupported => false; // or also we can use sysmaster:sysdual added in 11.7...
27.5
151
0.686124
[ "MIT" ]
AndreyAndryushinPSB/linq2db
Source/LinqToDB/DataProvider/Informix/InformixSqlBuilder.Merge.cs
1,010
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class MediaDeviceControllerPS : ScriptableDeviceComponentPS { [Ordinal(0)] [RED("activeChannelName")] public CString ActiveChannelName { get; set; } [Ordina...
38.6
110
0.713731
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/MediaDeviceControllerPS.cs
753
C#
using System; class Program { unsafe static void UnsafeProcess() { int i = 123; int* p = &i; Console.WriteLine(*p); } static void Main() { UnsafeProcess(); } }
12.222222
38
0.490909
[ "MIT" ]
autumn009/CSharpSourceDance
Answers/LanguageKeywords/unsafe/unsafe/Program.cs
222
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 ...
40.894737
123
0.777992
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-live/Live/Transform/V20161101/DeleteLiveDetectNotifyConfigResponseUnmarshaller.cs
1,554
C#