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; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using DwollaV2; using DwollaV2.SerializableTypes; namespace ExampleMVC.Controllers { public class HomeController : Controller { public DwollaV2.OAuth o = new OAuth(); public DwollaV2.Ac...
29.347222
189
0.516327
[ "Unlicense" ]
501st-alpha1/dwolla.net-v2
ExampleMVC/Controllers/HomeController.cs
2,115
C#
using System; using System.Diagnostics; using Elmah; using LMS.Driver.Elmah.Models; using LMS.Drivers.Core; using CultureInfo = System.Globalization.CultureInfo; using Debug = System.Diagnostics.Debug; using Error = Elmah.Error; using IDictionary = System.Collections.IDictionary; using IList = System.Collections.IList...
30.169184
131
0.529441
[ "MIT" ]
RaynaldM/Shitsuke
LMS.Driver.Elmah/LMSMemoryErrorLog.cs
9,988
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ProjectDataAccessWebApi.Models { public class PredecessorDto { public int SourceTaskId { get; set; } public string DependencyType { get; set; } } }
20.923077
50
0.702206
[ "MIT" ]
DlhSoftTeam/AngularJS-GanttChartViewSampleApp
GanttChartViewSample/ProjectDataAccessWebApi/Models/PredecessorDto.cs
274
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <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 regenerate...
61.603912
241
0.812709
[ "MIT" ]
jimbobbennett/ObjectDetector
ObjectDetector.Android/Resources/Resource.designer.cs
610,926
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("Str...
37.675676
84
0.748207
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
misomarcell/CaptchaGenerator
StringToImage/Properties/AssemblyInfo.cs
1,397
C#
using System; using System.Runtime.InteropServices; namespace Microsoft.AnalysisServices.AdomdClient.Internal.SPClient.Interfaces { internal interface ILinkFile { string Database { [return: MarshalAs(UnmanagedType.BStr)] get; } string Description { [return: MarshalAs(UnmanagedType.BStr)] get; ...
14.933333
77
0.697917
[ "MIT" ]
VitaliyMF/Unofficial.Microsoft.AnalysisServices.AdomdClientNetCore
AdomdClientNetCore/Microsoft.AnalysisServices.AdomdClient.Internal.SPClient.Interfaces/ILinkFile.cs
672
C#
#nullable enable using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; using ObjCRuntime; using UIKit; namespace Microsoft.Maui.Controls.Platform { internal partial cl...
27.555556
116
0.718318
[ "MIT" ]
CJ99/maui
src/Controls/src/Core/Platform/ModalNavigationManager/ModalNavigationManager.iOS.cs
3,474
C#
//Matt Schoen //2-18-2018 // // This software is the copyrighted material of its author, Matt Schoen, and his company Defective Studios. // It is available for sale on the Unity Asset store and is subject to their restrictions and limitations, as well as // the following: You shall not reproduce or re-distribute this ...
41.756098
119
0.774533
[ "Apache-2.0" ]
JavaFrame/GPPCC12-Game
GPPCC12-Game/Assets/UniMerge/Editor/Helpers/ComponentContainer.cs
1,714
C#
using UnityEngine; using System.Collections; //randomize object rotation when particle system is inactive (which requires "Looping" unchecked as well). public class randomParticleRotation : MonoBehaviour { public bool x = false; public bool y = false; public bool z = false; void OnEnable() { ...
27.72
106
0.59596
[ "MIT" ]
kamcio819/OrbLAG2019
Assets/ParticleSystem/Particle Ribbon by Moonflower Carnivore/Scripts/randomParticleRotation.cs
693
C#
namespace YaR.Clouds.Base.Streams { internal class UploadStream : UploadStreamHttpClient { public UploadStream(string destinationPath, Cloud cloud, long size) : base(destinationPath, cloud, size) { } } }
24.1
112
0.66805
[ "MIT" ]
ivang7/WebDavMailRuCloud
MailRuCloud/MailRuCloudApi/Base/Streams/UploadStream.cs
243
C#
conf.Column(c => c.Rating).TemplateFunction("formatRating");
60
60
0.766667
[ "MIT" ]
reinforced/Reinforced.Lattice.Samples
Reinforced.Lattice.CaseStudies.CellsTemplating/doc/template-function.cs
60
C#
using System; namespace Fumbbl.Model.Types { public class Coordinate { public int X { get; private set; } public int Y { get; private set; } public Coordinate(int x, int y) { X = x; Y = y; } public static Coordinate Create(int[] coordin...
25.04
122
0.5
[ "MIT", "Unlicense" ]
christerk/FFBUnity
Assets/Scripts/Model/Types/Coordinate.cs
1,254
C#
using System; [Serializable] public class Bicho { public enum Families { Animals, Persons, Dinosaurs, Robots, Aliens } public enum Purities { Mixed, Combined, Pure } public enum Materials { Glass, Wood, Stone, Gold, Rubi } private Families _familyTop;...
17.955224
104
0.570241
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
muddokon/CGC_team2
Assets/Scripts/Classes/Bicho.cs
1,205
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ using Microsoft.ApplicationI...
45.710526
187
0.539436
[ "MIT" ]
mgrishkov/sf-applicationinsight
VotingWeb/VotingWeb.cs
3,476
C#
using System; using System.Threading.Tasks; namespace BotsDotNet.WebExTeams.WebTest.Plugins { public class TestPlugin : IPlugin { [Command("test", Description = "Hello world")] public async Task Test(IBot bot, IMessage message, string cmd) { try { ...
22.727273
70
0.512
[ "MIT" ]
JTOne123/botsdotnet
BotsDotNet.WebExTeams.WebTest/Plugins/TestPlugin.cs
502
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace Microsoft.Data.Entity.Design.EntityDesigner.Dialogs { partial class CustomZoomDialog { /// <summary> /// Required designer variable. ...
49.738095
164
0.628171
[ "MIT" ]
dotnet/ef6tools
src/EFTools/EntityDesignEntityDesigner/CustomCode/Dialogs/CustomZoomDialog.Designer.cs
8,356
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...
28.983051
107
0.654386
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/SageMaker/Generated/Model/DeleteActionRequest.cs
1,710
C#
using System; namespace TestWebAPI { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18.1875
69
0.601375
[ "MIT" ]
RahulParmarRP/IdentityAuthServer
TestWebAPI/WeatherForecast.cs
291
C#
 namespace BinaryView_Tests; partial class Section { public static void S08Speed() { TUtils.WriteTitle("test speed"); var rnd = new Random(); var watch = new Stopwatch(); var data = new TestData(); var stream = data.Stream; var bw = data.Writer; var br ...
27.953846
74
0.465052
[ "MIT" ]
Grille98/ByteStream
BinaryView/BinaryView_Tests/Sections/08Speed.cs
3,636
C#
using Orleans; using Ray.Core.Internal; namespace Ray.IGrains.Actors { public interface IAccountFlow : IInterleaveFollowGrain, IGrainWithIntegerKey { } }
16.8
80
0.75
[ "Apache-2.0" ]
CharlesZHENG/Ray2018
Example/Ray.IGrains/Actors/IAccountFlow.cs
170
C#
using Splaak.Core.CoreSyntax; using Splaak.Core.CoreSyntax.Types; namespace Splaak.Core.AbstractSyntax.Types { /// <summary> /// Represents an integer in abstract syntax. /// </summary> /// <seealso cref="IExprExt" /> public class IntExt : IExprExt { /// <summary> /// The integ...
31
121
0.527176
[ "MIT" ]
CptWesley/Splaak
core/src/AbstractSyntax/Types/IntExt.cs
2,265
C#
using libc.serial.AtDevice; using libc.serial.Internal; namespace libc.serial.Sim900 { public class AtCDeleteTest : AtCommand { private const string cmd = "at+cmgd=?\r"; public override string ToString() { return $"Command: {cmd} - State: {State} - Response: {Responses.Con...
24.8
107
0.513825
[ "MIT" ]
saeidjoker/libc.serial
libc.serial/Sim900/AtCDeleteTest.cs
870
C#
using UnityEngine; public class FlipHandler : MonoBehaviour { private bool _isFacingRight; private Player _player; private void Awake() { _player = FindObjectOfType<Player>(); } public float GetDirection() { if (_player == null) return 0; bool currentDirection = ...
19.681818
85
0.579677
[ "MIT" ]
wladweb/PaperHero
Assets/Scripts/FlipHandler.cs
868
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json; using RestSharp; namespace ExRatesSharp { internal static class Request<T> { public static async Task<T> SendRequest(string url, Method method) { var client = new RestClient(url); ...
38.735849
121
0.609839
[ "MIT" ]
MRmlik12/ExRatesSharp
ExRatesSharp/Request.cs
2,053
C#
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0x003B9AE4)] public class STU_003B9AE4 : STUConfigVarResource { } }
22.777778
54
0.756098
[ "MIT" ]
Mike111177/OWLib
TankLib/STU/Types/STU_003B9AE4.cs
205
C#
using Lexfy.Application.Interfaces; using Lexfy.Domain.Communication; namespace Lexfy.Application.Communication.Interfaces { public interface INotificationApplication : IApplication<Notification> { } }
23.888889
74
0.795349
[ "MIT" ]
goncalves-bruno/hackathonoab2017
MVP/Project/Lexfy/Lexfy.Application/Communication/Interfaces/INotificationApplication.cs
217
C#
#if !(UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. namespace AK.Wwise { [System.Serializable] ///@brief This type represents the values of the flags used when posting an Event with a callback. pub...
35.640625
175
0.706269
[ "Apache-2.0" ]
Bellseboss-Studio/ProyectoPrincipal_JuegoDePeleas
Assets/Wwise/Deployment/API/Handwritten/Common/WwiseTypes/AkWwiseCallbackFlags.cs
4,562
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...
32.734341
150
0.579638
[ "Apache-2.0" ]
virajs/aws-sdk-net
AWSSDK_DotNet35/Amazon.Redshift/Model/Snapshot.cs
15,156
C#
using AdventOfCode2019; using System; using System.Collections.Generic; using System.Diagnostics; using Xunit; namespace AdventOfCode2019XUnitTests { public class Day02ProgramAlarmUnitTests { [Fact] public void Day02Part1_TestSolution() { List<long> values = DayDataUtilitie...
28.747967
104
0.472285
[ "MIT" ]
DavidLundKIT/AdventOfCode
AdventCode2019/Day01XUnitTests/Day02ProgramAlarmUnitTests.cs
3,538
C#
/* Copyright 2018 James Craig Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
31.375
73
0.604439
[ "Apache-2.0" ]
JaCraig/HashBrowns
HashBrowns/Hashing/BaseClasses/HashBaseClass.cs
1,759
C#
/* * Copyright (c) 2013 Calvin Rien * * Based on the JSON parser by Patrick van Bergen * http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html * * Simplified it so that it doesn't throw exceptions * and can be used in Unity iPhone with maximum code stripping. * * P...
29.83247
145
0.424535
[ "Apache-2.0" ]
ChurroLoco/swrve-unity-sdk
unity3d/Assets/Swrve/SwrveSDK/Helpers/SwrveMiniJson.cs
17,273
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Server.Migrations { public partial class MatchEvents : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "MatchEvents", ...
29.290323
71
0.520925
[ "Apache-2.0" ]
andrei-bostan/server
Server/Migrations/20190903052131_MatchEvents.cs
910
C#
namespace android.bluetooth { [global::MonoJavaBridge.JavaClass()] public sealed partial class BluetoothServerSocket : java.lang.Object, java.io.Closeable { internal new static global::MonoJavaBridge.JniGlobalHandle staticClass; static BluetoothServerSocket() { InitJNI(); } internal BluetoothServerSocke...
64.058824
326
0.811142
[ "MIT" ]
beachmiles/androidmono
jni/MonoJavaBridge/android/generated/android/bluetooth/BluetoothServerSocket.cs
3,267
C#
/* * Copyright 2012 Paul Brombosch, Ehssan Doust, David Krauss, * Fabian Müller, Yannic Noller, Hanna Schäfer, Jonas Scheurich, * Arno Schneider, Sebastian Zillessen * * This file is part of MISD-OWL, a project of the * University of Stuttgart (Institution VISUS, Studienprojekt Spring 2012). * * MISD-OWL is pu...
37.732456
170
0.59828
[ "BSD-3-Clause" ]
sebastianzillessen/MISD-OWL
Code/MISDCode/MISD.Plugins.Windows.GraphicCard/GraphicCard.cs
8,607
C#
using System.Threading.Tasks; namespace Reddit.NET.Client.Command.RateLimiting { /// <summary> /// Provides the ability to permit access to rate limited resources. /// </summary> internal interface IRateLimiter { /// <summary> /// Gets the number of available permits. /// </...
35.129032
122
0.613407
[ "MIT" ]
JedS6391/Reddit.NET
src/Reddit.NET.Client/Command/RateLimiting/IRateLimiter.cs
1,089
C#
using drewCo.MathTools; using drewCo.MathTools.Geometry; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace drewCo.MathTools.Geometry { // ============================================================================================...
33.307018
129
0.476165
[ "MIT" ]
drewCoSoftware/drewCo.Tools
drewCo.Tools/MathTools/Geometry/Rectangle.cs
7,596
C#
using funclib.Components.Core; using NUnit.Framework; namespace funclib.Tests.Components.Core { public class MapCatShould { [Test] public void MapCat_should_reverse_a_vector_with_vectors_inside() { var expected = funclib.Core.List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); ...
30.05
136
0.622296
[ "EPL-1.0" ]
brettdewoody/funclib
tests/funclib.tests/Components/Core/MapCatShould.cs
603
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...
31.358974
161
0.584628
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/GetFlowLog.cs
4,892
C#
/* JUG Java Uuid Generator * * Copyright (c) 2002,2010 Tatu Saloranta, tatu.saloranta@iki.fi, Tommi S.E. Laukkanen, tommi.s.e.laukkanen@gmail.com * * Licensed under the License specified in the file LICENSE which is * included with the source code. * You may not use this file except in compliance with the License...
42.902439
117
0.660603
[ "Apache-2.0" ]
MoysheBenRabi/setp
csharp/Examples/CloudDaemon/Jug/TimestampSynchronizer.cs
3,518
C#
/* * MIT License * * Copyright (c) 2020 Darío Kondratiuk * Modifications copyright (c) Microsoft Corporation. * * 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, in...
44.233945
133
0.605206
[ "MIT" ]
QPC-database/playwright-dotnet
src/Playwright.Tests/BrowserContextCookiesTests.cs
9,644
C#
using Lucene.Net.Analysis.Core; using Lucene.Net.Support; using NUnit.Framework; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace Lucene.Net.Analysis.Miscellaneous { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. Se...
45.255172
156
0.633648
[ "Apache-2.0" ]
b9chris/lucenenet
src/Lucene.Net.Tests.Analysis.Common/Analysis/Miscellaneous/PatternAnalyzerTest.cs
6,564
C#
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/ // // 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 // /...
31.813187
86
0.684283
[ "Apache-2.0" ]
castleproject-deprecated/Castle.Facilities.Wcf-READONLY
src/Castle.Facilities.WcfIntegration.Tests/Rest/RestServiceFixture.cs
2,897
C#
using System; using System.Collections.Generic; using ServiceStack; using ToDoBackend; namespace ToDoBackEnd { [Route("/items", "GET")] public class ViewListRequest : IReturn<List<Item>> { } [Route("/items/{id}","GET")] public class ViewItemRequest : IReturn<Item> { public string id { ...
25.704762
68
0.538348
[ "MIT" ]
kylehodgson/servicestack-on-a-mac
src/ToDoService.cs
2,699
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Razor; namespace Xunit { public abstract class ForegroundDispatcherWorkspaceTestBase : WorkspaceTestBase { ...
32.615385
111
0.764151
[ "Apache-2.0" ]
Chatina73/AspNetCore-Tooling
src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Shared/ForegroundDispatcherWorkspaceTestBase.cs
426
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Controls.Primitives; using Microsoft.UI.Xaml.Data; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Media; using Microsoft.UI...
43.59589
133
0.670071
[ "MIT" ]
EMREXS1/WindowsAppSDK-Samples
Samples/Windowing/cs-winui/SampleApp/TitlebarPage.xaml.cs
6,367
C#
using System; using System.Linq; using System.Reflection; namespace CustomHelper { partial class CustomTypeHelper<T> { internal class CustomType : Type { private readonly Type _baseType; public CustomType(Type delegatingType) { if (delegating...
31.577982
229
0.542054
[ "MIT" ]
dtaylor-530/UtilityWpfCore
UtilityWpf/CustomHelper/CustomType.cs
13,768
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 * ...
30.882353
94
0.649524
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Lighthouse/V20200324/Models/InstanceTrafficPackage.cs
1,597
C#
using System.Linq; using System.Threading.Tasks; using Nest; using Tests.Framework.MockData; namespace Profiling.Async { public class SearchAsyncOperation : AsyncProfiledOperationBase { private readonly int _iterations; private Developer _developer; public SearchAsyncOperation(int iterations = 1000) { _i...
33.126984
121
0.707714
[ "Apache-2.0" ]
RossLieberman/NEST
src/Profiling/Async/SearchAsyncOperation.cs
2,087
C#
using Microsoft.AspNetCore.Identity; namespace Oyster.Infrastructure.Identity; public class ApplicationUser : IdentityUser { }
16.25
43
0.823077
[ "MIT" ]
professionalsC/Oyster
src/Infrastructure/Identity/ApplicationUser.cs
132
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Interop; namespace WPFHotRecordingAsync { internal class D3D9Image: D3DImage { private Interop.Direct3DSurface9 surface; private D3D9Image() { } static public System...
29.010204
113
0.504045
[ "MIT" ]
Xirexel/CaptureManager
Demo/CSDemo/WPFDemo/WPFHotRecordingAsync/D3D9Image.cs
2,845
C#
using System; using System.Linq; using EnumsNET; using PoESkillTree.Engine.Computation.Builders.Values; using PoESkillTree.Engine.Computation.Common; using PoESkillTree.Engine.Computation.Common.Builders; using PoESkillTree.Engine.Computation.Common.Builders.Damage; using PoESkillTree.Engine.Computation.Common.Builder...
54.342975
142
0.731731
[ "MIT" ]
BlazesRus/PoESkillTreeBlazesRusBranch.Engine
PoESkillTree.Engine.Computation.Builders/Stats/MetaStatBuilders.cs
13,153
C#
using BusinessObject; using System.Collections.Generic; using System.Data; namespace Helpers.MasterDataManager.MasterDataBo { public class ProductSubDeptMasterDataTypeWrapper : IMasterDataTypeWrapper { public List<ProductSubDeptMaster> Data { get; set; } public void Refresh() { ...
24.9
77
0.666667
[ "MIT" ]
biplabhome/RationcardRegister
RationCardRegister/DataProvider/Helpers/MasterDataManager/MasterDataBo/ProductSubDeptMasterDataTypeWrapper.cs
500
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("Dom...
38.756757
84
0.753835
[ "MIT" ]
badpaybad/opendotnet-ecommerce-platform
DomainDrivenDesign.CorePermission/Properties/AssemblyInfo.cs
1,437
C#
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. namespace Perspex.Platform { /// <summary> /// Defines a platform-specific popup window implementation. /// </summary> public interface IP...
28.347826
104
0.601227
[ "MIT" ]
ForNeVeR/Avalonia
src/Perspex.Controls/Platform/IPopupImpl.cs
654
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.911765
114
0.675156
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/AppStream/Generated/Model/Internal/MarshallTransformations/EntitlementAttributeMarshaller.cs
2,238
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> //---...
49.642857
143
0.68705
[ "MIT" ]
jchristn/LoggingModule
LoggingModule/obj/Release/net451/LoggingModule.AssemblyInfo.cs
1,390
C#
using System.IO; using System.Linq; using Hg.SaveHistory.API; using Hg.SaveHistory.Managers; using Hg.SaveHistory.Types; using NUnit.Framework; namespace Tests.Scripts { public class EngineScriptTests { #region Members protected void CreateProfile(DataSet dataSet) { string...
38.807512
138
0.594604
[ "MIT" ]
HgAlexx/Hg.SaveHistory
Tests/Scripts/EngineScriptTests.cs
8,268
C#
using Plugin.TextToSpeech.Abstractions; using System; namespace Plugin.TextToSpeech { /// <summary> /// Cross platform TTS implemenations /// </summary> public class CrossTextToSpeech { static Lazy<ITextToSpeech> implementation = new Lazy<ITextToSpeech>(() => CreateTextToSpeech(), System.Threading.Laz...
30.95082
249
0.60911
[ "MIT" ]
smstuebe/TextToSpeechPlugin
src/TextToSpeech.Plugin/CrossTextToSpeech.cs
1,890
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.561644
120
0.627884
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/bigtable/admin/v2/google-cloud-bigtable-admin-v2-csharp/Google.Cloud.Bigtable.Admin.V2.StandaloneSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs
3,034
C#
using System.Collections.Generic; using Orchard.Localization; using Orchard.UI.Admin.Notification; using Orchard.UI.Notify; namespace Orchard.Indexing.Services { public class IndexServiceNotificationProvider: INotificationProvider { private readonly IIndexManager _indexManager; public In...
33.28
155
0.665865
[ "BSD-3-Clause" ]
BilalHasanKhan/Orchard
src/Orchard.Web/Modules/Orchard.Indexing/Services/IndexServiceNotificationProvider.cs
834
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IDefaultNetworkAclEgress), fullyQualifiedName: "aws.DefaultNetworkAclEgress")] public interface IDefaultNetworkAclEgress { [JsiiProperty(name: "action", typeJson: "{\"pr...
29.904762
120
0.497953
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IDefaultNetworkAclEgress.cs
4,396
C#
namespace CloudinaryDotNet.Actions { using System.Collections.Generic; using System.Runtime.Serialization; /// <summary> /// The action to perform on image resources using the given context. /// </summary> public enum ContextCommand { /// <summary> /// Assign the given cont...
29.456311
116
0.547792
[ "MIT" ]
jordansjones/CloudinaryDotNet
Shared/Actions/ContextParams.cs
3,036
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 ...
37.512
144
0.583707
[ "MIT" ]
KoSukeWork/BabeLua
Source/BabeLua/LuaTools/Project/LuaGeneralPropertyPage.cs
4,691
C#
using UnityEngine; namespace CamLib { public class DevBuildQuitter : MonoBehaviour { private void Update() { if (!Debug.isDebugBuild) { enabled = false; return; } TryTestQuit(); } priv...
22.314286
150
0.514725
[ "MIT" ]
Cammin/CamLib
Assets/CamLib/Runtime/Components/DevBuildQuitter.cs
783
C#
using System; using System.Net; namespace SharpAdbClient.Tests { /// <summary> /// A mock implementation of the <see cref="IAdbServer"/> class. /// </summary> internal class DummyAdbServer : IAdbServer { /// <inheritdoc/> /// <remarks> /// The value is set to a value differ...
26.786885
101
0.533048
[ "ECL-2.0", "Apache-2.0" ]
1adetbeyfendi/madb
SharpAdbClient.Tests/DummyAdbServer.cs
1,636
C#
namespace EnvironmentAssessment.Common.VimApi { public class ClusterVmComponentProtectionSettings : DynamicData { protected string _vmStorageProtectionForAPD; protected bool? _enableAPDTimeoutForHosts; protected int? _vmTerminateDelayForAPDSec; protected string _vmReactionOnAPDCleared; protected string _vmS...
17.895522
64
0.70809
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/C/ClusterVmComponentProtectionSettings.cs
1,199
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; using System.Windows.Forms.Integration; using Terraria.ModLoader.Properties; using DiffPatch; using PatchReviewer; namespace Terraria.ModLoader.Setup ...
31.729032
171
0.705775
[ "MIT" ]
Aeterna145/tModLoader
setup/Setup/PatchTask.cs
4,920
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...
33.333333
109
0.608182
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/DirectoryService/Generated/Model/CreateTrustRequest.cs
5,500
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; using EfCore.Shaman.ModelScanner; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace EfCore.Shaman.Services { public class NavigationPropertyByPropertyTypeUpdater : IColumn...
34.953488
98
0.593147
[ "MIT" ]
isukces/EfCore.Shaman
src/EfCore.Shaman/Services/NavigationPropertyByPropertyTypeUpdater.cs
3,008
C#
using AppCampus.Domain.Models.Entities; using System; namespace AppCampus.PortalApi.Models.ResponseModels { /// <summary> /// The company response model. /// </summary> public class CompanyModel { /// <summary> /// The identifier of the company. /// </summary> publi...
24.033333
58
0.531207
[ "MIT" ]
hendrikdelarey/appcampus
AppCampus.PortalApi/Models/ResponseModels/CompanyModel.cs
723
C#
using System.Collections.Generic; namespace Addresses.Models { public class Contact { private string _name; private int _number; private string _address; private int _id; private static List<Contact> _instances = new List<Contact> {}; public Contact (string name, string number, string addr...
16.096386
67
0.577844
[ "MIT" ]
hansenja24/AddressBook
Models/book.cs
1,336
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...
36.585586
163
0.635311
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/StorageGateway/Generated/Model/Internal/MarshallTransformations/DeleteBandwidthRateLimitRequestMarshaller.cs
4,061
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
84
0.746088
[ "MIT" ]
Filirien/CSharp-Fundamentals
C# Advanced/CSharp Advanced Exam 19 June 2016/01. Cubic Artillery/Properties/AssemblyInfo.cs
1,409
C#
using System.Collections.Generic; public class EventManager : ISingleton<EventManager> { #region Delegate Handlings public delegate void EventCallback(BaseEventArgs args); #endregion #region Internal Fields private Dictionary<EventID, List<EventCallback>> _eventCallbackMap = new Dictionary<EventI...
26.5
120
0.61854
[ "MIT" ]
Davidccy/Unity-ItemReceiving
ItemReceiving/Assets/Scripts/Event/EventManager.cs
1,221
C#
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Hellosam.Net.Collections.Test { public static class Util { public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> source, Random rng) ...
33.615385
88
0.561785
[ "Artistic-2.0" ]
sam0737/hellosam.net.collections
Test/Util.cs
876
C#
using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Yandex.Checkout.V3 { [JsonConverter(typeof(StringEnumConverter))] public enum SettlementType { /// <summary> /// Безналичный расчет /// </summary> [EnumMember(Value = "cas...
24.419355
59
0.577279
[ "MIT" ]
Sierra93/Yandex.Checkout.V3
Yandex.Checkout.V3/SettlementType.cs
830
C#
namespace SecondMonitor.Rating.Application.Championship.Controller { using Common.DataModel.Championship; using ViewModels.Creation; public interface IChampionshipFactory { ChampionshipDto Create(ChampionshipCreationViewModel championshipCreationViewModel); } }
30
93
0.766667
[ "MIT" ]
plkumar/SecondMonitor
Rating/Rating.Application/Championship/Controller/IChampionshipFactory.cs
302
C#
using System; namespace Newtonsoft.Json.Linq { /// <summary> /// Specifies the settings used when selecting JSON. /// </summary> public class JsonSelectSettings { #if HAVE_REGEX_TIMEOUTS /// <summary> /// Gets or sets a timeout that will be used when executing regular expressions. ...
32.586207
92
0.621164
[ "MIT" ]
AntiTenzor/Newtonsoft.Json
Src/Newtonsoft.Json/Linq/JsonSelectSettings.cs
947
C#
using System; using System.Collections; namespace Assignment_1B { public interface IPersonView { void RefreshView(); } /// <summary> /// Summary description for PersonsController. /// </summary> public class PersonsController { private ArrayList ViewList; // c...
21.217391
90
0.548156
[ "MIT" ]
kapiton09/mvc-framework-simple-app
Assignment 1B/PersonsController.cs
978
C#
namespace DelegatesDemo { public class Point { public delegate int PointComparatorDelegate(Point a, Point b); public Point(int x, int y) { this.X = x; this.Y = y; } public int X { get; } public int Y { get; } public overr...
19.238095
70
0.45297
[ "MIT" ]
Amdaris/internship-code-samples
OOP Fundamentals and C#/07-LINQDemos/DelegatesDemo/Point.cs
406
C#
/* * Copyright (c) 2018 mebiusbox software. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
31.019737
116
0.491622
[ "BSD-2-Clause" ]
mebiusbox/libpixy.net
src/libpixy.net/Controls/Diagram/Controller.cs
9,914
C#
using System.Web.Mvc; namespace Orchard.DisplayManagement.Implementation { public class DisplayHelperFactory : IDisplayHelperFactory { private readonly IDisplayManager _displayManager; private readonly IShapeFactory _shapeFactory; public DisplayHelperFactory(IDisplayManager display...
36
101
0.656085
[ "MIT" ]
AccentureRapid/OrchardCollaboration
src/Orchard/DisplayManagement/Implementation/DisplayHelperFactory.cs
758
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Native.Csharp.Sdk.Cqp.Enum { /// <summary> /// 指示 酷Q悬浮窗颜色 的枚举 /// </summary> public enum CQFloatWindowColors { /// <summary> /// 绿色 /// </summary> [De...
15.851064
36
0.558389
[ "MIT" ]
AyaseCore/receiver-meow
ReceiverMeow/Native.Csharp.Sdk/Cqp/Enum/CQFloatWindowColors.cs
817
C#
namespace Microsoft.PowerBI.Api.V2 { using Models; using System.Threading; using System.Threading.Tasks; /// <summary> /// Extension methods for Datasets. /// </summary> public static partial class DatasetsExtensions { /// <summary> /// Returns the datasets ...
43.739505
281
0.528646
[ "MIT" ]
LakithKarunaratne/PowerBI-CSharp
sdk/PowerBI.Api/Extensions/V2/DatasetsExtensions.cs
40,634
C#
using System.Management.Automation; using TietzeIO.CyAPI; using TietzeIO.CyAPI.Entities; using TietzeIO.CyShell.Cmdlets.Base; namespace TietzeIO.CyShell.Cmdlets.Cache { [Cmdlet(VerbsCommon.Get, "CylanceCachedThreats")] [OutputType(typeof(CyThreatMetaData))] public class GetCylanceCachedThreats : CyCachedM...
25.52
61
0.664577
[ "Apache-2.0" ]
BlackCyBerry/CyShell
src/TietzeIO.CyShell/Cmdlets/Cache/GetCylanceCachedThreats.cs
640
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...
44.702703
140
0.730351
[ "MIT" ]
ErrCode/Zyan.Core.LocalIPC
libraries/InterLinq/Source/InterLinq.Objects/Properties/AssemblyInfo.cs
1,657
C#
// This file is part of the DSharpPlus project. // // Copyright (c) 2015 Mike Santiago // Copyright (c) 2016-2021 DSharpPlus Contributors // // 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...
47.163848
296
0.68512
[ "MIT" ]
billyeatcookies/DSharpPlus
DSharpPlus/Clients/DiscordShardedClient.Events.cs
44,617
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.Immutable; using System.Diagnostics; using System.Thread...
39.532338
263
0.619683
[ "MIT" ]
333fred/roslyn
src/Compilers/Core/Portable/Operations/Operation.cs
7,948
C#
using System; using System.Globalization; using Bogus.DataSets; using Bogus.Extensions; using FluentAssertions; using Xunit; namespace Bogus.Tests.GitHubIssues { public class Issue132 : SeededTest { [Fact] public void should_throw_exception_on_invalid_locale_dataset() { Action a = () ...
23.615385
77
0.521924
[ "MIT" ]
danij/Bogus
Source/Bogus.Tests/GitHubIssues/Issue132.cs
3,993
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
30.607692
96
0.688364
[ "MIT" ]
TetradogOther/SharpDevelop
src/AddIns/BackendBindings/XamlBinding/XamlBinding/XamlOutlineNode.cs
3,981
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace NotePadEx { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Ap...
21.727273
65
0.596234
[ "MIT" ]
TinaSoltanian/NotePad
NotePadEx/Program.cs
480
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace WebshopHPWcore.Models { public class Accessoires { [Key] public int AccessoireId { get; set; } [Required] public string b...
21.454545
45
0.633475
[ "MIT" ]
finn522/Project-56-Webshop-Hot-Pink-Wheels
Webshop/WebshopHPWcore/Models/Accessoires.cs
474
C#
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// OuterAttachment Data Structure. /// </summary> public class OuterAttachment : AlipayObject { /// <summary> /// 资质类型:ISV_ICP_LICENCE-代理商营业执照;ICP_LICENCE-营业执照;PORTRAIT_AUTH_...
30.085714
165
0.603989
[ "MIT" ]
Msy1989/payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/OuterAttachment.cs
1,179
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Microsoft.Identity.Client.Cache.Items; using Microsoft.Identity.Client.Core; using Microsoft.Identity.Client.Internal; nam...
42.339394
143
0.560478
[ "MIT" ]
DaehyunLee/microsoft-authentication-library-for-dotnet
src/client/Microsoft.Identity.Client/Cache/CacheFallbackOperations.cs
13,974
C#
using System; using System.Collections.Generic; using System.Text; namespace Marketing.FunctionalTests { public class UserLocationRoleScenariosBase : MarketingScenarioBase { private const string EndpointLocationName = "locations"; public static class Get { public static str...
33.444444
96
0.648505
[ "MIT" ]
07101994/eShopOnContainers
src/Services/Marketing/Marketing.FunctionalTests/UserLocationRoleScenarioBase.cs
1,507
C#
// // ImageWriter.cs // // Author: // Jb Evain (jbevain@gmail.com) // // (C) 2005 Jb Evain // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without li...
37.098131
111
0.756959
[ "Apache-2.0" ]
ElPsyCongree/Obfuscator-Tool-For-Unity
obfuscator/Assets/Editor/CECIL/Mono.Cecil.Binary/ImageWriter.cs
15,878
C#
// Generated by minBND 5.1.94.90 - © github.com/Alan-FGR using System; using System.Runtime.InteropServices; using static minBND_pinvokes; public static unsafe partial class physx { public static unsafe partial class pvdsdk { } public static physx.Px1DConstraintFlagsPtr OpPipe_New(physx.Px1DConstraintFla...
44.389791
171
0.662764
[ "MIT" ]
Alan-FGR/SharpPhysX
SharpPhysX/Generated/PxConstraintDesc.cs
19,133
C#
using StormyCommerce.Core.Entities; using System.Threading.Tasks; namespace StormyCommerce.Core.Interfaces.Domain { public interface IEntityService { string ToSafeSlug(string slug, long entityId, string entityTypeId); Entity Get(long entityId, string entityTypeId); void Add(string na...
28.157895
88
0.730841
[ "Apache-2.0" ]
adnanioricce/StormyCommerce
src/StormyCommerce.Core/Interfaces/Domain/IEntityService.cs
537
C#
using System.Collections.Generic; using System.Linq; using RPC.Benchmark.Api.gRPC.CodeFirst.Contract; namespace RPC.Benchmark.Api.gRPC.CodeFirst { public class ResponseCache { private static readonly BookRepository BookRepository = new BookRepository(); private List<Book> _getAllBooks...
27.186667
85
0.539971
[ "MIT" ]
pawelkmiec/RPC.Benchmark
RPC.Benchmark.Api.gRPC.CodeFirst/ResponseCache.cs
2,041
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; namespace WebApi.Firestore.Areas.HelpPage { /// <summary> /// This class will create an object of a given type and populate it...
42.758772
261
0.553236
[ "MIT" ]
faizworks/TIO.Web.FirestoreTest
WebApi.Firestore/WebApi.Firestore/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs
19,498
C#