content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; namespace RefundableFocus.Common; public static class Utils { public static void SafeInvoke(Action action, Action after) { try { action(); after(); } catch (Exception ex) { Plugin.Log.LogError(ex); } } ...
17.735294
63
0.452736
[ "MIT" ]
amadare42/refundablefocus
Common/Utils.cs
605
C#
namespace Vonage.Voice.EventWebhooks { public class Timeout : CallStatusEvent { } }
12.25
42
0.673469
[ "Apache-2.0" ]
Cereal-Killa/vonage-dotnet-sdk
Vonage/Voice/EventWebhooks/Timeout.cs
100
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.Collections.Generic; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor....
37.829545
161
0.541103
[ "Apache-2.0" ]
AlessandroDelSole/Roslyn
src/EditorFeatures/CSharpTest/Outlining/CompilationUnitOutlinerTests.cs
9,989
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.ModelConfiguration.Edm { using System.Data.Entity.Core.Mapping; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Utilities; ...
36.559524
132
0.669163
[ "Apache-2.0" ]
CZEMacLeod/EntityFramework6
src/EntityFramework/ModelConfiguration/Edm/StorageEntityTypeMappingExtensions.cs
3,071
C#
 namespace SSN.Data.Models { public enum VoteType { DownVote = -1, Neutral = 0, UpVote = 1, } }
13.3
27
0.481203
[ "MIT" ]
Plamen91Ivanov/DoctorInformation
src/Data/SSN.Data.Models/VoteType.cs
135
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItemBehavior : MonoBehaviour { void OnCollisionEnter(Collision collision) { if (collision.gameObject.name == "Player") { Destroy(this.transform.gameObject); Debug.Log("Item collec...
21.625
50
0.644509
[ "MIT" ]
PacktPublishing/Learning-C-by-Developing-Games-with-Unity-Sixth-Edition
Ch_08_Starter/Assets/Scripts/ItemBehavior.cs
346
C#
using NUnit.Framework; using System.Collections.Generic; namespace Exodrifter.Rumor.Engine.Tests { public static class AppendExecution { [Test] public static void AppendSuccess() { var rumor = new Rumor( new Dictionary<string, List<Node>> { { Rumor.MainIdentifier, new List<Node>() { new ...
20.204082
53
0.624242
[ "MIT" ]
exodrifter/unity-rumor
Engine/Tests/AppendExecution.cs
992
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...
36.187879
225
0.605259
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Storage/V20171001/ListStorageAccountServiceSAS.cs
5,971
C#
using System.Collections.Generic; using System.Linq; using UKitchen.Localizations.Model; using UnityEditor; namespace UKitchen.Localizations { public abstract class AbsLocalizationMonoStateHelperEditor : Editor { } public abstract class AbsLocalizationMonoStateHelperEditor<TWord, TSet...
35.636364
106
0.543878
[ "MIT" ]
CengizKuscu/UnityKitchen
Assets/UKitchen/Localizations/Editor/AbsLocalizationMonoStateHelperEditor.cs
5,880
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Linq; using System.Security.Principal; using System.Web.Security; using System.Web.UI; namespace Microsoft.AspNet.SignalR.S...
32.74359
111
0.603759
[ "Apache-2.0" ]
286378618/ios-
samples/Microsoft.AspNet.SignalR.Samples/Hubs/Auth/Default.aspx.cs
1,279
C#
using System.Windows.Forms; using LiveChartsCore.SkiaSharpView.WinForms; using ViewModelsSamples.VisualTest.ReattachVisual; namespace WinFormsSample.VisualTest.ReattachVisual; public partial class View : UserControl { private bool _isInVisualTree = true; private readonly CartesianChart _cartesianChart; ...
26
100
0.60054
[ "MIT" ]
Live-Charts/LiveCharts2
samples/WinFormsSample/VisualTest/ReattachVisual/View.cs
1,484
C#
// The MIT License (MIT) // // Copyright (c) 2017 Smart&Soft // // 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, cop...
22.533333
81
0.642669
[ "MIT" ]
smartnsoft/ModernApp4Me
ModernApp4Me.Universal/Metadata/M4MDeviceInformation.cs
3,044
C#
using Newtonsoft.Json; using System.Collections.Generic; namespace UiPathCloudAPISharp.Models { public class Info<T> { [JsonProperty(PropertyName = "@odata.context")] public string Context { get; set; } [JsonProperty(PropertyName = "@odata.count")] public int Count { get; set;...
23.444444
55
0.625592
[ "MIT" ]
DrGennadius/UiPathCloudAPI
UiPathCloudAPI/Models/Info.cs
424
C#
using UnityEngine; using System.Collections; using UniPromise; using UniRx; namespace Tweasing { public abstract class DurationScalableEmersionTweener : EmersionTweener { public override Promise<CUnit> Show () { return Show (GetDefaultShowEasingDuration (), GetExecutor ()); } public Promise<CUnit> Show (fl...
27.652174
84
0.736373
[ "MIT" ]
shinji-yoshida/Tweasing
Assets/Plugins/Tweasing/DurationScalableEmersionTweener.cs
1,910
C#
// Copyright 2017 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, software ...
40.26087
135
0.615983
[ "Apache-2.0" ]
Esri/arcgis-runtime-samples-dotne
src/WinUI/ArcGISRuntime.WinUI.Viewer/Samples/Layers/WmsIdentify/WmsIdentify.xaml.cs
4,630
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Deployment.WindowsInstaller; namespace MyCustomAction { public class CustomActions { [CustomAction] public static ActionResult ShowTime(Session session) { ResetProgress(ses...
28.754386
63
0.568029
[ "MIT" ]
PacktPublishing/WiX-3.6-A-Developer-s-Guide-to-Windows-Installer-XML
Chapter 8/TimeRemaining example/MyCustomAction/CustomAction.cs
1,641
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { [TLObject(1891070632)] public class TLTopPeers : TLAbsTopPeers { public override int Constructor { ...
27.387755
122
0.632638
[ "MIT" ]
slctr/Men.Telegram.ClientApi
Men.Telegram.ClientApi/TL/TL/Contacts/TLTopPeers.cs
1,342
C#
using System.Web; using System.Web.Mvc; namespace Web2Test { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
18.642857
80
0.651341
[ "MIT" ]
tlaothong/lab-swp-scalable
Web2Test/Web2Test/App_Start/FilterConfig.cs
263
C#
// Copyright (c) 2015 SharpYaml - Alexandre Mutel // // 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, ...
46.676056
82
0.672601
[ "MIT" ]
Aminator/xenko
sources/core/Xenko.Core.Yaml/Tokens/DocumentStart.cs
3,314
C#
using Owin; namespace TraceBot { public static class AppBuilderExtensions { public static IAppBuilder UseTraceBot(this IAppBuilder builder) { builder.Use(WebSockets.Upgrade); return builder; } } }
18.5
71
0.6139
[ "MIT" ]
rwhitmire/TraceBot
TraceBot/AppBuilderExtensions.cs
261
C#
namespace YouInject { public interface IYouInjectLogger { void Log(object message); } }
15.428571
37
0.638889
[ "MIT" ]
Holygoe/YouInject
Runtime/IYouInjectLogger.cs
110
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Application.cs" company="Diego Arenas T."> // © All rights reserved // </copyright> // <summary> // Application // </summary> // ------------------------------------------------...
32.677419
120
0.451135
[ "MIT" ]
dtarenas/XamarinNinjaCourse
XamarinNinjaCourse.Mobile/XamarinNinjaCourse.Mobile.iOS/Main.cs
1,016
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AllReady.Areas.Admin.Features.Events; using AllReady.Areas.Admin.Models; using AllReady.Models; using Microsoft.Extensions.DependencyInjection; using Xunit; namespace AllReady.UnitTest.Areas.Admin.Features.Events { ...
37.863636
85
0.531158
[ "MIT" ]
HydAu/AllReadyCopyJune10_2016
AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Features/Events/EditEvent.cs
9,165
C#
using System; namespace SnelStart.B2B.V2.Client.Operations { /// <summary> /// De gegevenscontainer voor een kasboeking. /// </summary> public class KasboekingModel : IdentifierModel { /// <summary> /// Geeft de naam van deze gegevenscontainer terug. /// </summary> p...
38.85
149
0.662162
[ "MIT" ]
BeyondDefinition/B2B.client.v2.net
SnelStart.B2B.V2.Client/Operations/Kasboekingen/KasboekingModel.cs
1,554
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.IO; namespace CustomUpdateEngine { public class CreateFolderAction : GenericAction { public CreateFolderAction(string xmlFragment) { LogInitialization(xmlFragment); ...
31.981132
143
0.573451
[ "MIT" ]
DCourtel/Wsus_Package_Publisher
code/CustomUpdateEngine/Actions/CreateFolderAction.cs
1,697
C#
using Content.Server.Atmos.EntitySystems; using Content.Shared.Atmos; using Content.Shared.Maps; using Robust.Shared.Map; using Robust.Shared.Maths; using Robust.Shared.ViewVariables; namespace Content.Server.Atmos { /// <summary> /// Internal Atmos class that stores data about the atmosphere in a grid. ...
29.742268
121
0.620451
[ "MIT" ]
AJCM-git/space-station-14
Content.Server/Atmos/TileAtmosphere.cs
2,885
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.376812
199
0.627385
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Batch/V20181201/ListBatchAccountKeys.cs
2,096
C#
using OpenKh.Kh2; using OpenKh.Kh2.Battle; using OpenKh.Tools.Common.Models; using OpenKh.Tools.Kh2BattleEditor.Extensions; using OpenKh.Tools.Kh2BattleEditor.Interfaces; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows; namespace OpenKh.Tools.Kh2BattleEditor.ViewModels { ...
45.111111
124
0.636946
[ "Apache-2.0" ]
1234567890num/OpenKh
OpenKh.Tools.Kh2BattleEditor/ViewModels/BtlvViewModel.cs
4,060
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
44.054795
186
0.616397
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest.cs
9,648
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.Net; using System.Net.Http; using System.Web.Http; using DotNetNuke.Entities.Users; u...
40.172131
136
0.569884
[ "MIT" ]
MaiklT/Dnn.Platform
DNN Platform/DotNetNuke.Web/InternalServices/RelationshipServiceController.cs
4,903
C#
using Microsoft.Management.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using SimCim.Core; namespace SimCim.Root.StandardCimV2 { public class CIMDNSGeneralSettingData : CIMIPAssignmentSettingData { public CIMDNSGeneralSettingData() { } ...
25.34375
119
0.496917
[ "Apache-2.0" ]
simonferquel/simcim
SimCim.Root.StandardCimV2/ClassCIMDNSGeneralSettingData.cs
1,624
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; namespace MQTTnet.EventBus.DependencyInjection.Builder.Impl { public class ServicesBuilder : IServicesBuilder { private readonly IServiceCollection _services; private readonly HashSet<ServiceType> _...
30.769231
129
0.69875
[ "MIT" ]
Revalcon/MQTTnet.EventBus
src/MQTTnet.EventBus/DependencyInjection/Builder/Impl/ServicesBuilder.cs
802
C#
// ILReader.cs // Author: Sergey Chaban (serge@wildwestsoftware.com) using System; using System.IO; using System.Text; using System.Collections; namespace Mono.ILASM { /// <summary> /// </summary> public class ILReader { readonly private StreamReader reader; readonly private Stack putback_stack; readonl...
16.850299
90
0.578181
[ "MIT" ]
stephen-riley/Mobius.ILasm
Mobius.ILasm/ilasm/scanner/ILReader.cs
2,814
C#
//This must be on "Players" in Unity using UnityEngine; public class Controllers : MonoBehaviour { private bool _isClickedLeft, _isTouchLeft; private bool _isClickedRight, _isTouchRight; private PlayerController _playerController; private void Awake() { _playerController = new PlayerCont...
20.782609
84
0.588563
[ "MIT" ]
lg-lg-lg/car2dracing
Assets/Scripts/Controllers.cs
1,434
C#
namespace System { /// <summary> /// Extension method class for <see cref="object"/>. /// </summary> public static partial class ObjectExt { } }
20.75
60
0.590361
[ "MIT" ]
DonaldRecord/TeamSwim.Extensions
Source/TeamSwim.Extensions/Methods/System/Object/_ObjectExt.cs
168
C#
namespace SecurityFever.CredentialManager { /// <summary> /// Type of credential persistence. /// </summary> public enum CredentialPersist : uint { Session = 0x01, LocalMachine = 0x02, Enterprise = 0x03 } }
20.230769
42
0.577947
[ "MIT" ]
Kagre/SecurityFever
SecurityFever.Library/CredentialManager/CredentialPersist.cs
265
C#
/* The MIT License (MIT) Copyright (c) 2015 Patrick McCuller 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, me...
41.508197
91
0.651659
[ "MIT" ]
pmcculler/datastructures
AlgorithmsTests/TopologicalSortTest.cs
5,066
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Diagnostics; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Exten...
40.538462
196
0.62859
[ "Apache-2.0" ]
enginekit/copy_of_roslyn
Src/Workspaces/CSharp/Portable/Formatting/Engine/Trivia/TriviaDataFactory.cs
7,907
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using LCUSharp; using System.Net.Http; using System.Diagnostics; namespace NewLeagueApp.Client { public class RiotConnecter { /// <summary> /// Sends a reques...
36.552239
129
0.570845
[ "MIT" ]
moahmmed199898/SmartRunes
NewLeagueApp/Client/RiotConnecter.cs
2,451
C#
// <auto-generated /> // This file was generated by a T4 template. // Don't change it directly as your change would get overwritten. Instead, make changes // to the .tt file (i.e. the T4 template) and save it to regenerate this file. // Make sure the compiler doesn't complain about missing Xml comments and CLS compli...
38.96748
285
0.679741
[ "Apache-2.0" ]
T4MVC/T4MVC
T4MVCHostMvcApp/T4MVC Files/SomeAsyncController.generated.cs
4,793
C#
/* Copyright (c) 2017, Nokia 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 list of conditions and the...
43.085106
96
0.756543
[ "BSD-3-Clause" ]
nuagenetworks/vspk-csharp
vspk/vspk/IngressAuditACLEntryTemplatesFetcher.cs
2,025
C#
using System; using System.Linq.Expressions; using Gamma.Binding.Core; namespace Gamma.Widgets.SidePanels { [System.ComponentModel.ToolboxItem(true)] public partial class RightSidePanel : Gtk.Bin { public event EventHandler PanelOpened; public event EventHandler PanelHided; public BindingControler<RightSide...
18.776786
104
0.63243
[ "Apache-2.0" ]
Art8m/QSProjects
Binding/Gamma.Binding/Widgets/SidePanels/RightSidePanel.cs
2,105
C#
using System; namespace DiStock.DAL { public class ProjectData { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public byte IsPublic { get; set; } public DateTime Date { get; set; } } }
16.555556
47
0.563758
[ "MIT" ]
Chators/Digger
src/Digger.DAL/DiStock.DAL/DiStock.DAL/Datas/Project/ProjectData.cs
300
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using SimpleDB.core.IO; namespace SimpleDB.core.TableManagement { public class TableList { private static TableList tableList = null; private static XDocum...
27.780488
118
0.538191
[ "MIT" ]
Lukasz199312/SimpleDB
core/TableManagement/TableList.cs
4,558
C#
namespace Call_in_a_Doctor { partial class frmAdminConsultancyReq { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /...
54.178571
166
0.614276
[ "MIT" ]
Atanusaha143/Call-in-a-Doctor
Call in a Doctor/Call in a Doctor/AdminConsultancyReq.Designer.cs
10,621
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace JSNLogDemo_Log4Net_NoOnErrorHandler { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreR...
25.125
99
0.603648
[ "MIT" ]
mperdeck/jsnlog.SimpleWorkingDemoGenerator
EmptySolution/jsnlogSimpleWorkingDemos/JSNLogDemo_Log4Net_NoOnErrorHandler/App_Start/RouteConfig.cs
605
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using Microsoft.Azure.KeyVault; us...
47.790323
142
0.702666
[ "Apache-2.0" ]
Asesjix/Identity
src/Service.AzureKeyVault/KeyVaultSigningCredentialSource.cs
2,965
C#
using System; namespace Humanizer { /// <summary> /// ApplyCase method to allow changing the case of a sentence easily /// </summary> public static class CasingExtensions { /// <summary> /// Changes the casing of the provided input /// </summary> /// <pa...
30.216216
79
0.5161
[ "MIT" ]
0xced/Humanizer
src/Humanizer/CasingExtensions.cs
1,084
C#
using System; using Xamarin.Forms; using System.Threading; using System.Globalization; [assembly:Dependency(typeof(Sensus.Locale_Android))] namespace Sensus { public class Locale_Android : ILocale { public void SetLocale (CultureInfo ci){ Thread.CurrentThread.CurrentCulture = ci; Thread.Cur...
22.135593
83
0.592649
[ "Apache-2.0" ]
cph-cachet/radmis.Moribus.vs2
Sensus.Android/Locale_Android.cs
1,308
C#
// // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Microsoft.Performance.SDK; using Microsoft.Performance.SDK.Extensibility; using Microsoft.Performance.SDK.Processing; using MsQuicTracing....
43.20197
120
0.632497
[ "MIT" ]
anrossi/msquic
src/plugins/wpa/Tables/QuicWorkerActivityTable.cs
8,772
C#
using System.Collections.Generic; using UnityEngine; using DRDevTools.TypeAdapters.Variables; namespace DRDevTools.Events { [CreateAssetMenu(menuName = "Events/Vector3")] public class Vector3GameEvent : ScriptableObject { private readonly List<Vector3GameEventListener> eventListeners = new List<Ve...
31.066667
110
0.652361
[ "MIT" ]
DarrenRuane/dr-dev-tools
Assets/DRDevTools/Events/Vector3GameEvent.cs
934
C#
using System; namespace FastNetLib { /// <summary> /// Interface to implement for your own logger /// </summary> public interface INetLogger { void WriteNet(ConsoleColor color, string str, params object[] args); } /// <summary> /// Static class for defining your own FastNetLib...
23.636364
89
0.640385
[ "MIT" ]
DanisJoyal/FastNetLib
FastNetLib/NetDebug.cs
522
C#
using InjectionScript.Runtime; using System; using System.Collections.Generic; using System.Text; namespace Infusion.LegacyApi.Injection { public interface IInjectionWindow { void Open(InjectionRuntime runtime, InjectionApiUO injectionApi, Legacy infusionApi, InjectionHost host); } public sea...
29
138
0.760536
[ "MIT" ]
3HMonkey/Infusion
Infusion.LegacyApi/IInjectionWindow.cs
524
C#
using FluentValidation; using FluentValidation.Results; using Gadget.Notifications.Domain.Enums; using System.Net.Mail; namespace Gadget.Notifications.Requests.Validations { public class CreateWebhookValidator : AbstractValidator<CreateWebhook> { public override ValidationResult Validate(ValidationCon...
32.104167
118
0.593121
[ "MIT" ]
charconstpointer/gadget
Gadget.Notifications/Requests/Validations/CreateWebhookValidator.cs
1,543
C#
using NUnit.Framework; namespace Stratosphere.Tests.Math { public class Given_single_element_matrix : Given_transformed_matrix { [SetUp] public void Given_test_matrix() { _matrix = "2"; _expectedMatrix = "2"; } [Test] public void Then_can...
21.2
71
0.568396
[ "MIT" ]
mandrek44/stratosphere-net
UnitTests/Stratosphere.Tests.Math/Given_single_element_matrix.cs
424
C#
/* Copyright (c) 2019 Denis Zykov, GameDevWare.com This a part of "Json & MessagePack Serialization" Unity Asset - https://www.assetstore.unity3d.com/#!/content/59918 THIS SOFTWARE IS DISTRIBUTED "AS-IS" WITHOUT ANY WARRANTIES, CONDITIONS AND REPRESENTATIONS WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITAT...
26.7107
116
0.585559
[ "Apache-2.0" ]
FromSeabedOfReverie/SubmarineMirageFrameworkForUnity
Assets/Plugins/ExternalAssets/Systems/GameDevWare.Serialization/JsonUtils.cs
20,220
C#
using System; namespace Solutions.Core.Time { public class TimeService : ITimeService { private readonly Func<DateTime> func; public static TimeService Default { get { return new TimeService(() => DateTime.Now); } } public static TimeService DefaultUtc ...
21.178571
66
0.524452
[ "MIT" ]
mletunov/SolutionsNet
Solutions.Core/Time/TimeService.cs
595
C#
using System; namespace NetConf.Helpers.Interfaces { public interface IMinotaur : IHuman { void StrikeWithHorn(); void StrikeWithAxe() => Console.WriteLine("Axe hit: 100"); void IHuman.Speak() => Console.WriteLine("I am Minotaurrrrrrrr!!"); } }
21.769231
75
0.646643
[ "MIT" ]
xitaocrazy/whats-new-in-c-8-p2
NetConf/Helpers/Interfaces/IMinotaur.cs
283
C#
using System; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AsyncStreams { class Program { static async Task Main(string[] args) { //OLD // var foo = new AsyncIntegersOld(); //for...
27.523077
108
0.534377
[ "MIT" ]
Barsonax/CsharpFeatureShowcase
CsharpFeatureShowcase/AsyncStreams/Program.cs
1,791
C#
/** * Copyright (c) 2015, GruntTheDivine 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 list * of c...
41.86
88
0.73053
[ "BSD-3-Clause" ]
SplittyDev/Iodine-Library
src/Iodine/Interop/TypeMappings/BoolTypeMapping.cs
2,093
C#
namespace Животинско_царство { using System; using System.Collections.Generic; using System.Text; interface IMakeTrick { public string MakeTrick(); } }
15.5
37
0.655914
[ "MIT" ]
Kalin1603/School-Repository
ИНФ-уч-др/Животинско царство/IMakeTrick.cs
205
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; namespace EZOper.NetSiteUtilities.AopApi { /// <summary> /// AntMerchantExpandMapplyorderQueryResponse. /// </summary> public class AntMerchantExpandMapplyorderQueryResponse : AopResponse { /// <summary> ...
25.333333
72
0.584008
[ "MIT" ]
erikzhouxin/CSharpSolution
NetSiteUtilities/AopApi/Response/AntMerchantExpandMapplyorderQueryResponse.cs
1,088
C#
// <copyright file="DocumentTypeConverter.cs" company="Glenn Watson"> // Copyright (c) 2018 Glenn Watson. All rights reserved. // See LICENSE file in the project root for full license information. // </copyright> namespace ReactiveGit.Gui.WPF.Converters { using System; using ReactiveGit.Gui.Core.ViewModel.Re...
27.087719
98
0.560233
[ "MIT" ]
punker76/ReactiveGit
ReactiveGit.Gui.WPF/Converters/DocumentTypeConverter.cs
1,546
C#
using AnnoSavegameViewer.Serialization.Core; using System.Collections.Generic; namespace AnnoSavegameViewer.Structures.Savegame.Generated { public class TargetParticipant { [BinaryContent(Name = "value", NodeType = BinaryContentTypes.Node)] public TargetParticipantValue Value { get; set; } } }
25.833333
71
0.780645
[ "MIT" ]
brumiros/AnnoSavegameViewer
AnnoSavegameViewer/Structures/Savegame/Generated/NoContent/TargetParticipant.cs
310
C#
using ReactiveUI; namespace KyoshinEewViewer.Core.Models.Events { public class DisplayWarningMessageUpdated { public DisplayWarningMessageUpdated(string message) { Message = message; } public string Message { get; } public static void SendWarningMessage(string message) => MessageBus.Current.SendMe...
20.833333
80
0.776
[ "MIT" ]
ingen084/KyoshinEewViewerIngen
src/KyoshinEewViewer.Core/Models/Events/DisplayWarningMessageUpdated.cs
377
C#
// MIT License // // Copyright (c) 2017 Maarten van Sambeek. // // 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, cop...
44.875
107
0.672857
[ "MIT" ]
MaartenX/ConnectQL
src/ConnectQl.Tools/Mef/Results/Converters/DivideConverter.cs
3,233
C#
 using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyMove : MonoBehaviour { public GameObject bullet; public float speed; public float rotationSpeed; public float raycastDist; public float boxDist; Move move; Transform player; void Star...
33.857143
118
0.500959
[ "CC0-1.0" ]
EthanBar/Tanks
Assets/Script/EnemyMove.cs
2,609
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Negri.Wot.WgApi { /// <summary> /// Um clã /// </summary> public class Clan { /// <summary> /// Id do Clã (nunca muda) /// </summary> [JsonProperty("cl...
25.810345
95
0.530394
[ "MIT" ]
negri/wotclans
WoTStat/WgApi/Clan.cs
1,509
C#
using Ef5TipsTricks.DataAccess.Entities.Common; using System.Collections.Generic; namespace Ef5TipsTricks.DataAccess.Entities { public class Person : DeletableEntity { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } publ...
22.588235
67
0.674479
[ "MIT" ]
marcominerva/EntityFrameworkCoreTipsTricks
Ef5TipsTricks/DataAccess/Entities/Person.cs
386
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Saule { /// <summary> /// Formatter priority for configuration /// </summary> public enum FormatterPriority { /// <summary> /// Formatter will be inserted a...
22.933333
69
0.59593
[ "MIT" ]
BookerSoftwareInc/saule
Saule/FormatterPriority.cs
690
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 * ...
35.5
117
0.622535
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Ecm/V20190719/Models/CreateNetworkInterfaceRequest.cs
3,846
C#
namespace IntakerConsole.Configuration { public class IntakerConsoleAppConfig { public string SpecsPath { get; set; } public string InputPath { get; set; } public string OutputPath { get; set; } } }
23.6
46
0.644068
[ "MIT" ]
dbsafe/intaker-demo
IntakerDemos/IntakerConsole/Configuration/IntakerConsoleAppConfig.cs
238
C#
namespace ProjetoApollo.EntityFrameworkCore.Seed.Host { public class InitialHostDbBuilder { private readonly ProjetoApolloDbContext _context; public InitialHostDbBuilder(ProjetoApolloDbContext context) { _context = context; } public void Create() { ...
26.565217
67
0.631751
[ "MIT" ]
ArthurNascimento019/ProjetoApollo
Portal/aspnet-core/src/ProjetoApollo.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/InitialHostDbBuilder.cs
613
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LevelEditor { class StmNewline : Statement { public StmNewline(int Index) : base(Index, Environment.NewLine) { } public static bool IsThisYou(string st...
19.47619
71
0.623472
[ "MIT" ]
OnionBurger/PlaneSmith
LevelEditor/classes/generation/StmNewline.cs
411
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...
31.872549
110
0.626269
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/CognitoSync/Generated/Model/SetIdentityPoolConfigurationRequest.cs
3,251
C#
using System.Linq; using System.Linq.Expressions; using System.Reflection; using HappyMapper.AutoMapper.ConfigurationAPI.Configuration; namespace HappyMapper.AutoMapper.ConfigurationAPI.Mappers { public class ImplicitConversionOperatorMapper : IObjectMapper { public bool IsMatch(TypePair context) ...
41
229
0.696406
[ "MIT" ]
chumakov-ilya/HappyMapper
AutoMapper.ConfigurationAPI/AutoMapper/Mappers/ImplicitConversionOperatorMapper.cs
1,558
C#
using System; using System.Threading.Tasks; using Convey.CQRS.Commands; using Pacco.Services.Parcels.Application.Events; using Pacco.Services.Parcels.Application.Exceptions; using Pacco.Services.Parcels.Application.Services; using Pacco.Services.Parcels.Core.Entities; using Pacco.Services.Parcels.Core.Exceptions; using...
38.314815
107
0.693088
[ "MIT" ]
Microservices-DetectingQoSViolations/Pacco.Services.Parcels
src/Pacco.Services.Parcels.Application/Commands/Handlers/AddParcelHandler.cs
2,069
C#
using LiveHTS.Presentation.Interfaces.ViewModel; using LiveHTS.Presentation.Interfaces.ViewModel.Template; using LiveHTS.Presentation.Interfaces.ViewModel.Wrapper; using MvvmCross.Core.ViewModels; namespace LiveHTS.Presentation.ViewModel.Wrapper { public class FamilyTraceTemplateWrap : IFamilyTraceTemplateWrap ...
28.016949
105
0.623109
[ "MIT" ]
palladiumkenya/afyamobile
LiveHTS.Presentation/ViewModel/Wrapper/FamilyTraceTemplateWrap.cs
1,655
C#
// Copyright (c) 2016 Framefield. All rights reserved. // Released under the MIT license. (see LICENSE.txt) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; u...
34.782895
135
0.558918
[ "MIT" ]
kajott/tooll
Tooll/Components/CodeEditor/CodeSectionTabControl.xaml.cs
5,289
C#
using UnityEngine; using System.Collections; public class Pig : MonoBehaviour { public float sinkScale = 0.5f; public float raiseScale = 0.2f; Vector2 basePosition; bool isSinking = false; bool sunk = false; float i = 0.0f; float q = 0.0f; float t = 0.0f; public AudioClip[] jump...
21.909091
115
0.519364
[ "MIT" ]
sashaquatch/Morning-Ritual
MorningRitual/Assets/Scripts/Animal/Pig.cs
1,448
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace WebHost { public class Program ...
25.08
77
0.665072
[ "MIT" ]
codeyu/netcore-generic-host-demo
src/WebHost/Program.cs
629
C#
using System; using JetBrains.Annotations; using Vostok.Clusterclient.Model; namespace Vostok.Clusterclient.Strategies.DelayProviders { /// <summary> /// Represents a timeout provider that combines a <see cref="FixedDelaysProvider"/> for first few requests and uses an <see cref="EqualDelaysProvider"/> for the...
41.527778
178
0.709699
[ "MIT" ]
vostok-archives/clusterclient.prototype
Vostok.ClusterClient/Strategies/DelayProviders/FixedThenEqualDelaysProvider.cs
1,497
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Response { /// <summary> /// AlipayOpenPublicMenuQueryResponse. /// </summary> public class AlipayOpenPublicMenuQueryResponse : AopResponse { /// <summary> /// 一级菜单数组,个数应为1~4个 /// </summary> [XmlElement(...
21.833333
64
0.613232
[ "MIT" ]
BJDIIL/DiiL
Sdk/AlipaySdk/Response/AlipayOpenPublicMenuQueryResponse.cs
417
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2021 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file...
37.609756
102
0.560311
[ "Apache-2.0" ]
10by10pixel/YAFNET
yafsrc/YAF.Core/Extensions/ISendMailExtensions.cs
7,507
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections; using UnityEngine; using HoloToolkit.Unity; #if UNITY_WSA && !UNITY_EDITOR using System.Collections.Generic; #if UNITY_2017_...
34.3069
137
0.520083
[ "MIT" ]
ActiveNick/MixedRealityToolkit-Unity
Assets/HoloToolkit-Examples/Sharing/SharingService/Scripts/ImportExportAnchorManager.cs
33,314
C#
namespace VDTracker { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be dis...
35.29771
128
0.714749
[ "CC0-1.0" ]
belzecue/VDTracker
WindowsFormsApp2/Form1.Designer.cs
4,626
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; u...
49.149425
202
0.686155
[ "MIT" ]
kreghek/upgrade-assistant
src/extensions/default/analyzers/Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers/HttpContextIsDebuggingEnabledAnalyzer.cs
4,278
C#
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.Azure.Devices.Edge.Agent.Docker { using System; using System.Collections.Generic; using Microsoft.Azure.Devices.Edge.Agent.Core; using Microsoft.Azure.Devices.Edge.Util; using Newtonsoft.Json; public class EdgeAgentDockerModul...
46.854839
192
0.642685
[ "MIT" ]
ArchanaMSFT/iotedge
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Docker/EdgeAgentDockerModule.cs
2,905
C#
using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; namespace LoginPage.Droid.Models { public class Constants { public static bool IsDev = true; public static Color BackgroundColor = Color.FromRgb(14,158,21); public static Color MainText...
24.65
91
0.6714
[ "MIT" ]
Trevis42/Software_Engineering_Project
Models/Constants.cs
495
C#
using System; using System.Linq.Expressions; namespace MassivePixel.Common { public static class Member<TClass> { public static string Name<TReturn>(Expression<Func<TClass, TReturn>> propertySelector) { if (propertySelector == null) throw new ArgumentNullException("...
32.121951
102
0.637054
[ "Apache-2.0" ]
MassivePixel/wp-common
MassivePixel.Common.WP8/Member.cs
1,319
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...
33.553571
117
0.684939
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/PersonalizeRuntime/Generated/Model/GetPersonalizedRankingResponse.cs
1,879
C#
// ReSharper disable All using System.Collections.Generic; using System.Data; using System.Dynamic; using System.Linq; using Frapid.Configuration; using Frapid.DataAccess; using Frapid.DataAccess.Models; using Frapid.DbPolicy; using Frapid.Framework.Extensions; using Npgsql; using Frapid.NPoco; using Serilog; namespac...
45.055952
222
0.570455
[ "MIT" ]
2ia/frapid
src/Frapid.Web/Areas/Frapid.Config/DataAccess/CustomField.cs
37,847
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 "li...
30.553488
126
0.532349
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SecurityHub/Generated/Model/AwsEc2InstanceDetails.cs
6,569
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Media; using System.Windows.Forms.VisualStyles; namespace EvertTimer { public partial class timertoolFor...
31.864341
91
0.468434
[ "Unlicense" ]
evert-mouw/EvertTimer
source/timertool.cs
8,223
C#
using System.Linq; using Microsoft.EntityFrameworkCore; namespace SportsStore.Models { public class EFOrderRepository : IOrderRepository { private StoreDbContext context; public EFOrderRepository(StoreDbContext ctx) { context = ctx; } public IQueryable<Order>...
26.111111
68
0.561702
[ "MIT" ]
JeannAndrade/SportsStore
SportsStore/Models/EFOrderRepository.cs
705
C#
using System.Threading.Tasks; using YesSql.Indexes; using YesSql.Tests.Models; namespace YesSql.Tests.Indexes { public class PersonByName : MapIndex { public string SomeName { get; set; } public static string Normalize(string name) { return name.ToUpperInvariant()...
27.274194
85
0.519219
[ "MIT" ]
VE-2016/YesSQL
test/YesSql.Tests/Indexes/PersonByName.cs
1,691
C#
namespace GS.Hex.Communication.Asynchronous.Dashboard.Pages { internal partial class PerPageSelector { private readonly Pager _pager; public PerPageSelector(Pager pager) { _pager = pager; } } }
19.384615
60
0.619048
[ "MIT" ]
krzysztofdudek/hex
Source/Communication/Asynchronous/Dashboard/Pages/_PerPageSelector.cs
254
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Owpini.EntityFramework; namespace Owpini.EntityFramework.Migrations { [DbContext(typeof(OwpiniDbContext))] ...
31.216667
117
0.514682
[ "Apache-2.0" ]
tthiatma/Owpini
Owpini.EntityFramework/Migrations/20170629170821_update business entity.Designer.cs
1,875
C#
namespace ClearHl7.Codes.V270 { /// <summary> /// HL7 Version 2 Table 0653 - Date Format. /// </summary> /// <remarks>https://www.hl7.org/fhir/v2/0653</remarks> public enum CodeDateFormat { /// <summary> /// 1 - mm/dd/yy. /// </summary> MmDdYyWithSlashes, ...
20.05
59
0.435162
[ "MIT" ]
kamlesh-microsoft/clear-hl7-net
src/ClearHl7.Codes/V270/CodeDateFormat.cs
804
C#
public partial class MyTestEntity { public EntitasRedux.Tests.DeepCopyComponent DeepCopy { get { return (EntitasRedux.Tests.DeepCopyComponent)GetComponent(MyTestComponentsLookup.DeepCopy); } } public bool HasDeepCopy { get { return HasComponent(MyTestComponentsLookup.DeepCopy); } } public void AddDeepCopy(EntitasRe...
42.746269
269
0.811103
[ "MIT" ]
MaxShwachko/entitas-redux-modified
Unity/Assets/JCMG/EntitasRedux/Scripts/Editor/Tests/Generated/MyTest/Components/MyTestDeepCopyComponent.cs
2,864
C#