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 eilang.Interpreting; namespace eilang.OperationCodes { public class StringToUpper : IOperationCode { public void Execute(State state) { var str = state.Scopes.Peek().GetVariable(SpecialVariables.String).Get<string>(); state.Stack.Push(state.ValueFactory.String(str...
27.692308
93
0.655556
[ "MIT" ]
Szune/eilang
eilang/OperationCodes/StringToUpper.cs
362
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Pipes; using System.Text; namespace CoreCmdPlayground.Commands { class NamedPipeCommand { public void NamedServer() { using (NamedPipeServerStream pipeServer = new NamedPipeServerStream("testpipe", Pip...
35.462687
125
0.501684
[ "MIT" ]
li-rongcheng/CoreCmdPlayground
CoreCmdPlayground/Commands/NamedPipeCommand.cs
2,378
C#
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace IdentityServer.Data.Migrations { public partial class CreateIdentitySchema : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBu...
43.099548
122
0.498688
[ "MIT" ]
StefanGP88/IdentityServerAddOn
IdentityServerAddOn/IdentityServer/Data/Migrations/00000000000000_CreateIdentitySchema.cs
9,527
C#
using System.Collections.Generic; using System.Threading.Tasks; using Refit; namespace TailwindTraders.Mobile.Features.LogIn { public interface IProfilesAPI { [Get("/")] Task<IEnumerable<ProfileDTO>> GetAsync( [Header(Settings.Settings.ApiAuthorizationHeader)] string authorizationH...
24
91
0.71131
[ "MIT" ]
Lazareena/TailwindTraders-Mobile
Source/TailwindTraders.Mobile/TailwindTraders.Mobile/Features/LogIn/IProfilesAPI.cs
338
C#
namespace JoinRpg.Dal.Impl.Migrations { using System.Data.Entity.Migrations; public partial class CommentExtraAction : DbMigration { public override void Up() => AddColumn("dbo.Comments", "ExtraAction", c => c.Int()); public override void Down() => DropColumn("dbo.Comments", "ExtraAction")...
27.5
92
0.669697
[ "MIT" ]
HeyLaurelTestOrg/joinrpg-net
src/JoinRpg.Dal.Impl/Migrations/201512022027489_CommentExtraAction.cs
330
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\opmapi.h(436,5) using System; using System.Runtime.InteropServices; namespace DirectN { [Guid("0a15159d-41c7-4456-93e1-284cd61d4e8d"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public partial interface IOPMVideoOutput { [...
60.615385
315
0.734772
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/IOPMVideoOutput.cs
1,578
C#
using System; using System.Runtime.Remoting; namespace CountHost { class Class1 { static void Main(string[] args) { try { RemotingConfiguration.Configure(@"..\..\CountHost.exe.config"); } catch (Exception e) { System.Console.WriteLine("Failed to configure host application: " + e.Messa...
19.583333
126
0.67234
[ "MIT" ]
wf539/CSharpDotNETWebDevsGuide
code_06/Servers/CountHost/Class1.cs
470
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using TeamIHOC.Library.Identity; using TeamIHOC.Library.Model; namespace TeamIHOC.Library {...
26.294118
102
0.686801
[ "Unlicense" ]
IHOC/Website
TeamIHOC.Library/ViewHelper.cs
896
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
46.658781
338
0.569035
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs
51,278
C#
using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("UnityEditor.TestRunner")] [assembly: InternalsVisibleTo("Assembly-CSharp-Editor-testable")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] [assembly: InternalsVisibleTo("Unity.PerformanceTesting.Editor")] [assembly: I...
47.1875
76
0.825166
[ "MIT" ]
16pxdesign/genetic-algorithm-unity
Library/PackageCache/com.unity.test-framework@1.1.9/UnityEditor.TestRunner/AssemblyInfo.cs
755
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> //--...
34.709677
151
0.584572
[ "MIT" ]
evilC/NodeNetworkMefCalculator
MefCalculator.Editors/Properties/Settings.Designer.cs
1,078
C#
using RemoteControlWithUndo.Commands; using RemoteControlWithUndo.Receivers; namespace RemoteControlWithUndo.Commands { public class CeilingFanMediumCommand : ICommand { private readonly CeilingFan _ceilingFan; private int _prevSpeed; public CeilingFanMediumCommand(CeilingFa...
26.609756
62
0.476627
[ "MIT" ]
EugenieAmalfitano/design-patterns
src/command/RemoteControlWithUndo/Commands/CeilingFanMediumCommand.cs
1,093
C#
using Net.Share; using System; using System.Reflection; using Net.Server; using System.Threading; using Net.Event; namespace Net.Adapter { public class RPCPTR { public object target; public byte cmd; public virtual void Invoke(object[] pars) {} } public class RPCPTRMethod : RPC...
37.610119
189
0.455567
[ "MIT" ]
RedAWM/GDNet
GameDesigner/Network/Adapter/CallSiteRpcAdapter.cs
12,909
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...
43.335165
180
0.583492
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MediaLive/Generated/Model/Internal/MarshallTransformations/InputUnmarshaller.cs
7,887
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { internal enum LogicalGrouping { MatchAll, MatchAny } }
25.583333
111
0.713355
[ "Apache-2.0" ]
06b/AspNetCore
src/Middleware/Rewrite/src/IISUrlRewrite/LogicalGrouping.cs
309
C#
namespace CoreWiki.Infrastructure.Mapping { using System; using System.Linq; using AutoMapper; using Domain.Mapping; public class MappingProfile : Profile { public MappingProfile() { var allTypes = AppDomain .CurrentDomain .GetAssembl...
36.5
89
0.420969
[ "MIT" ]
stoyanov7/CoreWiki
src/CoreWiki.Infrastructure/Mapping/MappingProfile.cs
1,900
C#
using BB.Common.WinForms; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Appy.Core { public class AppyTheme : JaffasTheme { public override string Name { get { return "AppyTheme"; ...
35.735849
69
0.603485
[ "Apache-2.0" ]
bberak/Appy
Appy.Core/App/AppyTheme.cs
1,896
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
14.362039
64
0.499878
[ "Apache-2.0" ]
fossabot/aliyun-openapi-net-sdk
aliyun-net-sdk-bssopenapi/BssOpenApi/Model/V20171214/QueryBillResponse.cs
8,172
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using UnityEngine; public class ElectronController : MonoBehaviour { public float speed = 0f; private const float electronCharge = -1.602f * (float)1e-19; private const float electr...
25.861111
105
0.62406
[ "MIT" ]
riiji/PhysicsModel2
Scripts/ElectronController.cs
1,864
C#
// Copyright (c) 2018 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT licence. See License.txt in the project root for license information. using GenericServices; using Tests.EfClasses; namespace Tests.Dtos { public abstract class IdPropAbstract { publ...
28.736842
97
0.697802
[ "MIT" ]
abuzaforfagun/EfCore.GenericServices
Tests/Dtos/NormalEntityKeyAbstractDto.cs
548
C#
using System.Web.Mvc; using Microsoft.Practices.Unity; using Unity.Mvc5; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System.Data.Entity; namespace SWNI.Web { public static class UnityConfig { public static void RegisterComponents() { var container ...
46
141
0.705882
[ "MIT" ]
mrememisaac/DonationPortal
SWNI.Web/App_Start/UnityConfig.cs
1,564
C#
using MCS.Core; using MCS.Core.Helper; using MCS.Core.Plugins.Message; using MCS.Plugin.MessagePlugin; using System; using System.IO; using System.Xml.Serialization; namespace MCS.Plugin.Message.SMS { class SMSCore { /// <summary> /// 工作目录 /// </summary> public static string Wo...
36.616883
117
0.5579
[ "MIT" ]
MiZoneRom/MiZoneCommerce
src/MCS.Plugin.Message.SMS/Helper/SMSCore.cs
5,721
C#
using System.Collections.Generic; using System.Threading.Tasks; using Abp.Application.Services; using Abp.Application.Services.Dto; using HC.WeChat.Activities.Dtos; using System; namespace HC.WeChat.Activities { /// <summary> /// Activity应用层服务的接口方法 /// </summary> public interface IActivityAppService : ...
24.873239
89
0.592299
[ "MIT" ]
DonaldTdz/syq
aspnet-core/src/HC.WeChat.Application/Activities/IActivityAppService.cs
1,900
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 Microsoft.Data.DataView; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML....
45.491979
193
0.667215
[ "MIT" ]
HerraHak/machinelearning
src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs
8,507
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("vo...
38.135135
84
0.747697
[ "MIT" ]
dhtveso/SoftUni
Programming Basics/ComplexConditionalStatements/Volleyball/Properties/AssemblyInfo.cs
1,414
C#
using PrAnalyzer.Contracts.Enum; using System.Collections.Generic; namespace PrAnalyzer.Contracts.Interface { public interface IHandlerResult { IEnumerable<string> Messages { get; } HandlerCallStatus Status { get; } } }
20.833333
45
0.708
[ "MIT" ]
AMatijevic/PrAnalyzer
src/PrAnalyzer.Contracts/Interface/IHandlerResult.cs
252
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CarTracker.Common.Entities; using CarTracker.Common.Services; using CarTracker.Common.ViewModels; using CarTracker.Data; using Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal; namespace CarTracker.Logic.Service...
31.483146
88
0.547823
[ "MIT" ]
mwcaisse/car-tracker-server
CarTracker/CarTracker.Logic/Services/ReadingService.cs
2,804
C#
using Microsoft.EntityFrameworkCore; using NoteList.Domain.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace NoteList.Service.Impl { public class NoteItemRepository : Repository<NoteItem>, INoteItemRepository { public NoteItemRepository(DataContext context, IDateTimeSer...
29.954545
88
0.664643
[ "MIT" ]
evgenynazarchuk/NoteListSamples
NoteList.Service.Impl/NoteItemRepository.cs
661
C#
using System; using System.Linq; using Bing.Reflection; using Bing.Text; namespace Bing.Helpers { /// <summary> /// 映射器帮助类 /// </summary> public static class MapperHelper { /// <summary> /// 将源对象映射到目标对象 /// </summary> /// <typeparam name="TSource">源类型</typeparam> ...
42.850746
144
0.587948
[ "MIT" ]
bing-framework/Bing.Utils
src/Bing.Utils/Bing/Helpers/MapperHelper.cs
5,952
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; namespace BuildXL.Engine.Cache.Fingerprints { /// <nodoc /> public partial class PipGraphInputDescriptor : IPipFinger...
28.851852
102
0.636714
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Engine/Cache/Fingerprints/PipGraphInputDescriptor.cs
779
C#
using UnityEditor; namespace SuperSystems.UnityBuild { [System.Serializable] public class BuildAndroid : BuildPlatform { #region Constants private const string _name = "Android"; private const string _binaryNameFormat = "{0}.apk"; private const string _dataDirNameFormat = "{0}_Data"; ...
31.840909
134
0.584939
[ "MIT" ]
TrutzX/9Nations
Assets/Plugins/UnityBuild/Editor/Build/Platform/BuildAndroid.cs
2,804
C#
using System; using Xunit; using BrewCrewLib; using BrewCrewDB.Models; using BrewCrewDB; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace BrewCrewTest { public class DBTest { DBRepo repo; private readonly Customer TestCustomer = new Customer() ...
31.817143
141
0.483836
[ "MIT" ]
201019-UiPath/FoleyBrian-Project0
BrewCrew/BrewCrewTest/DBTest.cs
11,136
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.Runtime.InteropServices; namespace Microsoft.Win32.SafeHandles { // Class of safe handle which uses only -1 as an invalid handle. public abstract ...
29.894737
97
0.711268
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeHandleMinusOneIsInvalid.cs
568
C#
// --------------------------------------------------------- // IObjectProvider.cs // // Created on: 08/27/2015 at 5:44 PM // Last Modified: 08/27/2015 at 5:44 PM // // Last Modified by: Matt Eland // --------------------------------------------------------- using System; using MattEland.Common.Annotations;...
29.83871
94
0.540541
[ "MIT" ]
IntegerMan/MattEland.Common
MattEland.Common/Providers/IObjectProvider.cs
927
C#
//============================================================================== // Copyright (c) NT Prime LLC. All Rights Reserved. //============================================================================== using System; using System.Activities; using System.Collections.Generic; using System.IO; using System.L...
36.026667
121
0.589193
[ "MIT" ]
nnieslan/Construct
Dev/BuildActivities/IncrementBranchBuildNumber.cs
2,704
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using Roslyn...
31.15873
174
0.603362
[ "MIT" ]
HurricanKai/roslyn
src/Compilers/CSharp/Portable/Symbols/PointerTypeSymbol.cs
9,817
C#
/* * BSD Licence: * Copyright (c) 2001, 2002 Ben Houston [ ben@exocortex.org ] * Exocortex Technologies [ www.exocortex.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: * * 1. Redis...
36.712871
125
0.574074
[ "MIT" ]
Prion6/FantasyVR
Assets/Ocean/Plugins/Exocortex_FFT/ComplexStats.cs
11,124
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Models.DB; namespace API.Controllers.DB { [Route("api/[controller]")] [ApiController] public class Ere...
30.604839
126
0.566798
[ "Apache-2.0" ]
LightosLimited/RailML
v2.4/API/Controllers/DB/EreservationInfoController.cs
3,795
C#
using System; using System.Linq; using System.Text; namespace Lnk.ExtraData { public class ShimDataBlock : ExtraDataBase { public ShimDataBlock(byte[] rawBytes) { Signature = ExtraDataTypes.ShimDataBlock; Size = BitConverter.ToUInt32(rawBytes, 0); LayerNam...
23.961538
105
0.582665
[ "MIT" ]
EricZimmerman/Lnk
Lnk/ExtraData/ShimDataBlock.cs
625
C#
using AutoMapper; using TeknoLabs.Habit.Authorization.Users; namespace TeknoLabs.Habit.Users.Dto { public class UserMapProfile : Profile { public UserMapProfile() { CreateMap<UserDto, User>(); CreateMap<UserDto, User>() .ForMember(x => x.Roles, opt => op...
27.9
90
0.569892
[ "MIT" ]
teknolabs/hab
aspnet-core/src/TeknoLabs.Habit.Application/Users/Dto/UserMapProfile.cs
560
C#
using System; using System.Collections.Generic; using Quaver.API.Enums; using Quaver.API.Maps.Processors.Scoring; using Quaver.Shared.Assets; using Quaver.Shared.Database.Scores; using Quaver.Shared.Modifiers; using Quaver.Shared.Online; using Wobble.Assets; using Wobble.Bindables; using Wobble.Graphics; using Wobble.G...
29.526786
133
0.523435
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Adrriii/Quaver
Quaver.Shared/Screens/Results/UI/Header/Contents/Tabs/ResultsTabSelector.cs
3,307
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class dontDestroy : MonoBehaviour { // Start is called before the first frame update void Start() { DontDestroyOnLoad(this.gameObject); } }
17.375
53
0.647482
[ "MIT" ]
VivekSingal98/financeSimulationGame
HomeSim/Assets/Scripts/dontDestroy.cs
280
C#
using System.Collections.Generic; using System.Web; using ServiceStack.Text; using ServiceStack.Web; namespace ServiceStack.Host.Handlers { public class ForbiddenHttpHandler : HttpAsyncTaskHandler { public bool? IsIntegratedPipeline { get; set; } public string WebHostPhysicalPath { g...
44.582418
122
0.547695
[ "Apache-2.0" ]
softwx/ServiceStack
src/ServiceStack/Host/Handlers/ForbiddenHttpHandler.cs
3,969
C#
using FubuCore.Configuration; using FubuTestingSupport; using NUnit.Framework; using StructureMap; namespace FubuMVC.StructureMap.Testing.Internals { [TestFixture] public class AppSettingProviderRegistrySmokeTester { [SetUp] public void SetUp() { } [T...
25.043478
77
0.642361
[ "Apache-2.0" ]
DovetailSoftware/fubumvc
src/FubuMVC.StructureMap.Testing/Internals/AppSettingProviderRegistrySmokeTester.cs
576
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FunBrainDomain; using FunBrainInfrastructure.Models; using Functional; using Functional.Option; using Unit = System.ValueTuple; using static Functional.F; namespace FunBrainInfrastructure.Reposito...
23.254545
80
0.48749
[ "MIT" ]
ralbu/FunBrain-DotNetCSharpFunctional
src/FunBrainInfrastructure/Repositories/UserRepositoryInMemory.cs
2,560
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.Diagnostics; using System.Runtime.CompilerServices; usin...
32.965116
135
0.617989
[ "MIT" ]
AlexejLiebenthal/coreclr
tests/src/Interop/NativeCallable/NativeCallableTest.cs
8,505
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("Hid...
37.351351
84
0.74602
[ "MIT" ]
VeselinBPavlov/programming-fundamentals
25. Strings and Regular Expressions - More Exercises/Hideout/Properties/AssemblyInfo.cs
1,385
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.ApplicationModel.Email { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ [global::Uno.NotImplemented] #endif public partial class EmailMailboxChangeReader { #if __ANDROID__ || __IOS__ || NET46 ...
46.030303
234
0.794602
[ "Apache-2.0" ]
nv-ksavaria/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Email/EmailMailboxChangeReader.cs
1,519
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Robert te Kaat")] [assembly: AssemblyProduct("Resonance")] //[assembly: AssemblyTrademark("")] [assembly: AssemblyTitle("Resonance.APIClient")] [assembly: AssemblyDescription("Client-lib...
39.111111
100
0.779356
[ "MIT" ]
kwaazaar/resonance.web
Resonance.Web.Client/Properties/AssemblyInfo.cs
1,059
C#
namespace Entities.Enums { public enum PaymentLevelEnum { Base, Premium, Ultimate } }
12.3
32
0.544715
[ "Apache-2.0" ]
e1ement/RT-BACK
Entities/Enums/PaymentLevelEnum.cs
125
C#
using System; using System.Threading; using System.Threading.Tasks; using AutoMoqCore; using Moq; using NUnit.Framework; using SFA.DAS.Payments.Audit.Application.Data.EarningEvent; using SFA.DAS.Payments.Audit.Application.PaymentsEventProcessing; using SFA.DAS.Payments.Audit.Application.PaymentsEventProcessing.Earning...
35.79661
115
0.656723
[ "MIT" ]
PJChamley/das-payments-V2
src/SFA.DAS.Payments.Audit.Application.UnitTests/EarningEvent/EarningEventSubmissionFailedProcessorTests.cs
2,114
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VVVV.PluginInterfaces.V1; using VVVV.PluginInterfaces.V2; namespace VVVV.DX11 { /// <summary> /// Allows to create a manual dependency in the dx11 graph. /// Usually update graphi is h...
31.612903
148
0.657143
[ "BSD-3-Clause" ]
laurensrinke/dx11-vvvv
Core/VVVV.DX11.Core/NodeInterfaces/IDX11RenderDependencyFactory.cs
982
C#
using UnityEngine; using System.Collections; public class Missile : MonoBehaviour { new private Rigidbody2D rigidbody; private float boost = 1f; public Transform target; public float speed = 2000f; public float turn = 3000f; public float angle = 30f; public float launchPeriod = 0.3f; void Awake() { ri...
20.506329
90
0.692593
[ "Apache-2.0" ]
Aggrathon/LudumDare34
Assets/Scripts/Missile.cs
1,622
C#
using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace dashboard.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions<App...
24.117647
84
0.704878
[ "MIT" ]
shivapbhusal/dashboard
dashboard/dashboard/Data/ApplicationDbContext.cs
412
C#
using System; namespace FirstConsole { class Program_Day0001_0006 { static void Main(string[] args) { //Master In C# // 5/6 points // Practice // String // Number // Boolean // Collection //...
26.73743
97
0.43878
[ "MIT" ]
Amrutaquickitdotnet/ShridhardDotnet
Dotnet/FirstConsole/FirstConsole/Program_Day0001_0006.cs
4,788
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/codecapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.InteropServi...
32.066667
145
0.762994
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/codecapi/CODECAPI_AVEncWMVInterlacedEncoding.cs
483
C#
using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Bson; namespace VueExample.Services.Abstract { public interface IDieWithCodeService { Task<DieWithCode> GetById(ObjectId objectId); Task<List<ObjectId>> CreateDieWithCodes(List<DieWithCode> dieWithCodes); Task...
29.692308
80
0.753886
[ "MIT" ]
7is7/SVR2.0
Services/Abstract/IDieWithCodeService.cs
386
C#
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information. namespace MvpWebForms.Controls { using MvpWebForms.Views; using Narvalo.Mvp.Web; public partial class HelloWorldControl : MvpUserControl<StringModel> { } }
28.3
112
0.756184
[ "BSD-2-Clause" ]
chtoucas/Narvalo.NET
samples/MvpWebForms/Controls/HelloWorldControl.ascx.cs
285
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Materia.Nodes { public struct NodeConnection { //we ignore parent and order //as those are only used for //the undo redo system /...
21.151724
76
0.415064
[ "MIT" ]
mauricepape/Materia
Core/Nodes/NodeOutput.cs
3,069
C#
using System; namespace XPT.Core.Scripting { [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)] public class LoxFieldAttribute : Attribute { public readonly string Name; public LoxFieldAttribute(string name) { Name = name; ...
25.846154
99
0.651786
[ "MIT" ]
ZaneDubya/LoxScript
LoxScript/Core/Scripting/LoxFieldAttribute.cs
338
C#
using AzureDevOpsJanitor.Application.Commands.Build; using AzureDevOpsJanitor.Domain.ValueObjects; using System; using System.Text.Json; using Xunit; namespace AzureDevOpsJanitor.Application.UnitTest.Commands.Build { public class CreateBuildCommandTests { [Fact] public void CanBeConstructed() ...
35.4
212
0.593655
[ "MIT" ]
dfds/azure-devops-janitor
test/AzureDevOpsJanitor.Application.UnitTest/Commands/Build/CreateBuildCommandTests.cs
2,303
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.270968
157
0.568841
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/APIGateway/Generated/Model/TestInvokeMethodResponse.cs
4,692
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Red.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Red.Formats.Red.Records.Enums; namespace GameEstate.Red.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CGooseDynamicWander : CAIDyna...
32.217391
131
0.748988
[ "MIT" ]
bclnet/GameEstate
src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CGooseDynamicWander.cs
741
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Calculator_CSharp.Models { public class Calculator { public Calculator() { this.Result = 0; } public decimal LeftOperand { get; set; } public decimal RightOperand...
20.571429
49
0.604167
[ "MIT" ]
msotiroff/Softuni-learning
Tech Module/Software Technologies/C#/Calculator/Calculator-CSharp/Models/Calculator.cs
434
C#
using System; namespace Yggdrasil.Models { public abstract class YggdrasilPatch { public abstract Type DeclaringType { get; } public abstract string MethodName { get; } public abstract Type[] ParameterTypes { get; } public virtual string PrefixFuncName { get; } = "Prefix"; ...
32.333333
67
0.659794
[ "MIT" ]
Kasuromi/Yggdrasil
Yggdrasil/Models/YggdrasilPatch.cs
390
C#
#region Copyright //======================================================================================= // Microsoft Azure Customer Advisory Team // // This sample is supplemental to the technical guidance published on my personal // blog at http://blogs.msdn.com/b/paolos/. // // Author: Paolo Salvatori //=====...
37.283505
135
0.577216
[ "Apache-2.0" ]
HydAu/ServiceBusExplorer
Forms/CollectionEditorForm.cs
7,235
C#
using System; using System.Linq; using System.Windows; using Microsoft.Extensions.Logging; using MonBand.Core.Util.Threading; using MonBand.Windows.Bootstrap; using MonBand.Windows.Services; using MonBand.Windows.Standalone.UI; namespace MonBand.Windows.Standalone { public partial class App { ...
34.0375
97
0.502754
[ "MIT" ]
rwasef1830/MonBand
src/MonBand.Windows.Standalone/App.xaml.cs
2,725
C#
using System.Collections.Generic; using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AntMerchantExpandAssetinfoDeliverySyncModel Data Structure. /// </summary> public class AntMerchantExpandAssetinfoDeliverySyncModel : AlipayObject { ...
27.777778
75
0.678
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AntMerchantExpandAssetinfoDeliverySyncModel.cs
534
C#
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; using AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.XmlReaders; using AgGateway.ADAPT.ISOv4Plugin.Models; using AgGa...
34.981308
126
0.576009
[ "EPL-1.0" ]
ADAPT/ISOv4Plugin
ISOv4PluginLogTest/ImportMappers/LogMappers/XmlReaders/TimReaderTest.cs
7,488
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> //--...
33.903226
152
0.591817
[ "Apache-2.0" ]
CAN-YJ/ni-xnet-dot-net
NiXnetTestApp/Properties/Settings.Designer.cs
1,053
C#
using System; using System.Collections.Generic; using Xunit; using Carambolas.Net.Tests.Attributes; namespace Carambolas.Net.Tests { public class MemoryTests { [Fact] public void Disposal() { var pool = new Carambolas.Net.Memory.Pool(); var m = pool....
28.528571
160
0.512268
[ "MIT" ]
nlebedenco/Carambolas
Carambolas.Net.Tests/MemoryTests.cs
3,996
C#
using System; using System.Globalization; using System.Threading; namespace InclusionList { /// <summary> /// Demonstrate the exchange of an inclusion list. /// </summary> class Program { static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Console.Writ...
25.16
130
0.72655
[ "MIT" ]
thermofisherlsms/iapi
docs/exactive/6 InclusionList/InclusionList/Program.cs
631
C#
using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.IdentityModel...
35.625
148
0.661404
[ "Apache-2.0" ]
Amialc/openiddict-core
samples/Mvc.Client/Controllers/HomeController.cs
1,712
C#
namespace ODMIdentity.STS.Identity.Configuration.Intefaces { public interface IRootConfiguration { IAdminConfiguration AdminConfiguration { get; } IRegisterConfiguration RegisterConfiguration { get; } } }
26
61
0.735043
[ "MIT" ]
omikolaj/IdentityServer4-Admin
ODMIdentity/src/ODMIdentity.STS.Identity/Configuration/Intefaces/IRootConfiguration.cs
236
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 OLEDB.Test.ModuleCore; using System.IO; using XmlCoreTest.Common; namespace System.Xml.Tests { //////////...
35.890555
137
0.504616
[ "MIT" ]
FrancisFYK/corefx
src/System.Private.Xml/tests/XmlReaderLib/ReadValue.cs
47,878
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BTL_CaPhe.User { public partial class User : Form { private string sMaNV; ...
26.109375
72
0.582286
[ "MIT" ]
thanhpcc96/HuongSuKienC-
BTL CaPhe/User/User.cs
1,675
C#
// The MIT License(MIT) // // Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors // // 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 withou...
48.228571
130
0.75
[ "MIT" ]
hefan1/LiveCharts2
src/LiveChartsCore/Drawing/ISizedVisualChartPoint.cs
1,690
C#
using Prism.Commands; using Prism.Events; using Prism.Interactivity.InteractionRequest; using Prism.Regions; using QIQO.Business.Client.Contracts; using QIQO.Business.Client.Core; using QIQO.Business.Client.Core.Infrastructure; using QIQO.Business.Client.Core.UI; using QIQO.Business.Client.Entities; using QIQO.Busines...
45.875403
183
0.567174
[ "MIT" ]
rdrrichards/QIQO.Business.Client.Solution
QIQO.Business.Module.Orders/ViewModels/OrderViewModel.cs
42,712
C#
using Fizzyo; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; namespace Assets.Scripts.Fizzyo { public class StartCalibrate : MonoBehaviour { //public public Text startText; //public GameObject pressureBar; public Slider slider; //private ...
32.634921
130
0.564689
[ "MIT" ]
ichealthhack/Ringo
Ringo/Assets/Scripts/Fizzyo/StartCalibrate.cs
2,058
C#
// <copyright file="SettingsWindow.xaml.cs" company="Horror"> // Copyright (c) 2014 Open source under MIT License // </copyright> // <author>rewso</author> // <date>2014-12-20 05:53</date> // <summary>Class for Horror.Keywords</summary> // <copyright file="SettingsWindow.xaml.cs" company="Horror"> // Copyright (c) 20...
24.791667
77
0.677311
[ "MIT" ]
horrorcode/keymaster
src/Horror.KeyWords/View/SettingsWindow.xaml.cs
1,192
C#
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() // 100/100 { List<int> insertionList = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); string newDigit = Console.ReadLine(); ConvertAndInputInTheList(insertionList, newDigit)...
28.766667
91
0.588644
[ "MIT" ]
GabrielRezendi/Programming-Fundamentals-2017
02.Extented Fundamentals/16.LISTS - MORE EXERCISES/02.02 Integer Insertion/Program.cs
865
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.ReadabilityRules { using System.Collections.Immutable; using System.Composition; using System.Linq...
42.834711
168
0.679336
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/ReadabilityRules/SA1131CodeFixProvider.cs
5,185
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace UiPath.Web.Client20204.Models { using Newtonsoft.Json; using System.Linq; public partial class ODataQueryOp...
34.869565
688
0.601247
[ "MIT" ]
AFWberlin/orchestrator-powershell
UiPath.Web.Client/generated20204/Models/ODataQueryOptionsTenantDto.cs
4,010
C#
using Microsoft.Practices.Unity; using Prism.Unity; using ViewInjection.Views; using System.Windows; namespace ViewInjection { class Bootstrapper : UnityBootstrapper { protected override DependencyObject CreateShell() { return Container.Resolve<MainWindow>(); } pro...
20.857143
57
0.648402
[ "MIT" ]
Arc3D/Prism-Samples-Wpf
05-ViewInjection/ViewInjection/Bootstrapper.cs
440
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using JetBrains.Annotations; using Rebus.Bus; using Rebus.Bus.Advanced; using Rebus.DataBus.InMem; using Rebus.IntegrationTesting.Threading; using Rebus.Pipeline; using Rebus.Sagas; usin...
42.830986
118
0.650937
[ "MIT" ]
oliverhanappi/Rebus.IntegrationTesting
src/Core/IntegrationTestingBusDecorator.cs
6,084
C#
namespace SpotifyWebApi.Model { using System; using Newtonsoft.Json; /// <summary> /// The <see cref="CurrentlyPlayingContext" />. /// </summary> public class CurrentlyPlayingContext { /// <summary> /// Gets or sets the device that is currently active. /// </summary>...
31.276923
109
0.564191
[ "MIT" ]
AlBarker/SpotifyWebApi
SpotifyWebApi/Model/CurrentlyPlayingContext.cs
2,033
C#
using MediaBrowser.Common.Net; using MediaBrowser.Model.Logging; using MediaBrowser.Model.Serialization; using MediaBrowser.Plugins.SoundCloud.ClientApi.Model; using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading; usi...
36.567164
192
0.604898
[ "MIT" ]
MediaBrowser/Emby.Channels
MediaBrowser.Plugins.SoundCloud/ClientApi/SoundCloudApi.cs
9,802
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Overtop.Utils { public class MaterialChanger : MonoBehaviour { private bool m_activeMaterialOn = true; private MeshRenderer m_Mesh; public Material m_Material1; public Material m_Material2;...
24.64
77
0.636364
[ "MIT" ]
ncgreco1440/Unity_GC_Monitor
GC/Scripts/MaterialChanger.cs
618
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 * ...
28.818182
81
0.65142
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Mrs/V20200910/Models/TextToClassRequest.cs
1,276
C#
using System; using System.Collections.Generic; using System.Linq; using UniGLTF; using UnityEngine; namespace VRM { public class VRMFirstPerson : MonoBehaviour { // If no layer names are set, use the default layer IDs. // Otherwise use the two Unity layers called "VRMFirstPersonOnly" and "VR...
31.291045
120
0.488075
[ "MIT" ]
hashilus/UniVRM
Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPerson.cs
8,490
C#
#region License /* MIT License Copyright(c) 2021 Petteri Kautonen 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, co...
41.384615
95
0.704926
[ "MIT" ]
VPKSoft/VPKSoft.MessageBoxExtended
VPKSoft.MessageBoxExtended/MessageBoxExtendedControl.cs
2,154
C#
using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace SevenDigital.Messaging.Infrastructure { /// <summary> /// Thread safe version implementation of Set /// </summary> public class ConcurrentSet<T> : ISet<T> { p...
42.591398
991
0.675419
[ "BSD-3-Clause" ]
i-e-b/SevenDigital.Messaging
src/SevenDigital.Messaging/Infrastructure/ConcurrentHashSet.cs
11,885
C#
using System; using System.Collections.Generic; namespace WDE.Common.History { public abstract class HistoryHandler { private readonly List<IHistoryAction> bulkEditing = new(); private bool inBulkEditing; public event EventHandler<IHistoryAction> ActionPush = delegate { }; pro...
26.361111
87
0.555321
[ "Unlicense" ]
Crypticaz/WoWDatabaseEditor
WoWDatabaseEditor.Common/WDE.Common/History/HistoryHandler.cs
951
C#
// Copyright © 2017 Chromely Projects. All rights reserved. // Use of this source code is governed by MIT license that can be found in the LICENSE file. namespace Chromely.Browser; /// <summary> /// Default CEF render process handler. /// </summary> public class DefaultRenderProcessHandler : CefRenderProcessHandler ...
30.265823
143
0.64701
[ "MIT", "BSD-3-Clause" ]
ScriptBox99/Chromely
src_5.2/Chromely/Browser/Handlers/DefaultRenderProcessHandler.cs
2,394
C#
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
30.751208
120
0.5606
[ "Apache-2.0" ]
Havret/activemq-nms-amqp
src/main/csharp/Message/AMQP/AMQPObjectMessageCloak.cs
12,731
C#
// --------------------------------------------------------------------------------- // <copyright file="LoadVolumeMessageComposer.cs" company="https://github.com/sant0ro/Yupi"> // Copyright (c) 2016 Claudio Santoro, TheDoctor // </copyright> // <license> // Permission is hereby granted, free of charge, to any per...
45.829268
96
0.660458
[ "MIT" ]
TheDoct0r11/Yupi
Yupi.Messages.Contracts/Composer/User/LoadVolumeMessageComposer.cs
1,881
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Dfm { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularEx...
39.626866
199
0.60678
[ "MIT" ]
MorganOBN/KoA-Story
src/Microsoft.DocAsCode.Dfm/DfmCodeExtractor.cs
2,657
C#
using System.Diagnostics.CodeAnalysis; using System.Globalization; using FluentAssertions; using NUnit.Framework; using Orckestra.Composer.Utils; using Orckestra.ForTests; namespace Orckestra.Composer.Tests.Util { [TestFixture] [SuppressMessage("ReSharper", "InconsistentNaming")] public class CultureInfoE...
38.078431
117
0.662719
[ "MIT" ]
InnaBoitsun/BetterRetailGroceryTest
tests/Orckestra.Composer.Tests/Util/CultureInfoEqualityComparer_Equals.cs
1,944
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Threading; using System.Threading.Tas...
40.556818
183
0.663211
[ "Apache-2.0" ]
0x53A/roslyn
src/EditorFeatures/Core/Implementation/Peek/PeekableItemFactory.cs
3,569
C#
using MaterialDesignControls.Options.Settings; using Prism.Ioc; using Prism.Modularity; namespace MaterialDesignControls.Options { public class OptionViewsModule : IModule { public void OnInitialized(IContainerProvider containerProvider) { } public void RegisterTypes(IContainerRegistry contai...
25.65
83
0.783626
[ "Apache-2.0" ]
YouseiSakusen/WpfUiGallery
03_MaterialDesignControls01/OptionViews/OptionViewsModule.cs
515
C#