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
// // Copyright (c) 2004-2016 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
38.079179
169
0.567655
[ "BSD-3-Clause" ]
0xC057A/NLog
src/NLog/Config/LoggingRule.cs
12,985
C#
/******************************************************************************* * Copyright (C) Git Corporation. All rights reserved. * * Author: 代码工具自动生成 * Create Date: 2014/05/09 22:48:45 * Blog: http://www.cnblogs.com/qingyuan/ * Copyright: 太数智能科技(上海)有限公司 * Description: Git.Framework * * Revision Histor...
18.762712
82
0.616983
[ "MIT" ]
KittenCN/WMS
Git.Storage.RoseEntity/SysResource_CE.cs
3,365
C#
using System.Net; using System.Text.Json; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.Functions.Worker; using Microsoft.Azure.Functions.Worker.Http; using Microsoft.Extensions.Logging; using MyChess.Backend.Handlers; using MyChess.Functions.Internal; using MyChess.Interfaces; namespace MyChess.Fun...
37.406593
121
0.646298
[ "MIT" ]
JanneMattila/chess
src/MyChess.Functions/GamesMoveFunction.cs
3,406
C#
using System.Runtime.Serialization; namespace NetCoreStack.Contracts { [DataContract] public class ServiceException { [DataMember] public string Message { get; set; } [DataMember] public long ErrorCode { get; set; } public ServiceException(string message, long err...
20.285714
67
0.589202
[ "Apache-2.0" ]
NetCoreStack/Contracts
src/NetCoreStack.Contracts/Types/ServiceException.cs
428
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Input; using System; using System.IO; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.Lo...
29.675497
130
0.515287
[ "MIT" ]
AMUZA668/MixedRealityToolkit-Unity
Assets/MRTK/Examples/Demos/EyeTracking/DemoVisualizer/Scripts/UserInputRecorder.cs
4,483
C#
using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; namespace ILNET.Elements { public enum VariableLevel { Local, Intermediate, Global }; public class Variable : Element { private Process m_ParentProcess; private VariableLevel m...
25.14966
106
0.409521
[ "MIT" ]
Gefix/Ilnet
Model/ILNET/Elements/Variable.cs
3,699
C#
using HMI.Vehicles.Behaviours.Base; using HMI.Vehicles.Services; using UnityEngine; namespace HMI.UI.Cluster { /// <summary> /// Progress bar that shows the current charge level of a battery /// </summary> [RequireComponent(typeof(SpriteRenderer))] public class ClusterBatteryLevel : MonoBehaviour ...
27.690476
92
0.597592
[ "MIT" ]
sunrui19941128/CarHMI
Assets/UnityTechnologies/HMITemplate/Scripts/HMI/UI/Cluster/ClusterBatteryLevel.cs
1,165
C#
// // Copyright (c) 2004-2016 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 ...
46.5
156
0.708096
[ "BSD-3-Clause" ]
0xC057A/NLog
tests/NLog.UnitTests/Internal/UrlHelperTests.cs
3,198
C#
using Newtonsoft.Json; namespace PekoBot.Entities.GraphQL { public class ChannelObject { [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Populate)] public string Name { get; set; } [JsonProperty("en_name", NullValueHandling = NullValueHandling.I...
45.107143
130
0.788599
[ "MIT" ]
Mikyan0207/PekoBot
PekoBot.Entities/GraphQL/ChannelObject.cs
1,265
C#
namespace Gecko.WebIDL { using System; internal class HTMLObjectElement : WebIDLBase { public HTMLObjectElement(nsIDOMWindow globalWindow, nsISupports thisObject) : base(globalWindow, thisObject) { } public string Data { ...
21.552347
86
0.359129
[ "MIT" ]
haga-rak/Freezer
Freezer/GeckoFX/__Core/WebIDL/Generated/HTMLObjectElement.cs
5,970
C#
using System.Globalization; using imSSOUtils.adapters; namespace imSSOUtils.cache.visual { /// <summary> /// Viewport-based functions /// </summary> internal readonly struct Viewport { /// <summary> /// Toggle filters (LUT) on and off. /// </summary> /// <param name...
40
131
0.584896
[ "CC0-1.0" ]
qqtc0/imSSOUtils
imSSOUtils/cache/visual/Viewport.cs
1,922
C#
using System; namespace AspNetCoreIdentity { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18.6875
69
0.61204
[ "MIT" ]
ANgajasinghe/aspnet-core-identity
AspNetCoreIdentity/WeatherForecast.cs
299
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/errors/policy_violation_error.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Pro...
37.041475
319
0.705026
[ "Apache-2.0" ]
deni-skaraudio/google-ads-dotnet
src/V8/Types/PolicyViolationError.g.cs
8,038
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GamesPortal.Client.Interfaces { public static class WellKnownModules { public const string Models = "ModelsModule"; public const string ViewModels = "ViewModelsModule"; public const string V...
23.333333
60
0.714286
[ "MIT" ]
jackobo/jackobs-code
Portal/Client/Head/src/Interfaces/WellKnownModules.cs
352
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.OpenApi.Models; namespace Swashbuckle.AspNetCore.SwaggerGen { public class SchemaGenerator : ISc...
40.481967
160
0.606625
[ "MIT" ]
ybeauchamph/Swashbuckle.AspNetCore
src/Swashbuckle.AspNetCore.SwaggerGen/SchemaGenerator/SchemaGenerator.cs
12,349
C#
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.IO; using Avalonia.Platform; using Avalonia.Skia.Helpers; using SkiaSharp; namespace Avalonia.Skia { /// <summary> ///...
30.936842
113
0.563797
[ "MIT" ]
Karlyshev/Avalonia
src/Skia/Avalonia.Skia/ImmutableBitmap.cs
2,939
C#
using System; using System.Collections.Generic; namespace MatchingBrackets { public class MatchingBrackets { public static void Main() { var input = Console.ReadLine(); var stack = new Stack<int>(); for (int i = 0; i < input.Length; i++) { ...
23.7
84
0.410689
[ "MIT" ]
varbanov88/C-Advanced
StacksAndQueues/MatchingBrackets/MatchingBrackets.cs
713
C#
#region License & Metadata // The MIT License (MIT) // // 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, modi...
29.858156
99
0.660333
[ "MIT" ]
kpence/SuperMemoAssistant
src/Core/SuperMemoAssistant.Core/SuperMemo/SuperMemo17/Files/InfElementsElem17.cs
4,212
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Day_18 { //Solves Advanced Math according ot AoC 2020 Day 18 part2. //Which is not actually how to do math. adjust operator priority to sensible values if resuing public static class AdvancedMath { ...
32.446927
130
0.493457
[ "BSD-3-Clause" ]
Tzarnal/Advent-of-Code
2020 All Days, Every Day/Day 18/AdvancedMath.cs
5,810
C#
using EFCore.BulkExtensions.SqlAdapters; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace EFCore.BulkExtensions.Tests.IncludeGraph { public class Ro...
30.486486
144
0.505541
[ "MIT" ]
AKonyshev/EFCore.BulkExtensions
EFCore.BulkExtensions.Tests/IncludeGraph/Issue547.cs
4,514
C#
using FluentValidation; using luxclusif.order.application.UseCases.Order.CreateOrder; using luxclusif.order.domain.Validation; namespace luxclusif.order.webapi.Validators { public class CreateOrderInputValidator : AbstractValidator<CreateOrderInput> { public CreateOrderInputValidator() { ...
28.333333
80
0.647059
[ "MIT" ]
lucashigor/luxclusif.order
luxclusif.order.webapi/Validators/CreateOrderInputValidator.cs
597
C#
using NeoCA.Application.Models.Cache; using NeoCA.Infrastructure.Cache; using NeoCA.Infrastructure.UnitTests.Mocks; using Microsoft.Extensions.Options; using Shouldly; using Xunit; namespace NeoCA.Infrastructure.UnitTests.Cache { public class MemoryCacheServiceTests { private readonly IOptions<CacheCo...
31.111111
87
0.618304
[ "Apache-2.0" ]
NeoSOFT-Technologies/netcore-template
Content/test/NeoCA.Infrastructure.UnitTests/Cache/MemoryCacheServiceTests.cs
2,242
C#
using Xunit; namespace RomanNumerals.Tests { public class RomanNumeralsConverterTest { [Theory] [InlineData(1, "I")] [InlineData(2, "II")] [InlineData(3, "III")] [InlineData(4, "IV")] [InlineData(5, "V")] [InlineData(6, "VI")] [InlineData(7, "VII")] ...
27.944444
94
0.557654
[ "MIT" ]
amiyaaloke/roman-numerals
RomanNumerals.Tests/RomanNumeralsConverterTest.cs
1,006
C#
namespace System.Windows.Input { /// <summary> /// The delegate to use for handlers that receive StylusEventArgs. /// </summary> public delegate void StylusSystemGestureEventHandler(object sender, StylusSystemGestureEventArgs e); }
28.111111
104
0.727273
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/wpf/src/Core/CSharp/System/Windows/Input/Stylus/StylusSystemGestureEventHandler.cs
253
C#
using System; using System.Collections; using System.Diagnostics; namespace TypeLitePlus.TsModels { /// <summary> /// Represents a collection in the code model. /// </summary> [DebuggerDisplay("TsCollection - ItemsType={ItemsType}")] public class TsCollection : TsType { /// <summary> ...
30.935897
116
0.523829
[ "MIT" ]
CloudNimble/TypeLitePlus
TypeLitePlus.Core/TsModels/TsCollection.cs
2,415
C#
using System; using System.Data; using System.Data.Common; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace LinqToDB.Data { #if !NOASYNC public partial class DataConnection { internal async Task InitCommandAsync(CommandType commandType, string sql, DataParame...
23.507353
141
0.620269
[ "MIT" ]
codefox42/linq2db
Source/Data/DataConnection.Async.cs
3,199
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Rigidbody), typeof(SphereCollider))] public class Velcro : MonoBehaviour { [SerializeField] private Transform _partner; [SerializeField] private float _distance; [SerializeField] private fl...
24.863014
119
0.63416
[ "MIT" ]
Dream-Wood/Climb-Up
Assets/Scripts/Velcro.cs
1,815
C#
namespace TidalUSDK.Constants { public class TidalNonces { public static string TokenAndroid = "kgsOOmYk3zShYrNP"; public static string ClientKey = "vjknfvjbnjhbgjhbbg"; } }
25.125
63
0.696517
[ "MIT" ]
SacredSkull/dotnet-tidal-usdk
TidalUSDK/Constants/TidalNonces.cs
201
C#
using System; using Eto.Gl; using Eto.Gl.Mac; using Ninject; using OpenTK; using SharpFlame.Infrastructure; namespace SharpFlame.Gui.Mac { public static class Startup { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
22
70
0.557185
[ "MIT" ]
Warzone2100/SharpFlame
source/SharpFlame.Gui.Mac/Startup.cs
684
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; using System.Collections.Generic; using System.Reactive; namespace Microsoft.Reactive.Testing { ...
37.892857
123
0.690858
[ "MIT" ]
00mjk/reactive
Rx.NET/Source/src/Microsoft.Reactive.Testing/ITestObservable.cs
1,063
C#
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace SuperWorkerService { public class Worker : BackgroundService { private readonly ILogg...
35.413333
167
0.620105
[ "MIT" ]
m4rcelpl/SuperWorkerService
Worker.cs
2,656
C#
using UnrealBuildTool; using System.IO; public class OpenCV : ModuleRules { private string ThirdPartyPath { get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../../../ThirdParty/")); } } public OpenCV(ReadOnlyTargetRules Target): base (Target) { PrivatePCHHeaderFile = "Pri...
34.942857
224
0.623467
[ "MIT" ]
alloy-city/AViS
Plugins/OpenCV/Source/OpenCV/OpenCV.Build.cs
2,446
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace MiniORM.App.Data.Entities { public class EmployeeProject { [Key] [ForeignKey(nameof(Employee))] public int Emplo...
21.8
51
0.649541
[ "MIT" ]
StefanLB/Databases-Advanced---Entity-Framework---February-2019
02. DB-Advanced-ORM-Fundamentals/MiniORM.App/Data/Entities/EmployeeProject.cs
547
C#
/* Copyright 2019 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
36.37037
84
0.750509
[ "Apache-2.0" ]
Esri/arcobjects-sdk-community-samples
Net/GraphicsPipeline/DynamicObjectTracking/CSharp/Properties/AssemblyInfo.cs
1,964
C#
using System; namespace StrongBeaver.Core.Exceptions { public class CoreException : Exception { public CoreException() : base() { // No operation } public CoreException(string message) : base(message) { // No operation ...
19.96
70
0.517034
[ "MIT" ]
akobr/strong-beaver
StrongBeaver.Core/Exceptions/CoreException.cs
501
C#
namespace NeuralNet.NeuralNet { public class Dendrite { public double Weight { get; set; } public Dendrite() { CryptoRandom n = new CryptoRandom(); this.Weight = n.RandomValue; } } }
16.933333
48
0.527559
[ "MIT" ]
BBlum16/NNC
C#/NeuralNetwork/NeuralNet/Dendrite.cs
256
C#
using CinemaDirector.Helpers; using System.Collections.Generic; #if UNITY_EDITOR using UnityEditor; #endif using UnityEngine.UI; using UnityEngine; namespace CinemaDirector { [CutsceneItemAttribute("uGUI", "Text Remover", CutsceneItemGenre.ActorItem)] public class TextDegenerationEvent : CinemaActorAction, IR...
31.882353
99
0.555043
[ "MIT" ]
Bennef/BIP
Assets/3rd Party Assets/Cinema Suite/Cinema Director/Cutscene Items/Actor Items/uGUI/TextDegenerationEvent.cs
3,254
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using MonoTouch.NUnit.UI; namespace Couchbase.Lite.iOS.Tests { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as liste...
34.55102
98
0.658004
[ "Apache-2.0" ]
APXLabs/couchbase-lite-net
src/Couchbase.Lite.iOS.Tests/UnitTestAppDelegate.cs
1,695
C#
using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Bitbucket.Cloud.Net.Common.Models; using Bitbucket.Cloud.Net.Models.v2; using Flurl.Http; // ReSharper disable once CheckNamespace namespace Bitbucket.Cloud.Net { public partial class BitbucketCloudClient { private IFlurlReques...
37.553571
159
0.783642
[ "MIT" ]
Bob343/Bitbucket.Cloud.Net
src/Bitbucket.Cloud.Net/v2/Repositories/Downloads/BitbucketCloudClient.cs
2,105
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 namespace DotNetNuke.Services.Localization.Internal { using System; using System.Collections.Generic; us...
31.952941
111
0.539396
[ "MIT" ]
Mariusz11711/DNN
DNN Platform/Library/Services/Localization/Internal/LocalizationImpl.cs
2,718
C#
using System; using System.Collections.Generic; using System.Text; using Timereporter.Core.Models; namespace Timereporter.Core.Collections { public interface ITimes : IDictionary<string, ITime> { } }
18
54
0.74537
[ "MIT" ]
SpellarBot/TimeReporter
Timereporter.Core/Collections/ITimes.cs
218
C#
using System; using System.Collections.Generic; using System.Numerics; using System.Threading.Tasks; using Uno.Disposables; using Uno.Extensions; using Uno.UI.Helpers.WinUI; using Windows.Devices.Input; using Windows.Foundation; using Windows.System; using Windows.System.Threading; using Windows.UI; using Windows.UI.C...
35.884403
215
0.709582
[ "Apache-2.0" ]
AnshSSonkhia/uno
src/Uno.UI/Microsoft/UI/Xaml/Controls/ColorPicker/ColorSpectrum.cs
64,881
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...
32.992857
191
0.597965
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/ApiManagement/V20170301/GetApiOperation.cs
4,619
C#
using System; using System.Threading.Tasks; using SettingX.Core.Models; using SettingX.Repositories.Common.Client; using Xunit; using Xunit.Priority; namespace SettingX.Repositories.Tests.Rest.RepositoryTests { [DefaultPriority(0)] [TestCaseOrderer(PriorityOrderer.Name, PriorityOrderer.Assembly)] public cl...
34.082353
85
0.599931
[ "MIT" ]
SettingX/SettingX.Repositories.Tests
SettingX.Repositories.Tests.Rest/RepositoryTests/ServiceTokenTest.cs
2,897
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("Lab...
38.444444
84
0.754335
[ "MIT" ]
SebastianTrifa/c-
Labs_authentification/Properties/AssemblyInfo.cs
1,387
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.658228
112
0.613316
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/PinpointEmail/Generated/Model/Body.cs
2,343
C#
/* * The MIT License (MIT) * Copyright (c) StarX 2017 */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Documents; using System.Windo...
30.823171
112
0.576459
[ "MIT" ]
Langzaigg/CrazyStorm2.0
Main.xaml.cs
5,057
C#
namespace CASC.CodeParser.Binding { internal enum BoundBinaryOperatorKind { Addition, Subtraction, Multiplication, Division, BitwiseXOR, LogicalAND, BitwiseAND, LogicalOR, BitwiseOR, Equals, NotEquals, Greater, ...
18
41
0.537037
[ "MIT" ]
CASC-Lang/CASC-JIT
src/CASC-Interpreter/CodeParser/Binding/BoundBinaryOperatorKind.cs
378
C#
using assignment6.Repository.Entity; using assignment6.Repository.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace assignment6.Repository.Repository { public class EmployeeRepository : RepositoryBase<Emp1>, IEmp...
24.863636
92
0.723949
[ "MIT" ]
medhajoshi27/AllProjectmedha
assignment6/Assignment6.Repository/Repository/EmployeeRepository.cs
549
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.Verifiers { using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysi...
42.421053
171
0.671836
[ "Apache-2.0" ]
yyefimov/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test/Verifiers/StyleCopDiagnosticVerifier`1.cs
3,226
C#
// T4 code generation is enabled for model 'C:\Users\erik.aberg\Source\Repos\effective-adventure\CreateCookiesSolutionMVC\CreateCookies\CreateCookiesModel.edmx'. // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer // property to 'Legacy ObjectContext'. This property is ava...
82
163
0.77561
[ "MIT" ]
spikk/effective-adventure
CreateCookiesSolutionMVC/CreateCookies/CreateCookiesModel.Designer.cs
822
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Dfe.Spi.Common.Logging.Definitions; using Dfe.Spi.GiasAdapter.Domain.Cache; using Dfe.Spi.GiasAdapter.Domain.Configuration; using Microsoft.Azure.Cosmos.Table; using Newtonsoft.Json; namespace...
40.558824
153
0.649746
[ "MIT" ]
DFE-Digital/spi-gias-adapter
src/Dfe.Spi.GiasAdapter.Infrastructure.AzureStorage/Cache/TableEstablishmentRepository.cs
5,516
C#
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; namespace JsonTransformation { public class ParametersTransform : ICanTransformJson { public bool TransformJson(TransformJsonArgs args) { if (!(args.Source is JObject jSource)) return false; if ...
34.232143
146
0.57903
[ "MIT" ]
pmunin/JsonTransformation
src/JsonTransformation/ParametersTransform.cs
1,919
C#
using ColossalFramework.UI; using UnityEngine; using System; namespace Shicho.GUI { using Core; using Extension; public static class Helper { public static RectOffset ZeroOffset { get => new RectOffset(0, 0, 0, 0); } public static Vector2 ScreenResolution { ...
39.342246
210
0.546894
[ "MIT" ]
SETNAHQ/Shicho
Shicho/GUI/Helper.cs
14,716
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.EBS")] [assembly: AssemblyDescripti...
55.71875
514
0.761077
[ "Apache-2.0" ]
tmlife485/myawskendra
sdk/code-analysis/ServiceAnalysis/EBS/Properties/AssemblyInfo.cs
1,783
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...
41.727273
135
0.595705
[ "Apache-2.0" ]
sebtelko/pulumi-azure-native
sdk/dotnet/Cache/V20180301/LinkedServer.cs
6,426
C#
// Part of FemtoCraft | Copyright 2012-2013 Matvei Stefarov <me@matvei.org> | See LICENSE.txt // Based on fCraft.MapConversion.MapDAT - fCraft is Copyright 2009-2012 Matvei Stefarov <me@matvei.org> | See LICENSE.fCraft.txt using System; using System.IO; using System.IO.Compression; using System.Net; using JetBrains.An...
49.076503
128
0.472999
[ "BSD-3-Clause" ]
MCClassicServerArchive/Testosterone
Testosterone/DATMapConverter.cs
8,983
C#
using CodeWars; using NUnit.Framework; using Interval = System.ValueTuple<int, int>; namespace CodeWarsTests { [TestFixture] public class IntervalsTests { [Test] public void ShouldHandleEmptyIntervals() { Assert.AreEqual(0, Intervals.SumIntervals(new Interval[] { })); ...
42.897959
135
0.543292
[ "MIT" ]
soylegendario/codewars
src/CodeWarsTests/IntervalsTests.cs
2,102
C#
/* * Copyright (c) 2006-2014, openmetaverse.org * All rights reserved. * * - Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this...
42.23569
215
0.573501
[ "BSD-3-Clause" ]
CasperTech/libopenmetaverse
OpenMetaverse/Caps.cs
12,544
C#
// // DO NOT MODIFY. THIS IS AUTOMATICALLY GENERATED FILE. // #nullable enable #pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. using System; using System.Collections.Generic; namespace CefNet.DevTools.Protocol.Database { /...
27.333333
140
0.684669
[ "MIT" ]
CefNet/CefNet.DevTools.Protocol
CefNet.DevTools.Protocol/Generated/Database/Error.g.cs
574
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 lo...
39.113978
135
0.567902
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Core/Amazon.Runtime/Internal/Util/HashStream.cs
18,190
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...
46.474654
146
0.585126
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/Latest/Route.cs
10,085
C#
// Java Genetic Algorithm Library. // Copyright (c) 2017 Franz Wilhelmstötter // // 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 // // ...
33.820755
106
0.560112
[ "Apache-2.0" ]
TiZott/jenetics.net
src/core/Jenetics.Tests~/PopulationTest.cs
3,589
C#
using System; using Akka.Configuration; using Akka.Persistence.Sql.Linq2Db.Config; using Akka.Persistence.Sql.Linq2Db.Db; using Akka.Persistence.Sql.Linq2Db.Journal; using Akka.Persistence.Sql.Linq2Db.Journal.Types; using Akka.Persistence.TCK.Journal; using LinqToDB; using Xunit.Abstractions; namespace Akka.Persisten...
32.847826
142
0.583719
[ "Apache-2.0" ]
to11mtm/Akka.Persistence.Linq2Db
src/Akka.Persistence.Sql.Linq2Db.Tests/SQLServerJournalSpec.cs
1,513
C#
namespace System.Collections.Generic { public record ChunkResultItem<T> : ChunkResult<T>{ public T Item { get; init; } public ChunkResultItem(T item) { this.Item = item; } } }
17.923077
54
0.553648
[ "MIT" ]
MediatedCommunications/Extensions
System.Extensions/System/Collections/Generic/ChunkResultItem.cs
235
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/winioctl.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Windows...
58.72
145
0.7953
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/winioctl/DeviceDsmAction.cs
5,874
C#
/* The MIT License (MIT) Copyright (c) 2015 Calvin Baart 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...
28.086207
110
0.633824
[ "MIT" ]
calsmurf2904/unity_synthesizer
Assets/Scripts/Internal/AudioChannel.cs
3,260
C#
using System; using System.Reflection.Emit; public static partial class Extensions { /// <summary> /// Pops an integer value from the evaluation stack and branches to the given label if it interprets as true /// </summary> /// <param name="il">The <see cref="T:System.Reflection.Emit.ILGenerator" ...
38.375
114
0.672638
[ "MIT" ]
edwardmeng/FluentMethods
src/Core/System.Reflection.Emit.ILGenerator/Branch/IfTrue.cs
616
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
32.571429
115
0.659091
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/Comprehend/Generated/Model/ListEntityRecognizerSummariesResponse.cs
2,508
C#
using System.Web.Http; namespace Items.Web.App_Start { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi...
25
62
0.549474
[ "Apache-2.0" ]
davgit/angularjs-crudgrid
Items.Web/App_Start/WebApiConfig.cs
477
C#
using ArucoUnity.Utilities; using System; namespace ArucoUnity.Cameras { /// <summary> /// Generic configurable controller using a <see cref="ArucoCamera"/> as starting dependency. /// </summary> public abstract class ArucoCameraController : Controller, IArucoCameraController { // IArucoCa...
28.354839
119
0.608646
[ "BSD-3-Clause" ]
NormandErwan/ArucoUnity
Assets/ArucoUnity/Scripts/Cameras/ArucoCameraController.cs
881
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.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.Internal; using Microsoft.AspNetCo...
38.132964
154
0.552884
[ "Apache-2.0" ]
nisha-kaushik/Mvc
src/Microsoft.AspNetCore.Mvc.Core/ModelBinding/Validation/ValidationVisitor.cs
13,766
C#
using System; using System.Linq.Expressions; namespace AutoMapper.Internal.Mappers { using static Expression; public class ConvertMapper : IObjectMapper { public static bool IsPrimitive(Type type) => type.IsPrimitive || type == typeof(string) || type == typeof(decimal); public bool IsMatch(...
50.944444
135
0.70229
[ "MIT" ]
AutoMapper/AutoMapper
src/AutoMapper/Mappers/ConvertMapper.cs
919
C#
using System; using System.IO.Ports; using System.Web; namespace Asv.Mavlink { public class SerialPortConfig { public int DataBits { get; set; } = 8; public int BoundRate { get; set; } = 115200; public Parity Parity { get; set; } = Parity.None; public StopBits StopBits { get; se...
37.065217
132
0.553079
[ "MIT" ]
asvol/mavlink.net
src/Asv.Mavlink/Gcs/PortManager/Port/Serial/SerialPortConfig.cs
1,705
C#
using System; using SharpTest; namespace Tests { class Tests : TestRunner { public static void Main(string[] args) { TestRunner.Start<Tests>(); } } }
11
40
0.660606
[ "MIT" ]
bigbearstudios/sharp-commander
Tests/Program.cs
167
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NetworkedPlanet.BrightStar.Samples { /// <summary> /// This class contains a number of static methods that exercise and demonstrate different aspects of the Proxy interface. /// </summary> public class Prox...
26.318182
126
0.647668
[ "MIT" ]
smkgeekfreak/BrightstarDB
src/core/BrightstarDB.Samples/ProxyObjectsExample.cs
581
C#
namespace Sylvester.Compiler { public interface IDeviceBuffer { DeviceType DeviceType { get; } IShape Shape { get; } } }
18.625
38
0.610738
[ "MIT" ]
allisterb/Sylvester
src/Base/Sylvester.Compiler/Compiler/IDeviceBuffer.cs
151
C#
using System; using System.Linq; using System.Collections.Generic; using UnityEditor.Experimental.Rendering.HDPipeline.Drawing; using UnityEditor.Graphing; using UnityEditor.ShaderGraph; using UnityEditor.ShaderGraph.Drawing; using UnityEditor.ShaderGraph.Drawing.Controls; using UnityEngine; using UnityEngine.UIElement...
39.93565
233
0.613986
[ "MIT" ]
ToadsworthLP/Millenium
Library/PackageCache/com.unity.render-pipelines.high-definition@5.10.0-preview/Editor/Material/Hair/ShaderGraph/HairMasterNode.cs
31,030
C#
using System; namespace EnTTSharp.Serialization.Xml.AutoRegistration { [AttributeUsage(AttributeTargets.Method)] public sealed class EntityXmlWriterAttribute : Attribute { } }
19.4
60
0.757732
[ "MIT" ]
RabbitStewDio/EnTTSharp
src/EnTTSharp.Serialization.Xml/AutoRegistration/EntityXmlWriterAttribute.cs
196
C#
using UnityEngine; using System.Collections; public class _TEST : MonoBehaviour { [SerializeField] MaskType _type = MaskType.None; [SerializeField] Color _color = Color.black; [SerializeField, Range(0.01f, 5f)] float _duration = 1f; IEnumerator Start() { MaskBehaviour.Open( _type, _color, _dur...
19.84
64
0.701613
[ "Apache-2.0" ]
tom10987/Unity.Sample.ScreenSequencer
Assets/_TEST/_TEST.cs
496
C#
using Microsoft.AspNetCore.Mvc.RazorPages; namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Pages; public class IndexModel : PageModel { public void OnGet() { } }
15.333333
60
0.717391
[ "Apache-2.0" ]
daridakr/ProgGuru
modules/Volo.BasicTheme/test/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo/Pages/Index.cshtml.cs
186
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace Mosaic.Base { public static class WinAPI { public const int GwlExstyle = -20; public const int GwlStyle = -16; public const uint WM_SETICON = 0x0080; ...
34.996914
152
0.608784
[ "MIT" ]
mediaexplorer74/Mosaic2022
Mosaic.Base/WinAPI.cs
11,341
C#
#region Copyright (c) 2011 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
47.00641
148
0.501296
[ "Apache-2.0" ]
elmah/Fabmail
src/App_Packages/StackTraceFormatter/StackTraceFormatter.cs
7,333
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...
37.362745
151
0.655733
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/CreatePushTemplateRequestMarshaller.cs
3,811
C#
// *********************************************************************** // Assembly : IronyModManager // Author : Mario // Created : 01-11-2020 // // Last Modified By : Mario // Last Modified On : 01-29-2021 // *********************************************************************** // <co...
34.8
100
0.596134
[ "MIT" ]
LunarTraveller/IronyModManager
src/IronyModManager/DI/DIPackage.Avalonia.cs
1,916
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...
26.081818
197
0.598815
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapPathfindingRadiusModifierWrapWrapWrapWrap.cs
2,871
C#
/* Copyright 2010-2013 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
34.122449
111
0.603768
[ "Apache-2.0" ]
ExM/mongo-csharp-driver
MongoDB.Bson/Serialization/Serializers/BsonBooleanSerializer.cs
3,346
C#
using Microsoft.AspNetCore.Mvc; using ReyNenePalace.Models; using ReyNenePalace.ViewModels; namespace ReyNenePalace.Components { public class ShoppingCartSummary: ViewComponent { private readonly ShoppingCart _shoppingCart; public ShoppingCartSummary(ShoppingCart shoppingCart) { ...
25.65625
72
0.645554
[ "MIT" ]
foloNene/ReyNenePalace
ReyNenePalace/Components/ShoppingCartSummary.cs
823
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...
37.628571
183
0.654518
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/ForecastService/Generated/Model/Internal/MarshallTransformations/DescribePredictorBacktestExportJobRequestMarshaller.cs
3,951
C#
using TMPro; using UnityEngine; public class GameLogic : MonoBehaviour { [SerializeField] private int MinNumber = 1; [SerializeField] private int MaxNumber = 1000; [SerializeField] private TextMeshProUGUI label; private int CurrentMin; private int CurrentMax; private ...
22.081967
58
0.518931
[ "MIT" ]
yottaawesome/unity-playground
src/2D/Number Wizard UI/Assets/Scripts/GameLogic.cs
1,347
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...
45.227273
134
0.707035
[ "MIT" ]
haitch/azure-powershell
src/ResourceManager/Blueprint/Commands.Blueprint/Common/IBlueprintClient.cs
1,949
C#
using System; using System.Threading.Tasks; namespace FunK { public partial class F { public static Operation<T, T> Begin<T>(T value) => Operation<T, T>.Of(value); public static Operation<T, T> Begin<T>(Result<T> value) => Operation<T, T>.Of(value); public s...
34.940594
170
0.562766
[ "MIT" ]
juanpablocruz/FunK
FunK/Operation/Operation.cs
3,545
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a the Phase Extern Generator // Changes to this file will be lost if the code is regenerated. // </auto-generated> //----------------------------------------------------------------...
29.5
80
0.438257
[ "MIT" ]
CoderLine/Phase
Phase.Haxe/generated/std/Haxe/Crypto/HashMethod.cs
413
C#
using System; using System.Windows; using System.Windows.Media.Animation; using EasyNews.Models; using EasyNews.ViewModels; namespace EasyNews.Views { /// <summary> /// Interaction logic for RssScroller.xaml /// </summary> public partial class RssScroller { /// <summary> /// The ex...
37.035971
113
0.619075
[ "MIT" ]
shutdownr/easy-news
EasyNews/Views/RssScroller.xaml.cs
5,150
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...
42.271967
444
0.64951
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Compute/V20210401/GetVirtualMachineScaleSet.cs
10,103
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> //--...
38.333333
151
0.566609
[ "MIT" ]
jornletnes/pull-request-monitor
PullRequestMonitor/Properties/Settings.Designer.cs
2,877
C#
using System; using System.Linq; using QueryEncapsulation.Web.Data; using QueryEncapsulation.Web.Domain; namespace QueryEncapsulation.Web { public static class SeedData { public static void Init() { using (var context = new AppDbContext()) { if (!context.Posts.Any()) { context.P...
51.923077
275
0.67037
[ "Apache-2.0" ]
MattHoneycutt/asp.net-samples
QueryEncapsulation/QueryEncapsulation.Web/App_Start/SeedData.cs
1,350
C#
using GW2Api.NET.V2; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace GW2Api.NET.IntegrationTests.V2.Commerce { [TestClass, TestCategory("Large"...
40.279503
125
0.660756
[ "MIT" ]
RyanClementsHax/GW2Api.NET
GW2Api.NET.IntegrationTests/V2/Commerce/CommerceTests.cs
6,487
C#
using Accord.IO; using Accord.Neuro; using BLL.Services.Interfaces; using Deedle; namespace BLL.Services.Implementations { public class DataService : IDataService { private const string ValidationDataFileName = "validation.csv"; private const string TrainigDataFileName = "training.csv"; ...
28.918919
80
0.66729
[ "MIT" ]
dkiryanov/voenmeh-machine-learning-backpropagation
BLL/Services/Implementations/DataService.cs
1,072
C#
namespace Lexepars { public interface INamed { string Name { get; } } }
11.625
28
0.548387
[ "MIT" ]
DNemtsov/Lexepars
src/Lexepars/Grammar/INamed.cs
95
C#