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.Collections.Generic; using System.Diagnostics; namespace CocosSharp { public class CCAnimation { #region Properties public bool RestoreOriginalFrame { get; set; } public float DelayPerUnit { get; set; } public float TotalDelayUnits { get; private set; } pub...
29.627907
118
0.584772
[ "MIT" ]
YersonSolano/CocosSharp
src/Nodes/Sprites/CCAnimation.cs
3,822
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Azure.Core.TestFramework; using Azure.ResourceManager.Resources; using Azure.ResourceManager.Network; using Azure.ResourceManager.Ne...
59.110169
267
0.692473
[ "MIT" ]
jasonsandlin/azure-sdk-for-net
sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/Tests/PrivateEndpointConnectionCollectionTests.cs
6,977
C#
namespace _01.StreamProgress { public class Program { public static void Main() { } } }
11.454545
33
0.507937
[ "MIT" ]
mdamyanova/C-Sharp-Web-Development
08.C# Fundamentals/08.03.C# OOP Advanced/13.SOLID/01.StreamProgress/Program.cs
128
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FloatingTextHandler : MonoBehaviour { // Start is called before the first frame update void Start() { Destroy(gameObject, 1f); transform.localPosition += new Vector3(0, 0.5f, 0); } // Update...
19.35
59
0.643411
[ "MIT" ]
moccbc/Deserted
Assets/Scripts/FloatingTextHandler.cs
387
C#
namespace BWAF.Data.Models { public class Entity : IEntity { public long Id { get; set; } public string Name { get; set; } } }
15.6
40
0.557692
[ "MIT" ]
alexOprean/BWAF
BWAF.Data/Models/Entity.cs
156
C#
namespace Santase.Logic.Tests.Players { using System.Collections.Generic; using NUnit.Framework; using Santase.Logic.Cards; using Santase.Logic.Players; using Santase.Logic.RoundStates; [TestFixture] public class BasePlayerTests { [Test] public void CardsShouldNotBeNu...
36.610063
110
0.640783
[ "MIT" ]
KonstantinSimeonov/Zatvoreno
SantaseGameEngine/Tests/Santase.Logic.Tests/Players/BasePlayerTests.cs
5,823
C#
// ======================================== // Project Name : WodiLib // File Name : MapTreeData.cs // // MIT License Copyright(c) 2019 kameske // see LICENSE file // ======================================== using System; using System.Collections.Generic; using WodiLib.Sys; namespace WodiLib.Map { ...
29.029126
77
0.450836
[ "MIT" ]
sono8stream/WodiLib
WodiLib/WodiLib/Map/Model/MapTreeData.cs
3,152
C#
using UnityEngine; public class TimeManager : MonoBehaviour { public float slowdownFactor = 0.05f; public void SlowDown() { Time.timeScale = slowdownFactor; Time.fixedDeltaTime = Time.timeScale * 0.02f; } public void NormalTime() { Time.timeScale = 1f; Time.fi...
19.578947
58
0.642473
[ "Apache-2.0" ]
FieryBlade-313/Quick-Shooter
Assets/Scripts/TimeManager.cs
374
C#
using System; namespace Numani.CommandStack.Maybe { public static class MaybeMonad { public static IMaybe<TResult> Bind<T, TResult>(this IMaybe<T> m, Func<T, IMaybe<TResult>> binder) => m.FMap(binder).Join(); public static IMaybe<T> Join<T>(this IMaybe<IMaybe<T>> m) => m.Match(x => x, Maybe.Nothing<T>); ...
30.3125
99
0.682474
[ "MIT" ]
NumAniCloud/CommandBackStack
Dev/Numani.CommandStack/Maybe/MaybeMonad.cs
487
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using Newtonsoft.Json; namespace EntityGraphQL { public class QueryResult { [JsonProperty("errors")] public List<GraphQLError> Errors => (List<GraphQLError>)dataResults["errors"]; [JsonProperty("data")]...
32.37037
119
0.659039
[ "MIT" ]
nhathoang989/EntityGraphQL
src/EntityGraphQL/QueryResult.cs
874
C#
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Web.Mvc; namespace Common.DataModel.DTO.Dashboard.UserDTO { public class RegisteredUserDto { [HiddenInput(DisplayValue = false)] [ScaffoldColumn(false)] public int UserId { get; set; } ...
30.054054
68
0.633993
[ "MIT" ]
n-khosh/SamplePersianAdminPanel
PersianAdminPanel/Common/DataModel/DTO/Dashboard/UserDTO/User.cs
1,146
C#
namespace Serilog.Sinks.MySql.Tvans.Test.Unit.Sinks { public class MySqlSinkTests { } }
11.875
52
0.726316
[ "Apache-2.0" ]
TvanSchagen/Serilog.Sinks.MySql.Tvans
test/Unit/Sinks/MySqlSinkTests.cs
97
C#
using System; using System.Collections.Generic; namespace PubNubAPI { public enum PNMessageActionsEvent { // PNMessageActionsEventAdded is the enum when the event `added` occurs PNMessageActionsEventAdded, // PNMessageActionsEventRemoved is the enum when the event `removed` occurs ...
30.821429
89
0.643105
[ "MIT" ]
JordanSchuetz/Unity-Realtime-Chat-Room-Tutorial
Assets/PubNub/Enum/PNMessageActionEnums.cs
863
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of...
41.247312
139
0.593457
[ "Apache-2.0" ]
9812334/Lean
Indicators/Stochastics.cs
7,674
C#
using System; using Cradiator.Config; namespace Cradiator.Model { // ReSharper disable MemberCanBeMadeStatic.Global /// <summary> /// GuiltFactory determines the BuildBusterStrategy given the GuiltStrategyType /// Seems overkill, but still reads better than the code it replaced /// There is no interface IGuiltFa...
27.666667
84
0.756846
[ "MIT" ]
PandaWood/Cradiator
src/Cradiator/Model/GuiltFactory.cs
913
C#
//using System.Collections.Generic; //using Microsoft.AspNet.Identity; // //namespace LearningSignalR.BackEnd.ViewModels.Manage //{ // public class IndexViewModel // { // public bool HasPassword { get; set; } // public IList<UserLoginInfo> Logins { get; set; } // public string PhoneNumber { ...
31.642857
58
0.629797
[ "Apache-2.0" ]
MihaiBogdanEugen/LearningSignalR-InternalNotification
LearningSignalR/LearningSignalR.BackEnd/ViewModels/Manage/IndexViewModel.cs
445
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.5
197
0.59052
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DBforMySQL/V20200701Preview/GetDatabase.cs
2,806
C#
using System; using System.Collections.Generic; using System.Linq; using System.Globalization; using NUnit.Framework; using Saltarelle.Compiler.JSModel; using Saltarelle.Compiler.JSModel.Expressions; using Saltarelle.Compiler.JSModel.StateMachineRewrite; using Saltarelle.Compiler.JSModel.Statements; namespace Saltare...
75.355932
519
0.64215
[ "Apache-2.0" ]
AstrorEnales/SaltarelleCompiler
Compiler/Saltarelle.Compiler.Tests/StateMachineTests/StateMachineRewriterTestBase.cs
4,448
C#
using GroupTrip.Shared.Models; using Microsoft.EntityFrameworkCore; namespace GroupTrip.Server.DataAccess { public class GroupTripContext : DbContext { public virtual DbSet<Person> PersonDbSet { get; set; } public virtual DbSet<Group> GroupDbSet { get; set; } public virtual DbSet<Trip> TripDbSet { get...
35.242424
111
0.692175
[ "MIT" ]
mislav-markovic/graduate-project
GroupTrip/GroupTrip.Server/DataAccess/GroupTripContext.cs
1,165
C#
using Application.DTOs.Account; using Application.Exceptions; using Application.Interfaces; using Application.Wrappers; using Domain.Settings; using Infrastructure.Identity.Helpers; using Infrastructure.Identity.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.WebUtilities; using Microsoft.Exten...
43.510638
259
0.61643
[ "MIT" ]
chenzuo/CleanArchitecture.WebApi
Infrastructure.Identity/Services/AccountService.cs
10,227
C#
namespace NVelocity.Runtime.Parser.Node { using System; public class ASTVariable : SimpleNode { public ASTVariable(int id) : base(id) { } public ASTVariable(Parser p, int id) : base(p, id) { } /// <summary> /// Accept the visitor. /// </summary> public override Object Accept(IParserVisitor vis...
16.869565
68
0.657216
[ "Apache-2.0" ]
Telligent/NVelocity
src/NVelocity/Runtime/Parser/Node/ASTVariable.cs
388
C#
using System; using System.Collections.Generic; using NHapi.Base.Log; using NHapi.Model.V251.Group; using NHapi.Model.V251.Segment; using NHapi.Model.V251.Datatype; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; namespace NHapi.Model.V251.Message { ///<summary> /// Represents a QCN_J...
26.531792
146
0.631155
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V251/Message/QCN_J01.cs
4,590
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #if !USE_WINUI3 using Windows.UI.Xaml; #else using Microsoft.UI.Xaml; #endif namespace Microsoft.ReactNative.Managed { public delegate void ViewManagerEvent<TFrameworkElement, TEventData>(TFrameworkElement view, TEventData eventDa...
26.571429
161
0.77957
[ "MIT" ]
mganandraj/react-native-windows-dbg
Microsoft.ReactNative.Managed/ViewManagerEvent.cs
372
C#
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package sha512 implements the SHA-384, SHA-512, SHA-512/224, and SHA-512/256 // hash algorithms as defined in FIPS 180-4. // // All the hash.Hash implementat...
37.646925
404
0.536577
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/crypto/sha512/sha512.cs
16,527
C#
// Copyright 2021 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
46.190476
147
0.679725
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/spanner/admin/database/v1/google-cloud-admin-database-v1-csharp/Google.Cloud.Spanner.Admin.Database.V1.StandaloneSnippets/DatabaseAdminClient.RestoreDatabaseRequestObjectAsyncSnippet.g.cs
2,910
C#
using System; using System.Net; using System.Threading.Tasks; using FluentAssertions; using Moq; using Xunit; namespace RecipeApp.CoreApi.UnitTests.Features.Instruction.V1_0 { public partial class InstructionServiceTests { [Theory(DisplayName = "InstructionServiceTests.Delete")] [InlineData...
35.263158
123
0.663433
[ "MIT" ]
roysurles/TbdApps
src/RecipeApp.CoreApi.UnitTests/Features/Instruction/V1_0/05_InstructionServiceTests.DeleteAsync.cs
1,342
C#
/* Problem 12. Index of letters Write a program that creates an array containing all letters from the alphabet (a-z). Read a word from the console and print the index of each of its letters in the array. Input: On the first line you will receive the word Output: Print the index of each of the wor...
32.5
108
0.529555
[ "MIT" ]
veritasbg/CSharp2
Arrays/IndexOfLetters/IndexOfLetters.cs
1,237
C#
namespace BlazorApps.BlazorCharts.Model { public class FillTarget: IFillTarget { public object Value { get; set; } } }
19.714286
41
0.65942
[ "MIT" ]
TimPurdum/blazor-apps
BlazorApps.BlazorCharts/Model/FillTarget.cs
138
C#
using System; using System.Collections.Generic; using System.Text; namespace Toqe.Downloader.Business.Contract.Enums { public enum DownloadState { Undefined = 0, Initialized = 1, Running = 2, Finished = 3, Stopped = 4, Cancelled = 5 } }
18.625
49
0.600671
[ "MIT" ]
Genusatplay/Downloader
Downloader.Business.Contract/Enums/DownloadState.cs
300
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Playnite.Native { public static class Windef { internal static int LOWORD(int i) ...
26.91342
135
0.474345
[ "MIT" ]
FenDIY/Worknite
source/Playnite/Native/Windef.cs
6,219
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Neblina.Api.Models.TransferViewModels { public class SendTransferReceiptViewModel { public int TransactionId { get; set; } public int DestinationBankId { get; set; } pu...
26.25
54
0.671429
[ "MIT" ]
leonaascimento/Neblina
src/Neblina.Api/Models/TransferViewModels/SendTransferReceiptViewModel.cs
422
C#
using DesignPatterns.AbstractFactory.Interfaces; namespace DesignPatterns.AbstractFactory.Devices { public class SamsungTablet : Device { public SamsungTablet(string brand) : base(brand) { } public override int BatteryLife() { return 7000; } ...
18.40625
56
0.528014
[ "MIT" ]
bmaximus/DesignPatterns
DesignPatterns/AbstractFactory/Devices/SamsungTablet.cs
591
C#
// <auto-generated /> using System; using JjOnlineStore.Data.EF; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace...
34.114458
125
0.469598
[ "MIT" ]
profjordanov/JJ-Online-Store
Data/JjOnlineStore.Data.EF/Migrations/20181104070340_CartOrderArchitectureRefactoring.Designer.cs
16,991
C#
namespace SplitScreenMe.Core.IO { public struct BackupFile { public string Source { get; set; } public string BackupPath { get; set; } public BackupFile(string source, string backup) : this() { Source = source; BackupPath = backup; } } }
24.307692
55
0.550633
[ "MIT" ]
jackxriot/nucleuscoop
Master/SplitScreenMe.Core/Coop/Data/IO/BackupFile.cs
318
C#
namespace Adnc.Shared.Consts.RegistrationCenter; public static class RegisteredTypeConsts { public const string Direct = "direct"; public const string Consul = "consul"; public const string Nacos = "nacos"; public const string ClusterIP = "clusterip"; }
27.2
49
0.735294
[ "MIT" ]
Jiayg/Adnc
src/ServerApi/Services/Shared/Adnc.Shared/Consts/RegistrationCenter/RegisteredTypeConsts.cs
274
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
28.604651
81
0.635772
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Web/V20200901/Outputs/SlotSwapStatusResponse.cs
1,230
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; using System.Collections.Generic; using System.ComponentModel; using System.Dynamic; using System.Linq; using System.Text; using Microsoft.Ent...
44.40514
157
0.549749
[ "MIT" ]
dtkujawski/efcore
test/EFCore.Tests/ModelBuilding/NonRelationshipTestBase.cs
95,032
C#
using HotChocolate.Types; using Snapshooter.Xunit; using Xunit; namespace HotChocolate.Data.Filters { public class StringOperationInputTests { [Fact] public void Create_OperationType() { // arrange // act ISchema schema = SchemaBuilder.New() ...
28.83908
85
0.426863
[ "MIT" ]
GraemeF/hotchocolate
src/HotChocolate/Data/test/Data.Filters.Tests/Types/StringOperationInputTests.cs
2,509
C#
// <auto-generated /> using System; using Library.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversio...
39.620751
325
0.352086
[ "MIT" ]
itsyst/Library-Management-System
Library.Infrastructure/Migrations/20220225162223_Initial.Designer.cs
22,169
C#
using System; using Extenso.Data.Entity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Aurelia.Skeleton.NetCore.Razor.Data.Domain { public class Person : IEntity { public int Id { get; set; } public string FamilyName { get; set; } ...
27.820513
95
0.623963
[ "MIT" ]
gordon-matt/aurelia-razor-netcore2-skeleton
Aurelia.Skeleton.NetCore.Razor/Data/Domain/Person.cs
1,087
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; /** Handle the cirular world using camera borders */ public class CircleWorldCamera : MonoBehaviour { private Camera camera; private float cameraLeftBorder; private float cameraRightBorder; private float cameraTopBor...
26.029412
77
0.618079
[ "MIT" ]
Game-Dev-Project-D-A-Y/Ex3-SpaceShip
Assets/Scripts/5-scripts/CircleWorldCamera.cs
1,772
C#
/* Copyright (c) 2017 Thomas Schöngrundner 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, merge, publish, ...
32.979798
179
0.548239
[ "MIT" ]
Elyptos/ConrealEngine
ConrealEngine/Assets/Font.cs
6,537
C#
using System.ComponentModel.DataAnnotations; using System.Collections.Generic; namespace AdefHelpDeskBase.Models { public class DTONode { [Key] public string data { get; set; } public string label { get; set; } public string expandedIcon { get; set; } public string coll...
28.588235
51
0.623457
[ "MIT" ]
ADefWebserver/ADefHelpDesk
ADefHelpDeskApp/Models/DTONode.cs
488
C#
using RSecurityBackend.Models.Generic; using RSecurityBackend.Models.Generic.Db; using System; using System.Threading.Tasks; namespace RSecurityBackend.Services { /// <summary> /// generic options service /// </summary> public interface IRGenericOptionsService { /// <summary> /// m...
31.967742
107
0.614531
[ "MIT" ]
hrmoh/RSecurityBackend
RSecurityBackend/Services/IRGenericOptionsService.cs
993
C#
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Intuit.Ipp.Core; using Intuit.Ipp.Data; using Intuit.Ipp.Security; using Intuit.Ipp.Exception; using System.Threading; using Intuit.Ipp.QueryFilter; using Intuit.Ipp.LinqExtend...
32.548193
139
0.606793
[ "Apache-2.0" ]
dahlbyk/QuickBooks-V3-DotNET-SDK
IPPDotNetDevKitCSV3/Test/Intuit.Ipp.Test/SDKV3Test/Services/QBO/Deposit.cs
10,806
C#
using System; using NUnit.Framework; using _1_Int_EventMenu; namespace UnitTests { [TestFixture] class EventMenuTests { [Test] public void CanCreateEvent() { Event e = new Event { ID = 1, Date = new DateTime(2014, 10, 1), ...
17.208333
49
0.460048
[ "MIT" ]
TimCollins/Reddit.DailyProgrammer
src/UnitTests/EventMenuTests.cs
415
C#
using dueltank.Domain.Helpers; using dueltank.tests.core; using FluentAssertions; using NUnit.Framework; namespace dueltank.domain.unit.tests.Helpers { [TestFixture] [Category(TestType.Unit)] public class YoutubeHelpersTests { [TestCase("http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C...
45.323529
109
0.674886
[ "MIT" ]
fablecode/dueltank
src/Api/src/Tests/Unit/dueltank.domain.unit.tests/Helpers/YoutubeHelpersTests.cs
1,543
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 ...
53.071556
140
0.560724
[ "Apache-2.0" ]
monoman/cnatural-language
compiler/sources/compiler/StatementValidator.stab.cs
29,667
C#
namespace BattleCards.Data { using BattleCards.Models; using Microsoft.EntityFrameworkCore; public class ApplicationDbContext : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); opti...
29.28
85
0.655738
[ "MIT" ]
meco00/CSharp-Web
ExamPreparation/28April2020/BattleCards/Data/ApplicationDbContext.cs
734
C#
using GVFS.FunctionalTests.Tools; using GVFS.Tests.Should; using NUnit.Framework; namespace GVFS.FunctionalTests.Tests.GitCommands { [TestFixtureSource(typeof(GitRepoTests), nameof(GitRepoTests.ValidateWorkingTree))] [Category(Categories.GitCommands)] public class MergeConflictTests : GitRepoTests...
44.280992
122
0.654909
[ "MIT" ]
PastelMobileSuit/VFSForGit
GVFS/GVFS.FunctionalTests/Tests/GitCommands/MergeConflictTests.cs
5,360
C#
// ***************************************************************************** // // © Component Factory Pty Ltd 2017. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 13 Swallows Close, // Mornington, Vic 3931...
33.361702
93
0.511862
[ "BSD-3-Clause" ]
ALMMa/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/View Base/ViewContext.cs
7,843
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Security.Cryptography; using System.Text; using Octopus.Client; using Octopus.Client.Model; using Polly; using SeaMonkey.ProbabilitySets; using Serilog; namespace SeaMonkey.Monkeys { public class TenantMonkey : ...
37.437908
141
0.571404
[ "Apache-2.0" ]
OctopusDeploy/SeaMonkey
Console/Monkeys/TenantMonkey.cs
5,730
C#
using System.Collections.Generic; namespace UnityWebBrowser { /// <summary> /// Creates a <see cref="string" /> /// </summary> internal class WebBrowserArgsBuilder { private readonly List<string> arguments; internal WebBrowserArgsBuilder() { arguments = new ...
27.170213
93
0.497259
[ "MIT" ]
Voltstro-Studios/UnityWebBrowser
src/Packages/UnityWebBrowser/Runtime/WebBrowserArgsBuilder.cs
1,277
C#
using System.Collections.Generic; using RimWorld; using UnityEngine; using Verse; using Verse.Sound; namespace JecsTools { public class Projectile_LaserConfig { public Vector3 offset; } public class Projectile_Laser : Projectile { // Variables. public int tickCounter = 0; ...
38.169811
206
0.496677
[ "MIT" ]
Proxyer/JecsTools
Source/AllModdingComponents/JecsTools/Projectile_Laser.cs
18,209
C#
//------------------------------------------------------------------------------ // <copyright file="WebPartAddingEventHandler.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ name...
34.214286
92
0.501044
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/xsp/system/Web/UI/WebParts/WebPartAddingEventHandler.cs
479
C#
using System; using System.Collections.Generic; using System.Text; namespace BT_and_BST.Classes { public class BinarySearchTree { public Node Root { get; set; } public BinarySearchTree(Node node) { Root = node; } /// <summary> /// traverses a binar...
29.813187
90
0.445264
[ "MIT" ]
ecaoile/Data-Structures-and-Algorithms
data_structures/Trees/BinaryTree_and_BinarySearchTree/BT_and_BST/Classes/BinarySearchTree.cs
5,428
C#
// Code generated by a Template using System; using DNX.Helpers.Maths; using DNX.Helpers.Validation; using NUnit.Framework; using Shouldly; using Test.DNX.Helpers.Validation.TestsDataSource; namespace Test.DNX.Helpers.Validation { [TestFixture] public class GuardUInt16Tests { [TestCaseSource(typeof...
30.908163
148
0.48938
[ "MIT" ]
martinsmith1968/DNX.Helpers
Test.DNX.Helpers/Validation/GuardUInt16Tests.generated.cs
9,087
C#
using System; using NetOffice; namespace NetOffice.VisioApi.Enums { /// <summary> /// SupportByVersion Visio 11, 12, 14, 15 /// </summary> [SupportByVersionAttribute("Visio", 11,12,14,15)] [EntityTypeAttribute(EntityType.IsEnum)] public enum VisWindowScrollY { /// <summary> /// SupportByVers...
26.737705
53
0.599632
[ "MIT" ]
NetOffice/NetOffice
Source/Visio/Enums/VisWindowScrollY.cs
1,631
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Binance.Net.Converters; using Binance.Net.Enums; using Binance.Net.Interfaces.SubClients.Spot; using Binance.Net.Objects.Spot.SpotData; using CryptoExchange.Net...
63.418605
340
0.672982
[ "MIT" ]
lamtrinh238/Binance.Net
Binance.Net/SubClients/Spot/BinanceClientSpotOrders.cs
49,088
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> //--...
40.437126
152
0.58996
[ "MIT" ]
Documentum-projects/DocumentumScriptAdministrator
CS/Properties/Settings.Designer.cs
6,755
C#
using System; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Media; namespace dueltank.Converters { public sealed class ObjectToImageConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if (value is ImageSource i...
25.071429
99
0.574074
[ "MIT" ]
fablecode/dueltank
src/uwp/src/dueltank/Presentation/dueltank/Converters/ObjectToImageConverter.cs
704
C#
using System; using System.Collections.Generic; using Cosmos.Logging.Core; using Cosmos.Logging.Events; using Cosmos.Logging.Extensions.Exceptions.Configurations; using Cosmos.Logging.Extensions.Exceptions.Destructurers; using Cosmos.Logging.ExtraSupports; namespace Cosmos.Logging.Extensions.Exceptions.Core { /// ...
44.176471
131
0.667909
[ "Apache-2.0" ]
alexinea/Cosmos.Logging
src/Cosmos.Logging.Extensions.Exceptions/Cosmos/Logging/Extensions/Exceptions/Core/ExceptionDestructuringProcessor.cs
3,755
C#
// MIT License // Copyright (C) 2019 VIMaec LLC. // Copyright (C) 2019 Ara 3D. Inc // https://ara3d.com // Copyright (C) The Mono.Xna Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Vim.Math3d { /// <summary> /// D...
30.344828
101
0.605682
[ "MIT" ]
ara3d/Math3D
src/PlaneIntersectionType.cs
882
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace SparkAuto.Pages { [ResponseCache(Duration = 0, Location = ResponseCache...
25.3125
88
0.681481
[ "MIT" ]
jaranda/bhrugen-3
SparkAuto/Pages/Error.cshtml.cs
810
C#
#pragma warning disable 1591 // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.17020 // // Changes to this file may cause incorrect behavior and will be lost if // the code ...
31.210226
111
0.729844
[ "MIT" ]
chadmichel/XamarinMaps_FrillyToothpicks
Droid/Resources/Resource.designer.cs
125,746
C#
// // Copyright 2015 Blu Age Corporation - Plano, Texas // // 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 // // Un...
36.108614
144
0.521938
[ "Apache-2.0" ]
Andrey-Ostapenko/SummerBatch
Summer.Batch.Extra/Ebcdic/EbcdicWriterMapper.cs
9,643
C#
using NBitcoin; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.Linq; using WalletWasabi.CoinJoin.Common.Crypto; using WalletWasabi.JsonConverters; namespace WalletWasabi.CoinJoin.Common.Models { public class RoundStateResponse { [JsonConverter(...
28.052632
134
0.710319
[ "MIT" ]
Maxie42/WalletWasabi
WalletWasabi/CoinJoin/Common/Models/RoundStateResponse.cs
2,665
C#
using BettingGame.Framework; using BettingGame.UserManagement.Core.Features.Shared.Abstraction; using Microsoft.Extensions.DependencyInjection; using Silverback.Messaging.Subscribers; namespace BettingGame.UserManagement.Core.Features.UserAdministration { public static class Registrar { p...
32.777778
117
0.692655
[ "Apache-2.0" ]
msallin/BettingGame
BettingGame.UserManagement.Core/Features/UserAdministration/Registrar.cs
887
C#
using System; using System.Collections.Generic; using System.Runtime.Remoting; using NUnit.Framework; namespace COL.UnityGameWheels.Core.Ioc.Test { [TestFixture] public class ContainerTests { [Test] public void TestBasic() { var container = new Container(); c...
31.614719
140
0.517869
[ "MIT" ]
GarfieldJiang/UnityGameWheels.Core
Core.Tests/Ioc/ContainerTests.cs
7,303
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.EBS")] [assembly: AssemblyDescripti...
55.375
514
0.760722
[ "Apache-2.0" ]
jamieromanowski/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/EBS/Properties/AssemblyInfo.cs
1,772
C#
//----------------------------------------------------------------------------- // <copyright file="ContentTransferEncoding.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------------- using Sy...
23
79
0.482468
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/net/System/Net/mail/ContentTransferEncoding.cs
713
C#
using System; using System.Collections.Generic; using System.Text; namespace FengCode.Libs.Ado { /// <summary> /// 值转换器抽象基类 /// </summary> public abstract class BaseValueConvert { public BaseValueConvert() { } /// <summary> /// 将数据库中读取的值转换成对象的属性值 /// </summary> ...
20.56
59
0.587549
[ "MIT" ]
fengcode-git/FengCode.Libs.Ado
FengCode.Libs.Ado/FengCode.Libs.Ado/BaseValueConvert.cs
602
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace WebCheck { class SendMail { public static void sendEmail(string sentFrom, string fromName, string emailTo, string subject, string htmlBody, ...
34.2
119
0.629908
[ "MIT" ]
urza/WebCheck
WebCheck/SendMail.cs
1,199
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("TCPServer")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProd...
25.378378
56
0.713525
[ "MIT" ]
SkillyZ/Jungle-war
TCPServer/Properties/AssemblyInfo.cs
1,280
C#
using System; using Android.App; using Android.OS; using Android.Util; using Android.Views; using Android.Widget; using AT.Nineyards.Anyline.Camera; using AT.Nineyards.Anyline.Models; using AT.Nineyards.Anyline.Modules.Barcode; namespace AnylineXamarinApp.Barcode { [Activity(Label = "Scan Barcodes", Ma...
32.764045
132
0.609396
[ "Apache-2.0" ]
Anyline/anyline-ocr-xamarin-android-example
AnylineXamarinApp.Droid/Barcode/BarcodeActivity.cs
2,916
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...
36.060345
140
0.600048
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/RAM/Generated/Model/Internal/MarshallTransformations/PrincipalUnmarshaller.cs
4,183
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DeckCard : Deck { public override int MaxNumCard { get { return 13; } } public override bool canGetOffCard(Card card) { if (!isCardExist(card)) { return false; } Card down = card; ...
24.5
81
0.537026
[ "MIT" ]
wood9366/freecell
Assets/scripts/game/DeckCard.cs
1,717
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.IO; using System.Linq; using System.Net; using Microsoft.AspNetCore.Mvc; using WebFileManagerApi.Exceptions; using WebFileManagerApi.Models; namespace WebFileManagerApi.Controllers { [Route("api/[controller]")...
35.747664
106
0.574902
[ "MIT" ]
Kewka/web-file-manager
WebFileManagerApi/Controllers/DirectoryController.cs
3,825
C#
using System; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using CairoDesktop.AppGrabber; using CairoDesktop.Configuration; using ManagedShell.Common.Helpers; namespace CairoDesktop { public partial class QuickLaunchButton { public static Depe...
33.729167
280
0.588326
[ "Apache-2.0" ]
curoviyxru/cairoshell
Cairo Desktop/Cairo Desktop/QuickLaunchButton.xaml.cs
6,478
C#
namespace DecTest { using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; [TestFixture] public class Attribute : Base { public class BaseString : Dec.IRecordable { public string value = "default"; public void Recor...
34.916667
206
0.50358
[ "MIT", "Unlicense" ]
zorbathut/dec
test/unit/Attributes.cs
4,609
C#
using UnityEngine; using Sirenix.OdinInspector; using UnityEngine.Networking; public class FallDown : MonoBehaviour { #region variable /// <summary> /// variable /// </summary> [FoldoutGroup("GamePlay"), Tooltip("gravité de l'objet différent ? 1 = gravité identique, > 1 = gravité de l'objet plus f...
29.785714
162
0.657674
[ "MIT" ]
usernameHed/Pixel
Assets/_Scripts/Core/_Main/FallDown.cs
1,682
C#
using System; namespace Shimakaze.Struct.Ini.Exceptions { [Serializable] public class DataNotExistsException : Exception { public DataNotExistsException() { } public DataNotExistsException(string message) : base(message) { } public DataNotExistsException(string message, Exception i...
34.8125
97
0.709156
[ "MIT" ]
ShimakazeProj/Shimakaze.Struct.Ini
src/Exceptions/DataNotExistsException.cs
559
C#
using System; namespace BizHawk.Emulation.DiscSystem { public static class DiscExtensions { public static Disc CreateAnyType(string path, Action<string> errorCallback) { return CreateImpl(null, path, errorCallback); } public static Disc Create(this DiscType type, string path, Action<string> errorCallback...
29
144
0.712894
[ "MIT" ]
NarryG/bizhawk-vanguard
src/BizHawk.Emulation.DiscSystem/DiscExtensions.cs
1,336
C#
//---------------------------------------------------- // <copyright file="MessageQueuePermissionEntry.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //--------------------------------------------...
37.041237
149
0.57779
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/NetFx20/System.Messaging/System/Messaging/MessageQueuePermissionEntry.cs
3,593
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...
34.137931
143
0.651852
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MQ/Generated/Model/Internal/MarshallTransformations/DescribeBrokerRequestMarshaller.cs
2,970
C#
using NUnit.Framework; using StructureMap.Testing.DocumentationExamples; using StructureMap.Testing.Widget3; using StructureMap.Web; namespace StructureMap.Testing.Web { [TestFixture] public class HybridBuildLifecycleTester { [Test] public void run_without_an_httpcontext() { ...
30.222222
107
0.66299
[ "Apache-2.0" ]
NightOwl888/structuremap
src/StructureMap.Testing/Web/HybridBuildLifecycleTester.cs
816
C#
using System; using System.ComponentModel.DataAnnotations; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; using FinanceAPICore; using FinanceAPIData; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; namespace FinanceAPI....
30.741935
118
0.763903
[ "Apache-2.0" ]
benfl3713/finance-api
src/FinanceAPI/FinanceAPI/Controllers/AuthController.cs
1,908
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace MyCompany.MyProject.Migrations { public partial class Upgrade_ABP_380 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn<string>( name: "UserName", ...
31.671875
71
0.498273
[ "Apache-2.0" ]
tairan/aspnetboilerplate
templates/Abp.Template.React.PostgreSQL/Content/aspnet-core/src/MyCompany.MyProject.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.cs
2,029
C#
namespace AnimalFarm { using System; using AnimalFarm.Models; class StartUp { static void Main(string[] args) { string name = Console.ReadLine(); int age = int.Parse(Console.ReadLine()); try { Chicken chicken = new Chicke...
23.466667
74
0.446023
[ "MIT" ]
Mithras11/C_Sharp-OOP-SoftUni
EncapsulationEx/AnimalFarm/StartUp.cs
706
C#
using System.Xml.Serialization; namespace IFConverter.Base.Model.IFolor { [XmlRoot(ElementName = "VisibleRectOperation")] public class VisibleRectOperation { [XmlAttribute(AttributeName = "x")] public double X { get; set; } [XmlAttribute(AttributeName = "y")] public double ...
29.052632
55
0.643116
[ "MIT" ]
ChiefWiggum/IFConverter
IFConverter.Base/Model/IFolor/VisibleRectOperation.cs
552
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectPooler : MonoBehaviour { [System.Serializable] public class Pool { public string tag; public GameObject prefab; public int size; } public static ObjectPooler instance; public List<Pool> pools; public Dict...
20.333333
78
0.711597
[ "Apache-2.0" ]
Ahanabunozor/ld46
Assets/Scripts/ObjectPooler.cs
1,649
C#
using Volo.Abp.DependencyInjection; namespace EShopOnAbp.Shared.Hosting.Microservices.DbMigrations { public abstract class PendingMigrationsCheckerBase : ITransientDependency { } }
24.25
77
0.798969
[ "MIT" ]
Veribelll/eShopOnAbp
shared/EShopOnAbp.Shared.Hosting.Microservices/DbMigrations/PendingMigrationsCheckerBase.cs
196
C#
using UnityEditor; using UnityEngine; namespace KeaneGames.AdvancedSceneSearch { public class SettingData { public string PrefsKey; public string SettingName; private const string SETTINGS_KEY = "KeaneSharedAdvancedSceneSearch"; private bool _state; public SettingData...
25.583333
82
0.58089
[ "MIT" ]
KeaneGames/AdvancedSceneSearch
Editor/SettingData.cs
923
C#
using UnityEngine; namespace Foundation.Databinding { /// <summary> /// Coroutine runner for Databinding to Coroutines /// </summary> public class ObservableHandler : MonoBehaviour { public static ObservableHandler Instance = new ObservableHandler(); static ObservableHandler() ...
24.8
75
0.631048
[ "MIT" ]
MrNerverDie/Unity3d-Databinding-Mvvm-Mvc
Foundation.Databinding.Model/ObservableHandler.cs
496
C#
using Microsoft.AspNetCore.Mvc; namespace ExpenseReport.Web.Views.Shared.Components.FormModal { public class FormModalViewComponent : ViewComponent { public IViewComponentResult Invoke() { return View(); } } }
21.583333
61
0.656371
[ "MIT" ]
FlatFishPrincess/ExpenseReport
ExpenseReport.Web/Views/Shared/Components/FormModal/FormModalViewComponent.cs
261
C#
namespace WhatIsHeDoing.Core.Tests.Extensions { using System; using WhatIsHeDoing.Core.Extensions; using Xunit; public static class ObjectExtensionsTest { public class AsFluent { [Fact] public void NullObject() => Assert.Throws<ArgumentNullException>( ...
27.586207
77
0.473125
[ "Unlicense" ]
WhatIsHeDoing/WhatIsHeDoing.Core
WhatIsHeDoing.Core.Tests/Extensions/ObjectExtensionsTest.cs
1,600
C#
using UnityEngine; using System; using System.Collections; using UnityEngine.Events; namespace UltimateSpawner { /// <summary> /// Represents a specific element in the enemies array of the enemy manager script. /// Specifies which enemy prefab to use as well as how likley the enemy is to spawn based on a ...
31.2
119
0.634615
[ "MIT" ]
H1NIVyrus/LOGARHYTHM
Assets/Tools/Ultimate Spawner/Scripts/Common/SpawnableInfo.cs
938
C#
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace EffectsDemo.Droid { [Activity (Label = "EffectsDemo.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChang...
23.666667
164
0.757433
[ "Apache-2.0" ]
Alshaikh-Abdalrahman/jedoo
Behaviors/EffectBehavior/Droid/MainActivity.cs
641
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace MAVN.Service.Credentials.MsSqlRepositories.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( n...
35.125
78
0.514997
[ "MIT" ]
IliyanIlievPH/MAVN.Service.Credentials
src/MAVN.Service.Credentials.MsSqlRepositories/Migrations/20190610122850_Initial.cs
1,967
C#
#pragma warning disable 1587 #pragma warning disable 1591 #region Header /** * JsonWriter.cs * Stream-like facility to output JSON text. * * The authors disclaim copyright to this source code. For more details, see * the 3rd-Party-License.md file included with this distribution. **/ // This file isn't generat...
25.528571
93
0.464546
[ "Apache-2.0", "Unlicense" ]
cake-contrib/Cake.Issues.Reporting.Generic
src/Cake.Issues.Reporting.Generic/LitJson/JsonWriter.cs
12,509
C#