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 Abp.Authorization.Users; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.Linq; using Abp.Organizations; using SmartCompany.Authorization.Roles; namespace SmartCompany.Authorization.Users { public class UserStore : AbpUserStore<Role, User> { public UserStore( IUnitOfWork...
36.447368
85
0.66065
[ "MIT" ]
hatem1223/fullstack
aspnet-core/src/SmartCompany.Core/Authorization/Users/UserStore.cs
1,385
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iTile.Core { public interface IInitializable { void Init(); } }
15.142857
35
0.707547
[ "MIT" ]
ha1fdaew/iTile
Core/IInitializable.cs
214
C#
using System.Threading.Tasks; using System.Web.Mvc; using set.messaging.Data.Services; using set.messaging.Helpers; using set.messaging.Models; namespace set.messaging.Controllers { public class UserController : BaseController { private readonly IAuthService _authService; private readonly IUs...
27.858268
100
0.546637
[ "MIT" ]
bbilginn/set-messaging
sources/set.messaging/Controllers/UserController.cs
3,540
C#
using System; using System.Collections.Generic; using System.Windows.Forms; using BrmsGeneratorResearcher.Helpers; using BrmsGeneratorResearcher.Models; using BrmsGeneratorResearcher.Resources; using Newtonsoft.Json; using Formatting = Newtonsoft.Json.Formatting; namespace BrmsGeneratorResearcher { public partial...
31.75
110
0.498237
[ "MIT" ]
nadavWeisler/BrmsGeneratorResearcher
PopUp_Researcher/MainForm.cs
17,020
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 enable using System; using System.Collections.Generic; using System.Collections.Immutable; using System....
38.513007
181
0.616114
[ "MIT" ]
BertanAygun/roslyn
src/Compilers/Core/Portable/PEWriter/Members.cs
37,013
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; using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.Text; using System.Threading; using System.Threading.Task...
42.541401
143
0.622099
[ "MIT" ]
benmcmorran/MIEngine
src/MICore/Transports/LocalUnixTerminalTransport.cs
6,681
C#
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.IO; using System.Security.Claims; using System.Text; using System.Text.Json; using System.Threading.Tasks; using AssistiveRobot.Web.Service.Controllers; using AssistiveRobot.Web.Service.Core; using AssistiveRobot.Web.Ser...
41.180233
209
0.643654
[ "MIT" ]
chatreejs/assistiverobot-web-service
Assistiverobot.Web.Service/Services/AuthenService.cs
7,083
C#
// <auto-generated /> namespace EmpMan.Data.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class A...
28.966667
110
0.636364
[ "Apache-2.0" ]
hoa-nx/empman-webapi
EmpMan.Data/Migrations/201707060715421_Add more columns on Target table.Designer.cs
869
C#
using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types; using System; namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger { class ConsumerBase : IConsumerListener { public class Slot { public AndroidStrongPointer<GraphicBuffer> GraphicBuffer; public AndroidFence ...
28.965909
161
0.527854
[ "MIT" ]
0MrDarn0/Ryujinx
Ryujinx.HLE/HOS/Services/SurfaceFlinger/ConsumerBase.cs
5,100
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: AssemblyTi...
38.783784
85
0.726829
[ "Apache-2.0" ]
Pharap/SimpleIpsPatcher
IpsPatcher/IpsPatcher/Properties/AssemblyInfo.cs
1,438
C#
using System; namespace BlazorDemo.Data { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
19.4375
70
0.575563
[ "MIT" ]
myvas/AspNetCore.TencentCos
samples/BlazorServerDemo/Data/WeatherForecast.cs
311
C#
using Serious.IO; namespace UnitTests.Fakes { public abstract class FakeFileSystemInfo : IFileSystemInfo { protected FakeFileSystemInfo(string path) { FullName = path; } public bool Hidden { get; private set; } public void Hide() { Hidde...
20.541667
62
0.551724
[ "MIT" ]
aseriousbiz/abbot-cli
tests/TestFakes/FakeFileSystemItem.cs
493
C#
using UnityEngine; using System.Collections; // VR用 public class WarpStereo : WarpBase { const int kNumEyes = 2; // encoded warp maps, [0] for left eye and [1] for right eye. // (the warp map: tablet's pixel position -> camera's pixel position) // Because the number of pixels exceed 256, when saving as picture, ...
41.621622
101
0.722727
[ "BSD-3-Clause" ]
hzuika/Pepper-s-Cone-Unity
Assets/Scripts/WarpStereo.cs
1,544
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LowPowerEnemy : Enemy { public LowPowerEnemy() { this.attPow = 1; this.health = 1; this.score = 100; this.tag = "Low Power Enemy"; } public override int getAttPow() { ...
18.451613
37
0.58042
[ "MIT" ]
NikoSilveira/Civilization-Rush
Assets/Scripts/AbstractFactory/LP_Enemy.cs
574
C#
using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Newtonsoft.Json; namespace InventoryKamera { public class InventoryKamera { [JsonProperty] public List<Character> Characters { get; private set; } [JsonProperty] public Inventory Inventory { get; private set; } pri...
26.212687
112
0.645267
[ "MIT" ]
Christalyum/Inventory_Kamera
InventoryKamera/InventoryKamera.cs
7,027
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Microsoft.bliztafree.Services.Locations.API { public class LocationSettings { public string ExternalCatalogBaseUrl { get; set; } public string EventBusConnection { get; set; } pub...
25.9375
58
0.701205
[ "MIT" ]
bliztafree/webdev
src/Services/Location/Locations.API/LocationSettings.cs
417
C#
using System.ComponentModel.DataAnnotations; namespace PostalCodeApi.Resources { /// <summary> /// Country iso for the GeoNames import /// </summary> public class ImportGeoNamesResource { [Required] [MinLength(2)] [MaxLength(2)] public string CountryIso { get; set; ...
21.933333
46
0.620061
[ "MIT" ]
malain96/PostalCodeApi
PostalCodeApi/Resources/ImportGeoNamesResource.cs
331
C#
/** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using Thrift; using Thrift.Collections; using System.Runtim...
26.462687
71
0.544557
[ "MIT" ]
SolalPirelli/ThriftSharp
benchmarks/Models/Thrift/TimePeriod.cs
3,546
C#
using System; using System.Collections.Generic; using BizHawk.Emulation.Common; namespace BizHawk.Emulation.Cores.Consoles.ChannelF { /// <summary> /// Disassembler /// </summary> public sealed partial class F3850 : IDisassemblable { static string Result(string format, Func<ushort, byte> read, ref ushort addr)...
23.313783
86
0.444906
[ "MIT" ]
Gorialis/BizHawk
BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/F8/F3850.Disassembler.cs
7,952
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("JO....
37.621622
84
0.746408
[ "MIT" ]
jjowens/DateRange
DateRange/DateRange/DateRange/Properties/AssemblyInfo.cs
1,395
C#
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Pitstop.InvoiceManagementAPI.Repositories; namespace Pitstop.Application.CustomerManagementAPI.Controllers { [Route("/api/[controller]")] public class RenterController : Controller { IRentersRepository _renterRepo; public ...
25.25
63
0.60396
[ "Apache-2.0" ]
TselmegGa/AirSupport
src/InvoiceManagementAPI/Controllers/RenterController.cs
709
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...
58.854037
257
0.680144
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/Neptune/Generated/_bcl45/AmazonNeptuneClient.cs
284,265
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
81.653061
424
0.738232
[ "MIT" ]
Agazoth/azure-powershell
src/Migrate/generated/api/Models/Api20210210/FailoverProcessServerRequestProperties.PowerShell.cs
11,857
C#
using System.Threading.Tasks; namespace sfa.Tl.Marketing.Communication.SearchPipeline { public interface ISearchStep { Task Execute(ISearchContext searchContext); } }
18.9
55
0.73545
[ "MIT" ]
SkillsFundingAgency/tl-marketing-and-communication
sfa.Tl.Marketing.Communication/SearchPipeline/ISearchStep.cs
191
C#
// Copyright (c) 2020 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT license. See License.txt in the project root for license information. using System.ComponentModel.DataAnnotations; namespace DataLayer.BookApp.EfClasses { public class PriceOffer { p...
29.333333
97
0.620739
[ "MIT" ]
ErikEJ/EfCore.SchemaCompare
DataLayer/BookApp/EfClasses/PriceOffer.cs
706
C#
using VA.Blazor.CleanArchitecture.Application.Enums; using VA.Blazor.CleanArchitecture.Infrastructure.Models.Audit; using VA.Blazor.CleanArchitecture.Infrastructure.Models.Identity; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using ...
40.39823
230
0.529025
[ "MIT" ]
vinaykarora/BlazorCleanArchitecture
src/VA.Blazor.CleanArchitecture.Infrastructure/Contexts/AuditableContext.cs
4,567
C#
/******************************************************************************* * Copyright 2012-2019 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...
47.285276
276
0.627506
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Rekognition/Basic/Start-REKLabelDetection-Cmdlet.cs
15,415
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using AspNetCore.Identity.Mongo.Model; using Microsoft.AspNetCore.Identity; namespace AspNetCore.Identity.Mongo.Stores { public class RoleStore<TRole> : IQueryableRoleStore<TRole> where TRole : MongoRole { private readonly IIde...
30.97561
117
0.783071
[ "MIT" ]
artem-kovalev/AspNetCore.Identity.Mongo
AspNetCore.Identity.Mongo/Stores/RoleStore.cs
2,542
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.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Structure; using Microsoft.CodeAnalysis.CSharp.Structure.MetadataAsSource; using Microsoft....
30.90625
161
0.685541
[ "Apache-2.0" ]
20chan/roslyn
src/EditorFeatures/CSharpTest/Structure/MetadataAsSource/EnumMemberDeclarationStructureTests.cs
1,980
C#
/****************************************************************************** * Spine Runtimes Software License v2.5 * * Copyright (c) 2013-2016, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable, and * non-transferable license to use, install, execute, ...
45.622642
81
0.722498
[ "MIT" ]
lantis-of-china/UnityFramework
ClientFramework/QiPai/Assets/OtherCompoments/Spine/Runtime/spine-unity/SkeletonUtility/SkeletonUtilityConstraint.cs
2,418
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using System.Text; using System.Web; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSha...
46.823529
189
0.543467
[ "MIT" ]
frenzibyte/osu-localisation-analyser
LocalisationAnalyser/Localisation/SyntaxGenerators.cs
7,960
C#
//<unit_header> //---------------------------------------------------------------- // // Martin Korneffel: IT Beratung/Softwareentwicklung // Stuttgart, den // // Projekt.......: mko.NaLisp // Name..........: Pipe.cs // Aufgabe/Fkt...: Hintereinanderschaltung von Funktionen. Vereinfachte Syntax. // ...
36.672414
255
0.550071
[ "MIT" ]
mk-prg-net/mk-prg-net.lib
mko.NaLisp/Control/Pipe.cs
4,257
C#
using Harmonic.Networking.Flv; using Harmonic.Networking.Rtmp; using Harmonic.Networking.WebSocket; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Threading.Tasks; namespace Harmonic.Controllers { public abstract class WebSocketController ...
26.617021
83
0.561151
[ "MIT" ]
CoreDX9/Harmonic
Harmonic/Controllers/WebSocketController.cs
1,253
C#
using System.Collections.Generic; using System.Text; using Torch.API; using Torch.API.Managers; using Torch.API.Plugins; namespace Torch.Commands { public class ConsoleCommandContext : CommandContext { public List<TorchChatMessage> Responses = new List<TorchChatMessage>(); private bool _flag; ...
33.533333
148
0.619284
[ "Apache-2.0" ]
biscuitWizard/Torch
Torch/Commands/ConsoleCommandContext.cs
1,006
C#
using D2SLib.IO; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace D2SLib.Model.Save { public class QuestsSection { //0x014b [unk = 0x1...
39.227273
107
0.545981
[ "MIT" ]
BetweenWalls/PD2-Converter
src/Model/Save/Quests.cs
9,254
C#
// Copyright 2022 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 ...
55.135036
402
0.637387
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.GkeHub.V1Beta1/Google.Cloud.GkeHub.V1Beta1/MembershipResourceNames.g.cs
15,107
C#
using Core.Interfaces.Repositories; using System; using System.Collections.Generic; using System.Text; namespace Core.Interfaces.Services { public interface IProcessService { } }
14.384615
36
0.786096
[ "MIT" ]
yasharvc/FLower
src/business/Core/Interfaces/Services/IProcessService.cs
189
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class GameStarted : MonoBehaviour { public int currentMap = 1; Sprite map1Logo; Sprite map2Logo; // Start is called before the first frame update ...
22.320988
87
0.59292
[ "MIT" ]
sagar5534/Ilsa-Journey
Ilsa's Journey/Assets/GameStarted.cs
1,810
C#
namespace diyou计算器 { partial class Form1 { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 tr...
43.436364
138
0.519255
[ "MIT" ]
diyou-diyou/diyou-Calculator
Chinese/code/diyou计算器/diyou计算器/Form1.Designer.cs
24,160
C#
// =========================================================== // Copyright (c) 2014-2015, Enrico Da Ros/kendar.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: // // * Redistribut...
27.242775
82
0.665818
[ "BSD-2-Clause" ]
endaroza/ConcurrencyHelpers
ConcurrencyHelpers/test/ConcurrencyHelpers.Test/Utils/ThreadingTimerTest.cs
4,713
C#
namespace FinalBoostrapIntro.Models { public class Book { public int Id { get; set; } public int AuthorId { get; set; } public string Title { get; set; } public string Isbn { get; set; } public string Synopsis { get; set; } public string Description { get; s...
28.666667
50
0.569767
[ "MIT" ]
swordz36/FinalBootstrap
FinalBoostrapIntro/Models/Book.cs
432
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; namespace LodeRunner.Core.Models { /// <summary> /// ClientStatus is primarily for conveying the current status, time of that status, and th...
27.870968
137
0.518519
[ "MIT" ]
cloudatx/loderunner
src/LodeRunner.Core/Models/ClientStatus.cs
1,730
C#
using Newtonsoft.Json; namespace Kinvey { /// <summary> /// Represents JSON object with information about an error. /// </summary> [JsonObject(MemberSerialization.OptIn)] public class Error { /// <summary> /// An index of an entity in the collection <see cref="Kinvey.KinveyMultiInsertResp...
23.4
105
0.549858
[ "Apache-2.0" ]
alexislom/dotnet-sdk
Kinvey.Shared/Model/Error.cs
704
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerat...
41.607143
85
0.587983
[ "MIT" ]
rmarmer1/Breeze
_Internal/Model_NorthwindIB_EDMX_2012/NorthwindIB_2012.Context.cs
2,332
C#
using System; namespace ViceIO.Data.Common.Models { public interface IAuditInfo { DateTime CreatedOn { get; set; } DateTime? ModifiedOn { get; set; } } }
15.416667
42
0.616216
[ "MIT" ]
Magicianred/ViceIO
ViceIO/Data/ViceIO.Data.Common/Models/IAuditInfo.cs
187
C#
namespace G1Tool.IO { public enum StringBinaryFormat { Unknown, NullTerminated, FixedLength, PrefixedLength8, PrefixedLength16, PrefixedLength32, } }
16.230769
34
0.587678
[ "MIT" ]
Raytwo/G1Tool
IO/StringBinaryFormat.cs
213
C#
using System; namespace LinqToDB.Interceptors { interface IEntityServiceInterceptable { AggregatedInterceptor<IEntityServiceInterceptor>? Interceptors { get; } } }
18
74
0.761111
[ "MIT" ]
BearerPipelineTest/linq2db
Source/LinqToDB/Interceptors/IEntityServiceInterceptable.cs
173
C#
using Nameless.Flareon.Yggdrasil; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Nameless.Flareon.Runtime { /// <summary> /// Defines the collection of commands that the Addin use /// </summary> public class Commands : Name...
21.761905
61
0.658643
[ "MIT" ]
ANamelessWolf/autocad_cc_table
autocad_cc_table/Addin/Runtime/Commands.cs
459
C#
using System; using NetOffice; namespace NetOffice.WordApi.Enums { /// <summary> /// SupportByVersion Word 9, 10, 11, 12, 14, 15, 16 /// </summary> ///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff839379.aspx </remarks> [SupportByVersionAttribute("Word", 9,10,11,12...
29.631579
119
0.620337
[ "MIT" ]
Engineerumair/NetOffice
Source/Word/Enums/WdPrintOutItem.cs
2,252
C#
 namespace Consumption.Shared.Common.Collections { using System; using System.Collections.Generic; /// <summary> /// Provides some extension methods for <see cref="IEnumerable{T}"/> to provide paging capability. /// 提供一些扩展方法来提供分页功能 /// </summary> public static class IEnumerablePagedListEx...
60.073171
300
0.665855
[ "MIT" ]
JasonYJ90/WPF-Xamarin-Blazor-Examples
src/Consumption/Consumption.Shared/Common/Collections/IEnumerablePagedListExtensions.cs
2,711
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web.Http; using TheIdentityHub; namespace AccessTokenMvcApiService.Controllers { public class ValuesController : ApiController { // DELETE api/values/5 [Authorize] public void Delete(int i...
22.522727
159
0.54995
[ "MIT" ]
TheIdentityHub/theidentityhub-demo
AspNetMvcApiWcfServices/AccessTokenMvcApiService/Controllers/ValuesController.cs
993
C#
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Xml.Linq; namespace Microsoft.Toolkit.Parsers { /// <summary> /// Parser for Atom endpoints. /// </summary> internal class AtomParser : BaseRssParser { /// <summary> /// Atom rea...
31.742424
139
0.53222
[ "MIT" ]
gopikrishnareddy93/blazor-rss-reader
src/BlazorRssReader/RssParser/AtomParser.cs
4,192
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...
37
157
0.631757
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IpFirewallRuleInfo.cs
2,960
C#
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, ...
39.027778
91
0.743772
[ "MIT" ]
belav/Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestObjects/ClassConverterPrecedenceClassConverter.cs
1,405
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SineBounce : MonoBehaviour { public float period = 0.5f; public float amplitude = .5f; private float time = 0f; // Use this for initialization void Start() { } // Update is called once per ...
20.034483
73
0.626506
[ "Apache-2.0" ]
p-dahlback/ld-42
Assets/Scripts/Utilities/SineBounce.cs
583
C#
// Copyright 2019 ProximaX // // 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 wri...
34.918216
111
0.533163
[ "Apache-2.0" ]
proximax-storage/csharp-xpx-chain-sdk
src/ProximaX.Sirius.Chain.Sdk/Crypto/Core/CryptoUtils.cs
9,395
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Search.Documents.Indexes.Models { internal partial class ListIndexesResult { ...
29.166667
91
0.568571
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexesResult.Serialization.cs
1,050
C#
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpressions...
26.236842
123
0.569208
[ "MIT" ]
CrutchTheClutch/HackerRank
Solutions/1 Week Preparation Kit/Day 2/Diagonal Difference/Solution.cs
1,994
C#
using System; namespace Skribble { public sealed class UnexpectedTokenException : Exception { internal UnexpectedTokenException(Type expected, IToken actual) : base($"Expected {expected} but got {actual}") { } internal UnexpectedTokenException(IToken token, int position) : base($"{token} w...
34.545455
130
0.686842
[ "Apache-2.0" ]
k-boyle/Skribble
src/Skribble.Interpreter/UnexpectedTokenException.cs
380
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 ma...
40.138889
75
0.691349
[ "Apache-2.0" ]
Bhaskers-Blu-Org2/CSharpClient-for-Kafka
src/KafkaNET.Library/Producers/Partitioning/IPartitioner.cs
1,447
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace PackageTrackingApp.Extensions { public static class StringExtensions { private static Regex P...
35.088235
93
0.651299
[ "MIT" ]
Shrest7/PackageTrackingApp
PackageTrackingApp.Extensions/StringExtensions.cs
1,195
C#
using Storage.Classes.Models.Chat; using UWPX_UI_Context.Classes.DataTemplates.Dialogs; namespace UWPX_UI_Context.Classes.DataContext.Dialogs { public sealed class DeleteChatConfirmDialogContext { //--------------------------------------------------------Attributes:------------------------------------...
30.982143
144
0.371182
[ "MPL-2.0" ]
LibreHacker/UWPX-Client
UWPX_UI_Context/Classes/DataContext/Dialogs/DeleteChatConfirmDialogContext.cs
1,737
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using Sy...
67.951807
164
0.797518
[ "BSD-3-Clause" ]
Rehan-Mirza/sipsorcery
sipsorcery-silverlight/SIPSorcery.GUI/Services/SIPSorceryPersistor.cs
11,282
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Core; namespace Azure.Resou...
50.926829
237
0.658206
[ "MIT" ]
DiskRP-Swagger/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs
6,264
C#
namespace Nacos { using System.Collections.Generic; public class ListInstancesResult { public string Dom { get; set; } public string Name { get; set; } public int CacheMillis { get; set; } public string UseSpecifiedURL { get; set; } public List<Host> Hosts { get...
19.884615
51
0.580271
[ "Apache-2.0" ]
SwingZhang/nacos-sdk-csharp
src/Nacos/Naming/Result/ListInstancesResult.cs
519
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.47466
307
0.5639
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs
75,196
C#
using OpenQA.Selenium; namespace WebAddressBookTests { public class NavigationHelper : HelperBase { private string baseURL; public NavigationHelper(ApplicationManager manager, string baseURL) :base(manager) { this.baseURL = baseURL; } public vo...
22.625
75
0.496133
[ "Apache-2.0" ]
AnastasiaLitv/csharp_training
addressbook-web-tests/addressbook-web-tests/appmanager/NavigationHelper.cs
907
C#
using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; using System.Collections; public class UIManager : MonoBehaviour { private bool visibleStart; private bool visibleRestart; private RawImage background; private CanvasGroup canvas; private RawImage shadow; [SerializeField] priv...
25.852564
88
0.612447
[ "MIT" ]
UstymUkhman/Stack
Assets/Scripts/UIManager.cs
4,033
C#
#region Copyright notice and license // Copyright 2015, Google Inc. // 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 copyri...
46.214286
226
0.675811
[ "MIT" ]
Bplotka/unity-grpc
lib/gRPC/Core/Internal/CallSafeHandle.cs
10,352
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> //---...
42.458333
81
0.660451
[ "Apache-2.0" ]
Wujaszkun/HardcoreMonuments
obj/Debug/netstandard2.0/HardcoreMonumentsPlugin.AssemblyInfo.cs
1,019
C#
// MIT License // Copyright (c) 2016 Geometry Gym Pty Ltd // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"), to deal in the Software without restriction, // including without limitation the rights to use, copy, modi...
52.885346
370
0.742191
[ "MIT" ]
seb-esser/GeometryGymIFC
Core/IFC/IFC T.cs
77,953
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using Dapper; using DotNetCore.CAP.Dashboard; using DotNetCore.CAP.Dashboard.Monitoring; using DotNetCore.CAP.Infrastructure; using DotNetCore.CAP.Models; namespace DotNetCore.CAP.MySql { internal class MySqlMonitoringApi : IMon...
38.881443
127
0.588758
[ "MIT" ]
hybirdtheory/CAP
src/DotNetCore.CAP.MySql/MySqlMonitoringApi.cs
7,545
C#
using System; using Newtonsoft.Json; using Orleans.GrainDirectory; namespace Orleans.Runtime { [Serializable] internal class ActivationAddress { public GrainId Grain { get; private set; } public ActivationId Activation { get; private set; } public SiloAddress Silo { get; private set...
32.28
131
0.553077
[ "MIT" ]
Horusiath/orleans
src/Orleans/IDs/ActivationAddress.cs
2,421
C#
namespace P04.Hospital { using System; using System.Collections.Generic; using System.Linq; public class Hospital { public static void Main() { var hospitalData = FillHospitalData(); PrintOutput(hospitalData); } private static List<string> ...
28.572917
113
0.481225
[ "MIT" ]
ViktorAleksandrov/SoftUni--CSharp-Fundamentals
1. CSharp Advanced/5.1. Exam Preparation 1 - CSharp Advanced Exam - 25 June 2017/P04.Hospital/Hospital.cs
2,745
C#
using Dasync.ValueContainer; namespace Dasync.Serialization { public interface IObjectDecomposer { IValueContainer Decompose(object value); } }
16.6
48
0.722892
[ "Apache-2.0" ]
Dasync/Dasync
src/Data/Serialization/IObjectDecomposer.cs
168
C#
//---------------------------------------------------------------------------- // Copyright (C) 2004-2016 by EMGU Corporation. All rights reserved. //---------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Runt...
61.131321
338
0.672379
[ "MIT" ]
rlabrecque/RLSolitaireBot
Emgu.CV/Emgu.CV.Cuda/CudaInvoke.cs
80,999
C#
using BrewLib.Data; using ManagedBass; using System; using System.Diagnostics; namespace BrewLib.Audio { public class AudioSample { private const int MaxSimultaneousPlayBacks = 8; private int sample; public readonly AudioManager Manager; public string Path { get; } i...
26.753086
131
0.517305
[ "MIT" ]
Coosu/brewlib
Audio/AudioSample.cs
2,169
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. // This code was generated by an automated template. using Mosa.Compiler.Framework; namespace Mosa.Platform.x64.Instructions { /// <summary> /// Mov64 /// </summary> /// <seealso cref="Mosa.Platform.x64.X64Instruction" /> public sealed class Mov...
26.96
76
0.731454
[ "BSD-3-Clause" ]
robot9706/MOSA-Project
Source/Mosa.Platform.x64/Instructions/Mov64.cs
1,348
C#
public class ArrayCreator { public static T[] Create<T>(int lenght, T item) { T[] array = new T[lenght]; return array; } }
18.875
51
0.556291
[ "MIT" ]
IvelinMarinov/SoftUni
06. OOP Advanced - Jul2017/02. Generics - Lab/02. Array Creator/ArrayCreator.cs
153
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
31.777778
80
0.520979
[ "MIT" ]
ScottColson/XrmUnitTest
DLaB.Xrm.Entities/OptionSets/Organization_DateFormatCode.cs
572
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 BenchmarkDotNet.Attributes; using BenchmarkDotNet.Extensions; using MicroBenchmarks; using System.Collections...
29.605809
181
0.526559
[ "MIT" ]
333fred/performance
src/benchmarks/micro/libraries/System.Collections/CreateAddAndClear.cs
7,137
C#
#pragma checksum "C:\Users\User-PC\Desktop\Web-App_1\WebApplication1\WebApplication1\Views\Home\About.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f5989146c20e297d05361cc87bf290b8b98e9284" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAt...
48.961039
194
0.71618
[ "MIT" ]
Gastebal9/WebappASP.netMVC
Debug/netcoreapp2.1/Razor/Views/Home/About.g.cshtml.cs
3,770
C#
/* Copyright (C) 2009 Philippe Real (ph_real@hotmail.com) This file is part of QLNet Project https://github.com/amaggiulli/qlnet QLNet is free software: you can redistribute it and/or modify it under the terms of the QLNet license. You should have received a copy of the license along with this program; if not,...
31.132075
142
0.567677
[ "BSD-3-Clause" ]
SalmonTie/QLNet
src/QLNet/legacy/libormarketmodels/LfmCovarianceProxy.cs
4,954
C#
using Unity.Entities; namespace Plugins.ECSEntityBuilder.Components { public struct DebugEnabled : IComponentData { } }
16.625
47
0.736842
[ "MIT" ]
actionk/ECSEntityBuilder
Components/DebugEnabled.cs
135
C#
#if NETCOREAPP using System; using Microsoft.Diagnostics.NETCore.Client; namespace StackExchange.Metrics.Infrastructure { /// <summary> /// Exposes methods used to hook up diagnostics collection from the runtime /// in .NET Core. /// </summary> public interface IDiagnosticsCollector { ...
33.411765
101
0.577465
[ "MIT" ]
StackExchange/BosunReporter
src/StackExchange.Metrics/Infrastructure/IDiagnosticsCollector.cs
1,706
C#
// <copyright file="ScriptHost.cs" company="Bau contributors"> // Copyright (c) Bau contributors. (baubuildch@gmail.com) // </copyright> namespace BauCore.Test.Component.Support { using global::ScriptCs.Contracts; public static class ScriptHost { public static T Require<T>(params strin...
27.309524
77
0.549259
[ "MIT" ]
adamralph-archive/bau
src/test/Bau.Test.Component/Support/ScriptHost.cs
1,149
C#
namespace ICSharpCode.SharpZipLib.Zip.Compression { /// <summary> /// This class is general purpose class for writing data to a buffer. /// /// It allows you to write bits as well as bytes /// Based on DeflaterPending.java /// /// author of the original java version : Jochen Hoenicke /// </summary> p...
24.018587
73
0.583191
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
datadiode/ReoGrid
SharpZipLib/Zip/Compression/PendingBuffer.cs
6,461
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using NUnit.Framework; namespace LineCommander.Tests { public class ExampleTests { private ExampleCommand _command; private ExampleExitCommand _exitCommand; private FakeConsole _console; ...
35.865385
117
0.587131
[ "MIT" ]
peppajoke/linecommander
LineCommander.Tests/ExampleTests.cs
1,865
C#
using System ; using System.Collections.Generic ; using JetBrains.Annotations ; using Selkie.DefCon.One.Common ; namespace Selkie.DefCon.One.Interfaces { public interface ICallingInformationProvider : IEnumerable < CallingInformation > { CallingInformation this [ int index ] { get ; } ...
23.095238
55
0.645361
[ "MIT" ]
tschroedter/Selkie.DefCon
src/Selkie.DefCon.One/Interfaces/ICallingInformationProvider.cs
487
C#
using System.Text.Json.Serialization; namespace Horizon.Payment.Alipay.Response { /// <summary> /// AlipayCommerceTransportMessageSendResponse. /// </summary> public class AlipayCommerceTransportMessageSendResponse : AlipayResponse { /// <summary> /// 请求失败时返回的子错误码信息 /// </s...
25.965517
76
0.589641
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Response/AlipayCommerceTransportMessageSendResponse.cs
825
C#
using System.Collections.Generic; using System.Windows.Forms; namespace Exercise_Analyzer { public partial class MultiChoiceListDialog : Form { private List<string> fileList; public List<string> SelectedList { get; set; } public MultiChoiceListDialog(List<string> fileList) { ...
28.227273
71
0.574074
[ "MIT" ]
KennethEvans/VS-Exercise-Analyzer
Exercise Analyzer/MultiChoiceListDialog.cs
1,244
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using Grillber.C2.App_Start; namespace Grillber.C2 { public static class WebApiConfig { public static void Register(HttpConfiguration config) { MappingRegistrations.BuildRegistrations(); ...
24.814815
62
0.598507
[ "MIT" ]
PercyODI/Grillber.C2
Grillber.C2/App_Start/WebApiConfig.cs
672
C#
using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; namespace Replicator { /// <summary>Asset representing and providing a pool of GameObjects.</summary> [CreateAssetMenu(menuName = Strings.PoolMenuName, fileName = Strings.PoolFileName, order = 203)] public class Ob...
35.955307
148
0.742076
[ "MIT" ]
ettmetal/Replicator
Assets/Replicator/ObjectPool.cs
6,436
C#
using Dfc.CourseDirectory.Models.Enums; using System; using System.Collections.Generic; using System.Text; namespace Dfc.CourseDirectory.Models.Interfaces.Apprenticeships { public interface IFramework { Guid id { get; set; } // Cosmos DB id // Framework specific properties. First three form c...
33.628571
80
0.611725
[ "MIT" ]
SkillsFundingAgency/dfc-providerportal-migrationconsole
src/Dfc.CourseDirectory.Models/Interfaces/Apprenticeships/IFramework.cs
1,179
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using System.W...
47.193694
229
0.586332
[ "MIT" ]
mauricedb/mwd-2016-09-26
mod10/CORS/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
20,954
C#
using GitHubHelper.Model; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace GitHubHelper { public class MilestoneComparer : IComparer<Milestone> { private bool _issuesAreClosed; public MilestoneComparer(bool issuesAreClosed) { ...
21.907692
77
0.441011
[ "MIT" ]
lbugnion/GitHubHelper
src/GitHubHelper/MilestoneComparer.cs
1,426
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/d3d10_1shader.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Di...
26.782609
145
0.766234
[ "MIT" ]
JeremyKuhne/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/d3d10_1shader/D3D10_SHADER_DEBUG_VAR_INFO.cs
618
C#
using System; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; namespace Joinrpg.Web.Identity { public partial class MyUserStore : IUserStore<JoinIdentityUser> { async Task<IdentityResult> IUserStore<JoinIdentityUser>.CreateAsync(JoinIdentityUser user, Cancella...
38.109375
152
0.674457
[ "MIT" ]
Jeidoz/joinrpg-net
src/Joinrpg.Web.Identity/AspNetCore/MyUserStore.IUserStore.cs
2,439
C#
using System; using Xamarin.Forms; namespace AppBar.Sample.Views { public partial class MainView : ContentPage { public MainView() { InitializeComponent(); } void OnBasicAppBarBtnClicked(object sender, EventArgs e) { Navigation.PushAsync(new Bas...
27.672414
78
0.626168
[ "MIT" ]
jsuarezruiz/Xamarin.Forms.AppBar
src/AppBar.Sample/Views/MainView.xaml.cs
1,607
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace Microsoft.Data.Entity.Design.Model { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System....
36.626374
145
0.478698
[ "MIT" ]
dotnet/ef6tools
src/EFTools/EntityDesignModel/AnnotationManager.cs
6,668
C#