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 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
38.130081
98
0.644136
[ "Apache-2.0" ]
MajaGrubbe/googleads-dotnet-lib
examples/AdWords/CSharp/v201806/CampaignManagement/GraduateTrial.cs
4,690
C#
// <copyright file="ReverseMode.cs" company="Geo.NET"> // Copyright (c) Geo.NET. // Licensed under the MIT license. See the LICENSE file in the solution root for full license information. // </copyright> namespace Geo.MapBox.Enums { /// <summary> /// The possible modes for results from a reverse geocoding req...
27.875
106
0.617339
[ "MIT" ]
JustinCanton/Geo.NET
src/Geo.MapBox/Enums/ReverseMode.cs
671
C#
using System; using System.Collections.Generic; namespace PhoneBook { public class Directory { public static List<Person> phoneBookList { get; set;} static Directory() { phoneBookList = new List<Person>(); phoneBookList.Add(new Person("AHMET", "VURAL",123456789)); ...
32.3
80
0.55031
[ "MIT" ]
MuhammetFatihYilmaz/PhoneBook
Directory.cs
1,295
C#
using Newtonsoft.Json.Linq; using Tridion.ContentManager.Extensibility; using Tridion.ContentManager.Extensibility.Events; using Tridion.ContentManager.Notifications; using Tridion.ContentManager.Publishing; namespace PublishTransactionNotification.EventHandler { [TcmExtension("Sends a notification to the user wh...
40.543478
148
0.654155
[ "Apache-2.0" ]
sdl/publish-transaction-notification
EventHandler/SendNotificationHandler.cs
1,867
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using IdentityModel; using IdentityServer4.Admin.Entities; using IdentityServer4.Admin.Infrastructure; using IdentityServer4.EntityFramework.Mappers; using IdentityServer4.Models; using Microsoft.AspNetCore.Identity; using ...
40.251781
117
0.535053
[ "MIT" ]
blinds52/IdentityServer4.Admin
src/IdentityServer4.Admin/SeedData.cs
17,120
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version: 14.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ----...
40.063768
148
0.561351
[ "Apache-2.0" ]
Bynder/aws-sdk-net
generator/ServiceClientGeneratorLib/Generators/NuGet/PackagesConfig.cs
13,824
C#
// SPDX-FileCopyrightText: 2009 smdn <smdn@smdn.jp> // SPDX-License-Identifier: MIT using System; using System.IO; using System.Net; using System.Xml; namespace Smdn.Xml; public class XmlCachedUrlResolver : XmlUrlResolver { public XmlCachedUrlResolver(string cacheDirectory) : this(cacheDirectory, TimeSpan.FromD...
37.34
120
0.740761
[ "MIT" ]
smdn/Smdn.Fundamentals
src/Smdn.Core.Miscellaneous/Smdn.Xml/XmlCachedUrlResolver.cs
1,867
C#
namespace Mapbox.Examples { using Mapbox.Unity.Map; using Mapbox.Unity.Utilities; using Mapbox.Utils; using UnityEngine; using UnityEngine.EventSystems; using System; public class QuadTreeCameraMovement : MonoBehaviour { [SerializeField] [Range(1, 20)] public float _panSpeed = 1.0f; [SerializeField] ...
28.79402
168
0.69032
[ "Apache-2.0" ]
483759/Next-Place
unity/NextPlace/Assets/Mapbox/Examples/Scripts/QuadTreeCameraMovement.cs
8,669
C#
using System; using System.Collections.Generic; using ModestTree; namespace Zenject { public static class SignalExtensions { public static SignalBinderWithId DeclareSignal<T>(this DiContainer container) where T : ISignalBase { var info = new BindInfo(typeof(T)); ...
41.691358
167
0.649393
[ "MIT" ]
antoniovalentini/greenfield-unity
projects/Helpers/Assets/Plugins/Zenject/Source/Signals/SignalExtensions.cs
3,377
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Baseline; using Marten.Util; using Xunit; namespace Marten.Testing.Linq.Compatibility.Support { public abstract class LinqTestContext<TFixture, TSelf> : IClassFixture<TFixture> wher...
29.008929
130
0.568483
[ "MIT" ]
thrane/marten
src/Marten.Testing/Linq/Compatibility/Support/LinqTestContext.cs
3,249
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Box.V2.Managers; using System.Threading.Tasks; using Box.V2.Models; using Moq; using Box.V2.Models.Request; namespace Box.V2.Test { [TestClass] public class BoxGroupsManagerTest : BoxResourceManagerTest { private readonly BoxG...
59.041522
224
0.543515
[ "Apache-2.0" ]
ajweber/box-windows-sdk-v2
Box.V2.Test/BoxGroupsManagerTest.cs
17,065
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
27.434783
90
0.714739
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Migrate/Latest/Inputs/CollectorAgentPropertiesArgs.cs
631
C#
using UnityEngine; using System.Collections; public class Pusher : MonoBehaviour { public KeyCode forwardKey = KeyCode.N; public KeyCode leftKey = KeyCode.B; public KeyCode rightKey = KeyCode.M; public float damping = 0.1f; public float thrust = 100.0f; // Newtons public float mass = 1.0f; ...
26.166667
69
0.577229
[ "MIT" ]
praised/gameengines2015
unity/Vectors1/Assets/Pusher.cs
1,258
C#
using System; using System.Diagnostics.CodeAnalysis; using HarmonyLib; using Microsoft.Xna.Framework; using Pathoschild.Stardew.Common.Patching; using Pathoschild.Stardew.SmallBeachFarm.Framework; using Pathoschild.Stardew.SmallBeachFarm.Framework.Config; using StardewModdingAPI; using StardewValley; using SObject = St...
50.442211
190
0.626718
[ "MIT" ]
TehPers/StardewMods
SmallBeachFarm/Patches/FarmPatcher.cs
10,038
C#
// Copyright (c) 2018 Aurigma Inc. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // using Aurigma.PhotoKiosk.Core; using System; using System.Collections.Generic; using System.IO; using System.Windows; using System.Windows.Controls; using Sys...
33.53125
189
0.578751
[ "MIT" ]
aurigma/PhotoKiosk
PhotoKiosk/Stages/FindingPhotosStage/BluetoothLoadScreen.xaml.cs
5,367
C#
using FD.SampleData.Data.Generators; using FD.SampleData.Models.HumanResources; using FD.SampleData.Models.Individual; using FD.SampleData.Models.Production; using FD.SampleData.Models.Purchasing; using FD.SampleData.Models.Sales; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Thre...
55.495868
120
0.68965
[ "MIT" ]
araujofrancisco/FD.DataProvider
FD.SampleData/Contexts/SalesDbContext.cs
6,717
C#
using FS.Query.Scripts.SelectionScripts.Filters.Comparables; using FS.Query.Scripts.SelectionScripts.Parameters; using FS.Query.Scripts.SelectionScripts.Selects; using FS.Query.Settings; using System; using System.Data; using System.Text; namespace FS.Query.Scripts.SelectionScripts { public class BuildedScript ...
35.394366
114
0.619976
[ "MIT" ]
bh-schmidt/FS.Query
src/FS.Query/Scripts/SelectionScripts/BuildedScript.cs
2,515
C#
/* Copyright (c) 2016 Roman Atachiants Copyright (c) 2011-2013 Mike Jones, Matt Weimer The 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, including without limi...
24.975052
154
0.596354
[ "EPL-1.0" ]
ContinuumLR/csharp
Emitter/Json/JsonParser.cs
12,013
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
56.661017
280
0.784325
[ "Apache-2.0" ]
costleya/aws-sdk-net
sdk/src/Services/Organizations/Properties/AssemblyInfo.cs
3,343
C#
/* Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; usin...
28.701299
178
0.633937
[ "MIT" ]
SolomatovS/Tws2UniFeeder
csharpclient/activex/ControlImpl/IPriceIncrementList.cs
2,212
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root...
25.645161
81
0.460377
[ "BSD-3-Clause" ]
0xCM/z0
src/core/src/native/NativeFunction.cs
795
C#
using System.IO; using UnSave.Types; namespace UnSave.Serialization { public interface IUnrealStructSerializer { IUnrealProperty DeserializeStruct(BinaryReader reader); void SerializeStruct(IUnrealProperty structProp, BinaryWriter writer); bool SupportsType(string type); } }
26.083333
78
0.744409
[ "MIT" ]
agc93/unsave
src/UnSave/Serialization/IUnrealStructSerializer.cs
315
C#
using System; namespace System.Data.SQLiteCipher { internal static class SqliteConnectionExtensions { public static int ExecuteNonQuery( this SqliteConnection connection, string commandText, params SqliteParameter[] parameters) { using var command...
30.342105
68
0.618387
[ "MIT" ]
erikzhouxin/NSqliteCipher
src/SQLiteCipher/SqliteConnectionExtensions.cs
1,153
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using DeviceTesting.Pages.FilledCheckbox; using DeviceTesting.Pages.FloatingMultiButton; using Xamarin.Forms; namespace DeviceTesting { public class FunctionalityNavigationService : IFunctionalityNavigationS...
29.093023
82
0.618705
[ "MIT" ]
haavamoa/FirstUIFramework.Forms
src/DeviceTesting/DeviceTesting/FunctionalityNavigationService.cs
1,253
C#
// ============================================================================ // FileName: PasswordHash.cs // // Description: // This class deals with storing and verifying password hashes. // // Author(s): // Aaron Clauson (aaron@sipsorcery.com) // // History: // 13 Jan 2012 Aaron Clauson Created. Borr...
44.076923
187
0.610239
[ "MIT" ]
13927729580/AKStream
SipSorcery/sys/Crypto/PasswordHash.cs
3,440
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace SwiftFramework.Utils { [RequireComponent(typeof(Animator))] public class ManualAnimator : MonoBehaviour { private Animator anim; private Animator Animator => anim = anim ?? GetComponent<Animator>(); ...
29.30303
155
0.563082
[ "MIT" ]
dimaswift/swift-framework
Runtime/Utils/ManualAnimator.cs
1,936
C#
// // System.Net.NetworkInformation.PingException // // Author: // Gonzalo Paniagua Javier (gonzalo@novell.com) // // Copyright (c) 2006 Novell, Inc. (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files...
33.909091
99
0.735121
[ "MIT" ]
GrapeCity/pagefx
mono/mcs/class/System/System.Net.NetworkInformation/PingException.cs
1,865
C#
using System; class Wave_6 { public static void Main(string[] args) { int waveHeight = 4; //change value to increase or decrease the height of wave int wL = 4; //wave length->change value to increase or decrease the length of wave int wH = waveHeight - 1; //for loop cond. int x = wH; //if cond...
16.08
84
0.511194
[ "MIT" ]
Ankur-586/Printing-Pattern-Programs
CSharpPatternPrograms/WavePatterns/Program6.cs
806
C#
using NatCruise.Design.Data; using NatCruise.Design.Models; using Prism.Commands; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Windows.Input; using NatCruise.Util; namespace NatCruise.Design.ViewModels { public c...
38.914573
133
0.615057
[ "CC0-1.0" ]
FMSC-Measurements/NatCruise
src/NatCruise.Design/ViewModels/StratumTemplateFieldsViewModel.cs
7,746
C#
using System; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; namespace RLib.DB.Mig { public class DataMig { public bool isrunning { get; set; } List<DbStructure.KVModel> tables = new List<DbStructure....
38.949932
206
0.448756
[ "Apache-2.0" ]
buweixiaomi/ruanal
src/RLib/DB/Mig/DataMig.cs
29,234
C#
namespace Sitecore.FakeDb.Tests.Data.Engines { using System; using System.IO; using FluentAssertions; using Ploeh.AutoFixture.Xunit2; using Sitecore.Data; using Sitecore.Data.Items; using Sitecore.FakeDb.Data.Engines; using Sitecore.Globalization; using Xunit; public class DataStorageTest { ...
41.803191
185
0.720957
[ "MIT" ]
pveller/Sitecore.FakeDb
test/Sitecore.FakeDb.Tests/Data/Engines/DataStorageTest.cs
7,861
C#
/* ======================================================================= Copyright 2017 Technische Universitaet Darmstadt, Fachgebiet fuer Stroemungsdynamik (chair of fluid dynamics) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
35.937238
110
0.522529
[ "Apache-2.0" ]
FDYdarmstadt/BoSSS
src/L2-foundation/BoSSS.Foundation/PartialGuid.cs
8,353
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.Globalization; using System.IO; using System.Linq; using System.T...
36.023684
138
0.562495
[ "Apache-2.0" ]
RussKie/NuGet.Client
src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreRunner.cs
13,689
C#
#region License // Copyright (c) 2007 James Newton-King // // 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,...
42.313084
214
0.617118
[ "MIT" ]
cnwenli/JWT.Net
JWT.Net/Newtonsoft.Json/Converters/DiscriminatedUnionConverter.cs
9,057
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.795455
181
0.601845
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/AppPlatform/Latest/GetDeployment.cs
2,710
C#
namespace Poker { using System; using System.Collections.Generic; using System.Text; public class Hand : IHand { private IList<ICard> cards; public Hand(IList<ICard> cards) { this.Cards = cards; } public IList<ICard> Cards { ...
20.021739
85
0.432139
[ "MIT" ]
kaizer04/Telerik-Academy-2013-2014
KPK/Test-Driven-Development-Demo-Homework/Hand.cs
923
C#
[assembly: CLSCompliant(false)] // ReSharper disable InvertIf namespace Atc.CodingRules.Updater.CLI; [ExcludeFromCodeCoverage] public static class Program { public static Task<int> Main(string[] args) { ArgumentNullException.ThrowIfNull(args); args = SetProjectPathFromDotArgumentIfNeeded(args...
40.8
115
0.668913
[ "MIT" ]
JKrag/atc-coding-rules-updater
src/Atc.CodingRules.Updater.CLI/Program.cs
4,896
C#
using BusinessRules; using BusinessRules.Products; using Entities.Enums; using Entities.Products; using Entities.System; using Entities.Views; using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using UserInterface.Modules; using UserInterface.Querries; namespace U...
36.718487
135
0.539764
[ "Apache-2.0" ]
almoretto/LaFamiglia_Pizzaria_Delivery
LaFamigliaPizzeriaDelivery/UserInterface/Products/FrmPizzaSizeCRUD.cs
8,755
C#
using BepInEx; using BepInEx.Configuration; using EnforcerPlugin.Modules; using EntityStates; using EntityStates.Enforcer; using EntityStates.Enforcer.NeutralSpecial; using IL.RoR2.ContentManagement; using KinematicCharacterController; using R2API; using R2API.Utils; using RoR2; using RoR2.CharacterAI; using RoR2.Proj...
51.988091
541
0.638516
[ "MIT" ]
Nebby1999/EnforcerMod
EnforcerMod_VS/EnforcerModPlugin.cs
144,077
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OfficeDevPnP.Core { /// <summary> /// Specify restrictions to place on a document or item once it has been declared as a record. Changing this setting /// will not affect items w...
29.4
122
0.619048
[ "Apache-2.0" ]
Chipzter/PnP
OfficeDevPnP.Core/OfficeDevPnP.Core/Enums/EcmSiteRecordRestrictions.cs
884
C#
using Microsoft.Azure.ServiceBus; using Smiosoft.PASS.ServiceBus.Queue; using Smiosoft.PASS.UnitTests.TestHelpers.Messages; namespace Smiosoft.PASS.ServiceBus.UnitTests.TestHelpers.Publishers { public class MessageOneQueuePublisher : QueuePublisher<DummyTestMessageOne> { public MessageOneQueuePublisher(IQueueClien...
29.75
112
0.817227
[ "MIT" ]
smiosoft/pass
tests/Smiosoft.PASS.ServiceBus.UnitTests/TestHelpers/Publishers/MessageOneQueuePublisher.cs
476
C#
using System.Web; using System.Web.Mvc; namespace aspnet45 { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); //filters.Add(new RequireHttpsAttribute()); } } }
21.133333
80
0.643533
[ "MIT" ]
jsturtevant/aspnet-security-demos
aspnet45/aspnet45/App_Start/FilterConfig.cs
319
C#
/* * Location Intelligence APIs * * Incorporate our extensive geodata into everyday applications, business processes and workflows. * * OpenAPI spec version: 8.5.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
34.342857
132
0.590682
[ "Apache-2.0" ]
PitneyBowes/LocationIntelligenceSDK-CSharp
src/pb.locationIntelligence/Model/FireRiskByLocationRequest.cs
4,808
C#
#pragma checksum "C:\Users\46309932829\Documents\Projetos\SENAI\PontoDigitalMVC\Views\Administrador\Comentarios.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4c8b712da9558eef2140b808fcac97f46905187c" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompile...
57.667832
353
0.695204
[ "MIT" ]
S0L4/PontoDigitalMVC
obj/Debug/netcoreapp2.1/Razor/Views/Administrador/Comentarios.g.cshtml.cs
16,496
C#
namespace EasyNetQ.Host.Core { public interface IBusContainer : IBusProvider, IBusRegister { } public interface IBusProvider { IBus this[string key] { get; } IBus GetBus(string key); } public interface IBusRegister { void Register(string key, IBus bus); } ...
16.947368
63
0.614907
[ "MIT" ]
micdenny/EasyNetQ.Host
Source/EasyNetQ.Host.Core/IBusProvider.cs
324
C#
using System; namespace SharpEngine { public class Circle : Shape { public Circle(Material material) : base(CreateCircle(), material) { } static Vertex[] CreateCircle() { const int numberOfSegments = 32; const int verticesPerSegment = 3; const float scale = .1f; Vertex[] result = new Vertex[numb...
33.25
114
0.688507
[ "MIT" ]
SaberSara/SharpEngine
Circle.cs
931
C#
#nullable enable using System; using System.Collections.Generic; using Content.Server.GameObjects.Components.NodeContainer.NodeGroups; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Server.GameObjects....
33.712644
155
0.602455
[ "MIT" ]
BingoJohnson/space-station-14
Content.Server/GameObjects/Components/Power/ApcNetComponents/PowerProviderComponent.cs
5,866
C#
namespace TraktNet.Exceptions { /// <summary>Exception, that will be thrown, if an access token is required, but was not provided.</summary> public class TraktAuthorizationException : TraktException { /// <summary> /// Initializes a new instance of the <see cref="TraktAuthorizationException...
42.238095
128
0.656144
[ "MIT" ]
henrikfroehling/Trakt.NET
Source/Lib/Trakt.NET/Exceptions/TraktAuthorizationException.cs
889
C#
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // 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 co...
38.560976
116
0.672992
[ "BSD-3-Clause" ]
YuLad/NLog
src/NLog/LayoutRenderers/AspSessionValueLayoutRenderer.cs
3,162
C#
//----------------------------------------------------------------------- // <copyright file="ListBoxExtensions.cs" company="Sphere 10 Software"> // // Copyright (c) Sphere 10 Software. All rights reserved. (http://www.sphere10.com) // // Distributed under the MIT software license, see the accompanying file // LICENSE ...
30.081081
83
0.626235
[ "MIT" ]
Sphere10/Framework
src/Sphere10.Framework.Windows.Forms/Extensions/ListBoxExtensions.cs
1,113
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\dxvahd.h(731,5) using System; using System.Runtime.InteropServices; namespace DirectN { [Guid("95f4edf4-6e03-4cd7-be1b-3075d665aa52"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public partial interface IDXVAHD_VideoProcessor { ...
66.269231
320
0.695879
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/IDXVAHD_VideoProcessor.cs
1,725
C#
/* Midi2Cat Description: A subsystem that facilitates mapping Windows MIDI devices to CAT commands. Copyright (C) 2016 Andrew Mansfield, M0YGG This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eit...
26.670455
87
0.588837
[ "MIT" ]
DH1KLM/PowerSDR-Thetis-G7KLJ
Project Files/Source/Midi2Cat/Midi2Cat.IO/PickDialog.cs
2,349
C#
using Nest; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Take.Elephant.Elasticsearch; using Take.Elephant.Elasticsearch.Mapping; using Xunit; namespace Take.Elephant.Tests.Elasticsearch { [Trait("Category", nameof(Elasticsearch))] pu...
31.384615
145
0.63317
[ "Apache-2.0" ]
DanielCouto/elephant
src/Take.Elephant.Tests/ElasticSearch/ElasticSearchItemSetFacts.cs
1,226
C#
// Copyright (c) 2014-2017 Wolfgang Borgsmüller // All rights reserved. // // This software may be modified and distributed under the terms // of the BSD license. See the License.txt file for details. using System; using System.Diagnostics; using Chromium.Remote; namespace Chromium.WebBrowser { /// <summary> ...
32.408046
123
0.553467
[ "BSD-3-Clause" ]
git-thinh/chromiumfx-chromiumfx-3589bba7642c
ChromiumWebBrowser/JSProperty.cs
5,640
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Windows.Forms; using System.Net; using System.IO; using System.Collections.Generic; using System.Reflection; using MIGAZ.Generator; using MIGAZ.Forms; using Amazon.EC2.Model; using Amazon.EC2; usi...
34.17207
205
0.554404
[ "MIT" ]
Azure/migAz
aws/source/MIGAZ/Forms/Window.cs
13,703
C#
// Url:https://leetcode.com/problems/partition-array-into-disjoint-intervals /* 915. Partition Array into Disjoint Intervals Medium Given an array A, partition it into two (contiguous) subarrays left and right so that: Every element in left is less than or equal to every element in right. left and right are non-e...
17.52381
103
0.647645
[ "MIT" ]
tarunbatta/ipg
core/leetcode/915.cs
1,104
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class inkScrollAreaWidget : inkCompoundWidget { [Ordinal(0)] [RED("constrainContentPosition")] public CBool ConstrainContentPosition { get; set; } [Ordinal(...
40.85
122
0.72705
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/inkScrollAreaWidget.cs
798
C#
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Northwind.Application.Rooms.Commands; using Northwind.Application.Rooms.Models; using Northwind.Application.Rooms.Queries; namespace Northwind.WebUI.Controllers { public class RoomsController : BaseController { // GET api/rooms/getall...
28.442623
93
0.594813
[ "MIT" ]
aquapirat/IntivePatronage3
Northwind.WebUI/Controllers/RoomsController.cs
1,737
C#
using GitDeployPack.Extensions; using GitDeployPack.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace GitDeployPack.Core.ProjectParser { public class ProjectDiffer : IProjectDiffer { ...
33.577778
157
0.60953
[ "Apache-2.0" ]
alivehim/GitDeployPack
src/GitDeployPack.Core/ProjectParser/ProjectDiffer.cs
1,513
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.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace System.IO { public partial class FileLoadException { // Do not delete: this is...
36.756098
108
0.676841
[ "MIT" ]
AUTOMATE-2001/runtime
src/coreclr/System.Private.CoreLib/src/System/IO/FileLoadException.CoreCLR.cs
1,507
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IAPManager.cs" company="Slash Games"> // Copyright (c) Slash Games. All rights reserved. // </copyright> // ---------------------------------------------------------------------...
28.412698
137
0.511173
[ "MIT" ]
SlashGames/slash-framework
Source/Slash.IAP/Source/IAPManager.cs
3,582
C#
using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using UnicornNet.Data; namespace UnicornNet { public class Unicorn : IDisposable { private readonly Dictionary<int, UnicornCallbackData> _callbacks; private int _callbackId; public Un...
35.527559
152
0.554891
[ "MIT" ]
AeonLucid/UnicornNet
src/UnicornNet/Unicorn.cs
13,536
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using TicketNow.Movies.Api.Mappers; using TicketNow.Movies.Core.Services; using TicketNow.Common; using System.Threading.Tasks; namespace TicketNow.Movies.Api.Controllers { [ApiController] [Route("[controller]")] public class MoviesContro...
29.969697
119
0.687563
[ "MIT" ]
jakemoresca/TicketNowNetCore
TicketNow.Movies.Api/Controllers/MoviesController.cs
991
C#
using System; using System.Collections.Generic; using System.Linq; namespace _05_MagicExchanWord { public class StartUp { public static void Main() { string input = Console.ReadLine(); string[] words = input.Split().ToArray(); char[] firstWord = words[0].ToC...
24.322581
65
0.522546
[ "MIT" ]
MrPIvanov/SoftUni
02-Progr Fundamentals/24-Strings and Text Processing - Exercises/24-StringTextExer/05-MagicExchanWord/StartUp.cs
756
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { public partial class JsonWriteSettings : IUtf8Js...
36.53125
105
0.582121
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonWriteSettings.Serialization.cs
2,338
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--------------------------------------------...
28.358209
125
0.603684
[ "MIT" ]
HFX-93/luban_examples
Projects/Csharp_ET_bin/Unity/Assets/Model/Generate/Luban_Config/item/InteractionItem.cs
1,900
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Damagable : MonoBehaviour { public int fractionId; public virtual void Die() { Debug.Log(":D"); var rb = GetComponent<Rigidbody>(); var collider = GetComponent<Collider>(); collide...
21.36
51
0.610487
[ "MIT" ]
Risist/BloodVillage
Assets/Damagable.cs
536
C#
using UnityEngine; using System; using AppodealAds.Unity.Api; using AppodealAds.Unity.Common; using AOT; #if UNITY_IPHONE namespace AppodealAds.Unity.iOS { public class AppodealAdsClient : IAppodealAdsClient { private const int AppodealAdTypeInterstitial = 1 << 0; private const int AppodealAdTypeBanner ...
31.015905
118
0.763925
[ "MIT" ]
MedAnisBenSalah/2448
Assets/Appodeal/Platforms/iOS/AppodealAdsClient.cs
15,603
C#
namespace dotless.Core.Parser.Infrastructure { using System.Collections.Generic; using Importers; using Nodes; using Tree; public class DefaultNodeProvider : INodeProvider { public Element Element(Combinator combinator, Node value, NodeLocation location) { return new...
35.742424
161
0.620461
[ "Apache-2.0" ]
MultinetInteractive/dotless
src/dotless.Core/Parser/Infrastructure/DefaultNodeProvider.cs
7,077
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...
105.611111
620
0.736692
[ "MIT" ]
AlanFlorance/azure-powershell
src/Functions/generated/api/Models/Api20190801/SiteProperties.PowerShell.cs
58,374
C#
 using Sandbox; using Sandbox.UI; using Sandbox.UI.Construct; public class Scoreboard : Sandbox.UI.Scoreboard<ScoreboardEntry> { public Scoreboard() { StyleSheet.Load("swb_base/deathmatch_dep/ui/scss/Scoreboard.scss"); } protected override void AddHeader() { Header = Add.Panel("h...
21.333333
75
0.645833
[ "MIT" ]
BullyHunter32/simple-weapon-base
code/swb_base/deathmatch_dep/ui/Scoreboard.cs
578
C#
using System; namespace TrackReader.Services { public interface IHookService : IDisposable { void InstallHooks(); void ReleaseHooks(); } }
15.363636
47
0.64497
[ "MIT" ]
Twinki14/TrackReader
src/TrackReader/Services/Interfaces/IHookService.cs
171
C#
using NUnit.Framework; using System; using Workshopping; using Workshopping.MigrantCoder; using Handelabra.Sentinels.Engine.Model; using Handelabra.Sentinels.Engine.Controller; using System.Linq; using System.Collections; using Handelabra.Sentinels.UnitTest; using Workshopping.TheBaddies; using System.Collections.Gene...
52.644013
165
0.681687
[ "MIT" ]
Handelabra/WorkshopSample
MyModTest/VariantTest.cs
16,269
C#
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; namespace Maydear.SFExpress { /// <summary> /// 订单结果查询类型 /// </summary> [Description("订单结果查询类型")] public enum OrderSearchType { /// <summary> /// 正常单据查询,,传入的orderid为正向定单号 /// ...
19.37037
36
0.554493
[ "Apache-2.0" ]
Maydear/Maydear-SFExpress
src/Maydear.SFExpress/OrderSearchType.cs
633
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using OSA.Data; namespace OSA.Data.Mig...
36.349349
125
0.438245
[ "MIT" ]
krasizorbov/OSA
Data/OSA.Data/Migrations/20200329132748_ChangeCompanyNameMaxLengthTo80.Designer.cs
36,315
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; namespace Azure.ResourceManager.Compute.Models { /// <summary> Capture Virtual Machine parameters. </summary> public partial class VirtualMachineCaptureParamet...
43.090909
150
0.666667
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineCaptureParameters.cs
1,896
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.5485 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
34.057143
164
0.557886
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
OS2CPRbroker/CPRbroker
PART/Source/Core/Schemas/OIOXSD/BBR_AddressCoordinateQualityClassCode.designer.cs
1,192
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace ConsoleGameEngine { public static class Input { public static InputKey esc = new InputKey(Key.Escape); public static InputKey confirm = new InputKey(Key.Enter...
31.295918
134
0.699381
[ "MIT" ]
D3TONAT0R/Raytracer
Input.cs
3,069
C#
using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using QueryBuilder.Contract; using QueryBuilder.Entities; using QueryBuilder.Extension.Queryable; namespace QueryBuilder.Generator { internal class PgQuerySelectGenerator { private readonly PgQue...
39.828125
109
0.580424
[ "MIT" ]
Nemo-Illusionist/PostgresqlQueryBuilder
QueryBuilder/Generator/PgQuerySelectGenerator.cs
5,098
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("cd...
38.216216
84
0.747525
[ "MIT" ]
cdmdotnet/performance
cdmdotnet.Performance/Properties/AssemblyInfo.cs
1,417
C#
using System; using System.Collections.Generic; using System.Text; namespace Plannoy.Domain.Establishment { public class EstablishmentNotFoundException : Exception { public EstablishmentNotFoundException() : base("Establishment Not found") { } } }
20.428571
81
0.702797
[ "MIT" ]
douglasramos/plannoy
src/Domain/Establishment/EstablishmentNotFoundException.cs
288
C#
using System; namespace AzerothWarsCSharp.MacroTools.Frames { public class FrameEventArgs : EventArgs { public Frame Frame { get; } public FrameEventArgs(Frame frame) { Frame = frame; } } }
16
45
0.651786
[ "MIT" ]
YakaryBovine/AzerothWarsCSharp
src/AzerothWarsCSharp.MacroTools/Frames/FrameEventArgs.cs
226
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...
30.578947
101
0.679862
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/FIS/Generated/Model/DeleteExperimentTemplateResponse.cs
1,743
C#
using System; using System.Threading; using GHIElectronics.TinyCLR.Devices.Gpio; using Meadow.Peripherals.Sensors.Distance; namespace Meadow.TinyCLR.Sensors.Distance { /// <summary> /// HYSRF05 Distance Sensor /// </summary> public class Hysrf05 : IRangeFinder { #region Properties ...
30.741007
90
0.572432
[ "Apache-2.0" ]
Gravicode/TinyCLR.Drivers
src/Sensors.Distance.HYSRF05/HYSRF05.cs
4,273
C#
using System; using System.IO; using System.Threading.Tasks; using MySql.Data.MySqlClient; using routingdeal.Models; namespace routingdeal.Business { public class RoutingDao { public string ConnectionString { get; set; } private string AuxPathFileDb { get; set; } public RoutingDao(stri...
35.744792
197
0.430861
[ "MIT" ]
Joac89/Microservicios
routingdeal/Business/RoutingDao.cs
6,863
C#
// Copyright 2019 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
34.361702
78
0.626006
[ "Apache-2.0" ]
chrisdunelm/google-ads-dotnet
src/V1/Stubs/MutateCustomerNegativeCriteriaResponsePartialFailureSupport.cs
1,615
C#
using System.ComponentModel.DataAnnotations; namespace GigsApplication.Core.Models { public class Following { [Key] public string FollowerId { get; set; } [Key] public string FolloweeId { get; set; } public ApplicationUser Follower { get; set; } public Applicati...
25.5
53
0.633053
[ "Apache-2.0" ]
mohamedabotir/SongShare
GigsApplication/Core/Models/Following.cs
359
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DataQI.Dapper.FastCrud.Test.Repository.Products { [Table("PRODUCT")] public class Product { [Key] [Column("PRODUCT_ID")] [DatabaseGenerated(DatabaseGeneratedOptio...
24.733333
61
0.583109
[ "MIT" ]
henrique-gouveia/DataQI.Dapper.FastCrud
test/DataQI.Dapper.FastCrud.Test/Repository/Products/Product.cs
1,113
C#
using System; using System.Net; using System.Threading.Tasks; using Akka.Actor; using Akka.Interfaced; using Akka.Interfaced.LogFilter; using Akka.Interfaced.SlimServer; using Common.Logging; using Domain; namespace GameServer { [Log] [ResponsiveException(typeof(ResultException))] public class UserLoginAc...
40.028571
134
0.647395
[ "MIT" ]
SaladLab/TicTacToe
src/GameServer/UserLoginActor.cs
2,804
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Diagnostics.Runtime; using System; using System.Runtime.InteropServices; using Architecture = System...
43.238095
120
0.642438
[ "MIT" ]
JongHeonChoi/diagnostics
src/Microsoft.Diagnostics.DebugServices.Implementation/TargetFromDataReader.cs
2,724
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Practices.ObjectBuilder2.Tests.Utility { internal class ActivatorCreationStrategy : BuilderStrategy ...
33.846154
122
0.654545
[ "Apache-2.0", "MIT" ]
drcarver/unity
source/Unity/Tests/ObjectBuilder/Utility/ActivatorCreationStrategy.cs
882
C#
using MutantCommon; using System.Collections.Generic; using System.Threading.Tasks; namespace TestComponents { public abstract class TestRunner : ITestRunner { public string ToolName = ""; public int testCaseCount = 0; public abstract bool RunExternalTestToolForSolution(string...
39.178571
130
0.713765
[ "MIT" ]
mstewart1972/MutationTestingWithDeepParallelReinforcementLearning
TestComponents/TestRunner.cs
1,099
C#
using ags_client.Resources.GeometryService; using ags_client.Types.Geometry; using Newtonsoft.Json; using RestSharp; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace ags_client.Requests.GeometryService { public class BufferRequest<TG> : BaseRequest where TG : IRestGe...
39.689189
113
0.627852
[ "MIT" ]
nef001/ags-client
ags-client/Requests/GeometryService/BufferRequest.cs
2,939
C#
using Windows.Storage; namespace BleLab.Utils.Keeper { public class AppContainerKeeperStorage : IKeeperStorage { private readonly ApplicationDataContainer _container; public AppContainerKeeperStorage(ApplicationDataContainer container = null) { if (container == null) ...
25.0625
83
0.608479
[ "MIT" ]
GlennRice83/BleLab
BleLab/Utils/Keeper/AppContainerKeeperStorage.cs
804
C#
using System.Web; using System.Web.Mvc; namespace CoachLancer.Web { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.071429
81
0.626335
[ "MIT" ]
ikonomov17/CoachLancer
CoachLancer/CoachLancer.Web/App_Start/FilterConfig.cs
283
C#
using System; using System.IO; namespace AssetsTools.NET { public class BundleReplacerFromStream : BundleReplacer { private readonly string oldName; private readonly string newName; private readonly bool hasSerializedData; private readonly Stream stream; private readonl...
31.447059
160
0.572391
[ "Unlicense" ]
DigitalzombieTLD/AudioCore
AssetTools/Standard/BundleReplacer/BundleReplacerFromStream.cs
2,675
C#
using System; using VDS.RDF; using VDS.RDF.Parsing; using VDS.RDF.Query; namespace NetRdf { class Program { static void Main(string[] args) { // For simple queries: //First we need an instance of the SparqlQueryParser SparqlQueryParser parser = new SparqlQue...
32.227273
101
0.595675
[ "Apache-2.0" ]
alireza1111/XmlSchemaClassGenerator
NetRdf/Program.cs
2,129
C#
using GenshinPray.Exceptions; using GenshinPray.Service; using GenshinPray.Service.PrayService; namespace GenshinPray.Controllers.Api { public abstract class BasePrayController<T> : BaseController where T : BasePrayService, new() { protected T basePrayService; protected AuthorizeService author...
30.975
97
0.658596
[ "MIT" ]
baimianxiao/GenshinPray
GenshinPray/Controllers/Api/BasePrayController.cs
1,263
C#
// Copyright (c) 2020 Yann Crumeyrolle. All rights reserved. // Licensed under the MIT license. See LICENSE in the project root for license information. namespace JsonWebToken { /// <summary>Defines an encrypted JWT with a <see cref="JwsDescriptor"/> payload.</summary> public sealed partial class JweDescripto...
30.45098
183
0.553767
[ "MIT" ]
uruk-project/Jwt
src/JsonWebToken/Writer/JweDescriptor.cs
1,555
C#
using System; using System.Net.Http; using BTCPayServer.AtomicSwaps; namespace BTCPayServer.Services { public class AtomicSwapClientFactory { public AtomicSwapClientFactory(IHttpClientFactory httpClientFactory) { HttpClientFactory = httpClientFactory; } public IHtt...
24.75
76
0.664983
[ "MIT" ]
queilawithaQ/btcpayserver
BTCPayServer/Services/AtomicSwapClientFactory.cs
596
C#