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 Microsoft.EntityFrameworkCore; using TestingControllersSample.Core.Model; namespace TestingControllersSample.Infrastructure { public class AppDbContext : DbContext { public AppDbContext(DbContextOptions<AppDbContext> dbContextOptions) : base(dbContextOptions) { } ...
24.875
78
0.713568
[ "MIT" ]
yangzuo0621/AspNetCore.Tutorial
src/test/unit-tests/mvc-test/TestingControllersSample/Infrastructure/AppDbContext.cs
400
C#
using System; using System.Threading.Tasks; using Acquaint.Data; using Acquaint.Models; using Acquaint.Util; using CoreGraphics; using Foundation; using UIKit; namespace Acquaint.Native.iOS { /// <summary> /// Acquaintance table view controller. The layout for this view controller is defined almost entirely in Main....
39.223256
199
0.754891
[ "MIT" ]
aoffpo/com.munxie.imtest
App/Acquaint.Native/Acquaint.Native.iOS/AcquaintanceTableViewController.cs
8,433
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
35.571429
131
0.64759
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Appflow/Generated/Model/Internal/MarshallTransformations/UpsolverS3OutputFormatConfigMarshaller.cs
2,988
C#
//======= Copyright (c) Valve Corporation, All rights reserved. =============== // // Purpose: Utility functions used in several places // //============================================================================= using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using ...
25.46748
127
0.532642
[ "MIT" ]
13rac1/Roll-a-Ball-VR
Assets/SteamVR/InteractionSystem/Core/Scripts/Util.cs
18,797
C#
using System; using System.Collections.Generic; namespace ObjectFactories.Example { public static class Program { public static void Main(string[] args) { EmailSender emailer1 = new EmailSender(); emailer1.TellEveryone("Hello, World!"); emailer1.TellEveryone("Bye, World"); ...
20.728814
64
0.554374
[ "MIT" ]
abombss/machine
Experiments/ObjectFactories/ObjectFactories.Example/Program.cs
1,225
C#
namespace RelaxAndSport.Infrastructure.Common.Persistence { using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using RelaxAndSport.Domain.Booking.Models.Client; using RelaxAndSport.Domain.Booking.Models.Massages; using RelaxAndSport.Domain.Booking.Models.M...
35.244898
119
0.655761
[ "MIT" ]
kriskok95/RelaxAndSport
src/Server/RelaxAndSport.Infrastructure/Common/Persistence/RelaxAndSportDbContext.cs
3,456
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // ...
40.972766
160
0.46715
[ "MIT" ]
1Crazymoney/cs2cpp
CoreLib/System/DefaultBinder.cs
48,143
C#
namespace NWN.FinalFantasy.Service { public static class Random { private static readonly System.Random _random = new System.Random(); /// <summary> /// Retrieves the next random integer value. /// </summary> /// <returns>The next random integer value.</returns> ...
36.584541
98
0.544302
[ "MIT" ]
Martinus-1453/NWN.FinalFantasy
NWN.FinalFantasy/Service/Random.cs
7,575
C#
/****************************************************************************** * Spine Runtimes License Agreement * Last updated January 1, 2020. Replaces all prior versions. * * Copyright (c) 2013-2020, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * der...
36.126214
156
0.693093
[ "Apache-2.0" ]
bob-ben-star/dameforcode
Assets/Spine Examples/Scripts/RaggedySpineboy.cs
3,721
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using Owin; using BookstoreWebForms.Models; namespac...
35.867188
101
0.585711
[ "MIT" ]
PhilipYordanov/BookstoreService
BookstoreService/BookstoreWebForms/Account/Manage.aspx.cs
4,593
C#
using System; using System.Collections.Generic; using System.Text; namespace MilitaryElite.Exceptions { public class InvalidMissionStateException : Exception { private const string DEF_EXC_MSG = "Invalid mission state!"; public InvalidMissionStateException() : base(DEF_EXC_MSG) ...
21.619048
68
0.638767
[ "MIT" ]
StelaKaneva/Csharp-OOP
InterfacesAndAbstraction/Exercise/MilitaryElite/MilitaryElite/MilitaryElite/Exceptions/InvalidMissionStateException.cs
456
C#
// Copyright (c) 2016 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; namespace ServiceLayer.BookServices { public class BookListDto { public int BookId { get; set; } ...
34
97
0.603581
[ "MIT" ]
JonPSmith/EfCore.GenericBizRunner
ServiceLayer/BookServices/BookListDto.cs
784
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using DslResources = Microsoft.Data.Entity.Design.EntityDesigner.Properties.Resources; using Model = Microsoft.Data.Entity.Design.Model.Entity; namespace Microsoft.Data.Ent...
33.108374
145
0.517334
[ "MIT" ]
dotnet/ef6tools
src/EFTools/EntityDesignEntityDesigner/CustomCode/DomainClasses/EntityTypeBase.cs
6,723
C#
using System; using System.IO; namespace SharpPhysFS { public class PhysFSStream : Stream { IntPtr handle; bool readOnly = false; PhysFS physFS; internal PhysFSStream(PhysFS pfs, IntPtr ptr, bool readOnly) { handle = ptr; this.readOnly = readOnly; physFS = pfs; } pu...
19.247934
68
0.565908
[ "MIT" ]
etinquis/SharpPhysFS
SharpPhysFS/PhysFSStream.cs
2,331
C#
// $Id$ // // Copyright 2008 The AnkhSVN Project // // 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 applicabl...
28.038462
79
0.540924
[ "Apache-2.0" ]
AnkhSVN/AnkhSVN
src/Ankh.Diff/DiffUtils/Classes/DiagonalVector.cs
2,187
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation 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.Collections.ObjectModel; using System.Globalization; using S...
35.51417
190
0.486434
[ "Apache-2.0" ]
giusepe/reactive
Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs
17,546
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.SQS")] [assembly: AssemblyDescripti...
48.6875
302
0.751605
[ "Apache-2.0" ]
jamieromanowski/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/SQS/Properties/AssemblyInfo.cs
1,558
C#
using System.Collections.Generic; using System.Threading; using GraphQL.Conversion; using GraphQL.Execution; using GraphQL.Instrumentation; using GraphQL.Introspection; using GraphQL.Language.AST; using GraphQL.Types; using GraphQL.Validation; using GraphQL.Validation.Complexity; namespace GraphQL { public class E...
40.125
127
0.695223
[ "MIT" ]
chrisandflora/financial-Blessings
src/GraphQL/Execution/ExecutionOptions.cs
1,926
C#
using System; namespace Genbox.WolframAlpha.Objects { public class Source { public Uri Url { get; set; } public string Text { get; set; } } }
17.1
40
0.596491
[ "MIT" ]
Genbox/WolframAlpha
src/WolframAlpha/Objects/Source.cs
173
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Acme.Biz; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Acme.Biz.Tests { [TestClass()] public class ProductTests { [TestMethod()] public void CalculateS...
26.263538
93
0.525911
[ "MIT" ]
Farhan-Info/Csharp-Best-Practices
AcmeApp/Tests/Acme.BizTests/ProductTests.cs
7,277
C#
using System; using System.Collections.Generic; namespace Com.GitHub.ZachDeibert.CssComputers.Generator { class ComputerModel { public string Name; public List<Pin> Pins = new List<Pin>(); public List<TruthTable> TruthTables = new List<TruthTable>(); } }
26.181818
69
0.690972
[ "MIT" ]
zachdeibert/css-computers
generator/ComputerModel.cs
288
C#
namespace Example.WindowsApp.Views { using System.Windows; public static class ShellProperty { public static readonly DependencyProperty TitleProperty = DependencyProperty.RegisterAttached( "Title", typeof(string), typeof(ShellProperty), new PropertyM...
30.486486
102
0.620567
[ "MIT" ]
usausa/Smart-Net-Navigation
Example.WindowsApp/Views/ShellProperty.cs
1,128
C#
using UnityEngine; using System.Linq; public class WeaponPartBehaviour : MonoBehaviour { [HideInInspector] public WeaponPartSlot[] slots; [HideInInspector] public ModularWeapon weapon; protected virtual void Awake () { weapon = GetComponentInParent<ModularWeapon>(); slots = game...
23.793103
122
0.637681
[ "Unlicense" ]
Voldakk/Unity-FPS
Assets/Scripts/Weapons/WeaponParts/WeaponPartBehaviour.cs
692
C#
using System.Threading.Tasks; using commercetools.Common; using commercetools.Project; using NUnit.Framework; namespace commercetools.Tests { /// <summary> /// Test the API methods in the ProjectManager class. /// </summary> [TestFixture] public class ProjectManagerTest { private Cli...
23.884615
91
0.562802
[ "MIT" ]
DavidDeVries/commercetools-dotnet-sdk
commercetools.NET.Tests/ProjectManagerTest.cs
1,244
C#
// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit) // Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus // Forum & Issues: https://github.com/zzzprojec...
37.733333
191
0.671378
[ "MIT" ]
Ahmed-Abdelhameed/EntityFramework-Plus
src/shared/Z.EF.Plus._Core.Shared/EF/Object/Object.NullIfDbNull.cs
1,135
C#
using System; using System.IO; using System.Linq; using System.Reflection; using System.Xml.Linq; using BurnSystems.Logging; using DatenMeister.Core; using DatenMeister.Core.EMOF.Implementation; using DatenMeister.Core.EMOF.Implementation.DotNet; using DatenMeister.Core.EMOF.Interface.Reflection; using DatenMeister.Cor...
40.483607
110
0.560437
[ "MIT" ]
mbrenn/datenmeister-new
src/DatenMeister.BootStrap/PublicSettings/PublicSettingHandler.cs
4,939
C#
using Newtonsoft.Json; using PayNL.Enums; namespace PayNL.Objects { /// <summary> /// Merchant information /// </summary> public class Merchant { /// <summary> /// Merchant ID /// </summary> [JsonProperty("id")] public string ID { get; set; } /// <s...
21.833333
46
0.501272
[ "MIT" ]
I-Synergy/Pay.nl
src/PayNL/Objects/Merchant.cs
788
C#
 using UnityEngine; public class TerrainTrees : TerrainGridPopulator { // the tree templates game object public GameObject[] m_treeTemplates; // the maximum number of trees we can place (based on 100% bio density) public int m_maxNumTrees; // populate this planet with trees public void Initialize( PlanetGener...
26.96
96
0.746291
[ "Unlicense" ]
Blakeley00/starflight
Starflight/Assets/Scripts/Spaceflight/Components/TerrainTrees.cs
676
C#
using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.EventSystems; using System.Collections.Generic; using System; public class EditorUIController : MonoBehaviour { public static EditorUIController singleton; void Awake(){ singleton = this; } void Start(){ Playe...
27.75
111
0.777027
[ "MIT" ]
ccadori/mecha
Assets/Scripts/Controller/UI/EditorUIController.cs
2,222
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Jso...
36.947368
224
0.550997
[ "Apache-2.0" ]
AvePoint/cloud-governance-client
csharp-netstandard/src/Cloud.Governance.Client/Model/PersonalSettings.cs
7,020
C#
using MemBus; using PersistentPlanet.Controls.Controls; using PersistentPlanet.Primitives.Platform; namespace PersistentPlanet.Controls { public class KeyboardManager { private readonly IPublisher _publisher; private readonly IKeyboardAxisManager _xAxisManager; private readonly IKeyboa...
29.159091
111
0.62198
[ "MIT" ]
James226/persistent-planet
PersistentPlanet.Controls/KeyboardManager.cs
1,285
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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 the License at // http://w...
40.675182
184
0.579363
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/Storage/Commands.Storage/Blob/StorageCloudBlobCmdletBase.cs
10,874
C#
using UnityEngine; /// <summary> /// Encapsulates the settings which the player can update /// </summary> public class SettableSettings { /// <summary> /// Number of pixels needed to move the cursor across the entire screen /// </summary> public Vector2 Sensitivity { get; set; } }
25.833333
76
0.654839
[ "MIT" ]
MatthewCalligaro/TheNoseArcade
faceRacer/FaceRacer/Assets/Scripts/NonMonoBehaviour/SettableSettings.cs
312
C#
using System; using TrueMyth; namespace Samples { public class User { public int Id { get; set; } public string Name { get; set; } public string Email { get; set; } public bool Deactivated { get; set; } } public enum UserRepositoryErrorCategory { NotFound, ...
27.65625
87
0.512429
[ "MIT" ]
chriskrycho/true-myth-cs-port
test/TrueMyth.Samples/UserRepository.cs
1,770
C#
using UnityEngine; using System.Collections; namespace LuxWater.Demo { public class LuxWater_ExtendedFlycam : MonoBehaviour { // slightly changed.... /* EXTENDED FLYCAM Desi Quintans (CowfaceGames.com), 17 August 2012. Based on FlyThrough.js by Slin (http://wiki.unity3d.com/index.php/FlyThrough)...
32.5
124
0.668034
[ "Apache-2.0" ]
ctalamonti/Not-Earth
Not Earth/Assets/Imported/LuxWater/Demos/Scripts/LuxWater_ExtendedFlycam.cs
2,927
C#
using System.Collections.Generic; using System.Drawing; using Entities; using System; namespace DotWayTest { class MilkyMan : EntityCircle, IEntity { public float Speed { get; set; } public double Angle { get; set; } public float DX { get { ...
34.302222
162
0.43703
[ "CC0-1.0" ]
Ring-r/sandbox
DotWayTest/DotWayTest/Entities/MilkyMan.cs
7,720
C#
using Handelabra.Sentinels.Engine.Controller; using Handelabra.Sentinels.Engine.Model; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Cauldron.Malichae { public class HighEzaelCardController : DjinnOngoingController { public HighEzaelCardController(Card card, ...
33.46875
181
0.584034
[ "MIT" ]
LNBertolini/CauldronMods
Controller/Heroes/Malichae/Cards/HighEzaelCardController.cs
2,144
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. [assembly:System.Reflection.AssemblyVersionAttribute("4.0.10.0")] [assembly:System.Diagnostics.DebuggableAttribute((...
96.666667
145
0.865948
[ "MIT" ]
marek-safar/reference-assemblies
src/v4.6.1/Facades/System.Net.Primitives.cs
4,640
C#
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
41.979065
220
0.561739
[ "BSD-3-Clause" ]
ErickJeffries/NLog
src/NLog/Config/LoggingConfigurationParser.cs
60,156
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-generate...
44.59375
181
0.600561
[ "MIT" ]
Benrnz/BudgetAnalyser
BudgetAnalyser/Properties/Resources.Designer.cs
2,856
C#
using System.IO; namespace SeqCli.Util { static class Content { public static string GetPath(string relativePath) { var thisDir = Path.GetDirectoryName(Path.GetFullPath(typeof(Content).Assembly.Location)) ?? "."; return Path.Combine(thisDir, relativePath); } ...
24.923077
108
0.626543
[ "Apache-2.0" ]
KodrAus/seqcli
src/SeqCli/Util/Content.cs
326
C#
namespace _06.Birthday_Celebrations.Models { using Interfaces; public abstract class LivingBeing : IBirthable { public LivingBeing(string birthDate, string name) { this.BirthDate = birthDate; this.Name = name; } public string BirthDate { get; privat...
21.5
57
0.602067
[ "MIT" ]
RAstardzhiev/SoftUni-C-
C# OOP Advanced/Interfaces and Abstraction - Exercises/06. Birthday Celebrations/Models/LivingBeing.cs
389
C#
using EdsLibrary.Extensions; using System; using Console = Colorful.Console; using System.Drawing; using Ann; using Ann.Examples.Demonstration; namespace Ann.Examples.Inertion { public class DemoInertion : Demo<DynamicEntity> { public DemoInertion(int steps, AnnParameters parameters) ...
29.916667
99
0.531337
[ "MIT" ]
ERGeorgiev/ann
Ann.Examples/Inertion/DemoInertion.cs
1,438
C#
/* * This filePath is part of AceQL C# Client SDK. * AceQL C# Client SDK: Remote SQL access over HTTP with AceQL HTTP. * Copyright (C) 2020, KawanSoft SAS * (http://www.kawansoft.com). All rights reserved. * ...
36.611765
146
0.585154
[ "Apache-2.0" ]
GuillaumeR77/AceQL.Client2
AceQLClient/src/Api/AceQLTransaction.cs
6,226
C#
/* * MIT License * * Copyright (c) 2018 Clark Yang * * 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, m...
33.713178
151
0.587032
[ "MIT" ]
84KaliPleXon3/QFramework
Assets/QFramework/Framework/0.PackageKit/BindKit/Framework/Binding/Reflection/ProxyFieldInfo.cs
8,700
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; /// <summary>Provider specific switch protection input.</summary> [System.ComponentModel.TypeConverter(typeof(SwitchProtectionProviderSpecificInputTypeConverte...
63.529851
361
0.696699
[ "MIT" ]
AverageDesigner/azure-powershell
src/Migrate/generated/api/Models/Api20210210/SwitchProtectionProviderSpecificInput.PowerShell.cs
8,380
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...
37.142857
192
0.700962
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/Management/src/EndpointCore/ThreadDump/ThreadDumpEndpointMiddleware.cs
2,082
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Angular.Server.Data.Migrations { public partial class AuditableFields : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<DateTime>( ...
30.566879
72
0.463847
[ "MIT" ]
JediKnights/TelerikAcademy-Angular-Course-Server
src/Angular.Server.Data/Migrations/20170101150809_AuditableFields.cs
4,801
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 regenerated....
51.555556
128
0.655532
[ "MIT" ]
cybk/LinQ.Katas
LinQ.Katas/LinQ.Katas.DataRepository/Employee.cs
2,784
C#
namespace SentryApi.Client { public class IssuesRequest : SentryRequest { public IssuesRequest(string organizationSlug, string projectSlug) : this(organizationSlug, projectSlug, null, Period.All) { } public IssuesRequest(string organizationSlug, string projectSlug, ...
28.666667
108
0.630491
[ "MIT" ]
olsh/sentry-api-client
src/SentryApi.Client/Models/IssuesRequest.cs
776
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi { /// <summary> /// DispatchInterface IHTMLStyleSheet3 /// SupportByVersion MSHTML, 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsDispatchInterface)]...
22.789474
53
0.764434
[ "MIT" ]
igoreksiz/NetOffice
Source/MSHTML/DispatchInterfaces/IHTMLStyleSheet3.cs
435
C#
using Bitsmith.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bitsmith.ViewModels { public class ListItemViewModel : ViewModel<ListItem> { private bool _IsSelected; public bool IsSelected { ...
19.10828
56
0.371333
[ "MIT" ]
eXtensoft/eXtensoft-snippet
src/Bitsmith/modules/.common/view.models/shared/lists/ListItemViewModel.cs
3,002
C#
using System.Linq; using System.Reflection; using UnityEditor; using UnityEngine; using UnityWeld.Binding; using UnityWeld.Binding.Internal; namespace UnityWeld_Editor { [CustomEditor(typeof(EventBinding))] public class EventBindingEditor : BaseBindingEditor { private EventBinding targe...
34.585586
90
0.533472
[ "MIT" ]
MonarchSolutions/Unity-Weld
UnityWeld_Editor/EventBindingEditor.cs
3,839
C#
using Microsoft.SqlServer.XEvent.Linq; using NLog; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XESmartTarget.Core { public class Target { private static Logger logger = LogManager.GetCurrentClassLogger(); publi...
29.904348
113
0.410875
[ "MIT" ]
denissukhotin/XESmartTarget
XESmartTarget.Core/Target.cs
3,441
C#
// <auto-generated /> using System; using Dalmatian.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Dalmat...
36.474903
125
0.447655
[ "MIT" ]
angelneychev/Dalmatian
src/Data/Dalmatian.Data/Migrations/20200415174707_EditTableDogAndPerson.Designer.cs
37,790
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version: 16.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ----...
43.468672
136
0.541571
[ "MIT" ]
AlgorithmsAreCool/Trill
Sources/Core/Microsoft.StreamProcessing/Operators/SelectMany/SelectManyTemplate.cs
17,346
C#
using System; using System.Collections.Generic; using System.Text; namespace Core.Utilities.Results { public class ErrorDataResult<T> : DataResult<T> { public ErrorDataResult(T data, string message) : base(data, false, message) { } public ErrorDataResult(T data) : base(data, f...
20.423077
83
0.591337
[ "MIT" ]
msarigul20/BootcampBackendCode
BootcampFinalProject/Core/Utilities/Results/ErrorDataResult.cs
533
C#
#region << 版 本 注 释 >> /*---------------------------------------------------------------- * Copyright (C) 2018 天下商机(txooo.com)版权所有 * * 文 件 名:PlatformType * 所属项目:Iwenli.Mobile * 创建用户:iwenli(HouWeiya) * 创建时间:2018/5/21 16:55:04 * * 功能描述: * 1、 * * 修改标识: * 修改描述: * 修改时间: * 待 完 善: * ...
19.355263
66
0.371176
[ "Apache-2.0" ]
iwenli/ILI
Iwenli.Mobile/PlatformType.cs
1,663
C#
namespace Zinc.WebServices.Rest { internal class ZnHeaders { internal const string ActivityId = "Zn-ActivityId"; internal const string AccessToken = "Zn-AccessToken"; internal const string ExecutionId = "Zn-ExecutionId"; internal const string MomentStart = "Zn-MomentStart"; ...
31.833333
61
0.67801
[ "BSD-3-Clause" ]
filipetoscano/Zinc
src/Zinc.WebServices/Rest/ZnHeaders.cs
384
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
40.565574
194
0.630835
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/DeviceFarm/Generated/Model/Internal/MarshallTransformations/UpdateInstanceProfileResponseUnmarshaller.cs
4,949
C#
using NBitcoin.RPC; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using NBitcoin; using NTumbleBit.Logging; namespace NTumbleBit.Services.RPC { public class RPCBroadcastService : IBroadcastService { public class Record { p...
27.491453
190
0.690191
[ "MIT" ]
D3m0nKingx/NTumbleBit
NTumbleBit/Services/RPC/RPCBroadcastService.cs
6,435
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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 the License at // http://ww...
40.8125
96
0.605666
[ "MIT" ]
Milstein/azure-sdk-tools
WindowsAzurePowershell/src/Commands.ServiceManagement.Test/FunctionalTests/IaasCmdletInfo/GetAzureStorageAccountCmdletInfo.cs
1,275
C#
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/datastore/v1/datastore.proto #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using ...
37.094011
328
0.671279
[ "Apache-2.0" ]
Acidburn0zzz/google-cloud-dotnet
apis/Google.Cloud.Datastore.V1/Google.Cloud.Datastore.V1/Datastore.cs
106,534
C#
using MediatR; using WebAppClientes.Infra.CrossCutting.Dtos; namespace WebAppClientes.Domain.Commands { public class CreateClienteCommand : IRequest<CommandReturnDto> { public string Nome { get; private set; } public string Cpf { get; private set; } public string Rua { get; private set...
31.4
114
0.601274
[ "MIT" ]
rafaeldalsenter/web-app-clientes
WebAppClientes.Domain/Commands/CreateClienteCommand.cs
787
C#
using System; using System.Collections.Generic; using Merchello.Core.Models; using Merchello.Core.Models.TypeFields; using Umbraco.Core.Persistence.Repositories; namespace Merchello.Core.Persistence.Repositories { /// <summary> /// Marker interface for the customer registry repository /// </summary> i...
24.411765
84
0.756627
[ "MIT" ]
bowserm/Merchello
src/Merchello.Core/Persistence/Repositories/Interfaces/IItemCacheRepository.cs
417
C#
using System; using System.Collections.Generic; using System.Linq; using Unity.MARS.Authoring; using Unity.MARS.Conditions; using Unity.MARS.Simulation; using Unity.XRTools.ModuleLoader; using UnityEditor; using UnityEditor.MARS; using UnityEditor.MARS.Authoring; using UnityEditor.MARS.Simulation; using UnityEngine; ...
41.277311
210
0.562378
[ "Apache-2.0" ]
bsides44/MARSGeofencing
MARS geofencing/Library/PackageCache/com.unity.mars@1.3.1/Editor/Scripts/Entities/MarsEntityEditor.cs
24,562
C#
using AutoMapper; using MiCake.DDD.Domain; using MiCake.DDD.Extensions.Store; using MiCake.DDD.Extensions.Store.Mapping; using System; using System.Linq.Expressions; namespace MiCake.AutoMapper { /// <summary> /// <see cref="IPersistentObjectMapConfig{TKey,TDomainEntity, TPersistentObject}"/> implement for Au...
44.594595
163
0.727879
[ "MIT" ]
wrsxinlang/MiCake
src/framework/MiCake.AutoMapper/AutoMapperPersistentObjectMapConfig.cs
1,652
C#
using System.Windows.Forms; namespace AnyChatCSharpDemo { partial class frmHall : Form { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <pa...
40.666667
139
0.590736
[ "Apache-2.0" ]
alucard263096/AMKRemoteClass
Documents/AnyChat/AnyChatCoreSDK_Win32_r4840/src/client/c#/AnyChatCSharpDemo/frmHall.Designer.cs
5,402
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ============================...
33.896552
87
0.574771
[ "MIT" ]
IainCoSource/squidex
backend/src/Squidex.Domain.Apps.Core.Operations/HandleRules/IRuleTriggerHandler.cs
986
C#
using System; using System.Collections.Generic; namespace Paradigm.ORM.Data.StoredProcedures { /// <summary> /// Provides an interface to execute data reader stored procedures returning only 6 result sets. /// </summary> /// <remarks> /// Instead of sending individual parameters to the procedure, t...
54.566667
142
0.69212
[ "MIT" ]
MiracleDevs/Paradigm.ORM
src/Paradigm.ORM.Data/StoredProcedures/IReaderStoredProcedure.6.cs
1,637
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.061837
352
0.560508
[ "MIT" ]
HeidiSteen/azure-sdk-for-net
sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionOperations.cs
26,071
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.IO; using Sy...
42.156573
340
0.585827
[ "MIT" ]
mellinoe/corefx
src/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs
57,080
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace LoadDriverLib { ...
30.952381
99
0.526154
[ "MIT" ]
Azure-Samples/service-fabric-dotnet-performance
ServiceLoadTest/Framework/LoadDriverLib/TestExecutorState.cs
652
C#
// *** WARNING: this file was generated by pulumigen. *** // *** 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.Kubernetes.Types.In...
44.211268
378
0.656579
[ "Apache-2.0" ]
AaronFriel/pulumi-kubernetes
sdk/dotnet/Apps/V1Beta2/Inputs/DeploymentSpecArgs.cs
3,139
C#
using Bogus.DataSets; using Bogus.Extensions.Brazil; using Bogus.Extensions.UnitedStates; using FluentAssertions; using Xunit; namespace Bogus.Tests.DataSetTests { public class CompanyTest : SeededTest { public CompanyTest() { company = new Company(); } private readonly Company ...
21.532258
73
0.590262
[ "MIT" ]
esteban1991/TestAsp
Source/Bogus.Tests/DataSetTests/CompanyTest.cs
1,335
C#
/* Copyright (c) 2019, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
39.03937
201
0.745865
[ "BSD-2-Clause" ]
Bhalddin/MatterControl
MatterControl.SLA/Slicer/SlaSlicer.cs
4,960
C#
using System.Collections.Generic; using System.Linq; using UnitTest.Domain.Entity; using UnitTest.Domain.Interface; namespace UnitTest.Infra.Repositories { public class Repository : IRepository { private readonly Context _context; public Repository(Context context) { _conte...
25.114754
98
0.582245
[ "MIT" ]
Berthot/UnitTests
UnitTest.Infra/Repositories/Repository.cs
1,532
C#
using Newtonsoft.Json; namespace ChartMogul.API.Models.Enrichment { public class ClearbitModel { [JsonProperty(PropertyName = "person")] public Person Person { get; set; } [JsonProperty(PropertyName = "company")] public Company Company { get; set; } } public class Co...
27.267442
56
0.598294
[ "MIT" ]
john-craft/chartmogul-dotnet
ChartMogul/Models/Enrichment/ClearbitModel.cs
2,347
C#
using LuisTools.Domain.Contracts; using System.Collections.Generic; using System.IO; using System.Linq; namespace LuisTools.Data.Disk { public class LuDownWriter : ILuDownWriter { private readonly ILogger _log; public LuDownWriter(ILogger logger) { _log = logger; }...
27.114286
97
0.60274
[ "MIT" ]
digitaldias/LuisTools
NuanceToLuis/LuisTools.Data.Disk/LuDownWriter.cs
951
C#
namespace Rest4GP.Core.Parameters { /// <summary> /// Parameters used for the query /// </summary> public class RestParameters { /// <summary> /// Number of elements to fetch /// </summary> public int Take { get; set; } /// <summary> /// Number of e...
22.804878
64
0.485561
[ "MIT" ]
PiGi78/Rest4GP
Rest4GP.Core/Parameters/RestParameters.cs
935
C#
namespace Anthill.AI { public class AntAIAction { public int cost; // Цена действия. public string name; // Имя действия. public string state; // Имя состояния связанного с этим действием. public AntAICondition pre; // Предстоящие условия. public AntAICondition post; // Последующи...
25.45
75
0.656189
[ "MIT" ]
AntKarlov/GOAP
Assets/Libraries/Anthill/AI/AntAIAction.cs
604
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Mvc.Rendering; using HairSalon.Models; using System.Collections.Generic; using System.Linq; namespace HairSalon.Controllers { public class ClientsController : Controller { private readonly HairSalonContext _db; ...
28.823529
120
0.671429
[ "MIT" ]
kate-skorija/HairSalon.Solution
HairSalon/Controllers/ClientsController.cs
1,960
C#
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using Extreme.Net.Core; namespace Extreme.Net { /// <summary> /// Представляет клиент для HTTP прокси-сервера. /// </summary> public class HttpProxyClient : ProxyClient { #...
38.255319
169
0.591676
[ "MIT" ]
WinoGarcia/Extreme.Net.Core
Extreme.Net.Core/~Proxy/HttpProxyClient.cs
12,438
C#
//********************************************************* // // Copyright (c) Microsoft Corporation. All rights reserved. // // // // // // //********************************************************* using System; using Bio.Properties; using Bio.Util.Logging; namespace Bio.Web { /// <summary> /// A valida...
27.021739
95
0.470233
[ "Apache-2.0" ]
jdm7dv/Microsoft-Biology-Foundation
eLMM/CodePlex/MBF/Web/IntRangeValidator.cs
2,486
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / using NUnit.Framework; using System; using Twilio.Converters; using Twilio.TwiML; using Twilio.TwiML.Messaging; namespace Twilio.Tests.TwiML { [TestFixture] public class MessagingResponseTest : Twi...
32.516556
176
0.482688
[ "MIT" ]
BrimmingDev/twilio-csharp
test/Twilio.Test/TwiML/MessagingResponseTest.cs
4,910
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Abp.Modules; using Abp.Reflection.Extensions; using IdentityServervNextDemo.Configuration; namespace IdentityServervNextDemo.Web.Startup { [DependsOn(typeof(IdentityServervNextDemoWebCoreModule))] public class IdentityServervN...
31.1875
111
0.723447
[ "MIT" ]
OzBob/aspnetboilerplate-samples
IdentityServervNextDemo/aspnet-core/src/IdentityServervNextDemo.Web.Mvc/Startup/IdentityServervNextDemoWebMvcModule.cs
1,000
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Web.Senai.ClevelandClinic.Domains; using Web.Senai.ClevelandClinic.Repositories; namespace Web.Senai.ClevelandClinic.Controllers { [Rou...
27.916667
68
0.689552
[ "MIT" ]
CleAurora/Cleveland_Clinic
BackEnd-Projeto/Web.Senai.ClevelandClinic/Web.Senai.ClevelandClinic/Controllers/MedicosController.cs
672
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace BusinessLight.PhoneBook.Mvc { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{r...
24.791667
99
0.594958
[ "MIT" ]
RudyYang/BusinessLight
samples/BusinessLight.PhoneBook.Mvc/App_Start/RouteConfig.cs
597
C#
namespace DIO.Series { public enum Genero { Acao = 1, Aventura = 2, Comedia = 3, Documentario = 4, Drama = 5, Espionagem = 6, Faroeste = 7, Fantasia = 8, Ficcao_Cientifica = 9, Musical = 10, Romance = 11, Suspense = ...
18.526316
30
0.448864
[ "MIT" ]
mauriciopicirillo/primeiro_app_simples_de_cadastro_.net
DIO.Series/Enum/Genero.cs
352
C#
namespace BC.Loop.Api.Client.Models { /// <summary> /// The builtin Loop Event Identifiers /// </summary> public enum EventIdentifierType { IBeacon, EddystoneUID, BlueCatsID, BluetoothAddress } }
16.866667
43
0.58498
[ "MIT" ]
bluecats/bluecats-csharp-loop-api-client
Projects/netstandard20/Models/EventIdentifierType.cs
255
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace SRMAPI { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); r...
21.125
88
0.66075
[ "MIT" ]
DrSophistry/SophisRetailManager
SRMAPI/App_Start/RouteConfig.cs
509
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AbilityHandler : MonoBehaviour { [SerializeField] private AbilityVariable currentAbility = default; private void Update() { if (InputSuppressor.IsSuppressed || PauseState.IsPaused) ...
28.945946
97
0.63212
[ "MIT" ]
DanielEverland/project-tuba-public
Assets/Scripts/Player/AbilityHandler.cs
1,073
C#
using System; using System.Diagnostics; using Autodesk.Revit.UI; namespace RhinoInside.Revit.External.UI { using Extensions; public abstract class ExternalEventHandler : IExternalEventHandler { public abstract string GetName(); string IExternalEventHandler.GetName() => GetName(); protected ab...
30
117
0.684127
[ "MIT" ]
gokermu/rhino.inside-revit
src/RhinoInside.Revit/External/UI/EventHandler.cs
1,260
C#
using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { public float oxygen = 1f; // Between 0 and 1; public float oxygenDecPerSec = 0.01f; public float oxygenDecPerSecBoost = 0.02f; public float oxygenGainedPerCapsule = 0.3f; public bool isBoosted = false; publi...
37.114973
141
0.687198
[ "MIT" ]
ice-blaze/msr
Assets/Scripts/PlayerController.cs
13,881
C#
using System.ComponentModel; using System.Reactive; using Avalonia.Input; using Avalonia.Threading; using OpenTracker.Models.BossPlacements; using OpenTracker.Utils; using OpenTracker.ViewModels.BossSelect; using ReactiveUI; namespace OpenTracker.ViewModels.Items.Adapters { /// <summary> /// This class contain...
32.94898
108
0.583462
[ "MIT" ]
AntyMew/OpenTracker
OpenTracker/ViewModels/Items/Adapters/BossAdapter.cs
3,229
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.Text; using System.Threading; using System.Threading.Tasks; using System.Runtime.CompilerServices; usin...
36.864078
140
0.546352
[ "MIT" ]
Azure-2019/corefx
src/Common/src/CoreLib/System/IO/TextReader.cs
15,188
C#
using System.Collections.Generic; using System.Linq; using System.Net.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Internal; namespace Shriek.ServiceProxy.Http.Server.RouteAnalyzer.Impl { internal cl...
36
143
0.551307
[ "MIT" ]
1051324354/shriek-fx
src/Shriek.ServiceProxy.Http.Server/RouteAnalyzer/Impl/RouteAnalyzer.cs
3,062
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using DezignSpiration.Models; namespace DezignSpiration.Interfaces { public interface IQuotesRepository { Task<bool> DeleteQuote(DesignQuote designQuote); Task<bool> InsertQuotes(IEnumerable<DesignQuote> quotes); ...
24.333333
83
0.712329
[ "MIT" ]
johnxy84/Dezignspiration
DezignSpiration/Interfaces/IQuotesRepository.cs
732
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.Generic; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.ContractsLight; using System.IO; using System.Li...
44.923948
239
0.560206
[ "MIT" ]
blufugen/BuildXL
Public/src/Engine/Processes/SandboxedProcess.cs
27,763
C#
/////////////////////////////////////////////////////////////////////////////// // // Microsoft Research Singularity // // Copyright (c) Microsoft Corporation. All rights reserved. // // File: CategoryAttributes.cs // // Warning: This file is compiled into the kernel, and into the runtime. // ...
31.205656
86
0.533322
[ "MIT" ]
sphinxlogic/Singularity-RDK-2.0
base/Kernel/Singularity/Io/CategoryAttributes.cs
12,139
C#