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 UnityEngine; using System.Collections; public class FpsHudStats : MonoBehaviour { [SerializeField] Transform healthIcon; [SerializeField] Transform shieldIcon; void Start() { healthIcon = transform.Find("HealthIcon"); shieldIcon = transform.Find("ShieldIcon"); /...
24.761905
89
0.694231
[ "Unlicense", "MIT" ]
Amitkapadi/unityassets
FpsHud3D/Assets/FpsHud/Scripts/FpsHudStats.cs
520
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using HRM.BOL; using HRM.DAL; namespace HRM.BAL { public class TerminationBAL { public int Save(TerminationBOL objTerm) { TerminationDAL objDAL = new TerminationDAL(); ...
26.55102
67
0.581091
[ "MIT" ]
jencyraj/HumanResourceManagementProject
src/HRM.BAL/TerminationBAL.cs
1,303
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace lindaniDS.Models { public class Mail { public int MailID { get; set; } public string From { get; set; } public string To { get; set; } public string Subject { get; set; } publ...
21
43
0.610644
[ "Unlicense" ]
LawrenceAmo/LindaniDS
Models/Mail.cs
359
C#
/* Copyright 2006 - 2010 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
28.361186
96
0.668884
[ "Apache-2.0" ]
Erikhht/DeveloperToolsForUPnP-Tools
DeveloperToolsForUPnP/Global/UPNPAVCDSML/PropertyDate.cs
10,522
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.Immutable; using System.Diagnostics; using AnalyzerOptions = System.Collections.Immutable....
34.4
101
0.667442
[ "MIT" ]
belav/roslyn
src/Compilers/Core/Portable/CommandLine/AnalyzerConfigOptionsResult.cs
1,722
C#
using System.Collections.Generic; using Xamarin.Forms; using Xamarin.Forms.Internals; using Xamarin.Forms.Maps; namespace CustomRenderer { public class CustomMap : Map { public static readonly BindableProperty CustomPinsProperty = BindableProperty.Create(nameof(CustomPins), ...
29.944444
114
0.58256
[ "Apache-2.0" ]
fperez2511/xamarin-forms-samples
CustomRenderers/Map/Pin/CustomRenderer/CustomMap.cs
1,080
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...
35.543689
155
0.637804
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/WAFV2/Generated/Model/Internal/MarshallTransformations/GetWebACLForResourceRequestMarshaller.cs
3,661
C#
using Lunr; using Xunit; namespace LunrCoreTests { public class TrimmerTests { [Theory] [InlineData("hello", "hello")] // word [InlineData("hello.", "hello")] // full stop [InlineData("it's", "it's")] // inner apostrophe [InlineData("james'", "james")] // trailing apost...
28.772727
62
0.554502
[ "MIT" ]
SVemulapalli/lunr-core
LunrCoreTests/TrimmerTests.cs
635
C#
using BlazorDesk.AppModels; using BlazorDesk.AppModels.View; using BlazorDesk.Data.Models.Requests; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; namespace BlazorDesk.Server.Controllers { [ApiController] [Route("api/[controller]")] public class CategoriesController :...
26.2
100
0.547328
[ "MIT" ]
LyuboslavKrastev/BlazorDesk
BlazorDesk/Server/Controllers/CategoriesController.cs
1,312
C#
using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using Ikngtty.MyLibrary.Collections; using Ikngtty.MyLibrary.Utility; namespace Ikngtty.MyLibraryTest.Utility { [TestFixture] public class CollectionUtilityTest { [Test] public void ToHashSetTest() { { string[] s...
29.936842
95
0.631857
[ "MIT" ]
ikngtty/MyLibrary
src/MyLibraryTest/Utility/CollectionUtilityTest.cs
2,846
C#
using System; using System.Collections; // ReSharper disable once CheckNamespace namespace Cosmos.Collections { public static partial class CollectionExtensions { /// <summary> /// Binary Search /// </summary> /// <param name="array"></param> /// <param name="value"></pa...
35.137255
113
0.554129
[ "MIT" ]
alexinea/Cosmos.Standard
src/Cosmos.Extensions.Collections/Cosmos/Collections/Extensions/Array/Find/Extensions.Collections.A3y.Find.BinarySearch.cs
1,792
C#
// semmle-extractor-options: /r:System.Collections.Specialized.dll /r:System.Collections.dll /r:System.Linq.dll using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; #nullable enable public class Collections { void M1(string[] args) { ...
22.46729
111
0.450915
[ "MIT" ]
AlexDenisov/codeql
csharp/ql/test/library-tests/controlflow/guards/Collections.cs
2,404
C#
using System; using System.Text; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using Amazon.DynamoDBv2; using Amazon.DynamoDBv2.Model; using Amazon.DynamoDBv2.DocumentModel; using System.IO; using Amazon.DynamoDBv2.DataModel; using Xunit; namespace Amazon.DNXCore.IntegrationTest...
44.772822
181
0.55812
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/test/CoreCLR/IntegrationTests/IntegrationTests/DynamoDB/DataModelTests.cs
43,163
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.145631
177
0.645716
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Macie2/Generated/Model/Internal/MarshallTransformations/UpdateOrganizationConfigurationRequestMarshaller.cs
3,723
C#
#pragma checksum "C:\Users\ureta\OneDrive\Documentos\dev\C#\TaDandoOnda\Views\_ViewStart.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7091c65830b0329e613be026ede8a57552863778" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeo...
47.830508
181
0.750177
[ "MIT" ]
iuriaguiarr/SurfsUp
obj/Debug/netcoreapp3.1/Razor/Views/_ViewStart.cshtml.g.cs
2,822
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
37.952381
153
0.580301
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/ApplicationLogoRequestBuilder.cs
1,594
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("Simplic.Flow.Editor.Definition.Service")] ...
39.916667
84
0.752262
[ "MIT" ]
simplic/simplic-flow
src/Simplic.Flow.Editor.Definition.Service/Properties/AssemblyInfo.cs
1,440
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 ...
42.6
154
0.716223
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.RecaptchaEnterprise.V1Beta1/Google.Cloud.RecaptchaEnterprise.V1Beta1.GeneratedSnippets/RecaptchaEnterpriseServiceV1Beta1Client.GetKeyRequestObjectAsyncSnippet.g.cs
1,917
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. namespace System { internal static class Strings { public static string NO_ELEMENTS = "Sour...
39.928571
103
0.729875
[ "Apache-2.0" ]
NewellClark/reactive
Ix.NET/Source/System.Linq.Async/System/Strings.cs
561
C#
#if (UNITY_STANDALONE_WIN) using RootSystem = System; using System.Linq; using System.Collections.Generic; namespace Windows.Kinect { // // Windows.Kinect.LongExposureInfraredFrameReference // public sealed partial class LongExposureInfraredFrameReference : Helper.INativeWrapper { internal ...
40.956522
173
0.700637
[ "MIT" ]
TastSong/Kinect3DRunner
Kinect3DRunner/Assets/K2Examples/Standard Assets/Windows/Kinect/LongExposureInfraredFrameReference.cs
3,768
C#
using System.Collections.Generic; using Umbraco.Cms.Core.IO; using Umbraco.Cms.Core.Services; using Umbraco.Extensions; namespace Umbraco.Cms.Core.PropertyEditors { internal class EyeDropperColorPickerConfigurationEditor : ConfigurationEditor<EyeDropperColorPickerConfiguration> { public EyeDropperColor...
36.461538
177
0.618671
[ "MIT" ]
Lantzify/Umbraco-CMS
src/Umbraco.Core/PropertyEditors/EyeDropperColorPickerConfigurationEditor.cs
1,896
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; namespace StudentSystem.Web.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumerable<string> Get() { return new string[...
20.571429
55
0.502315
[ "Apache-2.0" ]
encho253/StudentSystem
StudentSystem/StudentSystem.Web/Controllers/ValuesController.cs
866
C#
#if UNITY_STANDALONE_WIN using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using UnityEngine; using UnityExtensionMethods; // ReSharper disable FieldCanBeMadeReadOnly.Global // ReSharper disable IdentifierTypo // ReSharper disable once CheckNamespace namespace ...
34.660819
117
0.555593
[ "MPL-2.0" ]
Dejers/Card-Game-Simulator
Assets/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs
5,927
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
28.9375
81
0.447084
[ "MIT" ]
EPTamminga/DNN.Forum
UserControls/admin_dashboard.ascx.designer.cs
465
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.121951
114
0.605528
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200301/Inputs/DelegationArgs.cs
1,194
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.ServiceModel.Channels; using System.ServiceModel.Description; namespace System.ServiceModel { public abstract class DuplexClientBase<TChannel> : Clien...
40.118421
133
0.693342
[ "MIT" ]
777Eternal777/wcf
src/System.Private.ServiceModel/src/System/ServiceModel/DuplexClientBase.cs
3,049
C#
using System; using System.Runtime.InteropServices; using NClang.Natives; namespace NClang { public class ClangIndexerCallbacks { public event Func<IntPtr,bool> AbortQuery; public event Action<IntPtr,ClangDiagnosticSet> Diagnostic; public event Func<IntPtr,ClangFile,ClangIndex.ClientFile> EnteredMainFile; p...
50.116279
164
0.779118
[ "MIT" ]
Dadoum/nclang
NClang/LanguageService/ClangIndexerCallbacks.cs
2,155
C#
using System; using System.Linq; using System.Reflection; using HotChocolate.Language; using HotChocolate.Types.Descriptors.Definitions; namespace HotChocolate.Types.Descriptors { public class InterfaceFieldDescriptor : OutputFieldDescriptorBase<InterfaceFieldDefinition> , IInterfaceFieldDescriptor...
30.258706
97
0.58221
[ "MIT" ]
Alxandr/hotchocolate
src/HotChocolate/Core/src/Types/Types/Descriptors/InterfaceFieldDescriptor.cs
6,082
C#
// Copyright (c) 2021 Maxim Kuzmin. All rights reserved. Licensed under the MIT License. using Makc2021.Layer3.Sample.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Makc2021.Layer3.Sample.Mappers.EF.Entities.UserToken { /// <summary> /// Схема ...
33.107143
105
0.654261
[ "MIT" ]
maxim-kuzmin/Makc2021
server/src/Makc2021.Layer3.Sample.Mappers.EF/Entities/UserToken/MapperUserTokenEntitySchema.cs
1,882
C#
using System; using System.Collections.Generic; using System.Text; namespace QuartzHost.Contract.Models { public interface IEntity { } public class BaseEntity { public int Total { get; set; } } }
15.333333
38
0.656522
[ "MIT" ]
cddldg/QuartzHost
src/QuartzHost.Contract/Models/IEntity.cs
232
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("Lo...
38.675676
84
0.751223
[ "Apache-2.0", "MIT" ]
abombss/NServiceBus
IntegrationTests/GenericHost/LoggingFromAppConfig/Properties/AssemblyInfo.cs
1,434
C#
using Microsoft.AspNetCore.Http; using Microsoft.Net.Http.Headers; namespace Serpent5.AspNetCore.Middleware.CacheHeaders; public class CacheHeadersMiddleware { private readonly RequestDelegate nextMiddleware; public CacheHeadersMiddleware(RequestDelegate nextMiddleware) => this.nextMiddleware = nextM...
41.240741
116
0.610238
[ "MIT" ]
serpent5/Serpent5.AspNetCore.Middleware
Serpent5.AspNetCore.Middleware/CacheHeaders/CacheHeadersMiddleware.cs
2,227
C#
/* ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) ** Copyright (C) 2011 Silicon Graphics, Inc. ** All Rights Reserved. ** ** 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 Soft...
39.757511
106
0.499595
[ "MIT" ]
uareurapid/nightinthewoods
Assets/Ferr/2DTerrain/Scripts/LibTessDotNet/Mesh.cs
18,529
C#
namespace A_Miner_Task { using System; using System.Collections.Generic; using System.IO; public class MinerTask { public static void Main(string[] args) { Dictionary<string, long> resources = AvalableResources(); ResourcesToFile(resources); } ...
28.759259
85
0.484868
[ "MIT" ]
RAstardzhiev/SoftUni-C-
Programming Fundamentals/Files and Exceptions - Exercises/A Miner Task/MinerTask.cs
1,555
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace HelloWorldWin { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); FormHello formH...
20.1
50
0.634328
[ "MIT" ]
lgleto/HelloWorldWin
HelloWorldWin/Program.cs
404
C#
using NgrxGettingStarted.Dtos; using System.Collections.Generic; namespace NgrxGettingStarted.Services { public interface IDoctorService { DoctorAddOrUpdateResponseDto AddOrUpdate(DoctorAddOrUpdateRequestDto request); ICollection<DoctorDto> Get(); DoctorDto GetById(int id); dyna...
24.857143
86
0.732759
[ "MIT" ]
QuinntyneBrown/ngrx-getting-started
NgrxGettingStarted/Services/IDoctorService.cs
348
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...
26.5
112
0.593868
[ "Apache-2.0" ]
nechemiaseif/aws-sdk-net
sdk/src/Services/ServiceCatalog/Generated/AmazonServiceCatalogConfig.cs
2,120
C#
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/S...
30.472381
194
0.720965
[ "Apache-2.0" ]
Ahrvo-Trading-Systems/StockSharp
Algo/Storages/Binary/BinaryMarketDataSerializer.cs
16,249
C#
using KetoRecipies.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System.Threading.Tasks; namespace KetoRecipies.Areas.Identity.Pages.Account { [AllowAnonymo...
27.756098
101
0.625659
[ "Apache-2.0" ]
omence/KetoRecipes.com
KetoRecipies/Areas/Identity/Pages/Account/Logout.cshtml.cs
1,140
C#
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 8 September 2005 at 3:07:58 pm'! SmartSyntaxInterpreterPlugin subclass: #ServicesPlugin instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'VMMaker-Plugins'! !ServicesPlugin methodsFor: 'initialize' stamp: 'JMM 6/12/2005 11:17...
1,865
4,840
0.786059
[ "MIT" ]
AndWac/opensmalltalk-vm
platforms/Mac OS/plugins/ServicesPlugin/JMMServicesPlugin.2.cs
5,595
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
44.713904
256
0.541641
[ "BSD-3-Clause" ]
BlueWall/opensim
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
117,061
C#
using System; using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific; namespace Maui.Controls.Sample.Pages { public partial class WindowsCollapseStyleChangerPage : ContentPage { public static readonly BindableProperty ParentPageProperty = BindableProperty.Cr...
39.673469
243
0.669753
[ "MIT" ]
dandycheung/maui
src/Controls/samples/Controls.Sample/Pages/PlatformSpecifics/Windows/WindowsCollapseStyleChangerPage.xaml.cs
1,946
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...
34.459184
158
0.629553
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/WAFRegional/Generated/Model/Internal/MarshallTransformations/IPSetDescriptorUnmarshaller.cs
3,377
C#
using System.Linq; using DotVVM.Framework.Configuration; namespace DotVVM.Contrib { public static class DotvvmConfigurationExtensions { public static void AddContribPolicyViewConfiguration(this DotvvmConfiguration config) { // register tag prefix if (!config.Markup.Cont...
28.347826
93
0.544479
[ "Apache-2.0" ]
PadreSVK/dotvvm-contrib
Controls/PolicyView/src/DotVVM.Contrib/DotvvmConfigurationExtensions.cs
654
C#
using Csla; using Csla.Core.FieldManager; using System; namespace CslaContrib.CustomFieldData { /// <summary> /// ProperyInformationFactory class - must be configured in app.config or web.config /// </summary> /// <typeparam name="T"></typeparam> public sealed class PropertyInformationUsingOrigina...
32.857143
104
0.705435
[ "MIT" ]
MarimerLLC/cslacontrib
branches/V4-3-x/Source/CslaContrib.CustomFieldData/PropertyInformationUsingOriginalValue.cs
1,842
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using ToolBox.Extensions.DbCommands; using ToolBox.Models; namespace ToolBox.Services { public class DB<TConnection> where TConnection : class, IDbConnection, new() { private readonly string connectionString;...
33.420732
150
0.545521
[ "MIT" ]
hossmi/beca-dotnet-2019
ToolBox/Services/DB.cs
5,483
C#
using System.Reflection; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: AssemblyTitle("DualityLauncher")] ...
40.416667
107
0.740893
[ "MIT" ]
BraveSirAndrew/duality_onikira
DualityLauncher/Properties/AssemblyInfo.cs
1,473
C#
using System; using System.Linq; using FuzzyRanks.Matching.FuzzyCompare.Base; using FuzzyRanks.Matching.StringTokenize; using FuzzyRanks.Matching.StringTokenize.Base; namespace FuzzyRanks.Matching.FuzzyCompare.Common { public class NGramDistance : FuzzyComparer { // ***********************Fi...
31.010526
137
0.492872
[ "MIT" ]
Vladimir-Novick/FuzzyRanks
Matching/FuzzyCompare/Common/NGramDistance.cs
2,952
C#
namespace TraktNet.Objects.Basic.Json.Reader { using Newtonsoft.Json; using Objects.Json; using System.Threading; using System.Threading.Tasks; internal class CertificationsObjectJsonReader : AObjectJsonReader<ITraktCertifications> { public override async Task<ITraktCertifications> Rea...
40.073171
146
0.609251
[ "MIT" ]
henrikfroehling/Trakt.NET
Source/Lib/Trakt.NET/Objects/Basic/Json/Reader/CertificationsObjectJsonReader.cs
1,645
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace LeeWay.Ensure.ControllerAttributes.Tests.Fakes.Controllers { [Route("api/[controller]")] [ApiController] [Authorize(Policy = PolicyNames.RequireAuthorizedUser)] public class UserContro...
23.066667
68
0.545279
[ "MIT" ]
JimiSweden/LeeWay
LeeWay.Ensure.ControllerAttributes.Tests/Fakes/Controllers/UserController.cs
1,040
C#
/* * Copyright (C) 2021 AppDrill, https://appdrill.io * * 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 ...
27.791667
75
0.70015
[ "Apache-2.0" ]
AppDrill/AppDrillSamples
AppDrillMobileApp/AppDrillMobileApp/AppDrillMobileApp/Views/ItemsPage.xaml.cs
1,336
C#
using Lucene.Net.Analysis.Core; using Lucene.Net.Analysis.Miscellaneous; using Lucene.Net.Analysis.Util; using NUnit.Framework; using System.IO; namespace Lucene.Net.Analysis.Sv { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file dis...
38.300885
122
0.658965
[ "Apache-2.0" ]
b9chris/lucenenet
src/Lucene.Net.Tests.Analysis.Common/Analysis/Sv/TestSwedishLightStemFilter.cs
4,330
C#
#region << 文 件 说 明 >> /*---------------------------------------------------------------- // 文件名称:AddNewFunctionViewModel // 创 建 者:杨程 // 创建时间:2021/12/10 16:52:34 // 文件版本:V1.0.0 // =============================================================== // 功能描述: // // //---------------------------------------------------------...
28.776952
141
0.458726
[ "MIT" ]
vampirewal/InterfaceCallRelationship
InterfaceCallRelationship.ViewModel/AddNewFunctionViewModel.cs
8,721
C#
using Molder.Controllers; using Molder.Web.Extensions; using Molder.Web.Infrastructures; using Molder.Web.Models.PageObjects.Attributes; using Molder.Web.Models.PageObjects.Blocks; using Molder.Web.Models.PageObjects.Elements; using Molder.Web.Models.PageObjects.Frames; using Molder.Web.Models.PageObjects.Pages; using...
40.686916
260
0.488343
[ "MIT" ]
YojikR/Molder
src/Molder.Web/Models/PageObjects/Models/PageObject.cs
8,765
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.Runtime.InteropServices; namespace ManagedDll1 { public class Class1 { [DllImport( @"MAWSPINative", EntryPoint = "...
22.791667
71
0.616088
[ "MIT" ]
belav/runtime
src/tests/Interop/PInvoke/Miscellaneous/MultipleAssembliesWithSamePInvoke/ManagedDll1/ManagedDll1.cs
547
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
27.148936
84
0.402038
[ "MIT" ]
Appleseed/squidex
backend/src/Squidex.Infrastructure/Net/IPAddressComparer.cs
1,278
C#
using System.Collections.Generic; using System.Text.RegularExpressions; namespace Primrose { // A grammar for a BASIC-like language. internal class BasicGrammar : Grammar { internal BasicGrammar() : base("BASIC", // Grammar rules are applied in the order they are specifi...
67.813953
306
0.611454
[ "MIT" ]
NotionTheory/Primrose
csharp/Primrose.NETStandard2/Grammars/Basic.cs
2,916
C#
using OnlineShop.Common.Constants; namespace OnlineShop.Models.Products.Components { public abstract class Component : Product, IComponent { protected Component(int id, string manufacturer, string model, decimal price, double overallPerformance, int generation) : base(id, manufacturer, mod...
27.391304
128
0.65873
[ "MIT" ]
PetroslavGochev/CSharpAdvancedModule
OOP Module C#/09.ExamPreparation/2020August16/OnlineShop/OnlineShop-Skeleton/OnlineShop/Models/Products/Components/Component.cs
632
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> //---...
46.846154
177
0.687192
[ "MIT" ]
halilibrahimcakir/Bupa-Acibadem-Sigorta-Task
src/Presentation/Insurance.Web/obj/Debug/net5.0/Insurance.Web.RazorTargetAssemblyInfo.cs
1,218
C#
using System; using System.Collections; using System.Collections.Generic; // To execute C#, please define "static void Main" on a class // named Solution. class Solution { static void Main(string[] args) { int[] arr = new int[] {4, 2, -1, 1, -5, 6, -4}; //findtriplet(arr, 0); ...
23.147368
82
0.351978
[ "MIT" ]
prlabs/PrLabs
facebookplayground.cs
4,398
C#
using System; using ClearHl7.V290.Segments; using ClearHl7.V290.Types; using FluentAssertions; using Xunit; namespace ClearHl7.Tests.SegmentsTests { public class ScpSegmentTests { /// <summary> /// Validates that FromDelimitedString() returns the object instance with all properties correctly ...
32.572816
157
0.499255
[ "MIT" ]
davebronson/clear-hl7-net
test/ClearHl7.Tests/SegmentsTests/ScpSegmentTests.cs
3,357
C#
using PropertyChanged; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Windows.Controls; namespace NegativeEncoder.Presets { [AddINotifyPropertyChangedInterface] public class PresetContext { /// <summary> /// 当前使用的预设(保存编...
30.372549
96
0.599096
[ "MIT" ]
BingLingGroup/NegativeEncoder
NegativeEncoder/Presets/PresetContext.cs
1,653
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...
25.344828
81
0.635374
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Compute/V20171201/Inputs/VirtualHardDiskArgs.cs
735
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace Z.EntityFramework.Plus { /// <summary>A query include optimized by path.</summary> public static class QueryIncludeOptimizedByPath { /// <summary>Include optimized b...
44.540741
153
0.606852
[ "MIT" ]
borismod/EntityFramework-Plus
src/Z.EntityFramework.Plus.EF5.NET40/QueryIncludeOptimized/QueryIncludeOptimizedByPath.cs
6,015
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
18.767742
63
0.669302
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-polardb/Polardb/Model/V20170801/DescribeBackupPolicyResponse.cs
2,909
C#
// ------------------------------------------------------------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ---------...
37.709091
153
0.510849
[ "MIT" ]
LokiLabs/microsoft-graph-devx-api
UriMatchService.Test/UriTemplateMatcherShould.cs
4,148
C#
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restr...
33.840909
152
0.645534
[ "MIT" ]
7erj1/RPG_Starter
Templates/RPGDemo/game/tools/convexEditor/main.cs
7,226
C#
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Mechsoft.GeneralUtilities; using AccessControlUnit; ...
37.770961
201
0.50536
[ "MIT" ]
mileslee1987/PrivateFleet
PrivateFleet.New/MasterPage.master.cs
18,470
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("Wi...
35.896552
84
0.741595
[ "MIT" ]
Inokinoki/SharpEInk
WinIoTEPDInk/Properties/AssemblyInfo.cs
1,044
C#
using System; using System.Text; using Newtonsoft.Json; using Topos.Serialization; namespace TileWatcher.Serialize { internal class FileNotificationSerializer : IMessageSerializer { public ReceivedLogicalMessage Deserialize(ReceivedTransportMessage message) { if (message is null) ...
32.483871
99
0.689176
[ "MIT" ]
DAXGRID/tile-watcher
src/TileWatcher/Serialize/FileNotificationSerializer.cs
1,007
C#
using Microsoft.EntityFrameworkCore; namespace DiFrameworkRefactoring { public class WeatherForecastDbContext : DbContext { public WeatherForecastDbContext(DbContextOptions<WeatherForecastDbContext> options) : base(options) { } public DbSet<PersistentWeatherForecastDto> WeatherForecasts { get; set; ...
27.25
87
0.785933
[ "MIT" ]
grzesiek-galezowski/vanilla-dependency-injection
DiFrameworksVsVanillaDi/DiFrameworkRefactoring/DiFrameworkRefactoring/WeatherForecastDbContext.cs
327
C#
using System.Collections.Generic; using Microsoft.Management.Infrastructure; namespace DeviceId.Windows.Mmi.Components; /// <summary> /// An implementation of <see cref="IDeviceIdComponent"/> that retrieves data from a WQL query /// </summary> public class MmiWqlDeviceIdComponent : IDeviceIdComponent { /// <summ...
26.416667
118
0.54469
[ "MIT" ]
AlexSchuetz/DeviceId
src/DeviceId.Windows.Mmi/Components/MmiWqlDeviceIdComponent.cs
1,904
C#
namespace Skybrud.Social.Meetup.Scopes { /// <summary> /// Static class with properties representing scopes of available for the Meetup API. /// </summary> /// <see> /// <cref>https://www.meetup.com/meetup_api/auth/#oauth2-scopes</cref> /// </see> public static class MeetupScopes {...
43.308511
160
0.629084
[ "MIT" ]
abjerner/Skybrud.Social.Meetup
src/Skybrud.Social.Meetup/Scopes/MeetupScopes.cs
4,073
C#
/* * Author : Maxime JUMELLE * Namespace : MorePPEffects * Project : More Post-Processing Effects Package * * If you have any suggestion or comment, you can write me at webmaster[at]hardgames3d.com * * File : Posterization.cs * Abstract : Applies a posterization effect on camera. * * */ using System; usi...
26.105263
100
0.738575
[ "MIT" ]
Anarchy-Massacre-Studio/TheFPSGame
Assets/Effects/More PostProcessing Effects/Scripts/Posterization.cs
1,490
C#
using System.Collections.Generic; using MSFramework.EventBus; namespace MSFramework.Domain { /// <summary> /// Represents an aggregate root. /// </summary> public interface IAggregateRoot { /// <summary> /// the id as string of the aggregate root. /// </summary> /// <returns></returns> string GetId(); ...
20.241379
70
0.705281
[ "MIT" ]
jackical/MSFramework
src/MSFramework/Domain/IAggregateRoot.cs
589
C#
namespace _5.Card_CompareTo__.Enums { public enum Suit { Clubs = 0, Diamonds = 13, Hearts = 26, Spades = 39 } }
15.6
36
0.5
[ "MIT" ]
alexandrateneva/CSharp-Fundamentals-SoftUni
CSharp OOP Advanced/Enumerations and Attributes/5. Card CompareTo()/Enums/Suit.cs
158
C#
using System; using System.Threading; using System.Threading.Tasks; using Asuka.Configuration; using Discord; using Discord.WebSocket; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace Asuka.Services; /// <summary> /// Starts the client and logs...
29.967213
111
0.684354
[ "MIT" ]
blai30/Asuka.Net
src/Client/Services/StartupService.cs
1,830
C#
using Co.Id.Moonlay.Simple.Auth.Service.Lib; using Co.Id.Moonlay.Simple.Auth.Service.Lib.Models; using Co.Id.Moonlay.Simple.Auth.Service.Lib.Services.IdentityService; using Co.Id.Moonlay.Simple.Auth.Service.Lib.Services.ValidateService; using Co.Id.Moonlay.Simple.Auth.Service.Lib.ViewModels.Forms; using Com.Moonlay.Mo...
35.389262
125
0.578039
[ "MIT" ]
Sidel17/E-Workplace-API
Co.Id.Moonlay.Simple.Auth.Service.WebApi/Controllers/v1/PayslipController.cs
5,275
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Kubernetes.Types.O...
37.671875
330
0.64579
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/keda/dotnet/Kubernetes/Crds/Operators/Keda/Keda/V1Alpha1/Outputs/ScaledObjectSpecJobTargetRefTemplateSpecInitContainersVolumeMounts.cs
2,411
C#
using System.Collections.Generic; namespace Root.Coding.Code.Models.E01D.Base.Configurational.Settings { public interface SettingNode_I { /// <summary> /// Gets or sets the key of this node. /// </summary> string Key { get; set; } /// <summary> /// Gets or sets...
27.555556
97
0.586022
[ "Apache-2.0" ]
E01D/Base
src/E01D.Base.Configurational.Settings.Models/Coding/Code/Models/E01D/Base/Configurational/Settings/SettingNode_I.cs
746
C#
using Aiursoft.Archon.SDK.Models; using Aiursoft.Scanner.Interfaces; using Aiursoft.XelNaga.Tools; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; namespace Aiursoft.Archon.Services { public class TokenGenerator : IScopedDependency { private readonly RSASignService _rsa; ...
31.333333
90
0.5982
[ "MIT" ]
AiursoftWeb/Infrastructures
src/WebServices/Basic/Archon/Services/TokenGenerator.cs
1,224
C#
using System; using System.Collections.Generic; using System.Linq; using Kore.Infrastructure; using Kore.Web.ContentManagement.Areas.Admin.ContentBlocks.Services; namespace Kore.Web.ContentManagement.Areas.Admin.ContentBlocks { public interface IContentBlockProvider { IEnumerable<IContentBlo...
33.52381
128
0.65767
[ "MIT" ]
artinite21/KoreCMS
Kore.Web.ContentManagement/Areas/Admin/ContentBlocks/IContentBlockProvider.cs
1,410
C#
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using _01.InitialSetup; namespace _08._Increase_Minion_Age { public class Program { public static void Main() { var selectedIds = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
35.597561
123
0.449469
[ "Apache-2.0" ]
Warglaive/Databases-Advanced---Entity-Framework---2018
Introduction to Entity Framework/08. Increase Minion Age/Program.cs
2,921
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\dwrite_2.h(525,1) using System; using System.Runtime.InteropServices; namespace DirectN { /// <summary> /// A font fallback definition used for mapping characters to fonts capable of supporting them. /// </summary> [ComImport, ...
61.529412
535
0.750478
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/IDWriteFontFallback.cs
1,048
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.012987
160
0.659838
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.SecurityCenter.V1P1Beta1/Google.Cloud.SecurityCenter.V1P1Beta1.GeneratedSnippets/SecurityCenterClient.ListFindingsAsyncSnippet.g.cs
3,466
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace BBDown { interface IFetcher { Task<BBDownVInfo> FetchAsync(string id); } }
15.692308
48
0.710784
[ "MIT" ]
1714513528/BBDown
BBDown/IFetcher.cs
206
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyHealth : MonoBehaviour { public float HP; public float MaxHP; public GameObject self; public GameObject explosion; // Start is called before the first frame update void Start() { ...
20.37931
72
0.624365
[ "MIT" ]
TannerMadsen/Untitled-Wizard-Demo
Assets/Scripts/EnemyHealth.cs
593
C#
namespace CodeFirstExistingDatabase.Migrations { using System; using System.Data.Entity.Migrations; public partial class PopulateCategoriesTable : DbMigration { public override void Up() { } public override void Down() { } } }
18.176471
62
0.582524
[ "MIT" ]
AndriesDeKock/c-sharp-code-first-entity-framework-existing-database
Migrations/201907311222093_PopulateCategoriesTable.cs
309
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V6301</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
64.183673
1,358
0.72337
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V6301/Generated/RegistrationReason_displayName.cs
3,145
C#
using Amazon.Lambda.TestTool.Runtime; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Text.Json; namespace Amazon.Lambda.TestTool { public static class Utils { publ...
36.171296
169
0.522719
[ "Apache-2.0" ]
Otimie/aws-lambda-dotnet
Tools/LambdaTestTool/src/Amazon.Lambda.TestTool/Utils.cs
7,815
C#
namespace Torshia.Models.Enums { public enum Role { User = 0, Admin = 1 } }
13
31
0.5
[ "MIT" ]
MihailDobrev/SoftUni
C# Web/C# Web Development Basics/Exam Preparation I - Torshia/Torshia.Models/Enums/Role.cs
106
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.4016 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
36.609005
94
0.56023
[ "MIT" ]
onuraltun/BusinessAngelNetwork
Web/Investor/MyInvestments.aspx.designer.cs
15,451
C#
using System.Collections.Generic; using System.Threading.Tasks; using Common; using Lykke.Job.TradelogBridge.Core.Services; namespace Lykke.Job.TradelogBridge.Services { public class ShutdownManager : IShutdownManager { private readonly List<IStartStop> _startStops = new List<IStartStop>(); pr...
30.148148
100
0.660934
[ "MIT" ]
LykkeCity/Lykke.Job.TradelogBridge
src/Lykke.Job.TradelogBridge.Services/ShutdownManager.cs
816
C#
namespace BDSA2019.Lecture06.Models { public class SuperheroListDTO { public int Id { get; set; } public string Name { get; set; } public string AlterEgo { get; set; } } }
17.5
44
0.590476
[ "MIT" ]
ondfisk/BDSA2019
BDSA2019.Lecture06/BDSA2019.Lecture06.Models/SuperheroListDTO.cs
210
C#
using System; using System.Collections.Generic; using System.Text; namespace Model.Dtos { public class ClientCreateDto { public string Name { get; set; } } }
15
40
0.672222
[ "MIT" ]
JaimeAndresSalas/ASP.NET-CORE-3-VUEJS
ProjectSpaSolution/src/Model.Dtos/ClientDto.cs
182
C#
/* * Copyright (c) Citrix Systems, Inc. * 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, t...
49.111134
363
0.593713
[ "BSD-2-Clause" ]
CitrixChris/xenadmin
XenModel/XenAPI/Host.cs
240,399
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.688889
151
0.613222
[ "MIT" ]
SynapseProject/handlers.Legacy.Database.net
Synapse.Handlers.Legacy.Database/Properties/Settings.Designer.cs
7,686
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 ...
46.073171
133
0.746956
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.SecurityCenter.Settings.V1Beta1/Google.Cloud.SecurityCenter.Settings.V1Beta1.GeneratedSnippets/SecurityCenterSettingsServiceClient.CalculateEffectiveSettingsResourceNamesSnippet.g.cs
1,889
C#
/* Copyright (c) 2009 Robert Adams * 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 conditions and the following disc...
47.854772
134
0.631406
[ "BSD-3-Clause" ]
Misterblue/LookingGlass-Viewer
src/LookingGlass.World.OS/OSAssetContextV1.cs
11,535
C#
using System; using System.Security.Cryptography; namespace Binsync.Core { public static partial class Constants { public static readonly RandomNumberGenerator RNG = RNGCryptoServiceProvider.Create(); public static readonly string MetaVersion = "1.0"; public const int SegmentSize = 524288; //segment size: ra...
34.071429
147
0.774633
[ "Unlicense" ]
retroplasma/binsync
src/Binsync.Core/Constants.cs
954
C#