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
// // System.Web.Mail.MailAttachment.cs // // Author: // Lawrence Pit (loz@cable.a2000.nl) // Per Arneng (pt99par@student.bth.se) // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining...
30.733333
119
0.721909
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/System.Web/System.Web.Mail/MailAttachment.cs
2,305
C#
using UnityEngine; using System.Collections; /* * A large ring that, when passed through, loses its glow and turns on in the node. */ public class TargetRing : Source { protected virtual void OnTriggerEnter(Collider other) { if (Player.IsPlayerTrigger(other)) { if(!On) { On ...
27.789474
115
0.621212
[ "Apache-2.0", "MIT" ]
austin-j-taylor/Invested
Assets/Scripts/Environment/Circuits/TargetRing.cs
530
C#
 using System.Web.Mvc.Filters; namespace mr.cooper.mrtwit.services.Interface.Concrete { public class MrAuthenticationFilter : IAuthenticationFilter { public void OnAuthentication(AuthenticationContext filterContext) { throw new System.NotImplementedException(); } pu...
27
91
0.695473
[ "Unlicense" ]
yathrikash/mr_twit_api
mr.cooper.mrtwit.api/mr.cooper.mrtwit.services/Interface/Concrete/MrAuthenticationFilter.cs
488
C#
// ---------------------------------------------------------------------------- // <copyright file="PhotonTransformViewScaleControl.cs" company="Exit Games GmbH"> // PhotonNetwork Framework for Unity - Copyright (C) 2016 Exit Games GmbH // </copyright> // <summary> // Component to synchronize scale via PUN Pho...
32.75
126
0.606393
[ "Apache-2.0" ]
lorenchorley/StrangeIoC-Updated
Assets/xtra/Photon Unity Networking/Plugins/PhotonNetwork/Views/PhotonTransformViewScaleControl.cs
2,096
C#
namespace Models { public interface ISuperGame { string Id { get; set; } int Price { get; set; } int MaxPlayers { get; set; } int CurrentPlayers { get; set; } } }
20.7
40
0.531401
[ "MIT" ]
gellios3/Simple-Battle-Cards-Server
Assets/Scripts/Models/SuperGame/ISuperGame.cs
209
C#
using System; using System.Collections; namespace Checkers { public class TcpClientCollection : CollectionBase, IEnumerable { public int Add(TcpClient item) { return InnerList.Add(item); } public void AddRange(TcpClient[] items) { ...
21.546875
70
0.472806
[ "MIT" ]
joeyespo/checkers
Checkers/TcpClientCollection.cs
1,379
C#
// <auto-generated /> using System; using Futbol3.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; nam...
35.445493
106
0.429336
[ "MIT" ]
marcoscolombo66/6.0.0
aspnet-core/src/Futbol3.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.Designer.cs
67,632
C#
using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using System.Linq; using System; namespace my_new_app.Context { public class DataContext : DbContext { public DbSet<Card> Card { get; set; } public DbSet<Enemy> Enemy { get; set; } public DbSet<...
23.15
100
0.680346
[ "MIT" ]
j-farkas/stsclone
Controllers/Efdata.cs
1,389
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using static System.Environment; namespace MixinRefactoring { /// <summary> /// stores the document comment of a class member. /// </summary> public class Document...
35.701923
129
0.556154
[ "MIT" ]
pgenfer/mixinSharp
MixinRefactoring/MetaData/DocumentationComment.cs
3,715
C#
namespace OpenVIII.Fields.Scripts.Instructions { internal sealed class KILLBAR : JsmInstruction { #region Fields private readonly IJsmExpression _arg0; #endregion Fields #region Constructors public KILLBAR(IJsmExpression arg0) => _arg0 = arg0; public KILLBAR...
21.655172
92
0.595541
[ "MIT" ]
FlameHorizon/OpenVIII-monogame
Core/Field/JSM/Instructions/KILLBAR.cs
630
C#
/* Copyright (C) <2009-2011> <Thorben Linneweber, Jitter Physics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any...
36.75
128
0.514099
[ "Apache-2.0" ]
365082218/meteor_original_ios
Assets/ThirdParty/Jitter/Collision/Octree.cs
18,230
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WheelRotation : MonoBehaviour { public Movement movement; public float rotation; /// <summary> /// Call method to rotate wheels /// </summary> void Update () { Rotate(); } ...
23.459459
119
0.577189
[ "MIT" ]
N8STROMO/2D-RocketLeague
Assets/Scripts/WheelRotation.cs
870
C#
namespace API.DTOs { public class MemberDTO { public int Id { get; set; } public string Username { get; set; } public string PhotoUrl { get; set; } public int Age { get; set; } public string KnowAs { get; set; } public DateTime Created { get; set; } public DateTime LastActive { get; set...
29.952381
53
0.629571
[ "MIT" ]
FernandoDevBh/DattingApp
API/DTOs/MemberDTO.cs
631
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Iot.Device.Mcp25xxx.Register; using Iot.Device.Mcp25xxx.Register.Interrupt; using Xunit; namespace Iot.Device.Mcp25xxx.Tests.Register.Interrupt { public class Can...
51.721311
120
0.672583
[ "MIT" ]
gukoff/nanoFramework.IoT.Device
src/devices_generated/Mcp25xxx/tests/Register/Interrupt/CanIntFTests.cs
3,155
C#
//---------------------------------------------- // NGUI: Next-Gen UI kit // Copyright © 2011-2012 Tasharen Entertainment //---------------------------------------------- using UnityEngine; /// <summary> /// Convenience script that resizes the camera's orthographic size to match the screen size. /// This ...
29.342105
92
0.649327
[ "MIT" ]
Maeloo/BehindTheMoon
Assets/NGUI/Scripts/UI/UIOrthoCamera.cs
1,118
C#
using System; namespace Student { public class Student { public int id { get; } public string GivenName { get; set; } public string Surname { get; set; } public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } pub...
30.043478
262
0.48191
[ "MIT" ]
Kobo-coder/Assignment2
Student/Class1.cs
1,384
C#
namespace Abc.LuckyStar2.Shared.Entities { public partial class MailboxStatistics { #region --- PROPERTIES --- //public DateTime? DateTime { get { return GetAliasedValue<DateTime?>("c.birthdate"); } } #endregion #region --- STATIC METHODS --- #endregion } }
18.588235
97
0.594937
[ "MIT" ]
Kayserheimer/Dynamics-Crm-DevKit
test/v.2.10.31/Abc.LuckyStar2/Abc.LuckyStar2.Shared/Entities/MailboxStatistics.cs
318
C#
/** * Copyright 2018 IBM Corp. 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 * * Unless required by applicable law o...
36.521739
120
0.672024
[ "Apache-2.0" ]
johnpisg/dotnet-standard-sdk
src/IBM.WatsonDeveloperCloud.Conversation.v1/Model/CreateCounterexample.cs
1,680
C#
using System; using System.Linq; using OrleansDashboard; using OrleansDashboard.History; using Xunit; namespace UnitTests { public class TraceHistoryTests { DateTime startTime = DateTime.UtcNow; int seconds = 0; void Add(ITraceHistory history, int count) { for (var...
32.063492
120
0.561881
[ "MIT" ]
carloslazo/OrleansDashboard
UnitTests/HistoryTests.cs
4,042
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...
30.88
113
0.632772
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/V20191001/Outputs/ManagedRuleOverrideResponse.cs
1,544
C#
using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Wi...
23.438596
79
0.604042
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/wpf/src/Framework/System/Windows/Automation/Peers/GroupBoxAutomationPeer.cs
1,336
C#
using System.Threading; using System.Threading.Tasks; namespace Bewit { internal class DefaultNonceRepository : INonceRepository { private static readonly ValueTask EmptyTask = new ValueTask(); private static readonly ValueTask<Token> EmptyToken = new ValueTask<Token>(Token.Empty); pub...
27.5
96
0.684298
[ "MIT" ]
SwissLife-OSS/bewit
src/Core/DefaultNonceRepository.cs
605
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Aop.Api.Domain { /// <summary> /// HitDialogue Data Structure. /// </summary> [Serializable] public class HitDialogue : AopObject { /// <summary> /// 命中结果高亮 /// </summary> [...
21.777778
59
0.557823
[ "Apache-2.0" ]
alipay/alipay-sdk-net
AlipaySDKNet.Standard/Domain/HitDialogue.cs
616
C#
// The MIT License (MIT) // // Copyright (c) 2015 Microsoft // // 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...
35.705882
95
0.612026
[ "MIT" ]
Bhaskers-Blu-Org2/MetricSystem
unittest/Utilities/HistogramExtensionMethodTests.cs
6,072
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Transactions; using Dapper; using Microsoft.AspNet.Identity; using iRocks.DataLayer.Helpers; namespace iRocks.Dat...
40.724294
216
0.513138
[ "MIT" ]
pyDez/SocialFootprintAPI
Data/iRocks.DataLayer/DapperRepositories/UserDapperRepository.cs
36,046
C#
// <copyright file="Milu0.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // // Copyright (c) 2009-2013 Math.NET // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this softw...
35.624521
120
0.491826
[ "MIT" ]
AlexHild/mathnet-numerics
src/Numerics/LinearAlgebra/Double/Solvers/MILU0Preconditioner.cs
9,300
C#
using Kloc.Common.Excepting; using System; using System.Collections.Generic; namespace Kloc.Common.Domain { /// <summary> /// Base class for an <see cref="IAggregateRoot"/> implementation. /// </summary> public abstract class AggregateRootBase : AggregateRootBase<Guid>, IAggregateRoot<Guid> { ...
29.670732
91
0.531032
[ "MIT" ]
xKloc/Common
Domain/AggregateRootBase.cs
2,435
C#
// Lucene version compatibility level 4.8.1 using Lucene.Net.Analysis.Core; using Lucene.Net.Analysis.Miscellaneous; using Lucene.Net.Analysis.Standard; using Lucene.Net.Analysis.Util; using Lucene.Net.Util; using System; using System.IO; namespace Lucene.Net.Analysis.Bg { /* * Licensed to the Apache Softwar...
43.560606
174
0.627304
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Analysis.Common/Analysis/Bg/BulgarianAnalyzer.cs
5,752
C#
using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using Terraria.Utilities; namespace HavenMod.Items.Consumables { public class KnightCres...
27.828571
71
0.589836
[ "MIT" ]
Fortanono/HavenMod
Items/Consumables/KnightCrest.cs
1,948
C#
using UIKit; namespace ChipmunkDemo.iOS { public class Application { // This is the main entry point of the application. private static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify ...
27.4
91
0.608273
[ "MIT" ]
codefoco/ChipmunkBinding
ChipmunkDemo.iOS/Main.cs
413
C#
using System.Reflection; 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("AWSSDK.CloudFront")] [assembly: AssemblyDe...
51.40625
365
0.758055
[ "Apache-2.0" ]
tmlife485/myawskendra
sdk/code-analysis/ServiceAnalysis/CloudFront/Properties/AssemblyInfo.cs
1,645
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Localization; using Newtonsoft.Json.Linq; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display; using OrchardCore.ContentManagement.Metadata; u...
36.33642
137
0.61004
[ "BSD-3-Clause" ]
861191244/OrchardCore
src/OrchardCore.Modules/OrchardCore.Taxonomies/Controllers/AdminController.cs
11,773
C#
/* * MailSlurp API * * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) -...
29.473214
472
0.590427
[ "MIT" ]
mailslurp/mailslurp-client-csharp-netstandard-2x
src/mailslurp_netstandard_2x.Test/Model/DomainPreviewTests.cs
3,301
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// <summary>Azure specific reprotect input.</summary> public partial class HyperVReplicaAzureReprotectInput { /// <summary> //...
84.079646
303
0.705715
[ "MIT" ]
Click4PV/azure-powershell
src/Migrate/generated/api/Models/Api20180110/HyperVReplicaAzureReprotectInput.json.cs
9,389
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
40.477273
128
0.592925
[ "MIT" ]
patrickCode/EntityFramework
EF6/EF6/MarketPlace.ExistingDb/Shipper.cs
1,781
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Benday.EasyAuthDemo.Api.ServiceLayers; using Benday.EasyAuthDemo.Api.DomainModels; using Benday.EasyAuthDemo.WebUi....
31.111455
111
0.492387
[ "MIT" ]
benday-inc/azure-app-service-security
dotnet5.0/Benday.EasyAuthDemo/src/Benday.EasyAuthDemo.WebUi/Controllers/UserClaimController.generated.cs
10,049
C#
namespace OpenVIII.Fields.Scripts.Instructions { internal sealed class CMOVE : JsmInstruction { #region Fields private readonly IJsmExpression _arg0; private readonly IJsmExpression _arg1; private readonly IJsmExpression _arg2; private readonly IJsmExpression _arg3; ...
27.170732
168
0.568223
[ "MIT" ]
FlameHorizon/OpenVIII-monogame
Core/Field/JSM/Instructions/CMOVE.cs
1,116
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Blob; using Vt.Platform.Domain.Services; namespace Vt.Platform.AzureDataTables.BlobStorage { public class StaticSiteBlobStorageService : IStat...
37.921053
110
0.714781
[ "MIT" ]
UC-MSIS-WEBDEV/volteer
Vt.Platform.AzureDataTables/BlobStorage/StaticSiteBlobStorageService.cs
1,443
C#
#region License // FreeBSD License // Copyright (c) 2010 - 2013, Andrew Trevarrow and Derek Wilson // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: // // Redistributions of source code m...
48.614035
206
0.708409
[ "BSD-2-Clause" ]
derekwilson/PodcastUtilities
PodcastUtilities.Common.Tests/Feeds/EpisodeDownloaderTests/WebClientEvent/DownloadFileCompleted/WhenTheDownloaderReportsANestedError.cs
2,773
C#
using System; using System.Collections.Generic; using ExBancoDeDados.Repositorio; using ExBancoDeDados.Utils; using ExBancoDeDados.ViewModel; using Spire.Doc; using Spire.Doc.Documents; namespace ExBancoDeDados.ViewController { public class UsuarioViewController { static UsuarioRepositorio usuarioReposito...
38.294118
194
0.56682
[ "MIT" ]
leozitop/CShar
ExBancoDeDados/ViewController/UsuarioViewController.cs
3,916
C#
using UnityEngine; namespace Libraries.Standard_Assets.Effects.ImageEffects.Scripts { [ExecuteInEditMode] [RequireComponent(typeof(Camera))] [AddComponentMenu("Image Effects/Camera/Depth of Field (Lens Blur, Scatter, DX11)")] public class DepthOfField : PostEffectsBase { public bool visuali...
44.731235
147
0.558839
[ "BSD-2-Clause" ]
MrJiggers/osm-architect
Assets/Libraries/Standard Assets/Effects/ImageEffects/Scripts/DepthOfField.cs
18,474
C#
using System.Reflection; 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("AWSSDK.IoT1ClickDevicesService")] [assembl...
56.53125
519
0.761194
[ "Apache-2.0" ]
lukeenterprise/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/IoT1ClickDevicesService/Properties/AssemblyInfo.cs
1,809
C#
using System.Collections.Generic; using System.Text; namespace BTDB.EventStoreLayer; public class HashSetWithDescriptor<T> : HashSet<T>, IKnowDescriptor { readonly ITypeDescriptor _descriptor; public HashSetWithDescriptor(int capacity, ITypeDescriptor descriptor) : base(capacity) { _descr...
22.085714
74
0.601552
[ "MIT" ]
Jumik/BTDB
BTDB/EventStoreLayer/HashSetWithDescriptor.cs
773
C#
using UnityEditor; using UnityEngine; namespace ScriptableObjects.ScriptableArchitecture.Framework.Utility.Editor { public static class MeshSaverEditor { #region Public public static void SaveMesh( Mesh mesh, string name, bool makeNewInstance, bool optimizeMesh ) { string path = EditorUtility.Sav...
26.207547
106
0.642909
[ "MIT" ]
Maximilian-Winter/CSCS-Unity
Assets/Scripts/ScriptableObjects/ScriptableArchitecture/Framework/Utility/Editor/MeshSaverEditor.cs
1,389
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("Bot...
37.675676
84
0.748207
[ "Unlicense" ]
hbbq/BotCoin
src/BotCoinEvents/Properties/AssemblyInfo.cs
1,397
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Otter { /// <summary> /// Class that is used for debug input. Wraps the Input class but only works when debug input /// is enabled. /// </summary> public class DebugInput { #region Static Field...
24.239583
97
0.518694
[ "MIT", "Unlicense" ]
holymoo/OtterSpaceInvaders
Src/Otter/Utility/DebugInput.cs
2,329
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...
29.093023
81
0.639488
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/CustomerInsights/Latest/Outputs/AssignmentPrincipalResponse.cs
1,251
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Charlotte { /// <summary> /// Confused by ConfuserElsa /// </summary> public abstract class OverwriteLocalContinentalService { /// <summary> /// Confused by ConfuserElsa /// </summary> public int ModifyInitial...
28.25
323
0.748167
[ "MIT" ]
soleil-taruto/Hatena
a20201226/Confused_02/tmpsol/Elsa20200001/SubmitUnableIodineModifier.cs
7,912
C#
namespace WildFarm.Models.Foods { public class Meat : Food { public Meat(int quantity) : base(quantity) { } } }
16.1
34
0.496894
[ "MIT" ]
SonicTheCat/CSharp-OOP-Basics
12.Polymorphism - Exercise/03.WildFarm/Models/Foods/Meat.cs
163
C#
using holonsoft.FastProtocolConverter.Abstractions.Enums; using System.Reflection; namespace holonsoft.FastProtocolConverter.Abstractions.Delegates { /// <summary> /// Defines a delegate for handling range check violations /// hint: you can define ranges via attribute for a field in a POCO /// </summary> public...
41.272727
139
0.817181
[ "Apache-2.0" ]
holonsoft/FastProtocolConverter
holonsoft.FastProtocolConverter.Abstractions/Delegates/OnRangeViolationDelegate.cs
456
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Weapon : BoardPiece { // Author - Daniel Kean /// <summary> /// This represents all the weapons that will be present /// on the game board. /// /// Author - Daniel Kean /// </summary> #regio...
20.571429
71
0.659722
[ "MIT" ]
JellyMoonGames/clue
Clue/Assets/Scripts/Weapon.cs
434
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.MachineLearningServices.Models { public partial class AKSReplicaStatus { internal static AK...
37.602941
169
0.513883
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/src/Generated/Models/AKSReplicaStatus.Serialization.cs
2,557
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...
46.298387
178
0.674447
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Budgets/Generated/Model/NotFoundException.cs
5,743
C#
namespace NStuff.RasterGraphics { /// <summary> /// Lists the image formats. /// </summary> public enum RasterImageFormat { /// <summary> /// Pixels are in the red format. /// </summary> GreyscaleAlpha, /// <summary> /// Pixels are in the red-alpha f...
21.206897
54
0.497561
[ "Apache-2.0" ]
n-stuff/window-system
src/RasterGraphics/RasterImageFormat.cs
617
C#
#nullable enable using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace DotVVM.Framework.ResourceManagement { public class ReflectionAssemblyJsonConverter : JsonConverter { public override bool CanConve...
30.733333
124
0.684382
[ "Apache-2.0" ]
AMBULATUR/dotvvm
src/DotVVM.Framework/ResourceManagement/ReflectionAssemblyJsonConverter.cs
924
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-generate...
44.5
178
0.599719
[ "MIT" ]
saturdaymp/Migrator
Source/MigratorGUI/Properties/Resources.Designer.cs
2,850
C#
namespace Core.UnitTests { using Crest.Core; using FluentAssertions; using Xunit; public class PutAttributeTests { public sealed class CanReadBody : PutAttributeTests { [Fact] public void ShouldReturnTrue() { var attribute = new P...
24.422222
70
0.528662
[ "MIT" ]
samcragg/Crest
test/Core.UnitTests/PutAttributeTests.cs
1,101
C#
using MediatR; using System; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using NoDaysOffApp.Features.Core; namespace NoDaysOffApp.Features.Tiles { [Authorize] [RoutePrefix("api/tiles")] public class TileController : BaseApiController { ...
33.73913
123
0.680412
[ "MIT" ]
QuinntyneBrown/no-days-off-app
Features/Tiles/TilesController.cs
1,552
C#
//////////////////////////////// // // Copyright 2021 Battelle Energy Alliance, LLC // // //////////////////////////////// using System; using System.Collections.Generic; using System.ComponentModel; using System.Net.Http.Headers; namespace CSETWeb_Api.Areas.HelpPage { /// <summary> /// This is used t...
36.513812
175
0.563928
[ "MIT" ]
PinkDev1/cset
CSETWebApi/CSETWeb_Api/CSETWeb_Api/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs
6,609
C#
using System.Web.Http.ExceptionHandling; using NLog; namespace UnityPoc.Infrastructure { public class NLogExceptionLogger : ExceptionLogger { private readonly ILogger _logger; public NLogExceptionLogger(ILogger logger) { _logger = logger; } public override...
22.45
64
0.643653
[ "MIT" ]
tonysneed/Demo.UnityPocWithNLog
UnityPoc/Infrastructure/NLogExceptionLogger.cs
451
C#
using System; namespace FluentAssertions.Formatting; public class MaxLinesExceededException : Exception { public MaxLinesExceededException(string message, Exception innerException) : base(message, innerException) { } public MaxLinesExceededException(string message) : base(message) ...
18.285714
78
0.700521
[ "Apache-2.0" ]
IT-VBFK/fluentassertions
Src/FluentAssertions/Formatting/MaxLinesExceededException.cs
386
C#
/* * Intersight REST API * * This is Intersight REST API * * OpenAPI spec version: 0.1.0-559 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using Syst...
43.657459
238
0.606935
[ "Apache-2.0" ]
CiscoUcs/intersight-powershell
csharp/swaggerClient/src/intersight/Model/ConnectorAuthMessage.cs
7,902
C#
using System; using System.IO; using System.Collections.Generic; using Commons; namespace ATL.benchmark { public class FileFinder { static ICollection<Format> supportedFormats; static FileFinder() { supportedFormats = AudioData.AudioDataIOFactory.GetInstance().getFormats()...
39.466102
411
0.50977
[ "MIT" ]
Piorosen/atldotnet
ATL.benchmark/Information/FileFinder.cs
4,659
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Abp.Authorization.Users; using Abp.Domain.Services; using Abp.IdentityFramework; using Abp.Runtime.Session; using Abp.UI; using ThinkSites.Aut...
30.610619
157
0.602775
[ "MIT" ]
ThinkAM/ThinkSites
aspnet-core/src/ThinkSites.Core/Authorization/Users/UserRegistrationManager.cs
3,461
C#
namespace Unity.VisualScripting.Community { [Editor(typeof(BindFuncNode))] public sealed class BindFuncNodeEditor : BindDelegateNodeEditor<BindFuncNode, IFunc> { public BindFuncNodeEditor(Metadata metadata) : base(metadata) { } protected override string DefaultName => "Bind...
27.5
88
0.684848
[ "MIT" ]
Fitz-YM/Bolt.Addons.Community
Editor/Fundamentals/Editors/Delegates/BindFuncNodeEditor.cs
332
C#
using System.Linq; using UnityEngine; using UnityEngine.Experimental.UIElements; namespace UnityEditor.PackageManager.UI { #if !UNITY_2018_3_OR_NEWER internal class PackageManangerToolbarFactory : UxmlFactory<PackageManagerToolbar> { protected override PackageManagerToolbar DoCreate(IUxmlAttributes ba...
39.310976
187
0.629285
[ "MIT" ]
qcoronia/a-cat-in-space-game
src/Library/PackageCache/com.unity.package-manager-ui@2.0.0-preview.7/Editor/Sources/UI/PackageManagerToolbar.cs
6,451
C#
using System.Threading.Tasks; using Altinn.Platform.Storage.Interface.Models; namespace Altinn.Platform.Authorization.Repositories.Interface { /// <summary> /// Interface for operations on instance information /// </summary> public interface IPolicyInformationRepository { /// <summary> ...
37.028571
100
0.635031
[ "BSD-3-Clause" ]
Altinn/altinn-studio
src/development/LocalTest/Services/Authorization/Interface/IPolicyInformationRepository.cs
1,296
C#
using System; using System.Linq; using System.Linq.Expressions; using System.Web.Mvc; using Agridea.Web.Mvc.Grid; using System.Collections.Generic; namespace Agridea.Web.Mvc { public static class GridHelper { public static Grid<T> Grid<T>(this HtmlHelper helper) { return new Grid<T...
37.525
161
0.646236
[ "MIT" ]
ni11c/AkkaJobs
AgrideaCore/Web/Mvc/Grid/Fluent/GridHelper.cs
1,503
C#
using System.Text.RegularExpressions; namespace CoreRCON.Parsers.Standard { public class PlayerDisconnected : IParseable { public string Reason { get; set; } public Player Player { get; set; } } public class PlayerDisconnectedParser : DefaultParser<PlayerDisconnected> { pu...
32.4
137
0.611111
[ "MIT" ]
Challengermode/CoreRcon
src/CoreRCON/Parsers/Standard/PlayerDisconnected.cs
812
C#
#region using System.Xml.Linq; #endregion namespace AntiShaun { public interface IXDocumentParserService { XDocument Parse(string text); } public class XDocumentParserService : IXDocumentParserService { public XDocument Parse(string text) { return XDocument.Parse(text); } } }
14.190476
62
0.748322
[ "Apache-2.0" ]
EventBooking/AntiShaun
AntiShaun/IXDocumentParserService.cs
300
C#
using System.Collections.Generic; using Armory.Shared.Domain.Bus.Query; namespace Armory.Troopers.Application.SearchAll { public class SearchAllTroopersQuery : Query<IEnumerable<TroopResponse>> { } }
21.3
75
0.774648
[ "MIT" ]
cantte/Armory.Api
src/Armory/Troopers/Application/SearchAll/SearchAllTroopersQuery.cs
213
C#
using System; using System.Diagnostics; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpressions; using Umbraco.Core.Models.EntityBase; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Strings; namespace Umbraco.Core.Models { /// <summary> /// Defin...
44.284738
248
0.60357
[ "MIT" ]
AzzA-D/Umbraco-CMS
src/Umbraco.Core/Models/PropertyType.cs
19,443
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace FlowrouteApi.DataModels { [Table("Role")] public class Role { [Key, Required] ...
22.727273
69
0.652
[ "MIT" ]
mws-dev/flowroute-api-email-text
src/FlowrouteApi/DataModels/Role.cs
502
C#
using BooksApp.Services; using BooksApp.Views; using BooksLib.Services; using Framework.Services; using Framework.ViewModels; using System; using System.Collections.Generic; using Windows.UI.Xaml.Controls; namespace BooksApp.ViewModels { public class MainPageViewModel : ViewModelBase { private Diction...
36.313725
143
0.665767
[ "MIT" ]
Bazzaware/ProfessionalCSharp7
Patterns/BooksSample/BooksApp/ViewModels/MainPageViewModel.cs
1,854
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
44.33871
156
0.641688
[ "MIT" ]
andrueastman/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/model/TeleconferenceDeviceVideoQuality.cs
2,749
C#
using AutoMapper; using Checklist.Application.Common.Exceptions; using Checklist.Application.Common.Interfaces; using Checklist.Domain.Entities; using MediatR; namespace Checklist.Application.UseCases.Items.Commands; public class UpdateItemCommand : IRequest<Item> { public int Id { get; set; } public string? ...
30.264706
98
0.735666
[ "MIT" ]
emmysteven/checklist
src/Application/UseCases/Items/Commands/UpdateItemCommand.cs
1,029
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
27.724138
117
0.652985
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Compute/V20160330/Inputs/ApiEntityReferenceArgs.cs
804
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.Net.WebSockets; using System.Security.Principal; using System.Threading.Tasks; namespace System.Net { ...
30.875862
176
0.569131
[ "MIT" ]
FrancisFYK/corefx
src/System.Net.HttpListener/src/System/Net/Unix/HttpListenerContext.Unix.cs
4,477
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/ShObjIdl_core.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using...
38.352941
145
0.713701
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/ShObjIdl_core/ISharingConfigurationManagerTests.cs
1,958
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...
25.3125
88
0.635802
[ "ECL-2.0", "Apache-2.0" ]
nvpnathan/pulumi-nsxt
sdk/dotnet/Inputs/PolicyGatewayPrefixListPrefixGetArgs.cs
810
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 Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.UnitTests; namespace System.Runtime.Analyzers.UnitTests { public class SpecifyStri...
34.95
160
0.736767
[ "Apache-2.0" ]
jcouv/roslyn-analyzers
src/System.Runtime.Analyzers/UnitTests/SpecifyStringComparisonTests.cs
699
C#
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MasterChefInfo { /// <summary> /// Classe du chef de section /// </summary> class SectionChef : ISubject { List<IObserver> observers; ...
22.732143
67
0.564022
[ "MIT" ]
HugoLA1/Projet-programmation-systeme
MasterChefInfo/MasterChefInfo/Model/Kitchen/SectionChef.cs
1,275
C#
using System.Data; using System.Data.Common; namespace FluentData.Providers.Common { internal class ConnectionFactory { public static IDbConnection CreateConnection(string providerName, string connectionString) { var factory = DbProviderFactories.GetFactory(providerName); var connection = factory.CreateC...
23.055556
92
0.785542
[ "MIT" ]
shuaiagain/orm-fluentdata
FluentData/sourceCode/sourceCode/Source/Main/FluentData/Providers/Common/ConnectionFactory.cs
417
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; u...
47.101695
167
0.638839
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs
8,339
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityStandardAssets.CrossPlatformInput; using RedRunner.Utilities; using System; namespace RedRunner.Characters { public class RedCharacter : Character { public override event DeadHandler OnDead; ...
24.257576
104
0.622423
[ "MIT" ]
jlfurtado/RedRunner
Assets/Scripts/RedRunner/Characters/RedCharacter.cs
3,204
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace NetOffice.DeveloperToolbox.ToolboxControls.OfficeUI { /// <summary> /// A wait panel while office application is cre...
27.084906
132
0.575061
[ "MIT" ]
Engineerumair/NetOffice
Toolbox/Toolbox/ToolboxControls/OfficeUI/WaitControl.cs
2,873
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; [RequireComponent(typeof(DotCollision))] public class Egg : MonoBehaviour { public float speed = 0f; public DotCollision col; private Material material; public float xv = 0; public float gv = 0; public int anim...
29.391304
105
0.470414
[ "MIT" ]
ebicochineal/E512TileMap
E512TileMap/Assets/E512TileMap/Script/Demo/Egg.cs
4,058
C#
#if MIGRATION namespace System.Windows #else namespace Windows.UI.Xaml #endif { public enum FontFraction { /// <summary>Default style is used.</summary> Normal, /// <summary>Stacked fraction style is used.</summary> Stacked, /// <summary>Slashed fraction style is used.</summary> Slashed } }
18.117647
56
0.707792
[ "MIT" ]
Barjonp/OpenSilver
src/Runtime/Runtime/System.Windows/WORKINPROGRESS/FontFraction.cs
310
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.Collections; using System.Xml; namespace Microsoft.Build.BuildEngine.Shared { /// <summary> /// Contains the names of the known elements in the XM...
43.353535
124
0.621855
[ "MIT" ]
0xced/msbuild
src/Deprecated/Engine/Shared/XMakeElements.cs
4,292
C#
namespace Dalmatian.Web.ViewModels.Persons { using System.Collections.Generic; using Dalmatian.Data.Models; using Dalmatian.Data.Models.Enum; using Dalmatian.Services.Mapping; public class PersonViewModel : IMapFrom<Person> { public int Id { get; set; } public string Firstnam...
22.142857
51
0.6
[ "MIT" ]
angelneychev/Dalmatian
src/Web/Dalmatian.Web.ViewModels/Persons/PersonViewModel.cs
932
C#
/* Copyright 2013-present MongoDB 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 * * Unless required by applicable law or agreed to in wr...
39.559006
142
0.609044
[ "Apache-2.0" ]
591094733/mongo-csharp-driver
tests/MongoDB.Driver.Core.Tests/Core/WireProtocol/Messages/Encoders/JsonEncoders/UpdateMessageJsonEncoderTests.cs
6,371
C#
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Net; using System.Reflection; using System.Text; using System.Linq; using Newtonsoft.Json; using SevenShadow.Core.Entities.News; namespace SevenShadow.Benzinga { public class BenzingaHelper { private const str...
39.35
150
0.504288
[ "MIT" ]
sevenshadow/sevenshadow-benzinga
BenzingaHelper.cs
6,298
C#
/* * Copyright (c) 2019-2022, Sjofn LLC * All rights reserved. * * - Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of c...
33.04878
84
0.6631
[ "BSD-3-Clause" ]
adversinc/libremetaverse
LibreMetaverse.LslTools/Tools/ReUStr.cs
2,712
C#
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします // </auto-generated> //--------------------------------------------------...
37.591549
180
0.586737
[ "MIT" ]
miyuki-31270/SimpleCalculator
Calculator_01/Calculator_01/Properties/Resources.Designer.cs
3,293
C#
using Newtonsoft.Json; using Oxide.Core; using Oxide.Core.Configuration; using Oxide.Core.Libraries.Covalence; using Oxide.Core.Plugins; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Threading.Tasks; using System; using System.IO; using System.Linq; using UnityEngi...
33.51489
171
0.650492
[ "MIT" ]
john-clark/rust-oxide-umod
oxide/plugins/rust/LightsOn.cs
34,889
C#
using Farming.WpfClient.Models; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; namespace Farming.WpfClient.Controls { public abstract class PageView : UserControl { public static readonly DependencyProperty ActionContentProperty = ...
27.189655
119
0.543437
[ "MIT" ]
holydk/Farming
Farming/Farming.WpfClient/Controls/PageView.cs
1,579
C#
using System; using System.Windows.Forms; using Microsoft.Win32.TaskScheduler; using System.IO; using Tulpep.NotificationWindow; namespace shshPatri0tS { public partial class frmAutosaves : Form { public static string taskName = "shsh Patri0tS AutoChecking"; private string taskE...
29.823009
156
0.547774
[ "MIT" ]
Xerotherm1c/JailbreakTools
shshPatri0tS/src/frmAutosaves.cs
3,372
C#
using System; using System.Collections.Generic; using System.Linq; namespace _02._Integer_Insertion { class Program { static void Main(string[] args) { List<int> nums = Console.ReadLine().Split().Select(int.Parse).ToList(); string num = Console.ReadLine(); ...
21.703704
83
0.513652
[ "MIT" ]
Svetloslav15/Softuni-Programming-Fundamentals
Extended Lists More Exercises/02. Integer Insertion/Program.cs
588
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Amazon.Lambda.Core; // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class. [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))] namespac...
26.785714
99
0.645333
[ "Apache-2.0" ]
AbubakerB/aws-extensions-for-dotnet-cli
testapps/FlattenDependencyTestProjects/NpgsqlExample/Function.cs
750
C#
using CarDealer.Models; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore; using System; namespace CarDealer.Data { public class CarDealerContext : DbContext { public CarDealerContext(DbContextOptions options) : base(options) { } public CarDea...
28.069767
127
0.584093
[ "MIT" ]
RosenDev/Softuni-Problems
CarDealer/Data/CarDealerContext.cs
1,209
C#