content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using Microsoft.AspNetCore.Authorization; using Plus.DependencyInjection; using Plus.DynamicProxy; using System; using System.Linq; using System.Reflection; namespace Plus.Authorization { public static class AuthorizationInterceptorRegistrar { public static void RegisterIfNeeded(IOnServiceRegistredCon...
32.289474
110
0.666667
[ "MIT" ]
Meowv/Plus.Core
Plus.Core/Plus/Authorization/AuthorizationInterceptorRegistrar.cs
1,229
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; namespace Microsoft.CSharp.RuntimeBinder.Semantics { internal sealed class ExprClass ...
27.388889
71
0.677485
[ "MIT" ]
06needhamt/runtime
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Tree/Class.cs
493
C#
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("DHSegmentedControl.IOS")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration(""...
35.714286
81
0.748
[ "MIT" ]
Humbatt/DHSegmentControl
DHSegmentedControl.IOS/Properties/AssemblyInfo.cs
1,002
C#
#if UNITY_EDITOR using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System; using System.Reflection; using System.Linq; namespace AlmostEngine.Screenshot { /// <summary> /// Game View Utils is used to control the game view sizes. /// Part of this code ...
43.809322
238
0.643196
[ "MIT" ]
assemyasser200/the_clothing_shop
Assets/Third Party/AlmostEngine/UltimateScreenshotCreator/Assets/Scripts/Utils/GameViewUtils.cs
10,339
C#
using System; public abstract class DataInspector { public abstract bool canFoldout(); public virtual bool printHead(ref object data, Type type) { return false; } public abstract bool inspect(ref object data, Type type, string name, string path); protected bool applyData(ref object data, object newData) { ...
18.333333
84
0.667273
[ "MIT" ]
sric0880/unity-framework
Assets/DataInspector/Editor/DataInspector.cs
552
C#
using NitroSharp.Text; using NitroSharp.Utilities; using System; using System.Text; using NitroSharp.NsScript; using NitroSharp.NsScript.VM; namespace NitroSharp { internal readonly struct BacklogEntry { public readonly string Text; public BacklogEntry(string text) { Text ...
24.280702
79
0.575145
[ "MIT" ]
Cred0utofnames/nitrosharp
src/NitroSharp/Backlog.cs
1,386
C#
using System.Collections.Generic; namespace DancingGoat.Models { public class SearchResultsModel { public string Query { get; set; } public List<SearchResultItemModel> Items { get; set; } public int CurrentPage { get; set; } public int NumberOfPages { get; se...
24.333333
103
0.598826
[ "MIT" ]
Kentico/xperience-module-intercom
src/DancingGoatCore/Models/Search/ViewModels/SearchResultsModel.cs
513
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace TransportApiSharpSample.Converters { public class BoolFalseToVisibleConverter : IValueConverter { public object Convert(objec...
30.826087
99
0.703808
[ "MIT" ]
marknotgeorge/TransportAPISharp
TransportApiSharpSample/Converters/BoolFalseToVisibleConverter.cs
711
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.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Nerdbank.GitVersioning; internal class VersionO...
49.094595
207
0.686072
[ "MIT" ]
AArnott/Nerdbank.GitVersioning
src/NerdBank.GitVersioning/VersionOptionsContractResolver.cs
7,268
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...
27.660256
463
0.698494
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/PresentationCore/Sources/System.Windows.Media.Animation.DoubleAnimation.cs
4,315
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class GameController : MonoBehaviour { Asteroid asteroidConfigure; Asteroid asteroidRequest; Asteroid asteroidPlay; Asteroid asteroidAdViewRequest; Asteroid asteroidAdViewDestroy; //DestroyAdView AdColony.AdC...
34.11215
166
0.60347
[ "Apache-2.0" ]
isabella232/AdColony-Unity-Plugin
Sample/Assets/Scripts/GameController.cs
10,952
C#
#region License, Terms and Author(s) // // ELMAH - Error Logging Modules and Handlers for ASP.NET // Copyright (c) 2004-9 Atif Aziz. All rights reserved. // // Author(s): // // Atif Aziz, http://www.raboof.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
29.389831
86
0.642445
[ "Apache-2.0" ]
AdamBenoit/elmah.1x
src/Elmah/Assertions/DelegatedContextExpression.cs
1,734
C#
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2021 DigiDNA - www.imazing.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
37.419355
127
0.653879
[ "MIT" ]
DigiDNA/ValueTransformers-WPF
ValueTransformers/Converters/StringIsNotEmpty.cs
2,322
C#
// <copyright file="MetricsInfluxDbReporterBuilder.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using App.Metrics.Builder; using App.Metrics.Formatters; usi...
41.942529
149
0.598063
[ "Apache-2.0" ]
8adre/AppMetrics
src/Reporting/src/App.Metrics.Reporting.InfluxDB/Builder/MetricsInfluxDbReporterBuilder.cs
10,949
C#
using System; using System.Collections.Generic; namespace Builder { public class Program { public static void Main() { var superBuilder = new SuperCarBuilder(); var notSuperBuilder = new NotSoSuperCarBuilder(); var factory = new CarFactory(); va...
31.357143
82
0.474943
[ "MIT" ]
pirocorp/ASP.NET-Core
10. DESIGN PATTERNS/DesignPatternsDemo/CreationalPatternsDemo/05Builder/Program.cs
880
C#
using Lucene.Net.Linq.Clauses.Expressions; using Lucene.Net.Linq.Search; using Lucene.Net.Linq.Transformation.TreeVisitors; using Lucene.Net.Search; using NUnit.Framework; using System.Linq.Expressions; namespace Lucene.Net.Linq.Tests.Transformation.TreeVisitors { [TestFixture] public class BooleanBi...
34.910891
111
0.630459
[ "Apache-2.0" ]
mattbab/Lucene.Net.Linq
source/Lucene.Net.Linq.Tests/Transformation/TreeVisitors/BooleanBinaryToQueryPredicateExpressionTreeVisitorTests.cs
3,526
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; namesp...
33.25
128
0.635049
[ "MIT" ]
21pages/WPF-Samples
Sample Applications/FontDialog/FontFamilyListItem.cs
1,729
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Newtonsoft.Json; namespace Microsoft.Bot.Builder.Adapters.Facebook.FacebookEvents.Templates { /// <summary> /// Facebook button object. /// </summary> [Obsolete("The Bot Framework Adapt...
34.181818
245
0.601729
[ "MIT" ]
Arsh-Kashyap/botbuilder-dotnet
libraries/Adapters/Microsoft.Bot.Builder.Adapters.Facebook/FacebookEvents/Templates/Button.cs
1,506
C#
// Copyright (c) Peter Vrenken. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia namespace EtAlii.Ubigia.Api.Functional.Traversal.Tests { using System; using System.Threading.Tasks; public class TestFunctionHandler : IFunctionHandler { public ParameterSet[] Par...
42.4
203
0.631402
[ "MIT" ]
vrenken/EtAlii.Ubigia
Source/Api/EtAlii.Ubigia.Api.Functional.Tests/Traversal/TestFunctionHandler.cs
1,486
C#
namespace Compos.Coreforce.Models.Description { public class UrlsDescription { public string compactLayouts { get; set; } public string rowTemplate { get; set; } public string approvalLayouts { get; set; } public string uiDetailTemplate { get; set; } public string uiEdit...
35.631579
52
0.620384
[ "MIT" ]
COMPEON/Compos.Coreforce
Compos.Coreforce/Models/Description/UrlsDescription.cs
679
C#
namespace TekConf.Tests.UI { public static class ScreenNames { public static string AddTask = "AddTaskScreen"; public static string ConferencesList = "ConferencesList"; } }
22.5
59
0.761111
[ "MIT" ]
tekconf/TekConf.Forms
Tests/TekConf.Tests.UI/Screens/ScreenNames.cs
182
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 namespace DotNetNuke.Modules.Journal.Components { using System; using System.Collections.Generic; u...
36.047753
267
0.465051
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/Modules/Journal/Components/Utilities.cs
12,835
C#
using System; using System.Collections.Generic; using Ical.Net.DataTypes; using Ical.Net.Interfaces.DataTypes; namespace Ical.Net.Interfaces.Components { public interface ITimeZone : ICalendarComponent { string TzId { get; set; } IDateTime LastModified { get; set; } Uri Url { get; set...
24.375
58
0.676923
[ "MIT" ]
Clarity-Informatics/ical.net
v2/ical.NET/Interfaces/Components/ITimeZone.cs
392
C#
using System.Diagnostics.CodeAnalysis; // ReSharper disable once CheckNamespace namespace System { public static class VersionExtensions { /// <summary> /// Is 'version' greater then the 'otherVersion', where the significantParts is the stop part. /// Example significantParts=2, then o...
35.896104
135
0.54848
[ "MIT" ]
TomMalow/atc
src/Atc/Extensions/VersionExtensions.cs
2,766
C#
namespace ExtensionMethods { public static class WindowExtensions { public static bool? ShowDialogCenteredToMouse(this Window window) { ComputeTopLeft(ref window); return window.ShowDialog(); } public static Task<bool?> ShowDialogAsync(this Window self) ...
30.673913
99
0.576187
[ "Unlicense" ]
BAndysc/WoWDatabaseEditor
WDE.QuestChainEditor/Utils/WindowExtensions.cs
1,413
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...
36.266187
159
0.60127
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/SageMaker/Generated/Model/Internal/MarshallTransformations/ListPipelineExecutionsRequestMarshaller.cs
5,041
C#
namespace SKIT.FlurlHttpClient.Upyun.Console.Models { /// <summary> /// <para>表示 [POST] /v2/buckets/cdn/source 接口的响应。</para> /// </summary> public class SetBucketCDNSourceV2Response : UpyunConsoleResponse { public static class Types { public class Data : GetBucketCDNSour...
28.533333
71
0.570093
[ "MIT" ]
fudiwei/DotNetCore.SKIT.FlurlHttpClient.Upyun
src/SKIT.FlurlHttpClient.Upyun.Console/Models/Buckets/CDN/SetBucketCDNSourceV2Response.cs
914
C#
using System.IO; using NuGet.Versioning; using Xunit; namespace NuGet.Packaging.Test { public class VersionFolderPathResolverTests { [Fact] public void VersionFolderPathResolver_GetInstallPath() { // Arrange var tc = new TestContext(); // Act ...
27.048485
97
0.489357
[ "Apache-2.0" ]
OctopusDeploy/NuGet.Client
test/NuGet.Core.Tests/NuGet.Packaging.Test/VersionFolderPathResolverTests.cs
4,465
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.Linq; using System.Text; using System.Runtime.InteropServices; using ...
50.979938
227
0.627123
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Globalization/tests/CultureInfo/CultureInfoAll.cs
33,035
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Media; namespace LazuriteUI.Windows.Main.Statistics.Views.DiagramViewImplementation { public class LowGraphicsVisualHost : FrameworkElement { private VisualCollection children; public...
28.07377
97
0.488467
[ "Apache-2.0" ]
noant/Lazurite
Lazurite/LazuriteUI.Windows.Main/Statistics/Views/DiagramViewImplementation/LowGraphicsVisualHost.cs
3,427
C#
using System; using System.ComponentModel; using System.ComponentModel.Composition; namespace Sample.Core { /// <summary> /// 使用 [MetadataViewImplementation(typeof(CustomExportMetadata))],则需要修改下面对应的相应不应该使用相应形象 /// </summary> public interface IMetadata { [DefaultValue(0)] int Priori...
30.433333
157
0.62103
[ "MIT" ]
hippieZhou/MEF.Sample
src/mvvmlight/Sample.Core/IMetadata.cs
1,876
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; using Neurotoxin.Roentgen.Data.Extensions; namespace Neurotoxin.Roentgen.Data.Entities { public abstract class EntityBase : IEntityBase { [Key] ...
32.487179
127
0.573796
[ "MIT" ]
mercenaryntx/roentgen
Neurotoxin.Roentgen.Data/Entities/EntityBase.cs
2,536
C#
using UnityEngine; using System.Collections; // correspond with protocol.vehicle_parts_id public enum CarStat { HP = 1, Power, Speed, Acceleration, }; public class Calculator : MonoBehaviour { public const float BASE_IN_GAME_SPEED = 8f; public const float BASE_IN_GAME_ACCELERA...
39.445378
166
0.647635
[ "MIT" ]
showstop98/gtb-client
Assets/Script/Util/Calculator.cs
4,696
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Final_Project_Khouloud_Nasrallah_Tarek_Tarshishi { static class Program { /// <summary> /// The main entry point for the application. /// </summary> ...
25.5
65
0.647059
[ "MIT" ]
tarektarshishi/Covid19-Vaccination
Final_Project_Khouloud_Nasrallah_Tarek_Tarshishi/Program.cs
612
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
40.625
80
0.641026
[ "MIT" ]
MotoPathZ/Public-SDK
MPZ/MPZ/obj/Debug/netstandard2.0/MPZ.AssemblyInfo.cs
975
C#
public class Solution { public int IsPrefixOfWord(string sentence, string searchWord) { var arr = sentence.Split(' '); for(var i = 0; i < arr.Length; ++i){ if(arr[i].StartsWith(searchWord)) return i+1; } return -1; } }
28.6
67
0.527972
[ "MIT" ]
webigboss/Leetcode
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence/1455_Original_string.cs
286
C#
using System; using System.Collections.Generic; using Xunit; using LanguageExt; using static LanguageExt.Prelude; using static Echo.Process; using static Echo.ProcessConfig; using static Echo.Strategy; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; ...
37.808036
137
0.428504
[ "MIT" ]
ProductiveRage/echo-process
Echo.Tests/LifeTimeTests.cs
8,471
C#
using System; using System.Linq; namespace BlazorLeaflet.Utils { public class StringHelper { private static readonly Random _random = new Random(); public static string GetRandomString(int length) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; return new string(Enumerab...
20.6
79
0.737864
[ "MIT" ]
hse-electronics/BlazorLeaflet
BlazorLeaflet/BlazorLeaflet/Utils/StringHelper.cs
414
C#
using System.Linq; using TT.Domain.Abstract; using TT.Domain.Models; namespace TT.Domain.Concrete { public class EFPlayerLogRepository : IPlayerLogRepository { private StatsContext context = new StatsContext(); public IQueryable<PlayerLog> PlayerLogs { get { return context...
25.3125
67
0.497942
[ "MIT" ]
transformania/tt-game
src/TT.Domain/Legacy/Concrete/EFPlayerLogRepository.cs
1,217
C#
using System; using System.IO; // csharp: hina/io/extensions/memorystreamextensions.cs [snipped] namespace Hina.IO { public static class MemoryStreamExtensions { public static ArraySegment<byte> GetBuffer(this MemoryStream stream) { if (stream.TryGetBuffer(out var buffer)) ...
25.611111
98
0.663774
[ "MIT" ]
NebulaSleuth/bnc.rtmpsharp
src/_Sky/Hina/IO/Extensions/MemoryStreamExtensions.cs
463
C#
using System; using System.Collections.Generic; using System.Linq; namespace MovingPlatformDemo.GumRuntimes.DefaultForms { public partial class TreeViewRuntime { partial void CustomInitialize () { } } }
17.214286
53
0.684647
[ "MIT" ]
coldacid/FlatRedBall
Samples/Platformer/MovingPlatformDemo/MovingPlatformDemo/GumRuntimes/DefaultForms/TreeViewRuntime.cs
241
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Runtime; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Server.Kestrel.Core; using Mi...
33.876923
143
0.644868
[ "Apache-2.0" ]
JonasAls89/termstore
SP_Taxonomy_client_test/Startup.cs
2,204
C#
namespace ApproximateOptimization { public interface IOptimizer { /// <summary> /// Runs the actual solving algorithm. This may take considerable time. /// </summary> void FindMaximum(); /// <summary> /// After running the search, the best found solution can be...
30.142857
115
0.584123
[ "MIT" ]
krzyszsz/ApproximateOptimization
ApproximateOptimization/Optimizers/IOptimizer.cs
846
C#
using System; using System.Linq; using System.Threading; using Datadog.Trace.RuntimeMetrics; using Datadog.Trace.Vendors.StatsdClient; using Moq; using Xunit; namespace Datadog.Trace.Tests.RuntimeMetrics { [CollectionDefinition(nameof(RuntimeMetricsWriterTests), DisableParallelization = true)] [Collection(name...
33.177778
163
0.511498
[ "Apache-2.0" ]
alirezavafi/dd-trace-dotnet-splunk
test/Datadog.Trace.Tests/RuntimeMetrics/RuntimeMetricsWriterTests.cs
4,479
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 { using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; /// <summary>The common properties of the export.</summary> [System.ComponentModel.TypeConverter(typeof(CommonExportPropertiesTypeConverter))] ...
154.502959
651
0.80242
[ "MIT" ]
3quanfeng/azure-powershell
src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.PowerShell.cs
25,943
C#
using Microsoft.EntityFrameworkCore; namespace AMT.Data.Entities { public partial class ODSContext : DbContext { public ODSContext() { } public ODSContext(DbContextOptions<ODSContext> options) : base(options) { Database.SetCommandTimeout(300); ...
56.345455
112
0.731849
[ "Apache-2.0" ]
ESPSG/Dashboard-Replacement-POC
API/AMT.Data/Entities/ODSContext.cs
3,101
C#
using McMaster.Extensions.CommandLineUtils; namespace DocumentFramework.Tool.CommandLineApplications { public static class Root { public static CommandLineApplication BuildApplication() { var app = new CommandLineApplication(); app.HelpOption("-h|--help", t...
27.444444
64
0.629555
[ "MIT" ]
stormmuller/document-framework
Tool/CommandLineApplications/Root.cs
494
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MainModel.cs" company="PicklesDoc"> // Copyright 2011 Jeffrey Cameron // Copyright 2012-present PicklesDoc team and community contributors // // // Licensed under the Apache ...
38.013699
121
0.615495
[ "Apache-2.0" ]
NicksonT/pickles
src/Pickles/Pickles.UserInterface/Settings/MainModel.cs
2,777
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityModel; using IdentityServer4.Events; using IdentityServer4.Extensions; using IdentityServer4.Models; using IdentityServer4.Servi...
42.10989
150
0.561913
[ "Apache-2.0" ]
48355746/IdentityServer4
src/EntityFramework/host/Quickstart/Account/AccountController.cs
15,328
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Backups_aka_Lab4 { public class FullCreationPolicy : ICreationPolicy { private const string FullBackupsDirectory = @"C:\backups\full"; public RestorePoint CreateRestorePoint(List<RestorePoint> restorePoints, List<Back...
24.083333
98
0.742791
[ "MIT" ]
richiurb/OOP-labs
lab4/Backups_aka_Lab4/Creation/FullCreationPolicy.cs
869
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("PS...
39.108108
84
0.749827
[ "MIT" ]
dtzxporter/PSAToSE
src/PSAToSE/Properties/AssemblyInfo.cs
1,450
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("01...
38.027027
84
0.744136
[ "MIT" ]
PetarMetodiev/Telerik-Homeworks
C# Part 1/02 Primitive-data-types-and-variables/Primitive-data-types-and-variables/01 Variable types/Properties/AssemblyInfo.cs
1,410
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CrudTcp.Core.Http.Action { public class Created : IHttpAction { public int Code { get; set; } public object Object { get; set; } public Created(object obj) ...
18.809524
42
0.594937
[ "Apache-2.0" ]
ilyacoding/bsuir
KSiS/Lab_4/CrudTcp/CrudTcp/Core/Http/Action/Created.cs
397
C#
using System; using Nethereum.ABI.Decoders; using Nethereum.ABI.Encoders; namespace Nethereum.ABI { /// <summary> /// Generic ABI type /// </summary> public abstract class ABIType { public ABIType(string name) { Name = name; } protected ITypeDecoder ...
29.625
93
0.530672
[ "MIT" ]
F1nZeR/Nethereum
src/Nethereum.ABI/ABIType.cs
3,081
C#
// Copyright (c) 2018, Rene Lergner - wpinternals.net - @Heathcliff74xda // // 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 r...
41.647368
176
0.500348
[ "MIT" ]
Niktendo/WPinternals
ViewModels/NokiaFlashViewModel.cs
31,654
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("Sha...
37.297297
84
0.745652
[ "MIT" ]
zrusev/SoftUni_2016
06. C# OOP Advanced - July 2017/01. Interfaces And Abstraction/01. Interfaces And Abstraction - Lab/Lab Interfaces and Abstraction/Shapes/Properties/AssemblyInfo.cs
1,383
C#
using System; using Spring.Collection.Reference; using UnityEngine; namespace Summer.Debugger.Window.Model.VO { /// <summary> /// 日志记录结点。 /// </summary> public sealed class LogNode : IReference { private DateTime logTime; private int logFrameCount; private LogType logType; ...
24.56
91
0.486564
[ "MIT" ]
Mu-L/Tank
Assets/Summer/Debugger/Window/Model/VO/LogNode.cs
2,666
C#
using System.Collections.Generic; namespace edu.tum.cs.conqat.dotnet { public class Target { } public class SomeClass { public List<Target> someMethod() { return new List<Target>(); } } public class Source { public void Caller() {...
18.041667
45
0.501155
[ "Apache-2.0" ]
assessorgeneral/ConQAT
org.conqat.engine.dotnet/test-data/org.conqat.engine.dotnet.ila.scenario/genericReturnType.cs
433
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.ROS20150901.Models { public class DescribeResourceDetailResponse : TeaModel { [NameInMap("headers")] [Validation(Required=true)] pu...
20.210526
63
0.700521
[ "Apache-2.0" ]
alibabacloud-sdk-swift/alibabacloud-sdk
ros-20150901/csharp/core/Models/DescribeResourceDetailResponse.cs
384
C#
using EnterpriseServerless.FunctionApp.Abstractions.Interfaces; using EnterpriseServerless.FunctionApp.Abstractions.Models; using Microsoft.Azure.Cosmos; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO;...
40.383621
198
0.581812
[ "MIT" ]
calloncampbell/Enterprise-Serverless-Demo
EnterpriseServerless.FunctionApp/Services/CallLoggingService.cs
9,371
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
42.797297
176
0.602779
[ "MIT" ]
jackobo/jackobs-code
LayoutTool/src/LayoutTool.DEV/Properties/Resources.Designer.cs
3,169
C#
using MikuMikuWorld.Assets; using OpenTK; using OpenTK.Graphics; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MikuMikuWorld { class BGDrawer { public Texture2D Texture { get; set; } public T...
33.533333
176
0.52833
[ "BSD-3-Clause" ]
yoship1639/MikuMikuWorld
MikuMikuWorld_Walker/BGDrawer.cs
2,014
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Media.Imaging; nam...
25.857143
103
0.760589
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/Analysis/CodeQuality/Old/Src/INode.cs
545
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementNotStatementStatementSqliMatchStatement), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementNotStatementStatementSqliMatchStatement")] public interface IWafv...
56.730769
227
0.715593
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementNotStatementStatementSqliMatchStatement.cs
2,950
C#
using UnityEngine; using UnityEditor; [CustomEditor(typeof(HPSettings))] public class HPSettingsInspector : Editor { private HPSettings settings; public void OnEnable() { settings = (HPSettings)target; } public override void OnInspectorGUI() { EditorGUILayout.LabelField("Gen...
37.734375
102
0.724224
[ "MIT" ]
kidshenlong/warpspeed
Project Files/Assets/Scripts/Editor/HPSettingsInspector.cs
2,415
C#
using System; namespace EdnaExcelConfigUtils { public class VariableTime { public int? YearsOffset { get; set; } public int? MonthsOffset { get; set; } public int? DaysOffset { get; set; } public int? HoursOffset { get; set; } public int? MinutesOffset { get; set; } ...
33.837838
162
0.539936
[ "MIT" ]
nagasudhirpulla/edna_chunks_dump_script
src/EdnaExcelConfigUtils/VariableTime.cs
3,758
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DncZeus.Api.Entities { public class SystemLog { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//添加时自动增长 public int Id { get; set; } public string Application ...
32.2
70
0.632298
[ "MIT" ]
zhangbao138208/financeAndpersonnel
DncZeus.Api/Entities/SystemLog.cs
821
C#
using System; using NUnit.Framework; using Org.BouncyCastle.Crypto.Engines; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.Encoders; using Org.BouncyCastle.Utilities.Test; namespace Org.BouncyCastle.Crypto.Tests { /**...
31.962963
120
0.573581
[ "MIT" ]
63l06ri5/bc-csharp
crypto/test/src/crypto/test/StreamCipherResetTest.cs
4,317
C#
// Copyright 2022 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 ...
45.829268
194
0.734965
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Dialogflow.Cx.V3/Google.Cloud.Dialogflow.Cx.V3.GeneratedSnippets/TransitionRouteGroupsClient.DeleteTransitionRouteGroupResourceNamesSnippet.g.cs
1,879
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; namespace Microsoft.CodeAnalysis.Shared.Utilities { internal p...
28.842105
77
0.570255
[ "MIT" ]
belav/roslyn
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/Matcher.SingleMatcher.cs
1,098
C#
namespace Lab_17_Northwind_Tests_Code_First { using System; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; public partial class NorthwindModel : DbContext { public NorthwindModel() : base("name=NorthwindModel2") { ...
24.8
76
0.614516
[ "MIT" ]
philanderson888/2019-11-c-sharp-labs
Labs/Lab_17_Northwind_Tests_Code_First/NorthwindModel.cs
620
C#
using System; using System.Diagnostics; using System.IO; using System.Threading; using GSF.Diagnostics; using GSF.IO; using GSF.Security.Authentication; using GSF.Snap.Services; using NUnit.Framework; namespace GSF.Security { [TestFixture] public class SecureStream_Test { public NullToken T; ...
30.833333
87
0.549688
[ "MIT" ]
BarkingCactii/OpenHistorian_Noja
Source/Libraries/Tests/GSF.SortedTreeStore.Test/Security/SecureStream_Test.cs
7,217
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.1 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. ...
98.365854
715
0.798413
[ "Apache-2.0" ]
andrew-stakiwicz-r3/financial_derivatives_demo
quantlib_swig_bindings/CSharp/csharp/FloatingRateBond.cs
8,066
C#
using Jaeger.Samplers; using Jaeger.Senders; using Jaeger.Senders.Thrift; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using OpenT...
37.8
143
0.631041
[ "Apache-2.0" ]
Chatham/LetsTrace
examples/Jaeger.Example.WebApi/Startup.cs
2,837
C#
using System; using System.Runtime.Serialization; using System.Security.Cryptography; namespace Microsoft.VisualStudio.Services.Agent.Listener.Configuration { /// <summary> /// Manages an RSA key for the agent using the most appropriate store for the target platform. /// </summary> [ServiceLocator( ...
41.878505
129
0.626423
[ "MIT" ]
Loovax/azure-pipelines-agent
src/Agent.Listener/Configuration/IRSAKeyManager.cs
4,483
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; using JetBrains.Annotations; using PornSearch.Tests.Enums; using Xunit; namespace PornSearch.Tests.Asserts { public static class PornVideoThumbAssert { [AssertionMethod] pu...
52.562992
142
0.579282
[ "MIT" ]
Crash8/PornSearch
src/PornSearch.Tests/Asserts/PornVideoThumbAssert.cs
13,351
C#
using System.IO; namespace BeatSaberMarkupLanguage.Animations.APNG.Chunks { /// <summary> /// Animation Control chunk. /// </summary> internal class acTLChunk : Chunk { private uint frameCount; private uint playCount; /// <summary> /// Initializes a new instance of...
27.409091
76
0.491294
[ "MIT" ]
Auros/BeatSaberMarkupLanguage
BeatSaberMarkupLanguage/Animations/APNG/Chunks/acTLChunk.cs
2,414
C#
// Copyright 2022 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 ...
39.679012
120
0.611388
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/MachineImagesClient.ListRequestObjectSnippet.g.cs
3,214
C#
namespace MySharpSupport { using System; using System.Reflection; using LeagueSharp; using LeagueSharp.Common; using MySharpSupport.Util; using Version = System.Version; internal class Program { public static Version Version; private static void Main(string[] args) ...
36.147826
120
0.410392
[ "MIT" ]
toannatkm0/LOZ
MySharpSupport/Program.cs
4,159
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/d3d10misc.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Diagn...
28.926829
145
0.593592
[ "MIT" ]
FalsePattern/jwin32
cs_guid_definitions/sources/Interop/Windows/DirectX/um/d3d10misc/GUID.cs
1,188
C#
using UnityEngine; public class SVGGEllipse : ISVGPathSegment { private readonly Vector2 p; private readonly float r1; private readonly float r2; private readonly float angle; public SVGGEllipse(Vector2 p, float r1, float r2, float angle) { this.p = p; this.r1 = r1; this.r2 = r2; this.angle ...
24.44
95
0.703764
[ "BSD-3-Clause" ]
MrJoy/UnitySVG
Assets/UnitySVG/Implementation/RenderingEngine/BasicType/SVGGEllipse.cs
611
C#
using System; using CoreBluetooth; namespace Shiny.BluetoothLE.Peripherals { public class Peripheral : IPeripheral { public Peripheral(CBCentral central) { this.Central = central; this.Uuid = new Guid(central.Identifier.ToString()); } public Guid Uuid...
21.15
64
0.600473
[ "MIT" ]
DanielCauser/shiny
src/Shiny.BluetoothLE/Peripherals/Platforms/ios+macos/Peripheral.cs
425
C#
using System; using System.IO; using System.Net; using System.Threading.Tasks; namespace UnityGLTF.Loader { class MyWebClient : WebClient { protected override WebRequest GetWebRequest(Uri address) { HttpWebRequest request = base.GetWebRequest(address) as HttpWebRequest; ...
29.7
102
0.642256
[ "Apache-2.0" ]
Gfi-Innovation/UMI3D-Desktop-Browser
UMI3D-Browser-Desktop/Assets/UMI3D SDK/Dependencies/Runtime/IntegrationGltf/FileDownloader.cs
1,190
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// AlipayCommerceOperationTimescardRefundApplyModel Data Structure. /// </summary> [Serializable] public class AlipayCommerceOperationTimescardRefundApplyModel : AopObject { /// <summary> ///...
23
77
0.5554
[ "Apache-2.0" ]
alipay/alipay-sdk-net
AlipaySDKNet.Standard/Domain/AlipayCommerceOperationTimescardRefundApplyModel.cs
727
C#
 using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Octolamp.Frontend.Hubs { public class NotificationHub : Hub { public async Task SendMessage(string user, string message) { await Clients....
20.315789
73
0.69171
[ "MIT" ]
MoimHossain/linkerd-demo
src/Octolamp.Frontend/Hubs/NotificationHub.cs
388
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable enable using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { /// <summary> /// View over a Qil StrConcat operator. /// </summary> /// <rem...
27.830189
120
0.477288
[ "MIT" ]
IEvangelist/runtime
src/libraries/System.Private.Xml/src/System/Xml/Xsl/QIL/QilStrConcat.cs
1,475
C#
using System; using System.Collections.Generic; using Bit.Client.Web.BlazorUI.Playground.Web.Pages.Components.ComponentDemoBase; namespace Bit.Client.Web.BlazorUI.Playground.Web.Pages.Components.Modal { public partial class BitModalDemo { private bool IsOpen = false; private readonly List<Com...
72.292683
283
0.633603
[ "MIT" ]
Md23Mh/bitframework
src/Client/Web/Playground/Bit.Client.Web.BlazorUI.Playground/Web/Pages/Components/Modal/BitModalDemo.razor.cs
8,894
C#
// MIT License // // Copyright(c) 2021 ICARUS Consulting GmbH // // 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, cop...
36.977444
144
0.582147
[ "MIT" ]
icarus-consulting/Yaapii.Atoms
src/Yaapii.Atoms/Func/ChainedFunc.cs
4,918
C#
using SkiaSharp; using System; using System.Linq; using System.Reflection; using System.Threading; using TDNPGL.Core.Debug; using TDNPGL.Core.Gameplay; using TDNPGL.Core.Gameplay.Assets; using TDNPGL.Core.Gameplay.Interfaces; using TDNPGL.Core.Graphics; using TDNPGL.Core.Graphics.Renderers; namespace TDNP...
34.088235
142
0.554098
[ "Apache-2.0" ]
TDNPGL/TDNPGL
src/TDNPGL.Core/Game.cs
5,797
C#
/* swfOP is an open source library for manipulation and examination of Macromedia Flash (SWF) ActionScript bytecode. Copyright (C) 2004 Florian Krüsch. see Licence.cs for LGPL full text! This library is free software; you can redistribute it and/or modify it under the terms of the G...
34.169811
78
0.638874
[ "MIT" ]
Acidburn0zzz/flashdevelop
External/Tools/SwfOp/ByteCode/Actions/ActionStringEquals.cs
1,762
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ColouredCoinVendingMachine.Models { public class ListingViewModel : Listing { public Int64 AmountForSale { get; set; } } }
19.916667
48
0.728033
[ "MIT" ]
bitcoinbrisbane/coloredcoinvendingmachine
src/ColouredCoinVendingMachine/Models/ListingViewModel.cs
241
C#
using System.Collections; using System; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu (fileName = "New Unit", menuName = "Cards/Create New Unit"), System.Serializable] public class UnitCard : Card { [Space (20)] [SerializeField] int power; [SerializeField] int health; [Serialize...
35.631579
98
0.638848
[ "MIT" ]
SKhorozian/TCG
TCG/Assets/_Scripts/Cards/CardTypes/UnitCard.cs
1,354
C#
/* Copyright (C) 2008-2015 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * 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 t...
41.864865
153
0.676566
[ "MIT" ]
OpenDataSpace/AlphaFS
AlphaFS/Network/Enumerations/AccessPermissions.cs
3,098
C#
using System; namespace FontAwesome { /// <summary> /// The unicode values for all FontAwesome icons. /// <para/> /// See https://fontawesome.com/cheatsheet /// <para/> /// This code was automatically generated by FA2CS (https://github.com/michaelswells/fa2cs a modified fork from https://github...
36.409836
154
0.594327
[ "MIT" ]
michaelswells/FontAwesomeAttribute
FontAwesome/FontAwesome.LayerGroup.cs
2,221
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
40.8
153
0.619748
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/DirectoryObjectCheckMemberObjectsCollectionResponse.cs
1,428
C#
using System.Linq; using BotEngine.Motor; using Sanderling.ABot.Bot.Task; using Sanderling.Motor; namespace Sanderling.ABot.Bot.Strategies { internal class ShipCheckingState : IStragegyState { private CheckShipTask task; public IBotTask GetStateActions(Bot bot) { task = new CheckShipTask(bot.MemoryMeasure...
24.827586
95
0.748611
[ "Apache-2.0" ]
Fulborg/A-Bot
src/Sanderling.ABot/Bot/Strategies/ShipCheckingState.cs
722
C#
namespace MrCoto.BeanDiscoveryExample.Commands { public class TodoObject { } }
13.142857
47
0.695652
[ "MIT" ]
mrcoto/BeanDiscovery
BeanDiscoveryExample/Commands/TodoObject.cs
94
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RateMap : MonoBehaviour { public static float Reward(HMapGen input, HMapGen wanted) {; float actStep = 1f / ConstParameters.stepSqrt; float ans = 0f; for(int i = 0; i < ConstParameters.stepSqrt; i++...
38.210227
148
0.562974
[ "MIT" ]
KrzysiekSlawik/evolutionary-height-map-approximation
Assets/Scripts/AI/RateMap.cs
6,727
C#
// Copyright © 2017-2020 Chromely Projects. All rights reserved. // Use of this source code is governed by MIT license that can be found in the LICENSE file. using System; using System.Collections.Generic; using System.Linq; namespace Chromely.Core.Network { public static class UrlSchemeCollectionExtension {...
40.132075
162
0.565115
[ "MIT", "BSD-3-Clause" ]
GerHobbelt/Chromely
src/Chromely.Core/Network/UrlSchemeCollectionExtension.cs
4,257
C#
// Stationeers.Addons (c) 2018-2021 Damian 'Erdroy' Korczowski & Contributors using System.Collections; namespace Stationeers.Addons.Modules { /// <summary> /// Basic module interface. /// </summary> internal interface IModule { /// <summary> /// Initializes the module. ...
28.894737
90
0.540984
[ "MIT" ]
Erdroy/Stationeers.Addons
Source/Stationeers.Addons/Modules/IModule.cs
1,100
C#