content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; namespace SIS.MvcFramework.Attributes.Action { public class NonActionAttribute : Attribute { } }
12.6
47
0.706349
[ "MIT" ]
SimeonVSimeonov/custom-mvc-framework
SIS.MvcFramework/Attributes/Action/NonActionAttribute.cs
128
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.Diagnostics; using System.Threading; using StarkPlatform.CodeAnalysis.Stark.Symbols; namespace StarkPlatform.CodeAnalysis.Stark { internal ...
47.377358
161
0.68857
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Compilers/Stark/Portable/Errors/LazyObsoleteDiagnosticInfo.cs
2,513
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.Linq; using System.Reflection; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Mvc.Core; using Microsoft.Exte...
39.644068
116
0.557289
[ "Apache-2.0" ]
hongloubutian/MVC
src/Microsoft.AspNetCore.Mvc.Core/Internal/MiddlewareFilterConfigurationProvider.cs
4,680
C#
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace Mediachase.Ibn.Web.UI.ListApp.Pages { public ...
23.772727
81
0.780115
[ "MIT" ]
InstantBusinessNetwork/IBN
Source/Server/WebPortal/Apps/ListApp/Pages/ListInfoCreate.aspx.cs
525
C#
using System.Linq; using System.Collections.Generic; using HierarchyGrid.Definitions; using System; using MoreLinq; namespace Demo { public class CalendarBuilder { private string[] _users; public CalendarBuilder(params string[] users) { _users = users; } pu...
37
120
0.370765
[ "MIT" ]
CyLuGh/HierarchyGrid
src/Demo/CalendarBuilder.cs
2,627
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Composition.Hosting.Core; using System.Linq.Expressions; using System.Reflection; namespace System.Composition.TypedParts.Discovery { ...
34.544118
97
0.591315
[ "MIT" ]
belav/runtime
src/libraries/System.Composition.TypedParts/src/System/Composition/TypedParts/Discovery/DiscoveredPropertyExport.cs
2,349
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System.Diagnostics.CodeAnalysis; using Markdig.Helpers; using Markdig.Parsers; using Markdig.Syntax.Inlines; namespace Markdig.S...
38.722944
201
0.567356
[ "BSD-2-Clause" ]
luoyiminga/markdig
src/Markdig/Syntax/LinkReferenceDefinition.cs
8,945
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...
29.907895
101
0.628245
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/PrivateIpAddressSpecification.cs
2,273
C#
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System; using RVA = System.UInt32; namespace Mono.Cecil.PE { sealed class Section { public string Name; public RVA VirtualAddress...
16.6
41
0.691566
[ "MIT" ]
13294029724/ET
Unity/Assets/ThirdParty/ILRuntime/Mono.Cecil/Mono.Cecil.PE/Section.cs
415
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using Folder_sorter.DirUtil; namespace Folder_sorter { public static class Config { public static List<Folder> ReadConfig(string config_path) { var folders = new List<Folder>(); ...
36.5
96
0.379143
[ "BSD-3-Clause" ]
kolik95/Folder-Sorter
Folder_sorter/Config.cs
2,265
C#
using System.Windows.Media; namespace TeaDriven.Kiltse { public class DefaultStrokeInfoSelector : StrokeInfoSelector { public override StrokeInfo GetStrokeInfo(RingItem value) { return new StrokeInfo(new SolidColorBrush(Colors.White), DefaultStrokeThickness, null); } } ...
26.75
99
0.700935
[ "Unlicense" ]
TeaDrivenDev/Kiltse
src/TeaDriven.Kiltse/DefaultStrokeInfoSelector.cs
323
C#
using System.Collections.Generic; using System.Diagnostics; namespace LivingDocumentation.Uml { /// <summary> /// Represents a group with 1 or more sections, like <c>alt</c>, <c>par</c>, <c>loop</c>, etc.. /// </summary> [DebuggerDisplay("Alt")] public class Alt : InteractionFragment { ...
27.032258
99
0.577566
[ "MIT" ]
eNeRGy164/LivingDocumentation
src/LivingDocumentation.UML/Fragments/Alt.cs
840
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.Runtime.CompilerServices; using BuildXL.Utilities; using Test.BuildXL.TestUtilities.Xunit; using Xunit; namespace Test.BuildXL.Utilities { p...
31.903509
130
0.524058
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Utilities/UnitTests/Utilities/PossibleTests.cs
3,637
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...
40.040201
195
0.562751
[ "Apache-2.0" ]
JohnZhaoXiaoHu/poshtools
PowerShellTools/DebugEngine/ResourceStrings.Designer.cs
7,970
C#
/* Copyright 2010-2016 MongoDB Inc. * * 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 writi...
32.69426
183
0.535296
[ "Apache-2.0" ]
joeenzminger/mongo-csharp-driver
tests/MongoDB.Bson.Tests/ObjectModel/BsonValueTests.cs
29,623
C#
//----------------------------------------------------------------------- // <copyright file="Customer.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>no summary</summary> //-----------------------------------------------...
25.837696
142
0.621277
[ "MIT" ]
Alstig/csla
Source/Csla.test/CslaDataProvider/Customer.cs
4,937
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.Collections.Generic; using System.Reflection; using Xunit; namespace System.Linq.Expressions.Tests { ...
52.40836
187
0.625253
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Linq.Expressions/tests/BinaryOperators/GeneralBinaryTests.cs
16,299
C#
// In Initialize AddForex("EURUSD", Resolution.Minute); // or AddForex("EURUSD", Resolution.Minute, Market.FXCM); // For OANDA, we need to explictly define the market AddForex("EURUSD", Resolution.Minute, Market.Oanda);
37
52
0.743243
[ "Apache-2.0" ]
Jay-Jay-D/Documentation
03 Asset Classes/02 Forex/01 Forex/01 code.cs
222
C#
//Problem 7. Sort 3 Numbers with Nested Ifs //Write a program that enters 3 real numbers and prints them sorted in descending order. //Use nested if statements. //Note: Don’t use arrays and the built-in sorting functionality. //Examples: //a b c result //5 1 2 5 2 1 //-2 -2 1 1 -2 -2 //-2 ...
27.61039
395
0.625118
[ "MIT" ]
SHAMMY1/Telerik-Academy
Homeworks/CSharpPartOne/05.ConditionalStatements/05.Conditional-Statements-HW/07.SortThreeNumbers/SortThreeNumbers.cs
2,132
C#
using System; using System.Collections.Concurrent; using System.Diagnostics; namespace CollectionViewPerformance.Helpers { public static class Profiler { const string Tag = "XFProfiler"; static readonly ConcurrentDictionary<string, Stopwatch> watches = new ConcurrentDictionary<string, Stopwatc...
27.029412
120
0.574538
[ "MIT" ]
jsuarezruiz/xamarin-forms-perf-playground
src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Helpers/Profiler.cs
921
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Depende...
32.052632
106
0.610837
[ "MIT" ]
EmORz/Book-Library
BookLibrary/BookLibrary/Startup.cs
2,438
C#
using System; using System.IO; using System.Linq; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace MakeIncremental { class Program { static void Main(string[] args) { if (args.Length < 1) { ...
33.219081
142
0.456547
[ "Apache-2.0" ]
Chaseshak/RetroVRCade
Babylon.js-2.4.0/Tools/MakeIncremental/Program.cs
9,403
C#
using System; using System.Collections.Generic; using System.Linq; using Amazon.JSII.Runtime.Deputy; using Amazon.JSII.Tests.CalculatorNamespace; using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation; using Amazon.JSII.Tests.CalculatorNamespace.LibNamespace; using Newtonsoft.Js...
37.519022
134
0.591711
[ "Apache-2.0" ]
NGL321/jsii
packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs
55,228
C#
namespace _01.MobilePhone { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class GSM { //Problem 1: Initialize classes Display, Battery, GSM & Problem 5: Encapsulate all data fields private string model; ...
32.085308
136
0.493796
[ "MIT" ]
baretata/CSharpOOP
01.DefiningClassesPart1/01.MobilePhone/GSM.cs
6,772
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; ...
54.664
242
0.720328
[ "MIT" ]
SpaceChina/aspnetcore
src/Security/Authentication/Core/src/AuthenticationBuilder.cs
6,833
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JohnLambe.Util.TimeUtilities { //[ComplexType] public abstract class DateClass { //TODO: Implement (by delegation to Value) other methods and operators. public vir...
23.305556
79
0.585816
[ "MIT" ]
JohnLambe/JLCSUtils
JLCSUtils/JLUtils/TimeUtilities/DateClass.cs
1,680
C#
// 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 writing, software distributed under the ...
46.05309
219
0.610979
[ "Apache-2.0" ]
dirtyarteaga/google-api-dotnet-client
Src/Generated/Google.Apis.ShoppingContent.v2/Google.Apis.ShoppingContent.v2.cs
687,021
C#
using System.Collections.Generic; namespace EnTier.Services { public interface ICrudService<TEntity, in TDomainId> where TEntity : class, new() { IEnumerable<TEntity> GetAll(); TEntity GetById(TDomainId id); TEntity Add(TEntity value); TEntity Update(TEntity value); ...
21.714286
85
0.649123
[ "MIT" ]
Acidmanic/EnTier
EnTier/Services/ICrudService.cs
456
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.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.CodeStyle; u...
24.110647
275
0.608213
[ "MIT" ]
lambdaxymox/roslyn
src/EditorFeatures/CSharpTest/ImplementInterface/ImplementInterfaceTests.cs
230,792
C#
namespace EasyBlock.Core.Interfaces.TextWriter { public interface ITextFileWriter { void AppendLine(string line); void Persist(); } }
18.111111
47
0.656442
[ "BSD-2-Clause" ]
fluffynuts/easyblock
source/EasyBlock.Core/Interfaces/TextWriter/ITextFileWriter.cs
165
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ShoelessJoeWebApi.DataAccess.DataModels { public class Manufacter { [Key] public int ManufacterId { get; set; } [MaxLength(75)] public string Name { get; set; } public Address Addr...
23.47619
53
0.622718
[ "MIT" ]
TClaypool00/ShoelessJoeApiV2
ShoelessJoeWebApi.DataAccess/DataModels/Manufacter.cs
495
C#
/* * Copyright(c) 2019 Samsung Electronics Co., Ltd. * * 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 ...
34.636364
137
0.671391
[ "Apache-2.0" ]
huayongxu/TizenFX
src/Tizen.NUI/src/internal/SWIGTYPE_p_bundle.cs
1,905
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CollisionDamage : MonoBehaviour { [SerializeField] private float damageAmount = 5f; [SerializeField] private float takeDamageInterval = 3f; [SerializeField] private string compareTag = "Enemy"; [SerializeField]...
25.269231
69
0.623288
[ "MIT" ]
StephenJBrasel/Biscotti-Fight-Club
Biscotti Fight Club/Assets/Scripts/CollisionDamage.cs
1,316
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace test.Data.Migrations { public partial class addedSubmission : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Submissions", col...
35
76
0.504082
[ "MIT" ]
TrevorTheAmazing/Capstone
test/Data/Migrations/20191128160836_addedSubmission.cs
1,472
C#
using System.Collections.Generic; using System.Windows.Forms; namespace DSIS.UI.Wizard.FormsGenerator { public interface IOptionPageLayout { Panel Layout<Q>(IEnumerable<Q> controls) where Q : IOptionPageControl; void Layout<Q>(ScrollableControl host, IEnumerable<Q> controls) where Q...
25
68
0.717143
[ "Apache-2.0" ]
jonnyzzz/phd-project
dsis/src/UIs/UI.Wizard/src/FormsGenerator/IOptionPageLayout.cs
350
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Foundation; using Photos; using UIKit; namespace Xamarin.Essentials { public partial class FileSystem { internal static async Task<FileResult[]> EnsurePhysicalFileResultsAsync(params...
29.908297
151
0.537451
[ "MIT" ]
baskren/Essentials
Xamarin.Essentials/FileSystem/FileSystem.ios.cs
6,851
C#
using Newtonsoft.Json; using System; namespace Nexmo.Api.Messaging { [System.Obsolete("The Nexmo.Api.Messaging.DeliveryReceipt class is obsolete. " + "References to it should be switched to the new Vonage.Messaging.DeliveryReceipt class.")] public class DeliveryReceipt { /// <summary> ...
36.666667
151
0.57366
[ "Apache-2.0" ]
Cereal-Killa/vonage-dotnet-sdk
Vonage/LegacyNexmoLibrary/Messaging/DeliveryReceipt.cs
4,290
C#
using System; using System.IO; using System.Reflection; using System.Security.Cryptography; using System.Text; using System.Resources; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Threading; [assembly: AssemblyTitle("#AssemblyProduct")] [assembly: AssemblyDescription("#AssemblyDescrip...
35.892857
148
0.58408
[ "MIT" ]
IMULMUL/Lime-Crypter
Lime-Crypter/Resources/Loader.cs
3,015
C#
using System; using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Shapes; using Avalonia.Markup.Xaml; using Avalonia.Threading; using Apollo.Core; using Apollo.Structures; namespace Apollo.Components { public class Indicator: UserControl { void InitializeComponent() { AvaloniaXa...
24.677966
108
0.551511
[ "BSD-3-Clause" ]
Brendonovich/apollo-studio
Apollo/Components/Indicator.cs
1,458
C#
// // Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com) // // 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, ...
58
121
0.794828
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/Facades/System.Security.Cryptography.Encoding/TypeForwarders.cs
1,740
C#
using Xunit; namespace StoryTeller.Testing.Grammars { public class GrammarBuilderTester { private readonly GrammarTargetFixture theFixture = new GrammarTargetFixture(); [Fact] public void processes_hidden_for_programmatic_grammars() { theFixture.GrammarFor("No...
22.952941
86
0.549462
[ "Apache-2.0" ]
SergeiGolos/Storyteller
src/StoryTeller.Testing/Grammars/GrammarBuilderTester.cs
1,953
C#
namespace LogFlow.Viewer.LogFilter.Expressions { using System.Collections.Generic; using LogFlow.Viewer.LogFilter.Tokens; internal class TokenInput { internal List<Token> input; private int idx = -1; private int length => this.input.Count; internal TokenInput(List<T...
20.192982
49
0.430061
[ "MIT" ]
EvanCui/logflow
src/LogFilter/Expressions/TokenInput.cs
1,153
C#
using UnityEngine; public class GameManager : MonoBehaviour { public float gameOverDelay = 3f; bool gameOver = false; private GameManager gameManager; public Transform gameOverGUI; public Transform pausedMenu; public Transform inventoryTab; public Transform camera; void Start() ...
20.208791
65
0.531267
[ "MIT" ]
mekuryGlobal/SkylarNFT
SkylarGame/Scripts/Options/GameManager.cs
1,839
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("Pandaros.Settlers")] [assembly: AssemblyDe...
40
84
0.75
[ "MIT" ]
dgmiller1/Malient-Settlers
Pandaros.Settlers/Pandaros.Settlers/Properties/AssemblyInfo.cs
1,363
C#
namespace Machete.HL7.Tests.QueryTests { using NUnit.Framework; using Testing; using TestSchema; [TestFixture] public class LayoutQueryTests : HL7MacheteTestHarness<TestHL7Entity, HL7Entity> { [Test] public void Should_be_able_query_layout() { const...
49.368421
225
0.621061
[ "Apache-2.0" ]
AreebaAroosh/Machete
src/Machete.HL7.Tests/QueryTests/LayoutQueryTests.cs
8,444
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...
29.196429
111
0.654434
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/Organizations/Generated/Model/EnablePolicyTypeResponse.cs
1,635
C#
using System; namespace FloatOrDouble { class FloatOrDouble { static void Main() { double a = 34.567839023; float b = 12.345f; double c = 8923.1234857; float d = 3456.091f; Console.WriteLine("The four variables with the ...
23.944444
144
0.50116
[ "MIT" ]
veritasbg/CSharp1
DataTypesAndVariablesHomework/FloatOrDouble/FloatOrDouble.cs
433
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.323907
169
0.631078
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ConsoleApp1/Connected Services/D365/BudgetControlRuleOverBudgetPermission.cs
18,800
C#
using SimplePenAndPaperManager.MapEditor.Entities.Buildings; using SimplePenAndPaperManager.MapEditor.Entities.Interface; using SimplePenAndPaperManager.MapEditor.Entities.Markers; using System.Collections.Generic; using System.Runtime.Serialization; using System.Windows.Ink; namespace SimplePenAndPaperManager.MapEdi...
25.086957
61
0.644714
[ "Apache-2.0" ]
dowerner/SimplePenAndPaperManager
SimplePenAndPaperManager/MapEditor/Entities/Map.cs
1,156
C#
using Common.Helpers; namespace RealmServer.PacketReader { public sealed class MSG_MINIMAP_PING : Common.Network.PacketReader { public float MapX; public float MapY; public MSG_MINIMAP_PING(byte[] data) : base(data) { MapX = ReadSingle(); MapY = ReadSin...
21.428571
86
0.595556
[ "Unlicense" ]
drolean/Servidor-WOW
RealmServer/PacketReader/MSG_MINIMAP_PING.cs
452
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using Custom.Math; namespace RayTracer2010 { class Sampler23Lerp : Sampler { public Bitmap bmp; public Sampler23Lerp(string name) { bmp = new Bitmap(name); ...
27.849057
122
0.488482
[ "MIT" ]
AlexAlbala/Alter-Native
Examples/To do/Image synthesis/RayTracer2010/RayTracer2010/Sampler23Lerp.cs
1,478
C#
using Photon.Realtime; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class NetworkToggle : MonoBehaviour { static float HEIGHT_DIFF = 30, WIDTH_DIFF = 60, START_X = -30, START_Y = 50; public static void toggle(List<RoomInfo> list) {...
49.175439
111
0.635391
[ "MIT" ]
siralpega/fourinaline
src/Scripts/NetworkToggle.cs
2,805
C#
using Microsoft.Speech.Recognition; using Microsoft.Speech.Recognition.SrgsGrammar; using Microsoft.Speech.Synthesis; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using...
30.767654
178
0.459984
[ "MIT" ]
ventaquil/SWPSD-Projekt
Cinema/MovieSeatsPage.xaml.cs
13,523
C#
// Copyright (C) 2017 History in Paderborn App - Universität Paderborn // // 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 // // U...
39.867925
148
0.600284
[ "Apache-2.0" ]
HiP-App/HiP-Forms
Sources/HipMobileUI/Container/TabContainerView.cs
10,568
C#
using Leftware.Common; using Leftware.Tasks.Core.TaskParameters; namespace Leftware.Tasks.Core; public abstract class CommonTaskBase { public TaskExecutionContext Context { get; set; } public CommonTaskInputHelper Input { get; set; } public async virtual Task<IDictionary<string, object>?> GetTaskInput(...
28.804348
101
0.646792
[ "MIT" ]
jhonnycano/Leftware-Tasks
src/Leftware.Tasks.Core/CommonTaskBase.cs
1,327
C#
using UnityEngine; using System.Collections; public class EnemyBarrels { public class Barrels { public float radiusDam = 0; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
12.173913
35
0.603571
[ "MIT" ]
aaronr4043/Pirate-In-Barrels
Assets/EnemyBarrels.cs
282
C#
using ForceOfWillCube.Droid.Implementations; using Xamarin.Forms; [assembly: Dependency(typeof(AuthenticatorService))] namespace ForceOfWillCube.Droid.Implementations { using Android.App; using Android.Content; using Android.Util; using ForceOfWillCube.Models.Users; using ForceOfWillCube.Utils; ...
36.857143
116
0.614729
[ "Apache-2.0" ]
Daniele-Tentoni/ForceOfWillCube
ForceOfWillCube.Android/Implementations/AuthenticatorService.cs
2,582
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WarOfTheWorlds { class Program { static void Main(string[] args) { var inputPath = "C:/temp/warOfTheWorlds.txt"; var results = ...
39.465116
124
0.415439
[ "MIT" ]
iansmith-uk/WarOfTheWorlds
WarOfTheWorlds/WarOfTheWorlds/Program.cs
3,396
C#
namespace BinarySerializer { /// <summary> /// Class for basic XOR operations with a single byte key /// </summary> public class XOR8Calculator : IXORCalculator { public byte Key { get; set; } public XOR8Calculator(byte key) { Key = key; } public byte XORByte(byte b) { return (byte)(b ^ Key); } } ...
21.4
58
0.654206
[ "MIT" ]
RayCarrot/BinarySerializer
src/IO/XOR/XOR8Calculator.cs
323
C#
#if !NO_RUNTIME using CustomDataStruct; using System; #if FEAT_IKVM using Type = IKVM.Reflection.Type; using IKVM.Reflection; #else using System.Reflection; #endif namespace ProtoBuf.Serializers { sealed class Int32Serializer : IProtoSerializer { #if FEAT_IKVM readonly Type expectedType; #else ...
27.381818
95
0.660027
[ "MIT" ]
Lovely-mo/DragonNest
Assets/Test/TestProtoBuffer/protobuf-net/Serializers/Int32Serializer.cs
1,508
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.Diagnostics; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Metadata; namespace Microsoft.EntityFrameworkC...
36.785714
116
0.642071
[ "Apache-2.0" ]
ChristopherHaws/efcore
src/EFCore/Diagnostics/NavigationEventData.cs
1,545
C#
namespace Microsoft.Maui { public static class CheckBoxExtensions { public static void UpdateIsChecked(this NativeCheckBox nativeCheckBox, ICheckBox check) { nativeCheckBox.IsChecked = check.IsChecked; } } }
22
89
0.777273
[ "MIT" ]
lanicon/maui
src/Core/src/Platform/iOS/CheckBoxExtensions.cs
222
C#
namespace SingleResponsibilityShapesBefore { public interface IDrawingContext { } }
13.857143
43
0.731959
[ "MIT" ]
Supbads/Softuni-Education
03. HighQualityCode 12.15/Demos/17. SOLID-Principles-in-Software-Design-Demo/SOLID-Principles-Demos/1. Single Responsibility/2.1. Before - Drawing Shape/IDrawingContext.cs
99
C#
// <copyright file="UpdateView.xaml.cs" company="Mozilla"> // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. // </copyright> using System.Diagnostics; using System.Threadin...
40.137931
230
0.638746
[ "MPL-2.0" ]
zx2c4-forks/guardian-vpn-windows
ui/src/UI/Views/UpdateView.xaml.cs
2,330
C#
// Copyright (c) Dolittle. 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.Linq; using System.Threading; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Dolittle...
42.680982
158
0.692827
[ "MIT" ]
dolittle-runtime/Runtime
Integration/Benchmarks/Events.Processing/Projections/Projection.cs
6,957
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.Diagnostics.CodeAnalysis; using System.Reflection; using Xunit; namespace System.Runtime.InteropServic...
45.587719
187
0.680393
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ComAwareEventInfoTests.cs
5,197
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace dataaccess.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( name: "ecom"); migrationBui...
33.083333
88
0.473552
[ "Apache-2.0" ]
nisal-wickramage/docker-compose-with-dotnet-api-angular-sql
src/dataaccess/Migrations/20201114155449_InitialCreate.cs
1,590
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using PlutoData.Models; namespace apisample { public class BloggingContext : DbContext { public BloggingContext(DbContextOptions<BloggingContext> options) ...
21.706897
74
0.597299
[ "MIT" ]
pluto-arch/efcore-unitofwork-and-repository
PlutoData-efcore/apisample/BloggingContext.cs
1,261
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...
74.716981
476
0.795455
[ "Apache-2.0" ]
augustoproiete-forks/aws--aws-sdk-net
sdk/src/Services/SecurityHub/Properties/AssemblyInfo.cs
3,960
C#
// Copyright (C) 2015 Google, Inc. // // 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 ...
28.747826
98
0.59755
[ "Apache-2.0" ]
dirtyarteaga/googleads-mobile-unity
source/plugin/Assets/GoogleMobileAds/Common/DummyClient.cs
6,612
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using AgileProject.DAO; namespace AgileProject.Forms { public partial c...
35.911765
154
0.62285
[ "MIT" ]
NYCCT-CST4708-SPRING20/AgileProject
AgileProject/Forms/LoginWindow.cs
2,444
C#
/* * Created by SharpDevelop. * User: Keane * Date: 7/9/2017 * Time: 8:44 PM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Windows.Forms; namespace kompare { /// <summary> /// Class with program entry point. /// </summary> internal sealed c...
18.6875
80
0.667224
[ "MIT" ]
keanemcgough/Kompare
kompare/Program.cs
600
C#
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // 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 co...
36.258621
78
0.689491
[ "BSD-3-Clause" ]
BrandonLegault/NLog
src/NLog/Layouts/CsvQuotingMode.cs
2,103
C#
using System; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Microsoft.DecisionService.Logging { public class EventHubSendClient : IDisposable { private readonly string path; private HttpClient httpClient; public EventHubSendCl...
32.811765
177
0.5891
[ "BSD-3-Clause" ]
eisber/vowpal_wabbit
decision_service/logging/http/csharp/EventHubClient.cs
2,789
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> //--...
41.702381
173
0.591493
[ "MIT" ]
RenilsonSantana/TCC_Honibus
Honibus/Honibus2/Honibus/Honibus/Properties/Resources.Designer.cs
3,505
C#
using System; using System.Collections; using System.Globalization; using System.Linq.Expressions; using System.Reflection; namespace Ploeh.AutoFixture.Kernel { /// <summary> /// Encapsulates a command that binds a property or a field to a value. /// </summary> /// <typeparam name="T"> ...
40.813008
125
0.56743
[ "MIT" ]
amarant/AutoFixture
Src/AutoFixture/Kernel/BindingCommand.cs
10,042
C#
using System; using System.Threading; using System.Threading.Tasks; namespace AsyncDemo { class Program { async static Task Main() { for (int i = 0; i < 10; i += 1) { Console.WriteLine(i); await Task.Delay(1000); } } } }
13.421053
34
0.6
[ "MIT" ]
sedc-codecademy/skwd8-niwd1-wdel6
AsyncDemo/Program.cs
257
C#
using CyberCAT.Core.Classes.Mapping; using CyberCAT.Core.Classes.NodeRepresentations; namespace CyberCAT.Core.Classes.DumpedClasses { [RealName("SInventoryOperationData")] public class SInventoryOperationData : GenericUnknownStruct.BaseClassEntry { [RealName("itemName")] public TweakDbId It...
29
78
0.676951
[ "MIT" ]
Deweh/CyberCAT
CyberCAT.Core/Classes/DumpedClasses/SInventoryOperationData.cs
551
C#
using System; using System.Collections.Generic; using System.Text; namespace P01.Stream_Progress { public class StreamProgressInfo { private IProgressable file; public StreamProgressInfo(IProgressable file) { this.file = file; } pu...
19.826087
67
0.570175
[ "MIT" ]
villdimova/CSharpOOP
Lab-Solid/P01.Stream_Progress_Refactored/StreamProgressInfo.cs
458
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("My...
37.486486
84
0.743331
[ "MIT" ]
MSDEVMTL/2015-11-10-EAP
MyCache/Properties/AssemblyInfo.cs
1,390
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServerThreatment.Results { public class DCLoginResult { public bool IsSucceed { get; set; } public string RoomKey { get; set; } public string UserName { get; set; }...
23.5
44
0.68997
[ "MIT" ]
NucleusDE/danmaku-chatting
danmaku-chating/ServerTheatment/Results/DCLoginResult.cs
331
C#
using System; using CefSharp; using Norma.Eta; namespace Norma.Models.Browser { // CefSharp Settings internal static class CefSetting { internal static void Init() { var settings = new CefSettings { CachePath = NormaConstants.CefCacheDir, ...
36.435897
88
0.606615
[ "MIT" ]
mika-f/Norma
Source/Norma/Models/Browser/CefSetting.cs
1,423
C#
using Playnite.Common; using Playnite.Plugins; using Playnite.SDK; using Playnite.SDK.Plugins; using Playnite.Services; using Playnite.Windows; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; usi...
38.471239
188
0.52723
[ "MIT" ]
FenDIY/Worknite
source/Playnite.DesktopApp/ViewModels/AddonsViewModel.cs
17,391
C#
#pragma checksum "C:\Users\Dave\source\repos\CasuallyCoding\InterviewTasks\RockPaperScissors\RockPaperScissors.App\Views\_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "12856a20732f5bfd5ae9333d3401e00e00a285fe" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razo...
51.54
225
0.776872
[ "MIT" ]
casuallycoding/RockPaperScissors
RockPaperScissors.App/obj/Debug/netcoreapp3.1/Razor/Views/_ViewImports.cshtml.g.cs
2,577
C#
using ComercioDigital.DTOs.Productos.Moda; using ComercioDigital.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComercioDigital.Servicio.DB.Productos { public static class DBCalzados { public static void CargarCalzad...
38.44
157
0.651058
[ "MIT" ]
vgdobon/ComercioDigital
ComercioDigital/ComercioDigital/Servicio/DB/Productos/DBCalzados.cs
2,885
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Apartmant.Database.ApartmentDataSetTableAdapters; namespace Apartmant.UserInterface.Services { public partial class ChangeCh...
40.035398
204
0.538019
[ "MIT" ]
isman-usoh/apament-management-system
Apartmant/UserInterface/Services/ChangeCheckOutUI.cs
4,752
C#
using BeetleX.Buffers; using System; using System.Collections.Generic; using System.Text; namespace Infinispan.Hotrod.Core.Commands { public class GET<K, V> : CommandWithKey<K> { public GET(Marshaller<K> km, Marshaller<V> vm, K key) { Key = key; KeyMarshaller = km; ...
31.125
100
0.605087
[ "Apache-2.0" ]
infinispan/Infinispan.Hotrod.Core
src/InfinispanCommands/GET.cs
1,496
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using HyoutaUtils; namespace HyoutaTools.Gust.g1t { public class g1tTexture { public byte[] Data; public uint Width; public uint Height; public byte Mipmaps; public Textures.TextureFormat Format; uint ...
32.477612
117
0.667739
[ "MIT" ]
AdmiralCurtiss/HyoutaTools
HyoutaToolsLib/Gust/g1t/g1t.cs
4,354
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class ISpawnTreeScriptedDecorator : ISpawnTreeDecorator { public ISpawnTr...
31.521739
139
0.753103
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/ISpawnTreeScriptedDecorator.cs
703
C#
namespace TerribleBankInc.Models.OperationResults { public class OperationResult { public bool IsSuccess { get; set; } public string Message { get; set; } } }
23.375
50
0.652406
[ "MIT" ]
ecraciun/TerribleBankInc
src/TerribleBankInc/Models/OperationResults/OperationResult.cs
189
C#
using System.Text; using DBreeze; using NBitcoin; using Stratis.Patricia; using Stratis.SmartContracts.Core; using Stratis.SmartContracts.Core.State; using Stratis.SmartContracts.Core.State.AccountAbstractionLayer; using Xunit; using MemoryDictionarySource = Stratis.Patricia.MemoryDictionarySource; namespace Stratis....
46.437722
126
0.653996
[ "MIT" ]
DennisAMenace/X42-FullNode
src/Stratis.Bitcoin.Features.SmartContracts.Tests/StateRepositoryTests.cs
13,051
C#
// ===================================================================== // File: ErrorCodes.cs // Summary: Contains helper types for building queries. // ===================================================================== // // This file is part of the Microsoft CRM SDK Code Samples. // // Copyright (C) Microso...
110.890713
496
0.803288
[ "MIT" ]
Bhaskers-Blu-Org2/Dynamics365-Apps-Samples
samples-from-msdn/Attributes/SDK Helper Code/ErrorCodes.cs
729,937
C#
using System.Net; using Skybrud.Essentials.Http; using Skybrud.Social.Toggl.Exceptions; namespace Skybrud.Social.Toggl.Responses { /// <summary> /// Class representing a response from the Toggl API. /// </summary> public class TogglResponse : HttpResponseBase { /// <summary> /// Init...
34.166667
117
0.628571
[ "MIT" ]
abjerner/Skybrud.Social.Toggl
src/Skybrud.Social.Toggl/Responses/TogglResponse.cs
1,437
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.IO; namespace Microsoft.CodeAnalysis.Shared.Utilities { internal abstract clas...
25.578947
71
0.709877
[ "MIT" ]
333fred/roslyn
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Utilities/TextReaderWithLength.cs
488
C#
/** * Copyright (c) 2019 LG Electronics, Inc. * * This software contains code licensed as described in LICENSE. * */ using System; using System.Text; using System.Collections.Generic; using System.IO; using System.Linq; using UnityEngine; using Simulator.Map; using Unity.Mathematics; using Utility = Simulator.Uti...
44.814849
180
0.578672
[ "Apache-2.0", "BSD-3-Clause" ]
HansRobo/simulator
Assets/Scripts/Editor/ApolloMapImporter.cs
48,893
C#
using System; using System.Collections.Generic; using System.Text; using TuShareHttpSDKLibrary.Attributes; namespace TuShareHttpSDKLibrary.Model.NewslettersLong { /// <summary> /// 接口:major_news<br/>描述:获取长篇通讯信息,覆盖主要新闻资讯网站<br/></br>限量:单次最大60行记录,如果需要扩大数量请在QQ群私信群主。<br/></br>积分:用户积累120积分可以调取试用,超过5000无限制,具体请参阅 ...
27.514286
133
0.57217
[ "Apache-2.0" ]
PasuHx/TuShareHttpSDK
TuShareHttpSDKLibrary/Model/AlternativeData/Newsletters(Long)/MajorNewsResponseModel.cs
1,169
C#
 using System; namespace PuertsStaticWrap { public static class UnityEngine_Matrix4x4_Wrap { static UnityEngine.Matrix4x4 HeapValue; [Puerts.MonoPInvokeCallback(typeof(Puerts.V8ConstructorCallback))] unsafe private static IntPtr Constructor(IntPtr isolate, IntPtr info, int paramL...
39.440248
435
0.477701
[ "MIT" ]
Kyle2Chan/KM
Assets/Scripts/Gen/UnityEngine_Matrix4x4_Wrap.cs
76,240
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Xml; namespace DatAdmin { public partial class AddQueryToFavoriteForm : FormEx { XmlDocument m_context; ...
29.701923
139
0.549369
[ "MIT" ]
dbgate/datadmin
DatAdmin.Core/AllFeatures/Forms/AddQueryToFavoriteForm.cs
9,269
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V231.Segment; using NHapi.Model.V231.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V231.Group { ///<summary> ///Represents the PPR_PC1_GOAL_OBSERVATION Group. A Group...
28.150376
163
0.643162
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V231/Group/PPR_PC1_GOAL_OBSERVATION.cs
3,744
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...
39.216216
85
0.728463
[ "MIT" ]
waiq321/POS
ERPWorking/ERPApp.Infrastructure/Properties/AssemblyInfo.cs
1,454
C#