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.Linq; using Microsoft.Xna.Framework; using StardewValley; using Netcode; namespace ChildToNPC.Patches { /* Prefix for checkSchedule * This is a mix of code from the original method and my own. * I use reflection to access private methods in the NPC class. */ ...
55.842697
380
0.657948
[ "MIT" ]
Pathoschild/ChildToNPC
ChildToNPC/Patches/NPCCheckSchedulePatch.cs
4,972
C#
// Copyright 2017-2018 Dirk Lemstra (https://github.com/dlemstra/line-bot-sdk-dotnet) // // Dirk Lemstra licenses this file to you 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.a...
36.970297
89
0.64917
[ "Apache-2.0" ]
charliedua/line-bot-sdk-dotnet
tests/LineBot.Tests/UserProfile/UserProfileTests.cs
3,736
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 System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Metadata; using M...
57.107407
178
0.649437
[ "Apache-2.0" ]
chrisblock/EntityFramework
test/EFCore.Tests/ModelBuilding/InheritanceTestBase.cs
46,257
C#
using System; namespace TodoWeb.web.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.5
70
0.661905
[ "MIT" ]
Dera9q/TodoWeb
src/TodoWeb.web/Models/ErrorViewModel.cs
210
C#
using System; using System.Diagnostics; using System.Resources; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using XamlSamples.WinPhone.Resources; namespace XamlSamples.WinPhone { public partial class A...
41.397321
128
0.599806
[ "Apache-2.0" ]
Arlenxiao/xamarin-forms-samples
XAMLSamples/xamlsamples/xamlsamples.winphone/App.xaml.cs
9,275
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: AssemblyConfiguration("")] [assembly: AssemblyComp...
42.684211
85
0.763255
[ "MIT" ]
520xchly/Ocelot
test/Ocelot.IntegrationTests/Properties/AssemblyInfo.cs
813
C#
using System; using System.Collections.Generic; using System.Text; using System.Data; using GDC.PH.AIDE.BusinessLayer.DataLayer; namespace GDC.PH.AIDE.BusinessLayer { public class clsProblemFactory { #region data Members clsProblemSql _dataObject = null; #endregion ...
30.038462
101
0.593378
[ "BSD-3-Clause" ]
rsx-labs/aide-backend
AIDEBackendMaster/GDC.PH.AIDE.BusinessLayer/clsProblemFactory.cs
5,469
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Text; using System.Xml; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Microso...
64.956416
305
0.688187
[ "MIT" ]
OmniSharp/msbuild
src/XMakeTasks/UnitTests/AssignProjectConfiguration_Tests.cs
26,417
C#
namespace NewPlatform.Flexberry.Caching { using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; public partial class MemoryCacheService { /// <inheritdoc cref="ICacheService" /> public string CacheName => _cache?.Name; /// <in...
32.214286
124
0.54235
[ "MIT" ]
Flexberry/NewPlatform.Flexberry.Caching
NewPlatform.Flexberry.Caching/MemoryCacheService/MemoryCacheService.Common.cs
4,512
C#
using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Android.Support.Wearable.Views; using Android.Support.V4.App; using Android.Support.V4.View; using Java.Interop; using Android.Views.Animations; namespace SnakeWear { ...
31.95
99
0.57903
[ "Apache-2.0" ]
pontusstjerna/SnakeWear
SnakeWear/MainActivity.cs
2,558
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...
29.184211
103
0.730388
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Chime/Generated/Model/TagMeetingResponse.cs
1,109
C#
#if UNITY_EDITOR using UnityEngine; namespace Myy { public partial class SetupWindow { public class MyyLogger { public static void Log(string message) { Debug.Log(message); } public static void Log(object o) { ...
21.157895
74
0.468905
[ "MIT" ]
vr-voyage/vrchat-worldlock-autosetup
MyyLogger.cs
806
C#
using System; using System.Collections.Generic; using System.Text; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; namespace DataLogicLayer { public class LoggerContextFactory { public LoggerContext Create(DbContextFactoryOptions options) { ...
32.758621
128
0.728421
[ "MIT" ]
Krakaz/GymWebApi
DataLogicLayer/LoggerContextFactory.cs
952
C#
namespace PlexRequests.DataAccess.Enums { public enum AgentTypes { TheMovieDb = 1, TheTvDb, Imdb } }
13.8
40
0.565217
[ "MIT" ]
Jbond312/PlexRequestsApi
src/PlexRequests.DataAccess/Enums/AgentTypes.cs
140
C#
#region Copyright // //======================================================================================= // // Microsoft Azure Customer Advisory Team // // // // This sample is supplemental to the technical guidance published on the community // // blog at http://blogs.msdn.com/b/paolos/. // // // // Author...
42.603175
112
0.591654
[ "MIT" ]
paolosalvatori/servicefabricobserver
Interfaces/IClientObserverActor.cs
2,687
C#
using Microsoft.VisualStudio.Setup.Configuration; using Microsoft.Win32; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Vim.EditorHost { /// ...
36.192053
135
0.531382
[ "Apache-2.0" ]
agocke/VsVim
Src/VimEditorHost/EditorLocatorUtil.cs
5,467
C#
using DinkToPdf.Contracts; namespace DinkToPdf { public class FooterSettings : ISettings { /// <summary> /// The font size to use for the footer. Default = 12 /// </summary> [WkHtml("footer.fontSize")] public int? FontSize { get; set; } /// <summary> ...
36.8
129
0.550272
[ "MIT" ]
nathan-c/DinkToPdf
src/DinkToPdf/Settings/FooterSettings.cs
2,210
C#
using MvvmCross.Platforms.Android.Presenters; namespace XamarinNativeExamples.Droid { public class CustomPresenter : MvxAndroidViewPresenter { public CustomPresenter() : base(null) { } } }
20.545455
58
0.676991
[ "MIT" ]
jeromemanzano/XamarinNativeExamples
XamarinNativeExamples.Droid/CustomPresenter.cs
228
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 System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServi...
58.209412
140
0.653745
[ "Apache-2.0" ]
eiriktsarpalis/efcore
src/EFCore/Metadata/Internal/EntityTypeExtensions.cs
24,739
C#
namespace MusicHub.DataProcessor { using System; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Xml; using System.Xml.Serialization; using Data; using MusicHub.DataProcessor.ExportDtos; using Newtonsoft.Json; public class Ser...
36.202381
140
0.491615
[ "MIT" ]
PhilShishov/Software-University
Databases Advanced - Entity Framework/Exams/DB-Adv-Exam_18Apr2019/MusicHub/DataProcessor/Serializer.cs
3,043
C#
using System; using System.Collections.Generic; namespace RestEaseClientGeneratorConsoleApp.Examples.FormRecognizer.V2.Models { public class DataTable { public int Rows { get; set; } public int Columns { get; set; } public DataTableCell[] Cells { get; set; } } }
21.066667
78
0.642405
[ "MIT" ]
StefH/RestEase-Client-Generator
examples/RestEaseClientGeneratorConsoleApp/Examples/FormRecognizerV2/Models/DataTable.cs
316
C#
using System; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace opendata_nhi.Controllers { public class MyServiceURL { public readonly string GET_DATASET_DOWNLOAD = "/Datasets/Download.ashx"; public readonly strin...
25.4
116
0.698163
[ "MIT" ]
abowwang/opendata_nhi
Controllers/MyServiceURL.cs
381
C#
using System; using Ayehu.Sdk.ActivityCreation.Interfaces; using Ayehu.Sdk.ActivityCreation.Extension; using Ayehu.Sdk.ActivityCreation.Helpers; using System.Net; using System.Net.Http; using System.Text; using System.Collections.Generic; namespace Ayehu.Github { public class GH_Delete_a_discussion_comment : IActi...
35.803571
251
0.62128
[ "MIT" ]
Ayehu/custom-activities
Github/teams/GH Delete a discussion comment/GH Delete a discussion comment.cs
6,015
C#
using Buildalyzer; using Microsoft.CodeAnalysis; using Microsoft.Extensions.Logging; using Stryker.Core.Exceptions; using Stryker.Core.Logging; using Stryker.Core.Testing; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Stryker.Core.Initialisation { public interface I...
33.851064
139
0.692018
[ "Apache-2.0" ]
MadsPB/stryker-net
src/Stryker.Core/Stryker.Core/Initialisation/AssemblyReferenceResolver.cs
1,593
C#
using Orchard.ContentManagement.Records; namespace Orchard.Users.Models { public class UserSecurityConfigurationPartRecord : ContentPartRecord { // We are creating a record for this rather than making do with the infoset // because this will allow us to explicitly query for those users that must ...
45.545455
83
0.718563
[ "BSD-3-Clause" ]
OrchardCMS/orchard
src/Orchard.Web/Modules/Orchard.Users/Models/UserSecurityConfigurationPartRecord.cs
503
C#
using System; using QueueWithStacks.Classes; namespace QueueWithStacks { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello World!"); PseudoQueue testQueue = new PseudoQueue(); testQueue.Enqueue(10); testQue...
23.73913
54
0.586081
[ "MIT" ]
jeremymaya/data-structures-and-algorithms
challenges/QueueWithStacks/QueueWithStacks/Program.cs
548
C#
//----------------------------------------------------------------------- // <copyright file="MainPage.xaml.cs" company="Microsoft Corporation"> // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespa...
38.341709
141
0.526868
[ "MIT" ]
marcpems/StoreBountyDemo
BountyTestApp/MainPage.xaml.cs
7,632
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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://w...
38
95
0.600074
[ "MIT" ]
SpillChek2/azure-powershell
src/ResourceManager/ServiceBus/Commands.ServiceBus/Models/ListKeysAttributes.cs
2,630
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated>...
35.348315
85
0.518436
[ "MIT" ]
Abhith/Umbraco-CMS
src/Umbraco.Web/umbraco.presentation/umbraco/translation/default.aspx.designer.cs
3,146
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...
24.903226
81
0.639896
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Web/Outputs/ApiManagementConfigResponse.cs
772
C#
using System.Diagnostics.Contracts; using CssUI.CSS.BoxTree; namespace CssUI.CSS.Formatting { public class BlockFormattingContext : IFormattingContext { public void Flow(CssBoxTreeNode Node) { if (Node is null) { throw new System.ArgumentNullException(na...
28.916667
112
0.505283
[ "MIT" ]
dsisco11/CssUI
CssUI/CSS/Formatting/BlockFormattingContext.cs
1,043
C#
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using DotSpatial.Data; namespace DotSpatial.Modeling.Forms { /// <summary> /// This class is used to enable linking of tools that work with ...
26.217391
106
0.54063
[ "MIT" ]
AlexanderSemenyak/DotSpatial
Source/DotSpatial.Modeling.Forms/TextFile.cs
1,208
C#
using System; using System.Threading.Tasks; using MongoDB.Driver; using SCNDISC.Server.Domain.Aggregates.Parameters; using SCNDISC.Server.Domain.Commands.Parameters; using SCNDISC.Server.Infrastructure.Persistence.Providers; using SCNDISC.Server.Infrastructure.Persistence.Queries; namespace SCNDISC.Server.Infrastruct...
37.571429
134
0.78327
[ "MIT" ]
Dima2022/DiscountsApp
SCNDISC.Server/SCNDISC.Server.Infrastructure/Persistence/Commands/Parameters/DeleteParameterCommand.cs
791
C#
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class DirkBremen : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Dirk"; p...
41.566667
117
0.688853
[ "MIT" ]
ChrisLGardner/planetpowershell
src/Firehose.Web/Authors/DirkBremen.cs
1,247
C#
 namespace BigML { /// <summary> /// An anomaly detector is a predictive model that can help identify the /// instances within a dataset that do not conform to a regular pattern. /// It can be useful for tasks like data cleansing, identifying unusual /// instances, or, given a new data point, decid...
28.767857
83
0.572936
[ "Apache-2.0" ]
bigmlcom/bigml-csharp
BigML/Anomaly/Anomaly.cs
1,613
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....
44.594595
85
0.616364
[ "Unlicense" ]
Polimat/Gamma
Entities/ProductionTaskDowntimes.cs
1,650
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 08.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
26.656934
149
0.533133
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/Equal/Complete2__objs/NullableInt64/NullableDecimal/TestSet_504__param__02__VN.cs
3,654
C#
// Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information. namespace Aqua { using System.Collections.Generic; using System.Linq; using BindingFlags = System.Reflection.BindingFlags; using MethodInfo = System.Reflection.MethodInfo; internal st...
45.538961
114
0.554542
[ "MIT" ]
640774n6/aqua-core
src/Aqua/MethodInfos.cs
7,015
C#
 /*********************************************************************************************************** * Produced by App Advisory - http://app-advisory.com * * Facebook: https://facebook.com/appadvisory * * Contact us: https://appadvisory.zendesk.com/hc/en-us/requests/new ...
28.690909
109
0.587452
[ "MIT" ]
RavArty/RollocoBall
Assets/Very_Simple_Leaderboard/Scripts/LEADERBOARDIDS.cs
1,580
C#
// // AzureLogExporter // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the ""Software""), to deal // in the Software without restriction, ...
32.168675
144
0.7397
[ "MIT" ]
chrisbro-MSFT/AzureFunctionforSplunkVS
AzureLogExporter/Utils.cs
5,342
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SolidCubeClick : MonoBehaviour { // Start is called before the first frame update void Start() { } public GameObject solideCubeElement; private void OnMouseDown() { var element = solideCu...
17.851852
74
0.670124
[ "MIT" ]
catcat0921/lindexi_gd
unity/SolidGeometry/Assets/03.Script/SolidCubeClick.cs
484
C#
using gpayments_core.Model; using gpayments_core.Utils; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using RestSharp; using System; using System.Collections.Generic; using System.Net; namespace gpayments_core { public class FourGeeksPayments { public Token Token { get; } private static ...
35.915984
127
0.544246
[ "MIT" ]
djhvscf/gpayments-dotnet-core
gpayments-dotnet-core/FourGeeksPayments.cs
17,529
C#
using System; using System.Collections.Generic; using System.Text; namespace NetCDF { public enum NcResult : int { NC_NOERR = 0, /* No Error */ NC2_ERR = -1, /* Returned for all errors in the v2 API. */ NC_EBADID = -33, /* Not a netcdf id */ ...
51.375
92
0.551906
[ "MPL-2.0" ]
AuditoryBiophysicsLab/ESME-Workbench
Libraries/NetCDF/NcResult.cs
2,466
C#
namespace TestProject.Roles.Dto { public class GetRolesInput { public string Permission { get; set; } } }
15.875
46
0.629921
[ "MIT" ]
VictorIzosimov/TestProject
aspnet-core/src/TestProject.Application/Roles/Dto/GetRolesInput.cs
129
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using BeautifulRestApi.Infrastructure; using BeautifulRestApi.Models; using BeautifulRestApi.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; namespace BeautifulRestApi.Controllers { [Route("/[contr...
35.033333
119
0.678402
[ "Apache-2.0" ]
hieumoscow/ConversationCore
src/Controllers/CommentsController.cs
2,104
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 System; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.I...
37.431373
153
0.585228
[ "Apache-2.0" ]
pmiddleton/EntityFramework
test/EFCore.InMemory.FunctionalTests/DatabaseErrorLogStateTest.cs
9,545
C#
using System; namespace CodingChallenge { class Program { static void Main(string[] args) { // first initialize the variables for counting each scenario int sweetCount = 0; int saltyCount = 0; int sweetSaltyCount = 0; // create a for...
34.977778
102
0.463151
[ "MIT" ]
042020-dotnet-uta/michaelHall-repo0
CodingChallenge/Program.cs
1,576
C#
// Generated by gencs from sensor_msgs/PointCloud2.msg // DO NOT EDIT THIS FILE BY HAND! using System; using System.Collections; using System.Collections.Generic; using SIGVerse.RosBridge; using UnityEngine; using SIGVerse.RosBridge.std_msgs; using SIGVerse.RosBridge.sensor_msgs; namespace SIGVerse.RosBridge { nam...
27.985714
282
0.727922
[ "MIT" ]
Ohara124c41/TUB-MSc_Thesis
SEK_01_MkI/Assets/SIGVerse/Common/ROSBridge/messaging/sensor_msgs/PointCloud2.cs
1,959
C#
using CefSharp; using Playnite; using Playnite.API; using Playnite.Common.System; using Playnite.Database; using Playnite.Plugins; using Playnite.SDK; using Playnite.SDK.Plugins; using Playnite.Settings; using PlayniteUI.Commands; using System; using System.Collections.Generic; using System.ComponentModel;...
32.411311
137
0.504442
[ "MIT" ]
ArashBaba/Playnite
source/PlayniteUI/ViewModels/SettingsViewModel.cs
12,610
C#
using System; using System.ComponentModel; using EfsTools.Attributes; using EfsTools.Utils; using Newtonsoft.Json; namespace EfsTools.Items.Efs { [Serializable] [EfsFile("/nv/item_files/rfnv/00024907", true, 0xE1FF)] [Attributes(9)] public class LteB33TxLinMasterForApt1 { [Elem...
22.571429
60
0.630802
[ "MIT" ]
HomerSp/EfsTools
EfsTools/Items/Efs/LteB33TxLinMasterForApt1I.cs
474
C#
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in co...
33.568182
114
0.729181
[ "Apache-2.0" ]
abisteknoloji/dotnet-cas-client
DotNetCasClient/Validation/Schema/Saml11/Assertion/Condition/AudienceRestrictionConditionType.cs
1,479
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CopyText : MonoBehaviour { public GameObject First; private void Start() { this.gameObject.GetComponent<Text>().text = First.GetComponent<Text>().text; } private void Update() { TimeSteale...
19.304348
78
0.725225
[ "MIT" ]
GeorgiosVeropoulos/CubeGame
Making a New Game/Assets/Scripts/CopyText.cs
446
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
71.317757
454
0.702529
[ "MIT" ]
ariklin/azure-powershell-1
src/Resources/MSGraph.Autorest/generated/api/Models/ApiV10Beta/OdataErrorMainInnererror.json.cs
7,525
C#
using Translation.Common.Models.Base; namespace Translation.Common.Models.Responses.Project { public class ProjectRestoreResponse : TranslationBaseResponse { } }
21.875
65
0.777143
[ "MIT" ]
Enisbeygorus/translation
Source/Translation.Common/Models/Responses/Project/ProjectRestoreResponse.cs
177
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using System.Runtime.Serialization; namespace System.Globalization { // This abstract...
40.445898
157
0.562811
[ "MIT" ]
Alecu100/coreclr
src/mscorlib/shared/System/Globalization/Calendar.cs
34,015
C#
using System.Threading.Tasks; using Sitecore.Commerce.Core; using Sitecore.Commerce.EntityViews; using Sitecore.Commerce.Plugin.Orders; using Sitecore.Framework.Pipelines; using System.Linq; using Plugin.Konabos.Loyalty.Components; namespace Plugin.Konabos.Loyalty.Pipelines.Blocks { public class GetLoyaltyPointsO...
45.824561
200
0.646631
[ "MIT" ]
konabos/Sitecore-Commerce-Loyalty
Konabos Commerce Engine/2. Feature/Feature.Loyalty/Engine/Plugin.Konabos.Loyalty/Pipelines/Blocks/GetLoyaltyPointsOrderViewBlock.cs
2,614
C#
#region License // Copyright (c) 2009, ClearCanvas 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: // // * Redistributions of source code must retain the above copyright not...
41.75
100
0.725406
[ "Apache-2.0" ]
econmed/ImageServer20
Ris/Application/Common/RegistrationWorkflow/OrderEntry/GetOrderRequisitionForEditResponse.cs
2,340
C#
namespace GuessingGame { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param...
38.323232
166
0.560622
[ "MIT" ]
rawmx/Projects
C Sharp/GuessingGame/GuessingGame/Form1.Designer.cs
3,796
C#
using UISleuth.Reactions; using UISleuth.Widgets; namespace UISleuth.Messages { /// <summary> /// Signal's that the client has requested a tree structure of the UI elements on the surface. /// This "document outline" is created by a <see cref="SurfaceManager"/>. /// </summary> internal class GetVi...
28.434783
98
0.62844
[ "MIT" ]
michaeled/uisleuth
Mobile/Source/UISleuth/Messages/GetVisualTreeRequest.cs
656
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 Xunit; namespace System.Linq.Expressions.Tests { public static class UnaryPlusTests { #region...
43.858447
168
0.59292
[ "MIT" ]
2E0PGS/corefx
src/System.Linq.Expressions/tests/Unary/UnaryUnaryPlusTests.cs
9,605
C#
using System.Collections.Generic; using GRA.Controllers.ViewModel.Shared; using GRA.Domain.Model; namespace GRA.Controllers.ViewModel.MissionControl.PerformerManagement { public class AgeGroupsListViewModel : PerformerManagementPartialViewModel { public ICollection<PsAgeGroup> AgeGroups { get; set; } ...
33.117647
77
0.730018
[ "MIT" ]
MCLD/greatreadingadventure
src/GRA.Controllers/ViewModel/MissionControl/PerformerManagement/AgeGroupsListViewModel.cs
565
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace TerribleBankInc.Models.ViewModels { public class UserProfileViewModel { public int ID { get; set; } [Required] public string Username ...
23.9375
44
0.691906
[ "MIT" ]
ecraciun/TerribleBankInc
src/TerribleBankInc/Models/ViewModels/UserProfileViewModel.cs
385
C#
using System.Management.Automation; namespace SampleModule { [Cmdlet(VerbsCommon.Get, "Foo")] public class GetFooCmdlet : PSCmdlet { } [Cmdlet("BadVerb", "Foo")] public class GetFooCmdlet2 : PSCmdlet { } }
14.294118
41
0.633745
[ "MIT" ]
edyoung/psros
tests/SampleModule/SampleModule.cs
245
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("ta...
38.189189
84
0.748054
[ "MIT" ]
NadiaKaradjova/SoftUni
Programming Fundamentals/RegEx - Lab/Objects and Classes - More Exercises/task5 Boxes/Properties/AssemblyInfo.cs
1,416
C#
using System; using System.Globalization; using System.Linq; using System.Threading.Tasks; using FluentAssertions; using IdentityServer4.EntityFramework.Entities; using IdentityServer4.EntityFramework.Options; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Localization;...
47.779762
180
0.666251
[ "MIT" ]
StredaX/IdentityServer4.Admin
tests/Skoruba.IdentityServer4.Admin.UnitTests/Controllers/ConfigurationControllerTests.cs
40,137
C#
using System; namespace BasicsOfCSharp{ class Employee //Proper { //variables - camelCase //Declaration of variables internal string firstName, lastName, ssn; internal int Age; private decimal salary; //Properites: Smart fields to access the private variables o...
32.169811
132
0.556598
[ "MIT" ]
1905-may06-dotnet/Coombs_Daniel_Project0
01-CSharp/BasicsOfCSharp/Types.cs
1,705
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.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection.Emit; using System.Runtime.ExceptionServ...
41.608779
208
0.504862
[ "MIT" ]
belav/runtime
src/libraries/System.Reflection.DispatchProxy/src/System/Reflection/DispatchProxyGenerator.cs
43,606
C#
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6365, generator: {generator}) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Cmdlets { using static Commvault.Powershell.Runtime.Extensions; /// <summary>Get All Resou...
64.802508
334
0.657169
[ "MIT" ]
Commvault/CVPowershellSDKV2
generated/cmdlets/GetResourcePool_Get.cs
20,672
C#
#pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9103CDEAA88B4F4EDA85E43B8B3514D2FD680502" //------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изменения в э...
32.333333
118
0.590722
[ "Apache-2.0" ]
Kn1fe/sdPck_china
sdPck/obj/Debug/App.g.i.cs
3,046
C#
namespace Uania.Tools.Models.Wrapper { public class RespWrapper { public int Code { get; set; } public string? Message { get; set; } public RespWrapper() { } public RespWrapper(int code, string message) { (Code, Message) = (code, message); ...
21.487805
78
0.53916
[ "MIT" ]
uania/tools
src/Uania.Tools.Models/Wrapper/RespWrapper.cs
881
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class EventData { private string EventIdKey = "EventId"; public Dictionary<string, object> Data; public EventData(string eventId) { Data = new Dictionary<string, object>(); Data[EventIdKey] = eventId; } public object this...
19.026316
53
0.621024
[ "MIT" ]
Enter-your-name-studio/HackgamesMobile
Mutant/Assets/Thirdparty/GameTemplate/Scripts/Singleton/EventManager/EventData.cs
725
C#
namespace _09_StackFibonacci { using System; using System.Collections.Generic; class StartUp { static void Main() { var numberToSearch = int.Parse(Console.ReadLine()); var allNumbers = new Stack<long>(); allNumbers.Push(0); allNumbers.Pus...
25.827586
67
0.528705
[ "MIT" ]
MrPIvanov/SoftUni
04-Csharp Advanced/04-EXERCISE STACKS & QUEUES/04-StacksAndQueuesExercise/09-StackFibonacci/StartUp.cs
751
C#
using Microsoft.Extensions.Configuration; using SPID.AspNetCore.Authentication.Helpers; using SPID.AspNetCore.Authentication.Models; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace SPID.AspNetCore.Authentication.Helpers { static class OptionsHelper { internal static S...
60.883495
118
0.633551
[ "MIT" ]
Magicianred/spid-aspnetcore
SPID.AspNetCore.Authentication/SPID.AspNetCore.Authentication/Helpers/OptionsHelper.cs
6,273
C#
using System.Collections.Generic; using System.Linq; namespace CodingInterview.ArraysAndStrings { /// <summary> /// Given two strings, write a method to decide if one is a permutation of the other. /// </summary> public static class CheckPermutation { public static bool Run(string one, str...
27.418182
89
0.492042
[ "MIT" ]
mmrauta/CondigInterview
CodingInterview/CodingInterview/ArraysAndStrings/CheckPermutation.cs
1,510
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/imm.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System.Ru...
36.428571
145
0.710588
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/imm/CANDIDATELISTTests.cs
1,277
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
37.59375
153
0.60266
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/termstore/model/Store.cs
2,406
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://www.apache.org/licenses/LICENSE-2.0 * * or in the "licens...
34.916031
167
0.499563
[ "Apache-2.0" ]
awslabs/amazon-qldb-driver-dotnet
Amazon.QLDB.Driver.IntegrationTests/StatementExecutionTests.cs
32,020
C#
using System; using System.Linq; using NUnit.Framework; using Shouldly; namespace Nimbus.UnitTests.MulticastRequestResponseTests { [TestFixture] internal class WhenTakingASingleResponse : GivenAWrapperWithTwoResponses { private readonly TimeSpan _timeout = TimeSpan.FromSeconds(1); private ...
24.1875
91
0.647287
[ "MIT" ]
dicko2/Nimbus
src/Tests/Nimbus.UnitTests/MulticastRequestResponseTests/WhenTakingASingleResponse.cs
774
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...
56.289362
187
0.662421
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/LexModelBuildingService/Generated/_bcl35/AmazonLexModelBuildingServiceClient.cs
211,648
C#
using System; using System.Collections.Generic; using System.Linq; namespace SolidStack.Core.Flow.Internal { internal abstract class ActionableVoid<TSelf> : IActionable where TSelf : ActionableVoid<TSelf> { protected ActionableVoid(params Action[] actions) : this(actions.As...
32.363636
98
0.648876
[ "MIT" ]
idmobiles/solidstack
src/SolidStack.Core.Flow/Internal/ActionableVoid.cs
1,070
C#
using System.Collections.Generic; using System.Linq; using Terraria; using Terraria.ID; namespace MagicStorageExtra.Sorting { public abstract class ItemFilter { public abstract bool Passes(Item item); public bool Passes(object obj) { switch (obj) { case Item item: return Passes(item); case ...
27.627907
242
0.687079
[ "MIT" ]
ExterminatorX99/MagicStorage
Sorting/ItemFilter.cs
4,752
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Win32.SafeHandles; namespace System.Threading { public static class WaitHandleExtensions { ...
41.309524
146
0.645533
[ "MIT" ]
RobSiklos/corefx
src/System.Runtime/src/System/Threading/WaitHandleExtensions.cs
1,735
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> //------------------------------------------...
33.903855
156
0.740119
[ "MIT" ]
ScottColson/XrmUnitTest
DLaB.Xrm.Entities/msdyn_rtv.cs
72,995
C#
namespace DataStore.Models.PureFunctions.Extensions { using System; internal static class Dates { public static DateTime ConvertFromMillisecondsEpochTime(this double src) => new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(src); public static DateTime Conver...
35
133
0.685714
[ "MIT-feh" ]
anavarro9731/datastore
src/DataStore.Models/PureFunctions/Extensions/Dates.cs
597
C#
/* Sniperkit-Bot - Status: analyzed */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TaxonomyLib; namespace TaxonomyWpf { public class NamespaceItem { public Namespace Namespace { get; } private L...
16.727273
72
0.719203
[ "MIT" ]
sniperkit/Taxonomy
TaxonomyWpf/NamespaceItem.cs
554
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ISUF.Storage.Enum { /// <summary> /// Enum of database changes /// </summary> public enum DbTypeOfChange { Add, Edit, Remove, CreateTable, ...
16.727273
33
0.608696
[ "Apache-2.0" ]
JanRajnoha/ISUF
src/ISUF.Storage/Enum/DbTypeOfChange.cs
370
C#
using tictactoe.IO; namespace tictactoe.Players.Creation { public sealed class SecondHumanCreation : IPlayerCreation { private const string AcceptedInputFormat = "^[^{0}]$"; private const string PromptLineFormat = "Player Two: Select a single character (other than {0}) for your mark:"; ...
40.26087
163
0.719222
[ "MIT" ]
Fyzxs/MicroObjectTicTacToe
TicTacToe/Players/Creation/SecondHumanCreation.cs
928
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HyoutaTools.Trophy.Viewer { public class GameFolder { public List<TrophyConfNode> TrophyLists; public GameFolder( String Folder ) { String[] Games = System.IO.Directory.GetDirectories( Folder ); Tr...
25.866667
92
0.667526
[ "MIT" ]
LinkOFF7/HyoutaTools
Trophy/Viewer/GameFolder.cs
778
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class SceneChangeManager : Singleton<SceneChangeManager> { [SerializeField] GameObject loadingPanel; [SerializeField] Image loadingBar; private void Start() {...
23.858333
67
0.581558
[ "CC0-1.0" ]
jorgar17/REPO__FPS---Proyectos-IV
FPS - Proyectos IV/Assets/Scripts/General Managers/SceneChangeManager.cs
2,865
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. #nullable disable using System.Threading; using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery; namespace ...
36.391304
126
0.767025
[ "MIT" ]
333fred/roslyn
src/Features/CSharp/Portable/Completion/KeywordRecommenders/RegionKeywordRecommender.cs
839
C#
/* Copyright (c) 2018 Convergence Systems Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
41.439394
173
0.627605
[ "MIT" ]
cslrfid/CS108-Mobile-CSharp-DotNetStd-App
Library/CSLibrary/RFIDReader/ClassRFID.Private.Inventory.cs
10,942
C#
using Alloy.Mvc._1.Models.Pages; namespace Alloy.Mvc._1.Models.ViewModels; public class SearchContentModel : PageViewModel<SearchPage> { public SearchContentModel(SearchPage currentPage) : base(currentPage) { } public bool SearchServiceDisabled { get; set; } public string SearchedQuery {...
20.689655
59
0.655
[ "Apache-2.0" ]
episerver/content-templates
templates/Alloy.Mvc/Models/ViewModels/SearchContentModel.cs
600
C#
// // System.Buffer.cs // // Authors: // Paolo Molaro (lupus@ximian.com) // Dan Lewis (dihlewis@yahoo.co.uk) // // (C) 2001 Ximian, Inc. http://www.ximian.com // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of th...
34.719298
154
0.619505
[ "BSD-3-Clause" ]
eladraz/morph
netcore/clr/clrcore/IO/Buffer.cs
3,958
C#
using System; using System.Collections.Generic; using System.Text; using ReactiveUI; using System.Reactive; using System.Collections.ObjectModel; using CourseScheduler.Avalonia.VMInfrastructures; using System.Net.Http; using CourseScheduler.Core.DataStrucures; using CourseScheduler.Avalonia.Model; using System.Linq; u...
27.896552
112
0.706222
[ "MIT" ]
Quantumzhao/CourseScheduler
CourseScheduler.Avalonia/ViewModels/MainPageViewModel.cs
7,283
C#
/* *所有关于Personal_Certificates类的业务代码接口应在此处编写 */ using VOL.Core.BaseProvider; using VOL.Entity.DomainModels; using VOL.Core.Utilities; using System.Linq.Expressions; namespace Business.IServices { public partial interface IPersonal_CertificatesService { } }
19.214286
58
0.791822
[ "MIT" ]
suxuanning/Vue.NetCore
Vue.Net/Business/IServices/Archives/Partial/IPersonal_CertificatesService.cs
305
C#
using Engine.Shared.Base; using Engine.Shared.Interfaces; using FarseerPhysics; using FarseerPhysics.Dynamics; using FarseerPhysics.Dynamics.Joints; using FarseerPhysics.Factories; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; namespace Game.Shared.Base { /// <s...
36.680556
148
0.593715
[ "MIT" ]
PacktPublishing/Create-and-Monetize-your-C-Games-on-iOS-and-Android
Source Code/Game.Shared/Base/PhysicsWorld.cs
5,284
C#
using Microsoft.AspNetCore.Mvc.RazorPages; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebSortAlgorithms.Pages.SortViews { public class ModelCardSortView : PageModel { public string Title { get; set; } } }
20.785714
46
0.745704
[ "MIT" ]
walonso/SortAlgorithms
WebSortAlgorithms/Pages/SortViews/ModelCardSortView.cs
293
C#
using System; using System.Numerics; using Microsoft.Xna.Framework.Graphics; using Myre.Extensions; using Myre.Graphics.Materials; using Myre.Graphics.PostProcessing; using Color = Microsoft.Xna.Framework.Color; namespace Myre.Graphics.Deferred { public class ToneMapComponent : RendererComponent { ...
47.875
231
0.652657
[ "MIT" ]
martindevans/Myre
Myre/Myre.Graphics/Deferred/ToneMapComponent.cs
11,875
C#
using Meadow.Foundation.Sensors.Gnss; using Meadow.Hardware; namespace Meadow.Foundation.FeatherWings { public class GPSWing : Mt3339 { public GPSWing(ISerialMessagePort serialMessagePort) : base(serialMessagePort) { } } }
21.076923
60
0.660584
[ "Apache-2.0" ]
WildernessLabs/Meadow.Foundation
Source/Meadow.Foundation.Peripherals/FeatherWings.GPSWing/Driver/FeatherWings.GPSWing/GPSWing.cs
276
C#
//----------------------------------------------------------------------- // <copyright file="<file>.cs" company="The Outercurve Foundation"> // Copyright (c) 2011, The Outercurve Foundation. // // Licensed under the MIT License (the "License"); // you may not use this file except in compliance with the ...
32.810811
114
0.593355
[ "MIT" ]
MihaMarkic/simple-json
src/SimpleJson.Tests/PocoJsonSerializerTests/NullableSerializeTests.cs
3,644
C#