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
namespace _07_SelectionSort { using System; class SelectionSort { /* Sorting an array means to arrange its elements in increasing order. Write a program to sort an array. Use the Selection sort algorithm: Find the smallest element, move it at the first position, find the...
26.278689
72
0.412352
[ "MIT" ]
theshaftman/Telerik-Academy
C# Part 2/01-Arrays/07_SelectionSort/SelectionSort.cs
1,605
C#
// <copyright file="BadWordContext.cs" company="The Shinoa Development Team"> // Copyright (c) 2016 - 2017 OmegaVesko. // Copyright (c) 2017 The Shinoa Development Team. // Licensed under the MIT license. // </copyright> namespace Shinoa.Databases { using System; using System.Collections.Generic; u...
34.078292
169
0.501149
[ "MIT" ]
Dormanil/Shinoa
src/Shinoa/Databases/BadWordContext.cs
9,578
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("Th...
38.189189
84
0.748054
[ "Apache-2.0" ]
TallaXL/SimplePlugin
ThirdPlugin/Properties/AssemblyInfo.cs
1,416
C#
using System; using System.Collections.Generic; namespace GenericCountMethodDoubles { class Program { static void Main() { var lines = int.Parse(Console.ReadLine()); var list = new List<Box<double>>(); for (int i = 0; i < lines; i++) { ...
27.75
102
0.507883
[ "MIT" ]
rumenand/HomeWork_Tasks
CSharp Advanced/07.Exercises Generics/GenericCountMethodDoubles/Program.cs
890
C#
using BrockAllen.MembershipReboot.Helpers; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { const int Start...
30.609756
126
0.495618
[ "BSD-3-Clause" ]
Bringsy/BrockAllen.MembershipReboot
util/PasswordStretchingTimings/PasswordStretchingTimings/Program.cs
1,257
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...
31.641892
111
0.584668
[ "Apache-2.0" ]
GitGaby/aws-sdk-net
sdk/src/Services/DirectConnect/Generated/Model/DescribeDirectConnectGatewayAttachmentsRequest.cs
4,683
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://ww...
42.666667
102
0.602051
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/Sql/Commands.Sql/Common/AzureSqlDatabaseCmdletBase.cs
2,001
C#
using System; using System.Collections.Generic; using System.Linq; using AdventOfCode.Common; using JetBrains.Annotations; namespace AdventOfCode.Solutions._2017._14; [UsedImplicitly] public class Year2017Day14 : ISolution { public object Part1(IEnumerable<string> input) { var key = input.First(); var grid = Ge...
21.647059
90
0.576087
[ "MIT" ]
PDmatrix/advent-of-code
CSharp/Solutions/2017/14/Year2017Day14.cs
2,576
C#
using System; using System.IO; using System.Threading.Tasks; using IonDotnet.Builders; using IonDotnet.Internals.Text; namespace IonDotnet.Serialization { public class IonTextSerializer { public string Serialize<T>(T obj, IScalarWriter scalarWriter = null) => Serialize(obj, IonTextOptions....
33.403846
100
0.597582
[ "MIT" ]
almann/ion-dotnet
IonDotnet.Serialization/IonTextSerializer.cs
1,739
C#
using LiteDB; using DCL_Core.Contracts; using System; namespace DCL_Core.LiteDB { public class HandleLiteDB { public LiteDatabase ChainDB; public LiteDatabase OpenDB() { ChainDB = new LiteDatabase(@"DCL_Core.db"); return ChainDB; } ...
27.22449
89
0.593703
[ "MIT" ]
JohnJohnssonnl/DCL
DCL_Core/LiteDB/HandleLiteDB.cs
1,336
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Vic.SportsStore.Domain.Abstract; using Vic.SportsStore.Domain.Entities; namespace Vic.SportsStore.Domain.Concrete { public class InMemoryProductRepository : IProductsRepository { p...
26.390244
64
0.577634
[ "MIT" ]
nbxx/SportsStore06
SportsStore/Vic.SportsStore.Domain/Concrete/InMemoryProductRepository.cs
1,084
C#
using System.Linq; using Octopus.Client.Editors; using Octopus.Client.Exceptions; using Octopus.Client.Model; namespace Octopus.Client.Repositories { public interface IRunbookRepository : IFindByName<RunbookResource>, IGet<RunbookResource>, ICreate<RunbookResource>, IModify<RunbookResource>, IDelete<RunbookResourc...
50.808989
175
0.723574
[ "Apache-2.0" ]
BlythMeister/OctopusClients
source/Octopus.Server.Client/Repositories/RunbookRepository.cs
4,522
C#
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: math.proto #region Designer generated code using System; using System.Threading; using System.Threading.Tasks; using Grpc.Core; namespace math { public static class Math { static readonly string __ServiceName = "math.Math"; static rea...
52.939597
208
0.730603
[ "BSD-3-Clause" ]
denza/grpc
src/csharp/Grpc.Examples/MathGrpc.cs
7,888
C#
// Copyright (c) 2002-2019 "Neo4j," // Neo4j Sweden AB [http://neo4j.com] // // This file is part of Neo4j. // // 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....
35.852941
91
0.733388
[ "Apache-2.0" ]
davidwandar/neo4j-dotnet-driver
Neo4j.Driver/Neo4j.Driver/Internal/IO/MessageSerializers/V3/RollbackMessageSerializer.cs
1,219
C#
using System; using McMaster.Extensions.CommandLineUtils; using Microsoft.Azure.Management.ApiManagement.ArmTemplates.Common; namespace Microsoft.Azure.Management.ApiManagement.ArmTemplates.Extract { public class ExtractCommand : CommandLineApplication { public ExtractCommand() { th...
50.473684
171
0.564755
[ "MIT" ]
aflinchb/azure-api-management-devops-resource-kit
src/APIM_ARMTemplate/apimtemplate/Commands/Extract.cs
4,795
C#
using System; using System.Collections.Generic; using System.Linq; namespace Orchard.Environment.Extensions { public class CompositeExtensionProvider : IExtensionProvider { private readonly IExtensionProvider[] _extensionProviders; public CompositeExtensionProvider(params IExtensionProvider[] ...
33.4
93
0.629491
[ "BSD-3-Clause" ]
ChipSoftTech/CST-CMS
src/OrchardCore/Orchard.Environment.Extensions.Abstractions/CompositeExtensionProvider.cs
1,338
C#
using System; using System.IO; using System.Threading.Tasks; namespace MixologyJournalApp.Platform { public interface IBackend { Task<QueryResult> PostResult(String path, Object body); Task<QueryResult> DeleteResult(String path, Object body); Task<String> GetResult(String path); ...
22.277778
75
0.705736
[ "Apache-2.0" ]
davidov541/MixologyJournal
MixologyJournalApp/MixologyJournalApp/Platform/IBackend.cs
403
C#
using System; using System.Collections.Generic; namespace Anagram { public class AnagramSelector { public bool WordPairIsAnagram(string word1, string word2) { if (word1.Length != word1.Length) return false; var s1Array = word1.ToLower().ToCharArray(); ...
28.057143
82
0.520367
[ "MIT" ]
Engin-Boot/anagram-selector-cs-debnathtanmoy
Anagram/Anagram.cs
984
C#
using CSharpWars.Enums; using CSharpWars.ScriptProcessor.Middleware; using CSharpWars.Tests.Framework.FluentAssertions; using FluentAssertions; using Xunit; namespace CSharpWars.Tests.Scripting.Middleware { public class MoveComparerTests { [Theory] [InlineData(PossibleMoves.Idling)] [I...
34.859813
158
0.652279
[ "MIT" ]
Djohnnie/CSharpWars-ProgNET-London-2019
src/backend/CSharpWars/CSharpWars.Tests/Scripting/Middleware/MoveComparerTests.cs
3,732
C#
namespace AutoLot.Dal.Exceptions; public class CustomDbUpdateException : CustomException { public CustomDbUpdateException() { } public CustomDbUpdateException(string message) : base(message) { } public CustomDbUpdateException(string message, DbUpdateException innerException) : ba...
20.111111
84
0.712707
[ "BSD-3-Clause", "MIT" ]
MalikWaseemJaved/presentations
.NETCore/ASP.NETCore/v6.0/AutoLot/AutoLot.Dal/Exceptions/CustomDbUpdateException.cs
364
C#
using System.ComponentModel; using Microsoft.Extensions.Logging.Abstractions; using Promitor.Core.Scraping.Configuration.Serialization.v1.Core; using Xunit; namespace Promitor.Scraper.Tests.Unit.Serialization.v1.Core { [Category("Unit")] public class ScrapingDeserializerTests { private readonly Sc...
25.666667
96
0.578734
[ "MIT" ]
burningalchemist/promitor
src/Promitor.Scraper.Tests.Unit/Serialization/v1/Core/ScrapingDeserializerTests.cs
1,234
C#
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
42.376443
176
0.634312
[ "MIT" ]
AustralianDisabilityLimited/MultiversePlatform
client/Base/PrimeMover.cs
18,349
C#
using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json.Linq; using OrchardCore.ContentManagement; using OrchardCore.Scripting; namespace OrchardCore.Contents.Scripting { public class ContentMethodsProvider : IGlobalMethodProvider { private ...
39.772727
164
0.604571
[ "BSD-3-Clause" ]
1426463237/OrchardCore
src/OrchardCore.Modules/OrchardCore.Contents/Scripting/ContentMethodsProvider.cs
2,625
C#
using SIS.HTTP.Sessions; using SIS.MvcFramework.Sessions; using System.Collections.Concurrent; namespace SIS.MvcFramework.Sessions { public class HttpSessionStorage : IHttpSessionStorage { public const string SessionCookieKey = "SIS_ID"; private readonly ConcurrentDictionary<string, IHttpSess...
25.724138
81
0.656836
[ "MIT" ]
SimeonVSimeonov/custom-mvc-framework
SIS.MvcFramework/Sessions/HttpSessionStorage.cs
748
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.Encodings.Web; using System.Threading.Tasks; using AutoMapper; using CustomerManager.Application.Exceptions; using CustomerManager.Application.Extensions; using CustomerManager.Applicatio...
47.718033
201
0.605538
[ "MIT" ]
kennyas/CustomerManager
src/Infrastructure/Services/Identity/UserService.cs
14,556
C#
using System; namespace Yota.Tests { public class Class1 { } }
9.5
23
0.605263
[ "MIT" ]
denisburlacu/Yota
Yota.Tests/Class1.cs
78
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...
35.12987
104
0.664695
[ "Apache-2.0" ]
SaschaHaertel/AmazonAWS
sdk/src/Services/ConfigService/Generated/Model/PutDeliveryChannelRequest.cs
2,705
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace WpfSmtpClient { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { ...
18.166667
42
0.706422
[ "Apache-2.0" ]
lnodaba/DoubleCount.UnoExample
WpfSmtpClient/App.xaml.cs
329
C#
using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using ING.GEP.CodingChallenge.Core.Clothing.Models; using ING.GEP.CodingChallenge.Core.Enums; namespace ING.GEP.CodingChallenge.Core.Clothing { public class ClothsService { public async Task<List<Cloth>> ImportF...
32.365079
92
0.511525
[ "MIT" ]
nikneem/coding-challenge
Assignment01/ING.GEP.CodingChallenge.Core/Clothing/ClothsService.cs
2,041
C#
using System; using System.Windows.Input; namespace ContosoMoments { public class DelegateCommand : ICommand { private readonly Func<object, bool> canExecuteHandler; private readonly Action<object> executeHandler; public event EventHandler CanExecuteChanged; public DelegateCo...
24.5
92
0.589981
[ "MIT" ]
AsimKhan2019/Contoso-Moments
src/Mobile/ContosoMoments/Helpers/DelegateCommand.cs
1,080
C#
using System.ComponentModel; using System.Drawing; using System.IO; using System.Runtime.InteropServices; using System.Windows.Forms; namespace ProScan { public class CommLogForm : Form { private RichTextBox richTextBox; public CommLogForm() { InitializeComponent(); } public new void Update() { ...
25.9
146
0.698842
[ "Unlicense" ]
beyerch/ProScan
ProScan/ProScan/CommLogForm.cs
1,556
C#
using UnityEngine; public class TexShowcaseToggle : MonoBehaviour { GameObject[] objects; int current = 0; // Use this for initialization void Start () { objects = new GameObject[transform.childCount]; for (int i = 0; i < transform.childCount; i++) { objects[i] = transf...
26.9375
94
0.580046
[ "MIT" ]
WolfDierdonck/AR-Grapher
Assets/Plugins/TEXDraw/Sample/Scripts/TexShowcaseToggle.cs
864
C#
using System; using System.Data; using System.Threading; using System.Threading.Tasks; using Bussy.Server.Databases; using Bussy.Server.Models.Order; using FluentValidation; using Microsoft.EntityFrameworkCore; namespace Bussy.Server.Domain.Orders.Validators { public class OrderModelForManipulationVali...
40.851852
114
0.572076
[ "MIT" ]
kkadir/aspnet-5-eventbus
src/Bussy.Server/Domain/Orders/Validators/OrderModelForManipulationValidator.cs
2,208
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
53.522059
282
0.649059
[ "MIT" ]
gurry/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/Event.cs
14,558
C#
using System.Runtime.Serialization; namespace Service.Blockchain.Wallets.Grpc.Models.UserWallets { [DataContract] public class GetUserWalletRequest { [DataMember(Order = 1)] public string WalletId { get; set; } [DataMember(Order = 2)] public string AssetSymbol { get; set; }...
24.608696
60
0.609541
[ "MIT" ]
MyJetWallet/Service.Blockchain.Wallets
src/Service.Blockchain.Wallets.Grpc/Models/UserWallets/GetUserWalletRequest.cs
566
C#
using System; using Microsoft.IdentityModel.Tokens; namespace ThinkAM.ThinkAcademy.Authentication.JwtBearer { public class TokenAuthConfiguration { public SymmetricSecurityKey SecurityKey { get; set; } public string Issuer { get; set; } public string Audience { get; set; } p...
22.947368
66
0.68578
[ "MIT" ]
ThinkAcademy-BR/ThinkAcademy
aspnet-core/src/ThinkAM.ThinkAcademy.Web.Core/Authentication/JwtBearer/TokenAuthConfiguration.cs
438
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Collections.Generic; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.OpenGL....
40.776042
175
0.468259
[ "MIT" ]
miterosan/osu-framework
osu.Framework.Tests/Visual/TestCaseCircularProgress.cs
7,831
C#
using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; using System.Threading.Tasks; using cmstar.Serialization.Json; #if !NETFX using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; #else using System.Web; #endif namespace cmstar.WebApi.Slim { ...
33.860034
121
0.505951
[ "MIT" ]
cmstar/SlimWebApi
src/cmstar.WebApi/Slim/SlimApiHttpHandler.cs
21,755
C#
/******************************************************************************* * Copyright 2012-2019 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...
42.412811
282
0.592549
[ "Apache-2.0" ]
JekzVadaria/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/IoT/Basic/Search-IOTIndex-Cmdlet.cs
11,918
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.md file in the project root for more information. using System; using System.Collections.Immutable; using static Microsoft.VisualStudio.ProjectSystem.Tokenizer; ...
34.682741
213
0.550677
[ "MIT" ]
Ykk199612053634/project-system
tests/Microsoft.VisualStudio.ProjectSystem.Managed.TestServices/ProjectSystem/ProjectTreeParser/ProjectTreeParser.cs
13,274
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 Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore { internal static class Diagnostic...
51.479167
309
0.699312
[ "Apache-2.0" ]
4samitim/aspnetcore
src/Middleware/Diagnostics.EntityFrameworkCore/src/DiagnosticsEntityFrameworkCoreLoggerExtensions.cs
7,413
C#
 using Nethereum.LogProcessing.Dynamic.Configuration; using System.Threading.Tasks; namespace Nethereum.LogProcessing.Dynamic.Handling { public interface IEventHandlerConfigurationFactory { Task<EventSubscriptionStateDto> GetEventSubscriptionStateAsync(long eventSubscriptionId); Task SaveAsync...
27.923077
97
0.801653
[ "MIT" ]
Dave-Whiffin/Nethereum.BlockchainProcessing
src/Nethereum.LogProcessing.Dynamic/Handling/IEventHandlerConfigurationFactory.cs
365
C#
using General.Entities.GeneralModels; namespace General.Services.General.EntityServices { public interface ICategoryService { Category GetSingle(object id); void Add(Category category); } }
18.416667
49
0.710407
[ "MIT" ]
zddblog/GeneralSysManagement
General.Services/General.EntityServices/ICategoryService.cs
223
C#
using System; using System.Linq; using System.Reflection; using Tizen.NUI; namespace Tizen.NUI.Binding { // [Xaml.ProvideCompiled("Tizen.NUI.XamlC.ColorTypeConverter")] [Xaml.TypeConversion(typeof(Color))] internal class ColorTypeConverter : TypeConverter { // Supported inputs // HEX ...
36
157
0.416453
[ "Apache-2.0" ]
EwoutH/TizenFX
src/Tizen.NUI/src/internal/XamlBinding/ColorTypeConverter.cs
4,680
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
30.44086
81
0.574002
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Ticm/V20181127/Models/VodPoliticalAsrReviewResult.cs
3,237
C#
namespace SoundFingerprinting.Query { using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using SoundFingerprinting.Configuration; using SoundFingerprinting.Data; using SoundFingerprinting.DAO; using SoundFing...
36.639344
157
0.635794
[ "MIT" ]
JunkiEDM/FindSimilarCore
FindSimilarServices/Soundfingerprinting/Query/GroupedQueryResults.cs
4,472
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.663462
179
0.625506
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Connect/Generated/Model/Internal/MarshallTransformations/SecurityProfileSummaryUnmarshaller.cs
3,709
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 ...
24.478723
96
0.681008
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-cloudphoto/CloudPhoto/Model/V20170711/DeleteEventRequest.cs
2,301
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...
28.571429
83
0.64
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/BotService/V20171201/Inputs/MsTeamsChannelArgs.cs
1,000
C#
 namespace GMap.NET.Projections { using System; /// <summary> /// The Mercator projection /// PROJCS["World_Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator"],PARAMETER["False_...
30.5
341
0.542591
[ "MIT" ]
Hogan2/myGMap.Net
GMap.Net/GMap.NET.Core/GMap.NET.Projections/MercatorProjection.cs
3,113
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 System; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Automation; namespace Microsoft.VisualStudio.IntegrationTes...
44.899441
161
0.655344
[ "Apache-2.0" ]
ElanHasson/roslyn
src/VisualStudio/IntegrationTest/TestUtilities/DialogHelpers.cs
8,039
C#
namespace Alex.Blocks.Minecraft { public class TripwireHook : Block { public TripwireHook() : base() { Solid = false; Transparent = true; } } }
14.166667
35
0.605882
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
codingwatching/Alex
src/Alex/Blocks/Minecraft/TripwireHook.cs
170
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class PauseMenu : MonoBehaviour { public static bool GameIsPaused; public GameObject pauseMenuUI; string[] Pause_array = new string[] { "Pausa", "Pause" }; ...
24.941176
77
0.590802
[ "Apache-2.0" ]
GlassBeardTeam/Puppet
Pappet/Assets/Scripts/Interface/PauseMenu.cs
1,698
C#
// <auto-generated /> using System; using GovUk.Education.SearchAndCompare.Api.DatabaseAccess; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFramewo...
34.371921
118
0.47818
[ "MIT" ]
DFE-Digital/search-and-compare-api
src/api/Migrations/20190924102929_AddAdditionalSubjects.Designer.cs
13,957
C#
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Linq; namespace Framework.DAL { /// <summary> /// base interface of all DataAccessLayerContract, which defines common methods. /// </summary> /// <typeparam name="TCollection">The type of the collection of...
34.984127
97
0.595735
[ "MIT" ]
ntierontime/Log4Net
Frameworks/Framework.DAL/DataAccessLayerContractBase.cs
2,204
C#
using SlipeServer.Packets.Enums; using System; using System.Collections.Generic; using System.Numerics; using System.Text; namespace SlipeServer.Server.Elements.Events { public class VehicleDoorOpenRatioChangedArgs : EventArgs { public Vehicle Vehicle { get; set; } public VehicleDoor Door { ge...
26.72
105
0.636228
[ "MIT" ]
ERAGON007/Slipe-Server
SlipeServer.Server/Elements/Events/VehicleDoorOpenRatioChangedArgs.cs
670
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Sockets; using System.Threading; using System.Security.Cryptography; using System.Diagnostics; namespace Renci.SshNet.Common { /// <summary> /// Collection of different extension method specific ...
29.605634
102
0.549001
[ "BSD-3-Clause" ]
matthewvukomanovic/sshnet
Renci.SshClient/Renci.SshNet.Silverlight5/Common/Extensions.SilverlightShared.cs
2,104
C#
using Piglet.Lexer.Configuration; namespace Piglet.Parser.Configuration { /// <summary> /// Set additional settings for the lexer /// </summary> public interface ILexerSettings { /// <summary> /// Set to false if you do not desire a lexer. You will need to supply a lexer m...
33.741935
114
0.582218
[ "MIT" ]
Dervall/Piglet
Piglet/Parser/Configuration/ILexerSettings.cs
1,046
C#
using Bridge.Test.NUnit; using System; using System.Collections.Generic; using System.Collections.ObjectModel; namespace Bridge.ClientTest.Collections.Generic { [Category(Constants.MODULE_ICOLLECTION)] [TestFixture(TestNameFormat = "ReadOnlyCollection - {0}")] public class ReadOnlyCollectionTests { ...
34.468421
179
0.514735
[ "Apache-2.0" ]
Cheatoid/CSharp.lua
test/BridgeNetTests/Batch1/src/Collections/ObjectModel/ReadOnlyCollectionTests.cs
13,098
C#
using UnityEngine; using UnityEngine.UI; using System.Collections; public class EndGameScreen : MonoBehaviour { /// <summary> /// Reference to winner team. /// </summary> public static TeamTypes winnerTeam; /// <summary> /// Reference to text that will show who won. /// </summary> [Se...
22.75
77
0.598478
[ "Apache-2.0" ]
Kwell/UNION-OpenSource-MOBA
Unity 5.1 Source Project/Project/Assets/Scripts/Screens/EndGameScreen.cs
1,185
C#
using System; namespace BasicExamples { class Program { static void Main(string[] args) { //Console.WriteLine("Runnin XOR Example......"); //XORGate.Run(); LogisticRegressionExplained.Run(); } } }
17.75
60
0.496479
[ "Apache-2.0" ]
AnshMittal1811/MxNet.Sharp
examples/BasicExamples/Program.cs
286
C#
// Copyright (c) Pomelo Foundation. All rights reserved. // Licensed under the MIT. See LICENSE in the project root for license information. using System; using System.Linq.Expressions; using Microsoft.EntityFrameworkCore.Query.Expressions; //ReSharper disable once CheckNamespace namespace Microsoft.EntityFrameworkCo...
40.666667
105
0.643127
[ "MIT" ]
WithLin0510/Pomelo.EntityFrameworkCore.MySql
src/EFCore.MySql/Query/ExpressionTranslators/Internal/MySqlDateTimeNowTranslator.cs
1,586
C#
using SRML; using SRML.Console; using Common; namespace CustomGadgetSites { class Main: Mod, IModEntryPoint { public static new readonly string id = Mod.id.ToLower(); public virtual void PreLoad() { init(); HarmonyPatcher.GetInstance().PatchAll(); SaveLoadUtils.init(); Console.RegisterCommand(...
18.107143
60
0.719921
[ "MIT" ]
zorgesho/SlimeRancherMods
CustomGadgetSites/main.cs
509
C#
namespace EnergyManagementScheduler.WebJob.Contracts { using System; public class DailyConsumptionData { public int Id { get; set; } public double? AMPS_SYSTEM_AVG { get; set; } public string Building { get; set; } public string Breaker_details { get; set; } pub...
23.361111
58
0.614744
[ "Apache-2.0" ]
MobiliyaTechnologies/RESTServer
RestService/EnergyManagementScheduler.WebJob/Contracts/DailyConsumptionData.cs
843
C#
using System; using System.Diagnostics; using System.IO; using System.Timers; using System.Threading; namespace Alibaba.F2E.Tianma { class Node : EventEmitter { // Process status constants. enum Status { Idle, Starting, Running, Stopping } // Standard error buffer. string error = ""; // Standard output bu...
23.850242
89
0.654446
[ "MIT" ]
gxcsoccer/tianma
daemon/src/Node.cs
4,937
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SampleLibrary { public class Class1 { } }
12.666667
33
0.717105
[ "Apache-2.0" ]
kzu/EasyMerge
EasyMerge.Tests/Content/SampleLibrary/Class1.cs
154
C#
using System.Collections.Generic; using src.core.figures; using src.core.rules.ruleList; namespace src.core.rules { public class RulesValidator { private List<Rule> _rules = new List<Rule>(); public ChessSide WhoseTurn; public RulesValidator() { _rules.Add(new Cast...
26.2
100
0.475827
[ "MIT" ]
EvgenL/EvgenChess
Assets/src/core/rules/RulesValidator.cs
1,967
C#
using System; using System.Collections.Generic; using System.Text; namespace Cosmos.Hardware2.Network.Devices.RTL8139 { /// <summary> /// A network Packet used when transferring data over a network. /// Consists of a body (with the data) and a head (with info about the packet) /// </summary>...
26.647059
100
0.549669
[ "BSD-3-Clause" ]
ERamaM/Cosmos
source/Unused/Cosmos.Hardware/Network/Devices/RTL8139Old/Packet.cs
908
C#
using System; using System.Collections.Generic; using System.Reflection; using Bing.Datas.EntityFramework.Core; using Microsoft.EntityFrameworkCore; namespace Bing.Datas.EntityFramework.MySql { /// <summary> /// MySql 工作单元 /// </summary> public abstract class UnitOfWork : UnitOfWorkBase { ...
30.933333
151
0.648707
[ "MIT" ]
bing-framework/Bing.NetCode
framework/src/Bing.Datas.EntityFramework.MySql/UnitOfWork.cs
994
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// /// </summary> [Serializable] [XmlRoot(Namespace = "")] [Groups...
28.355932
129
0.557681
[ "MIT" ]
JTOne123/broadworks-connector-net
BroadworksConnector/Ocip/Models/SystemVoiceMessagingGroupGetVoicePortalMenusResponse21AnnouncementRecordingMenuKeys.cs
3,346
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. namespace Microsoft.EntityFrameworkCore.Specification.Tests.TestModels.GearsOfWarModel { public class SquadMission { public Squad Squad...
31.533333
111
0.687104
[ "Apache-2.0" ]
Mattlk13/EntityFramework
src/Microsoft.EntityFrameworkCore.Specification.Tests/TestModels/GearsOfWarModel/SquadMission.cs
475
C#
using UnityEngine; namespace Widget { public class LootAtCameraComponent : MonoBehaviour { [SerializeField] private Canvas canvas; private ICameraService _cameraService; private void Awake() { _cameraService = LocatorService.Instance.Get<ICameraServ...
23.884615
75
0.561997
[ "MIT" ]
joaokucera/unity-swordhero
src/Assets/Scripts/Widget/LootAtCameraComponent.cs
621
C#
// *********************************************************************** // Copyright (c) 2011 Charlie Poole, Rob Prouse // // 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 restri...
40.141058
143
0.565826
[ "MIT" ]
Dreamescaper/nunit
src/NUnitFramework/nunitlite/OutputWriters/NUnit2XmlOutputWriter.cs
15,936
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 09.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
23.450346
133
0.525507
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/Equal/Complete/NullableDouble/Int32/TestSet_504__param__01__VV.cs
10,156
C#
using UnityEngine; using System.Collections.Generic; using PF; using Mathf = UnityEngine.Mathf; namespace Pathfinding.Voxels { public partial class Voxelize { public void BuildContours (float maxError, int maxEdgeLength, VoxelContourSet cset, int buildFlags) { AstarProfiler.StartProfile("Build Contours"); As...
28.287185
215
0.572261
[ "MIT" ]
AlianBlank/DCET
Unity/Packages/DCET.Pathfinding/Runtime/AstarPathfindingProject/Generators/Utilities/Voxels/VoxelContour.cs
24,723
C#
namespace CardRecharge { partial class Form_ChangePwd { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /...
38.976378
107
0.551515
[ "MIT" ]
xiaoFeiLang/pay
src/CardRecharge/Form_ChangePwd.Designer.cs
4,984
C#
using UnityEngine; using System.Collections; public class CheckIfKlotzLeft : MonoBehaviour { public Collider connectedKlotz; private void OnTriggerExit(Collider c) { if (c == connectedKlotz) { GameController.KlotzDestroyed(); Destroy(this); } } }
14.944444
46
0.724907
[ "MIT" ]
Nikgoten/SlingShooter_2.0
Assets/Scripts/CheckIfKlotzLeft.cs
271
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
34.014141
1,802
0.475184
[ "MIT" ]
F-V-L/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/QueueConversationCallEventTopicCallMediaParticipant.cs
50,511
C#
using System; using System.Windows; using DentoInjector.Core; namespace DentoInjector.Graphics { public partial class WnExceptionHandler { public WnExceptionHandler(Exception error) { InitializeComponent(); MessageText.Text = error.Message; StackTraceText....
20.5
65
0.60813
[ "MIT" ]
trucnguyenlam/DentoInjector
DentoInjector/Graphics/WnExceptionHandler.xaml.cs
617
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace BNG { /// <summary> /// This CharacterConstraint will keep the size the Character Capsule along with the camera if not colliding with anything /// </summary> public class CharacterConstraint : MonoBehaviour { ...
26.697674
123
0.750871
[ "MIT" ]
AhmedFarouk1/GolfVR
Assets/BNG Framework/Scripts/Components/CharacterConstraint.cs
1,150
C#
 namespace FlowCanvas { ///A stub class to replicate open generics public class Wild { } }
17.333333
47
0.644231
[ "MIT" ]
SwageliciousGGJ/YourMom2.0
Assets/ParadoxNotion/FlowCanvas/Modules/FlowGraphs/Wild.cs
106
C#
using System.Linq; namespace Powercards.Core.Cards { [CardInfo(CardSet.Promo, 4, true)] public class Envoy : CardBase, IActionCard { #region methods public void Play(TurnContext context) { using (var transZone = new TransitionalZone(context.ActivePlayer)) { ...
39.870968
133
0.598706
[ "MIT" ]
whence/powerlife
csharp/Core/Cards/Envoy.cs
1,238
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Red.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Red.Formats.Red.Records.Enums; namespace GameEstate.Red.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CQuestManyActorsCondition : I...
36.241379
137
0.736441
[ "MIT" ]
bclnet/GameEstate
src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CQuestManyActorsCondition.cs
1,051
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Registru_Intrari_Iesiri.Migrations { public partial class InOutRegisterEntriesUpdates : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn<string>( name: ...
31.272727
71
0.550388
[ "MIT" ]
rododendron1001/Registru_Intrari_Iesiri_V1
Registru_Intrari_Iesiri/Registru_Intrari_Iesiri/Migrations/20200824165835_InOutRegisterEntriesUpdates.cs
1,034
C#
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Models.ThirdParty { /// <summary> /// <para>表示 [POST] /v2/intent/name_exist 接口的响应。</para> /// </summary> public class IntentNameExistResponse : WechatOpenAIThirdPartyResponse<IntentNameExistResponse.Types.Data> { public static class Types ...
30.681818
109
0.545185
[ "MIT" ]
OrchesAdam/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.OpenAI/Models/ThirdParty/Intent/IntentNameExistResponse.cs
715
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine.Networking; namespace Xsolla.Core { public partial class WebRequestHelper : MonoSingleton<WebRequestHelper> { public void DeleteRequest(SdkType sdkType, string url, WebRequestHeader requestHeader, Action onComplete = null, ...
42.942857
206
0.790419
[ "Apache-2.0" ]
xsolla/inventory-unity-sdk
Assets/Xsolla/Core/WebRequestHelper/WebRequestHelper.DELETE.cs
1,503
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Axe.Windows.Actions; using System; using System.Windows.Input; namespace AccessibilityInsights.SharedUx.Highlighting { /// <summary> /// Wraps an...
30.317708
102
0.521388
[ "MIT" ]
karanbirsingh/accessibility-insights-windows
src/AccessibilityInsights.SharedUx/Highlighting/ImageOverlayDriver.cs
5,630
C#
/************************************************************************* * Copyright © 2021 Mogoson. All rights reserved. *------------------------------------------------------------------------ * File : ITimeCurve.cs * Description : Define time curve interface. *---------------------------------...
36.758621
124
0.425891
[ "Apache-2.0" ]
mogoson/MGS-Animation
UnityProject/Assets/MGS.Packages/Curve/Scripts/TimeCurve/Interface/ITimeCurve.cs
1,069
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
23.463636
117
0.554049
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/XLuaCSObjectWrapDCETModelUnitInfoWrapWrap.cs
2,583
C#
namespace Standard.IO.Compression { /// <summary> /// Various compression levels applicable to the LZ4 algorithm. Higher levels offer better compression /// ratios, but at the expense of slower speed. /// </summary> public enum LZ4CompressionLevel { /// <summary> /// Compress data us...
28.158537
126
0.532698
[ "Apache-2.0", "MIT" ]
SilviaHyde/standard
src/Standard.IO.Compression.LZ4/Source/Standard/IO/Compression/LZ4CompressionLevel.cs
2,311
C#
// <auto-generated> // 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 // re...
49.032663
359
0.564899
[ "MIT" ]
216Giorgiy/azure-sdk-for-net
src/SDKs/ApiManagement/Management.ApiManagement/Generated/ApiIssueCommentOperationsExtensions.cs
19,515
C#
using System; namespace Pattern1.Fasade { public class Fasade { private SubsystemOne one; private SubsystemTwo two; private SubsystemThree three; private SubsystemFour four; private Fasade() { one = new SubsystemOne(); two = new Subsyste...
23.8
72
0.51634
[ "MIT" ]
MarinMarinov/High-Quality-Code
HW15StructuralDesignPatterns/Pattern1.Fasade/Fasade.cs
1,073
C#
using System; using ActivityMonitor.Application; using Microsoft.Win32; namespace ActMon.SettingsManager { public class Settings { private const string regRootHKLM = @"HKEY_LOCAL_MACHINE"; private const string regRootHKCU = @"HKEY_CURRENT_USER"; private const string regKey = @"Softwar...
28.583333
112
0.509427
[ "MIT" ]
bcmon/ActivityMonitor
ActMon/SettingsManager/Settings.cs
5,147
C#
namespace SqlStreamStore { using System; using System.Security.Cryptography; using System.Text; internal struct PostgresqlStreamId : IEquatable<PostgresqlStreamId> { public readonly string Id; public readonly string IdOriginal; public PostgresqlStreamId(string idOriginal) ...
33.64
113
0.617717
[ "MIT" ]
ArneSchoonvliet/SQLStreamStore
src/SqlStreamStore.Postgres/PostgresqlStreamId.cs
1,684
C#
using System; namespace Functors.Id.Applicative { public static class FunctionalExtensions { public static Id<T1> Ap<T, T1>(this Id<Func<T, T1>> @this, Id<T> fa) => @this.Map(f => fa.Cata(f)); } public class Demo { public static void Run() { var chain = new Id...
28.107143
113
0.542567
[ "MIT" ]
dimitris-papadimitriou-chr/FunctionalCSharpWithCategories
4_Functors/Id.Applicative.cs
789
C#
using Microsoft.Extensions.Configuration; using Castle.MicroKernel.Registration; using Abp.Events.Bus; using Abp.Modules; using Abp.Reflection.Extensions; using Dyan.OceanAngular.Configuration; using Dyan.OceanAngular.EntityFrameworkCore; using Dyan.OceanAngular.Migrator.DependencyInjection; namespace Dyan.OceanAngula...
34.729167
112
0.692861
[ "MIT" ]
dyanwork/Dyan.CreditSystem
aspnet-core/src/Dyan.OceanAngular.Migrator/OceanAngularMigratorModule.cs
1,667
C#
//----------------------------------------------------------------------------- // (c) 2019 Ruzsinszki Gábor // This code is licensed under MIT license (see LICENSE for details) //----------------------------------------------------------------------------- using System.Xml.Serialization; namespace BookGen.Domain.Ep...
31.368421
86
0.464765
[ "MIT" ]
webmaster442/BookGen
BookGen/Domain/Epub/Creator.cs
599
C#
using System; using System.Collections.Generic; using System.Net.Http; using System.ServiceModel; using System.Web.Http; using System.Web.Http.SelfHost; using MashupSample.Models; namespace MashupSample { /// <summary> /// This sample shows how to asynchronously access multiple remote sites from /// withi...
32.848837
95
0.547257
[ "Apache-2.0" ]
ASCITSOL/asp.net
samples/aspnet/WebApi/MashupSample/Program.cs
2,827
C#
/*! @file JumpPointFinder.cs @author Woong Gyu La a.k.a Chris. <juhgiyo@gmail.com> <http://github.com/juhgiyo/eppathfinding.cs> @date July 16, 2013 @brief Param Base Interface @version 2.0 @section LICENSE The MIT License (MIT) Copyright (c) 2013 Woong Gyu La <juhgiyo@gmail.com> Permission is hereby granted, fre...
27.970588
162
0.740799
[ "Unlicense" ]
LeftofZen/EpPathFinding.cs
EpPathFinding.cs/EpPathFinding.cs/PathFinder/ParamBase.cs
3,806
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.891304
114
0.592306
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataMigration/V20171115Preview/Outputs/MigrateSqlServerSqlDbTaskOutputDatabaseLevelResponse.cs
4,263
C#