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 Newtonsoft.Json; using Volo.Abp; namespace LINGYUN.Abp.WeChat.Token { /// <summary> /// 微信访问令牌返回对象 /// </summary> public class WeChatTokenResponse { /// <summary> /// 错误码 /// </summary> [JsonProperty("errcode")] public int ErrorCode { get...
24.809524
60
0.473129
[ "MIT" ]
ZhaoYis/abp-next-admin
aspnet-core/modules/wechat/LINGYUN.Abp.WeChat/LINGYUN/Abp/WeChat/Token/WeChatTokenResponse.cs
1,098
C#
using UnityEngine; using UnityEngine.UI; public class InputFieldPrefSetUtility : MonoBehaviour { public string valueKey, defaultValue; private InputField inputField; private void Start () { inputField = GetComponent<InputField>(); inputField.text = PlayerPrefs.GetString(valueKey, defaultValue); inputFi...
19.090909
66
0.769048
[ "MIT" ]
harroo/UtilityBat
UtilityBat/UI/InputField/InputFieldPrefSetUtility.cs
420
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("Ci...
38.405405
84
0.749472
[ "Apache-2.0" ]
frostyfosse/CiscoAsaNatAclParser
Source/CiscoAsaNetAclParserTest/Properties/AssemblyInfo.cs
1,424
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.InMemory.FunctionalTests; using Microsoft.EntityFrameworkCore.Metadata; ...
36.426573
298
0.610482
[ "Apache-2.0" ]
pmiddleton/EntityFramework
test/EFCore.InMemory.Tests/InMemoryDatabaseCreatorTest.cs
5,209
C#
using System; using System.Collections; using System.Globalization; using System.IO; using System.Text.Encodings.Web; using System.Threading.Tasks; namespace Fluid.Values { public sealed class ObjectValue : FluidValue { private static readonly char[] MemberSeparators = new [] { '.' }; private...
29.233696
109
0.508459
[ "MIT" ]
CharlotteA44/fluid
Fluid/Values/ObjectValue.cs
5,381
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 ...
20.432852
138
0.587127
[ "Apache-2.0" ]
aliyun/aliyun-openapi-net-sdk
aliyun-net-sdk-cloudesl/Cloudesl/Model/V20200201/BatchInsertItemsRequest.cs
18,410
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NBitcoin; using Stratis.Bitcoin.Features.Wallet; using Stratis.Features.FederatedPeg.Interfaces; using Stratis.Features.FederatedPeg.TargetChain; using Stratis.Features.FederatedPeg.Wallet; using Str...
44.197531
176
0.632821
[ "MIT" ]
YakupIpek/StratisBitcoinFullNode
src/Stratis.Features.FederatedPeg.Tests/WithdrawalTransactionBuilderTests.cs
7,162
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class BulletContreoller : MonoBehaviour { GameObject _target; [SerializeField] Rigidbody _rigidbody; [SerializeField] GameObject _particles; [SerializeField,Range(0,100)] float...
24.972222
100
0.62106
[ "MIT" ]
alkihuri/LavaProject
LavaProject.Unity/Assets/Scripts/GameCore/Player/GunLogic/BulletContreoller.cs
2,697
C#
using Trains.NET.Engine; namespace Trains.NET.Rendering; public interface IDraggableTool : ITool { void StartDrag(int x, int y); void ContinueDrag(int x, int y); }
17.5
39
0.72
[ "MIT" ]
Perksey/Trains.NET
src/Trains.NET.Rendering/IDraggableTool.cs
177
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("Ko...
37.972973
84
0.745196
[ "MIT" ]
WiiPlayer2/Koakuma
Koakuma.Testing1/Properties/AssemblyInfo.cs
1,408
C#
using Fogo_Sprite_Editor.Modules.ObjectViewer.ViewModels; using Gemini.Framework.Services; using System.ComponentModel; using System.Windows.Media.Imaging; using System.Collections.Generic; namespace Fogo_Sprite_Editor.EditorProject { public class GameObject : IGameObject, INotifyPropertyChanged { pub...
28.013699
86
0.52665
[ "MIT" ]
rafaelalmeidatk/Fogo-Object-Editor
Fogo Sprite Editor/EditorProject/GameObject.cs
2,047
C#
using System; using System.Linq; using System.Collections.Generic; using System.Text; using Bom.Utils.Math; using Microsoft.SqlServer.Server; using Bom.Core.Utils; using Ch.Knomes.Struct; namespace Bom.Core.Nodes.DbModels { public class Path : ITreeNodeTitle { public const char Separator = '/'; ...
28.371429
127
0.57855
[ "MIT" ]
knoepdan/Bom
Source/Bom/Core/Nodes/DbModels/Path.cs
3,974
C#
using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SqlServer.TransactSql.ScriptDom; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Metadata; namespace MarkMpn.Sql4Cds.Engine { ...
46.015873
213
0.64827
[ "MIT" ]
skolbin-ssi/Sql4Cds
MarkMpn.Sql4Cds.Engine/MetadataExtensions.cs
8,699
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SoundToggle : MonoBehaviour { private bool isOn; private MainController controller; void Start () { isOn = true; controller = GameObject.FindGameObjectWithTag ("MainController").GetComponent<MainController>...
27
107
0.698955
[ "MIT" ]
felipeemidio/SquareTrack
Assets/Scripts/SoundToggle.cs
1,055
C#
 using UnityEditor; using UnityEngine; [CanEditMultipleObjects, CustomEditor(typeof(MegaShapeCircle))] public class MegaShapeCircleEditor : MegaShapeEditor { public override bool Params() { MegaShapeCircle shape = (MegaShapeCircle)target; bool rebuild = false; float radius = EditorGUILayout.Flo...
20.038462
69
0.675624
[ "MIT" ]
oliverellmers/UnityARKitDetection
Assets/Mega-Fiers/Editor/MegaFiers/MegaShape/MegaShapeCircleEditor.cs
523
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Drawing; using DocumentFormat.OpenXml.Drawing.Diagrams; using DocumentFormat.OpenXml.Framework; using Docume...
42.689474
139
0.625052
[ "MIT" ]
Muppets/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2008_diagram.g.cs
81,112
C#
using Lucene.Net.Analysis.Core; using Lucene.Net.Analysis.Standard; using Lucene.Net.Analysis.Tokenattributes; using Lucene.Net.Analysis.Util; using NUnit.Framework; using System; using System.IO; namespace Lucene.Net.Analysis.Miscellaneous { /* * Licensed to the Apache Software Foundation (ASF) under one or...
48.303393
388
0.623347
[ "Apache-2.0" ]
BlueCurve-Team/lucenenet
src/Lucene.Net.Tests.Analysis.Common/Analysis/Miscellaneous/TestWordDelimiterFilter.cs
24,324
C#
using System.Collections.Generic; using System.Text.Json.Serialization; namespace OrderResults.Models.FormRecognizer { public class Page { [JsonPropertyName("pageNumber")] public int PageNumber { get; set; } [JsonPropertyName("angle")] public double Angle { get; set; } ...
25.444444
63
0.605895
[ "MIT" ]
sagar2503/azure-search-dotnet-samples
create-first-app/v11/5-order-results/OrderResults/Models/FormRecognizer/Page.cs
916
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using TestGame.Input; namespace TestGame.Entities { public class Player : Entity { private SoundEffect _fireEffect; private SoundEffectInstance _fire...
28.626506
106
0.544613
[ "MIT" ]
EnsignPayton/MonoGame-Test
TestGame/Entities/Player.cs
2,378
C#
using System; using System.Collections.Generic; using System.Net; using System.Runtime.InteropServices; using System.Text; using System.Threading; using FluentAssertions; using NUnit.Framework; using Octopus.Shellfish; using Octopus.Shellfish.Plumbing; using Octopus.Shellfish.Windows; using Tests.Plumbing; namespace ...
43.039301
209
0.592938
[ "Apache-2.0" ]
OctopusDeploy/Process
source/Tests/ShellExecutorFixture.cs
19,714
C#
namespace Mobet.Infrastructure.Migrations { using System; using System.Data.Entity.Migrations; public partial class _05 : DbMigration { public override void Up() { AlterColumn("dbo.Users", "Subject", c => c.String(nullable: false, maxLength: 50)); } ...
24.263158
95
0.561822
[ "Apache-2.0" ]
Mobet/mobet
Mobet-Net/Mobet.Infrastructure/Migrations/201604061212004_05.cs
461
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Validation; using System.Linq; using MyWpfFramework.Common.EntityFrameworkToolkit; using MyWpfFramework.Common.PersianToolkit; using MyWpfFramework.Common.UI; u...
35.135922
113
0.504421
[ "Apache-2.0" ]
VahidN/WpfFramework
MyWpfFramework.DataLayer/Context/MyDbContextBase.cs
7,781
C#
// // The MIT License (MIT) // Copyright © 2020 d-exclaimation // using UnityEngine; public class Parallax : MonoBehaviour { public GameObject cam; public float effectMultiplier; public Vector2 offset; public bool ignoreY; private float _length, _startPos; private float camX => cam.tr...
29.027778
118
0.657416
[ "MIT" ]
d-exclaimation/FlatlinerTheGame
Assets/Scripts/Parallax.cs
1,048
C#
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class DiegoPonceDeLeon : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Diego"; public str...
38.2
93
0.67452
[ "MIT" ]
JaridKG/planetxamarin
src/Firehose.Web/Authors/DiegoPonceDeLeon.cs
1,149
C#
namespace AgEitilt.Common.Storage { /// <summary> /// Provides access to information about the service providing this file. /// </summary> public interface IStorageItemPropertiesWithProvider : IStorageItemProperties { //TODO: Implement Provider once StorageProvider handling has been // added } }
34
79
0.764706
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Eitilt/CommonHelpers
Storage/Storage/IStorageItemPropertiesWithProvider.cs
308
C#
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Project.Client.Entities; using System.Collections.Generic; using System.Threading.Tasks; using Lib = Project.Domain; namespace Project.Client.Controllers { [Route("api/[controller]")] [ApiController] public class PlayListController : C...
29.435644
103
0.566095
[ "MIT" ]
1905-may06-dotnet/Team2-CobraKai-Project2
Project2Solution/Project.Client/Controllers/PlayListController.cs
2,975
C#
using JetBrains.Annotations; using JetBrains.ProjectModel; namespace GammaJul.ForTea.Core.TemplateProcessing.Services { public static class T4TemplateDataManagerExtensions { public static bool IsPreprocessedTemplate( [NotNull] this IT4TemplateKindProvider manager, [NotNull] IProjectFile file ) => manager.G...
30.894737
72
0.804089
[ "Apache-2.0" ]
denis417/ForTea
Backend/ForTea.Core/TemplateProcessing/Services/T4TemplateDataManagerExtensions.cs
587
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VariableType { class Program { static void Main(string[] args) { int myInt; string myStr,myAtStr,myFileStr; myInt = 123456; ...
24.571429
64
0.556686
[ "Apache-2.0" ]
CRThu/csExercise
VariableType/VariableType/Program.cs
690
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,...
38.4
165
0.610944
[ "MIT" ]
woodp/Newtonsoft.Json
Src/Newtonsoft.Json/Serialization/JsonContract.cs
15,938
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace CSETWebCore.Business.Question { public class ParameterTextBuilder { private QuestionPoco _poco; private string _textSub; private string _textSubNoLinks; private bo...
34.982301
116
0.524159
[ "MIT" ]
Project-CSET-RM-Module/cset
CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Question/ParameterTextBuilder.cs
3,955
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; using MonoCross.Navigation; using MonoCross.Webkit; using BestSellers; namespace BestSellers.Webkit { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visi...
31.488372
104
0.65288
[ "MIT" ]
BenButzer/iFactr-Data
MonoCross/BestSellers Sample/BestSellers.Webkit/Global.asax.cs
1,356
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
46.12766
252
0.653598
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder.cs
2,168
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.Xml.XPath; namespace MS.Internal.Xml.Cache { /// <summary> /// Base internal cla...
30.976821
145
0.560877
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Private.Xml/src/System/Xml/Cache/XPathDocumentIterator.cs
9,355
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using TMPro; public class playgame : MonoBehaviour { public TextMeshProUGUI t; public bool canStart = false; public void PlayGame() { t.text = "PREPARING"; canStart = true;...
20.5625
79
0.554205
[ "MIT" ]
Andallfor/NASA-ADC-2020
NASA_ADC_FINAL/Assets/CODE/Ui/Scripts/playgame.cs
989
C#
using System; using System.Globalization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using static System.FormattableString; namespace DNTCaptcha.Core { /// <summary> /// DNTCaptcha Api /// </summary> public class DNTCaptchaApiProvider : IDNTCap...
52.767241
231
0.681261
[ "Apache-2.0" ]
BadrishChaudhari/DNTCaptcha.Core
src/DNTCaptcha.Core/DNTCaptchaApiProvider.cs
6,123
C#
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ *...
37.87931
77
0.730997
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
OS2CPRbroker/CPRbroker
PART/Source/Core/Schemas/Addresses/IAddressSource.cs
2,199
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Globalization; namespace BigQuery.Linq.Tests.Builder { enum Nano : ulong { Hoge = 1, Huga = 4, Tako = 100 } class Hoge { public double MyProperty { get; set; } } class Huga ...
26.651601
137
0.477176
[ "MIT" ]
ataihei/LINQ-to-BigQuery
BigQuery.Linq.Tests/Builder/StandardQueries.cs
14,154
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> //--...
48.447297
184
0.636747
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ODataUtility/Connected Services/D365/CDSInventoryOnHandEntry.cs
35,853
C#
using System; namespace Newtonsoft.Json { /// <summary> /// Specifies type name handling options for the <see cref="JsonConvert"/>. /// </summary> [Flags] public enum TypeNameHandling { /// <summary> /// Do not include the .NET type name when serializing types. /// </su...
26.888889
121
0.545455
[ "Apache-2.0" ]
curiosity-ai/h5
H5/H5.Newtonsoft.Json/Json/TypeNameHandling.cs
970
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Epam.Task7.UsersAndAwards.DAL.Interface; using Epam.Task7.UsersAndAwards.Entities; namespace Epam.Task7.UsersAndAwards.DAL { public class UserDao : IRepositoryDAO<User> { private const string UsersFile = "users.t...
28.413793
96
0.496602
[ "MIT" ]
VeronicaDedova/XT-2018Q4
Task11/Epam.Task7.UsersAndAwards.DAL/UserDao.cs
4,122
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; usi...
34.68041
139
0.539236
[ "Apache-2.0" ]
h0wXD/EntityFrameworkCore
src/EFCore.Specification.Tests/LoadTestBase.cs
155,611
C#
using System.Collections.Generic; using AutoFixture; using Forms.Core.Models.InFlight; namespace Forms.Core.Tests.Builders.Form { public class AnswerBuilder { private Answer Answer { get; } public static AnswerBuilder Build => new AnswerBuilder(); private AnswerBuilder() { ...
25.959184
88
0.547956
[ "Apache-2.0" ]
mod-veterans/digital-service-web-app
Forms.Core.Tests/Builders/Form/AnswerBuilder.cs
1,272
C#
using System; using System.Text; using NGTDI.Library.Managers; using NGTDI.Library.Objects; using TreeGecko.Library.Common.Enums; using TreeGecko.Library.Common.Helpers; using TreeGecko.Library.Common.Security; using TreeGecko.Library.Net.Enums; using TreeGecko.Library.Net.Objects; namespace NGTDI.Console { class...
34.595745
190
0.49959
[ "MIT" ]
NGTDI/Server
src/ngtdiConsole/Program.cs
4,880
C#
using EFCore.BulkExtensions.SqlAdapters; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace EFCore.BulkExtensions.Tests { public class EFCoreBatchTestAsync ...
44.316514
223
0.590726
[ "MIT" ]
AKonyshev/EFCore.BulkExtensions
EFCore.BulkExtensions.Tests/EFCoreBatchTestAsync.cs
9,663
C#
/* * NiFi Rest Api * * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
37.326087
478
0.561833
[ "Apache-2.0" ]
mendonca-andre/NiFi.Swagger.Core
NiFi.Swagger.Core/Model/StatusSnapshotDTO.cs
5,151
C#
using System; using System.Linq; using System.Text; using System.Web.UI; using Microsoft.SharePoint.Client; namespace UXModificationWeb { public partial class Default : Page { protected void Page_PreInit(object sender, EventArgs e) { Uri redirectUrl; switch (SharePointC...
34.45
105
0.564103
[ "MIT" ]
OfficeDev/TrainingContent-Archive
O3658/04 Building UX components with add-in model/Demos/ModifyUserExperience/ModifyUserExperienceWeb/Pages/Default.aspx.cs
2,069
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace OpenVIII { //public abstract class IGMDataItem, IIGMDataItem<T> : IGMDataItem, IIGMDataItem, IIGMDataItem<T> //{ // #region Fields // private T _data; // #endregion Fields // #region Constructors // pub...
28.634615
140
0.589657
[ "MIT" ]
RomanMayer7/OpenVIII
Core/Menu/IGMDataItem/IGMDataItem.cs
2,980
C#
/* * Copyright 2010-2013 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...
27.98
79
0.644746
[ "Apache-2.0" ]
virajs/aws-sdk-net
AWSSDK_DotNet35/Amazon.OpsWorks/Model/CreateInstanceResult.cs
1,399
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...
26.388889
81
0.634737
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DataBoxEdge/V20200901Preview/Outputs/ClientAccessRightResponse.cs
950
C#
 using System.Runtime.InteropServices; namespace FFXIVClientStructs.FFXIV.Client.Graphics.Kernel { // Client::Graphics::Kernel::Device // Client::Graphics::Singleton [StructLayout(LayoutKind.Explicit, Size = 0x210)] public unsafe struct Device { [FieldOffset(0x8)] public void* ContextAr...
43.272727
112
0.711134
[ "MIT" ]
LeonBlade/FFXIVClientStructs
FFXIV/Client/Graphics/Kernel/Device.cs
954
C#
namespace BGuidinger.Xrm.Sdk.Management { using Newtonsoft.Json; using System.Collections.Generic; public class InstanceReset { [JsonProperty("ApplicationNames")] public string[] ApplicationNames { get; set; } [JsonProperty("BaseLanguageCode")] public int BaseLanguageCo...
37.172414
77
0.636364
[ "MIT" ]
bguidinger/Xrm.Sdk.Management
src/Management/Models/InstanceReset.cs
1,080
C#
namespace Serenity.Data { /// <summary> /// Interface for rows that have DeleteUserId and DeleteDate fields. /// </summary> public interface IDeleteLogRow { /// <summary> /// Gets the delete user identifier field. /// </summary> /// <value> /// The...
27.782609
73
0.503912
[ "MIT" ]
ArsenioInojosa/Serenity
src/Serenity.Net.Entity/Contracts/IDeleteLogRow.cs
641
C#
// Copyright 2017 the original author or authors. // // 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 la...
32.518519
75
0.726651
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/Connectors/test/Connector.EFCore.Test/GoodDbContext.cs
880
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using Elasticsearch.Net; ...
30.02381
120
0.680115
[ "Apache-2.0" ]
Atharvpatel21/elasticsearch-net
src/Nest/XPack/Watcher/Action/ActionBase.cs
10,088
C#
using LiveToLift.Web.Infrastructure.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LiveToLift.Services { public interface ITrainingService { List<TrainingViewModel> GetAllTrainings(int skip = 0, int take = 10); ...
24.277778
77
0.732265
[ "MIT" ]
ivansto01/LiveToFit
LiveToLift.Services/ITrainingService.cs
439
C#
using FluentValidation; namespace Application.VaccineCredential.Queries.GetVaccineCredential { public class GetVaccineCredentialQueryValidator : AbstractValidator<GetVaccineCredentialQuery> { public GetVaccineCredentialQueryValidator() { RuleFor(c => c.Id) .NotEmpty...
28.333333
98
0.538235
[ "CC0-1.0" ]
DOH-HTS-ADS/DigitalCovid19VaccineRecord-API
Application/VaccineCredential/Queries/GetVaccineCredential/GetVaccineCredentialQueryValidator.cs
682
C#
// // System.Runtime.InteropServices.CustomMarshalers.EnumerableToDispatchMarshaler // // Authors: // Martin Willemoes Hansen (mwh@sysrq.dk) // // (C) 2003 Martin Willemoes Hansen // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation...
29.263889
80
0.748932
[ "Apache-2.0" ]
121468615/mono
mcs/class/CustomMarshalers/System.Runtime.InteropServices.CustomMarshalers/EnumerableToDispatchMarshaler.cs
2,107
C#
using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace SlotMassSumCalc { public partial class App : Application { public App() { InitializeComponent(); MainPage = new MainPage(); } protected override void OnStart() { } protected override void OnSleep() { ...
13.206897
40
0.618799
[ "MIT" ]
YanaPIIDXer/SlotMassSumCalc
SlotMassSumCalc/App.xaml.cs
385
C#
namespace Acklann.Plaid.Identity { /// <summary> /// Represents a response from plaid's '/identity/get' endpoint. The Identity endpoint allows you to retrieve various account holder information on file with the financial institution, including names, emails, phone numbers, and addresses. /// </summary> ...
44.214286
265
0.632472
[ "MIT" ]
GeorgeHahn/Plaid.NET
src/Plaid/Identity/GetUserIdentityResponse.cs
1,240
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebApp.Models { public class UserModel { public int Id { get; set; } public string Name { get; set; } } }
17.357143
40
0.658436
[ "MIT" ]
yarieldis/DotNetSimpleWeb
WebApp/Models/UserModel.cs
245
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using TwoWayMapper.Configuration; using TwoWayMapper.Conversion; using TwoWayMapper.Engine; namespace TwoWayMapper { public class Mapper<TLeft, TRight> : IMapper<TLeft, TRight> where TLeft : class whe...
37.557576
110
0.575601
[ "MIT" ]
rd-dev-ukraine/two-way-mapper
TwoWayMapper/Mapper.cs
6,199
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace CorporateEvents.SharePointWeb { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.a...
27.857143
99
0.610256
[ "Apache-2.0" ]
AKrasheninnikov/PnP
Solutions/BusinessApps.CorporateEventsApp/CorporateEvents.SharePointWeb/App_Start/RouteConfig.cs
587
C#
using System; using Robust.Shared.GameObjects; using Robust.Shared.GameStates; using Robust.Shared.Players; using Robust.Shared.Serialization; using Robust.Shared.ViewVariables; namespace Content.Shared.Cooldown { /// <summary> /// Stores a visual "cooldown" for items, that gets displayed in the hands GUI....
27.129412
102
0.546401
[ "MIT" ]
Alainx277/space-station-14
Content.Shared/Cooldown/ItemCooldownComponent.cs
2,306
C#
 using System.Collections.Generic; using UdonSharpEditor; using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using VRC.Udon; namespace Cyan.PlayerObjectPool { [CustomEditor(typeof(CyanPlayerObjectPool))] public class CyanPlayerObjectPoolEditor : Editor { private readonly GUIC...
39.859712
154
0.532804
[ "MIT" ]
CyanLaser/CyanPlayerObjectPool
Cyan/PlayerObjectPool/Scripts/Editor/CyanPlayerObjectPoolEditor.cs
11,083
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: Asse...
60.237288
315
0.783624
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/AccessAnalyzer/Properties/AssemblyInfo.cs
3,554
C#
/* * Quotes API For Digital Portals * * The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic search...
47.291667
1,287
0.660059
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/QuotesAPIforDigitalPortals/v3/src/FactSet.SDK.QuotesAPIforDigitalPortals/Model/InlineResponse20062DataCostsAndChargesExPostOngoingCosts.cs
6,810
C#
using Microsoft.Xna.Framework; using Pathoschild.Stardew.TractorMod.Framework.Config; using StardewValley; using StardewValley.TerrainFeatures; using StardewValley.Tools; using SFarmer = StardewValley.Farmer; using SObject = StardewValley.Object; namespace Pathoschild.Stardew.TractorMod.Framework.Attachments { ///...
43.778947
249
0.610002
[ "MIT" ]
Sotheros/StardewMods
TractorMod/Framework/Attachments/MeleeWeaponAttachment.cs
4,159
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Immutable; using System.Globalization; using Microsoft.Recognizers.Definitions.Hindi; namespace Microsoft.Recognizers.Text.NumberWithUnit.Hindi { public class AreaExtractorConfiguration : Hin...
31.676471
89
0.717734
[ "MIT" ]
17000cyh/Recognizers-Text
.NET/Microsoft.Recognizers.Text.NumberWithUnit/Hindi/Extractors/AreaExtractorConfiguration.cs
1,079
C#
// ---------------------------------------------------------------------------------------------------- // Copyright © Guo jin ming. All rights reserved. // Homepage: https://kylin.app/ // E-Mail: kevin@kylin.app // ---------------------------------------------------------------------------------------------------- u...
36.597938
127
0.511831
[ "MIT" ]
BigManager/KIT
UnityProject/Assets/Plugins/Kit/Common/UnityExtend/UI/EventSystem/UGUIEventListener.cs
3,587
C#
class C { private class A { } class B : A { } }
6.625
18
0.490566
[ "Apache-2.0" ]
monoman/cnatural-language
tests/resources/ObjectModelErrorTest/sources/NestedLessAccessibleBaseClass.stab.cs
53
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.791667
80
0.646578
[ "MIT" ]
wuweisage/Softuni-Svetlina-Projects-and-Code
C#/DataTypesAndVariables/SumDigits/SumDigits/obj/Release/netcoreapp3.1/SumDigits.AssemblyInfo.cs
979
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Grasshopper { public class GrandMother : Character { public GrandMother(string name, string imageUrl, Point location, int defense) : base(name, imageUrl, location,...
19
86
0.634211
[ "MIT" ]
VProfirov/Telerik-Academy
Team Projects - old/Grasshopper/Grasshopper/Grasshopper/GrandMother.cs
382
C#
using System.Collections.Generic; using System.Linq; namespace OpenVIII.Fields.Scripts { public static class FieldScriptFormatter { #region Methods public static IEnumerable<FormattedObject> FormatAllObjects(Field.ILookupService lookupService) { return lookupService.Enumer...
35.526316
156
0.642469
[ "MIT" ]
FlameHorizon/OpenVIII-monogame
Core/Field/ScriptFormatter/FieldScriptFormatter.cs
2,027
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("Pe...
37.972973
84
0.745196
[ "MIT" ]
VVoev/Telerik-Academy
15.Data-Structures-and-Algorithms/some/Solution1/Penguin.Airlines/Properties/AssemblyInfo.cs
1,408
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 11.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
26.307143
146
0.53842
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/Equal/Complete/NullableTimeSpan/NullableTimeSpan/TestSet_504__param__04__NN.cs
3,685
C#
using System; using System.IO; using System.Reflection; namespace GitVersionExe.Tests.Helpers { public static class PathHelper { public static string GetCurrentDirectory() { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); } publi...
27.046512
133
0.602752
[ "MIT" ]
ShvetsovZE/GitVersion
src/GitVersionExe.Tests/Helpers/PathHelper.cs
1,121
C#
using System.Resources; using System.Reflection; using System.Runtime.InteropServices; #if !RAZZLE_BUILD // 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(...
36.219512
84
0.742761
[ "Apache-2.0" ]
codito/vstest.diag
vstest.diag/Properties/AssemblyInfo.cs
1,488
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // static field using System; using System.Threading; using System.Runtime.CompilerServices; namespace Precise { internal class Driver { public static void f() ...
31.857143
107
0.46861
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/Methodical/cctor/misc/threads2.cs
2,230
C#
using System.Reflection; using UnityEditor; using UnityEngine.Assertions; namespace VRWorldToolkit { /// <summary> /// Utility for setting and getting internal model importer values /// </summary> public static class ModelImporterUtil { private static readonly System.Type systemType; ...
40.74359
191
0.721208
[ "MIT" ]
Codel1417/VRWorldToolkit
Scripts/Editor/ModelImporterUtil.cs
1,591
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...
35.882883
147
0.627919
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/MTurk/Generated/Model/Internal/MarshallTransformations/GetFileUploadURLRequestMarshaller.cs
3,983
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. namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Threading; usi...
40.615894
161
0.540192
[ "MIT" ]
0xflotus/winforms
src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintControllerWithStatusDialog.cs
12,266
C#
namespace Xms.Security.Abstractions { public class RoleDefaults { public const string ModuleName = "Role"; public const string ADMINISTRATOR = "administrator"; } }
21.444444
60
0.668394
[ "MIT" ]
feilingdeng/xms
Libraries/Security/Xms.Security.Abstractions/RoleDefaults.cs
195
C#
using System.Collections.Generic; using System.Threading.Tasks; using SFA.DAS.Commitments.Api.Types; using SFA.DAS.Commitments.Api.Types.Apprenticeship; using SFA.DAS.Commitments.Api.Types.Commitment; using SFA.DAS.Commitments.Api.Types.DataLock; namespace SFA.DAS.Commitments.Api.Client.Interfaces { public interfa...
82.589744
147
0.819621
[ "MIT" ]
SkillsFundingAgency/das-commitments
src/SFA.DAS.Commitments.Api.Client/Interfaces/IEmployerCommitmentApi.cs
3,221
C#
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Abp.Authorization; using Abp.Authorization.Users; using Abp.Configuration; using Abp.Domain.Uow; using Cepres.Patients.Authoriza...
35.69697
150
0.741087
[ "MIT" ]
Kasper888/Cepres.Patients
aspnet-core/src/Cepres.Patients.Core/Identity/SignInManager.cs
1,180
C#
using System; namespace Sce.Pss.Core.Input { public class TouchData { public bool Skip; public int ID; public TouchStatus Status; public float X; public float Y; } }
12.2
28
0.693989
[ "MIT" ]
weimingtom/Sakura
Sce.Pss.Core/Input/TouchData.cs
185
C#
namespace MovieInfoAPI.Models.DTO.Character { public class CharacterCreateDTO { public string Name { get; set; } public string Alias { get; set; } public string Gender { get; set; } public string URL { get; set; } } }
23.909091
44
0.60076
[ "MIT" ]
MiriTam/MovieCharacterAPI
MovieInfoAPI/Models/DTO/Character/CharacterCreateDTO.cs
265
C#
using System; using System.ComponentModel.Composition; using System.Waf.Applications; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using TumblThree.Applications.ViewModels.DetailsViewModels; using TumblThree.Applications.Views; namespace TumblThree.Presentation.Views { /// <sum...
31.16
128
0.679076
[ "Apache-2.0", "MIT" ]
Thomas694/TumblThree
src/TumblThree/TumblThree.Presentation/Views/DetailsViews/DetailsTwitterBlogView.xaml.cs
1,560
C#
using System; using System.Collections.Generic; using Android.Runtime; using Java.Interop; namespace Xamarin.Test { // Metadata.xml XPath class reference: path="/api/package[@name='xamarin.test']/class[@name='SomeObject']" [global::Android.Runtime.Register ("xamarin/test/SomeObject", DoNotGenerateAcw=true)] public...
35.820106
134
0.715214
[ "MIT" ]
mattleibow/java.interop
tools/generator/Tests/expected.ji/java.util.List/Xamarin.Test.SomeObject.cs
6,770
C#
using System; namespace master_piece.service.parser { /// <summary> /// Перечисление типов лексем /// </summary> public enum LexemeType { //Операции OpenBracket, CloseBracket, Assign, And, Or, Equal, NotEqual, More, Mo...
28.409091
111
0.51744
[ "MIT" ]
betanets/master-piece
master-piece/master-piece/service/parser/LexemeType.cs
3,609
C#
using System; using Xunit; namespace RavenPlayground.Tests { public class UnitTest1 { [Fact] public void Test1() { } } }
11.133333
31
0.532934
[ "MIT" ]
MarkZither/RavenPlayground
RavenPlayground.Tests/UnitTest1.cs
167
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.744186
81
0.652799
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/AlertsManagement/V20190601/Outputs/ActionGroupsInformationResponse.cs
1,322
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\shared\ks.h(1466,1) using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct KSDATAFORMAT_TYPE_STREAM { } }
23.636364
84
0.703846
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/KSDATAFORMAT_TYPE_STREAM.cs
262
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; #if UNITY_EDITOR using UnityEditor; using XNodeEditor; #endif namespace InteractML.DataTypeNodes { [CustomNodeEditor(typeof(IntegerNode))] public class IntegerNodeEditor : IMLNodeEditor { /// <summary> /// Refer...
36.294118
165
0.623987
[ "MIT" ]
brightcxy/iml-unity
Assets/InteractML/Scripts/IML Nodes/Data Type Nodes/Editor/IntegerNodeEditor.cs
2,470
C#
using System; using System.Linq.Expressions; namespace FluentData { public interface IDeleteBuilder<T> : IExecute { BuilderData Data { get; } IDeleteBuilder<T> Where(Expression<Func<T, object>> expression, DataTypes parameterType = DataTypes.Object, int size = 0); IDeleteBuilder<T> Where(string columnName, obj...
32.833333
124
0.761421
[ "MIT" ]
shuaiagain/orm-fluentdata
FluentData/sourceCode/sourceCode/Source/Main/FluentData/Builders/Delete/Interfaces/IDeleteBuilderGeneric.cs
394
C#
using System.Collections.Generic; namespace CodeFirstExercies { public class Genre { public Genre() { Videos = new HashSet<Video>(); } public int Id { get; set; } public string Name { get; set; } public ICollection<Video> Videos { get; set; } } ...
18.941176
54
0.546584
[ "MIT" ]
tuvshinot/csharp
Entity/CodeFirstExercies/CodeFirstExercies/Genre.cs
324
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; using TTY.GMP.Entity.Common; using TTY.GMP.Entity.Enum; namespace TTY.GMP.Entity.Web.User.Response { /// <summary> /// 用户数据权限信息 /// </summary> public class UserDataLimitView { /// <summary> //...
22.2
104
0.476476
[ "MIT" ]
chenjian8541/gmp
src/TTY.GMP.Entity/Web/User/Response/UserDataLimitView.cs
2,076
C#
using System; using System.Collections.Generic; using System.Linq; using MonoMac.Foundation; using MonoMac.AppKit; namespace GlossyClock { public partial class MainWindow : MonoMac.AppKit.NSWindow { public MainWindow (IntPtr handle) : base(handle) { } [Export("initWithCoder:")] public MainWindow (NSCoder...
18.090909
58
0.718593
[ "MIT" ]
Devolutions/monomac
samples/GlossyClock/MainWindow.cs
597
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Azure.WebJobs.Scrip...
48.623656
174
0.698364
[ "MIT" ]
ankitkumarr/azure-functions-host
src/WebJobs.Script.WebHost/WebJobsApplicationBuilderExtension.cs
4,522
C#
// <auto-generated> using KyGunCo.Counterpoint.Sdk.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace KyGunCo.Counterpoint.Sdk.Configuration { // VI_INV_HIST_QTY public class ViInvHistQtyConfiguration : IEntityTypeConfiguration<ViInvHistQty> { ...
81.733333
160
0.700653
[ "MIT" ]
kygunco/KyGunCo.Counterpoint
Source/KyGunCo.Counterpoint.Sdk/Configuration/ViInvHistQtyConfiguration.cs
3,678
C#
using Orchard.ContentManagement; using Orchard.ContentManagement.Drivers; using Orchard.Localization; using S22.IMAP.Models; using S22.IMAP.Services; using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Web; namespace S22.IMAP.Drivers { /// <summary> ...
38.076923
142
0.586111
[ "MIT" ]
AccentureRapid/OrchardCollaboration
src/Orchard.Web/Modules/S22.IMAP/Drivers/IMAPSettingPartDriver.cs
3,962
C#