Datasets:

blob_id
large_stringlengths
40
40
language
large_stringclasses
1 value
repo_name
large_stringlengths
5
119
path
large_stringlengths
4
271
score
float64
2.52
4.84
int_score
int64
3
5
text
stringlengths
26
4.09M
68774fdf05ad5817f7acfb313f7e078610d65750
C#
FadiaAlbadry/CIS405-PROJ
/KP Alg Greedy v. KP Alg DP/Time Plots/TimePlotProgram.cs
3.28125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using KP_Alg_Greedy_v._KP_Alg_DP; namespace Time_Plots { class TimePlotProgram { static void Main(string[] args) { //Vars long worstCaseTime = 0; long avgCaseTime = 0;...
0ea7abd4bc09110b793228788fe87cbc816d3b6a
C#
psychochou/Design
/Form1.cs
2.640625
3
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.Text.RegularExpressions; using System.Globalization; using Shared; using System.IO; using ZX...
4c542b372ffe476f22227a4dda257e6cd4e32720
C#
MathieuHerranzPerez/HexaTowerDef
/Assets/Scripts/Turret/BulletTurret.cs
2.546875
3
using UnityEngine; public abstract class BulletTurret : ShootingTurret { [Range(0.05f, 20f)] [SerializeField] protected float fireRate = 1f; [SerializeField] protected GameObject bulletPrefab; // ---- INTERN ---- protected float fireCountdown = 0f; protected bool canShoot = true; ...
18f6867a6b00976dcc5fa31e4e5f254eef06f4ad
C#
Seshasreet/assignment2
/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace doublelinked { class Program { static void Main(string[] args) { Double ob = new Double(); int ch, ele = 0, pos, flag; ...
201bc19913f502237aae5562cd6b49d1754eead2
C#
rareskog/playoff-pickem-scorer
/PostseasonPickEmScorer/WildcardRoundScorer.cs
2.796875
3
namespace PostseasonPickEmScorer { public class WildcardRoundScorer { private readonly string _winningTeam; public WildcardRoundScorer(string winningTeam) { _winningTeam = winningTeam; } public int ScoreFor(string pickedTeam) { ...
68534893d097798b2a11d8a0ea9d48094332de3d
C#
Iona777/portal
/BasicFrameworkTwo/Pages/LoginPage.cs
2.796875
3
using System; using OpenQA.Selenium; using BasicFrameworkTwo.Utilities; //Location of Driver class namespace BasicFrameworkTwo.Pages { class LoginPage : BasePage { //Constructor //It will just use the one from BasePage unless it needs something extra. //WebElements ...
8ecb22522d0bc6a31356fc1c1dbb152196e8f2e9
C#
Autofire/Execute-R
/Assets/Scripts/VR/OverridePlayerMovement.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class OverridePlayerMovement : MonoBehaviour { public enum Axis : int { X = 0, Y = 1, Z = 2 } public float moveSpeed; public string hAxisName = "Horizontal"; public string vAxisName = "Vertical"...
6116f8b5c210c4030e395a7325359a00bc01e67e
C#
JoshOtter/The-Tech-Academy-C-Sharp-and-Unity-Projects
/ExceptionAssignment/Program.cs
3.78125
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<int> dividends = new List<int>() { 2, 4, 12, 15, 27, 36, 54 }; try { Console.WriteLine("Pick a number to divide each number in the dividends list."); ...
f95ce5339201f51d3cb041e6a80668b936c9019c
C#
FranRM/FormacionASP.Net
/MVC/PracticaMVC/Controladores/ErrorController.cs
2.765625
3
using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace PracticaMVC.Controladores { public class ErrorController : Controller { private readonly ILogger _logger; public ErrorController(ILogger<ErrorController> logger) { ...
bb1b350f73e1853b22ece4176da75dbfc433670f
C#
lincolnyu/gozeleme
/FileMatcher/FileMatcher/FileScanner.cs
3.234375
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; namespace FileMatcher { /// <summary> /// enumerates all files in the specified starting directory and its subdirectories /// </summary> public class FileScanner : IEnume...
d4ca71ee440b2d5e2ffe36dcdc58a012a9c0c321
C#
DavidckPixel/GreenLight_Informatica_UU
/GreenLight/GreenLight/src/Roads/Lanes/DrivingLane.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace GreenLight { // All Curved- and DiagonalRoads have a list of these DrivingLanes, a driving lane consists of a list of LanePoints // Each object from this class al...
39de9cd762c76a8fd1ef52df01ece375f043b35c
C#
WojciechNagel/AlkoRank
/WebApplication11/Models/Wino.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Entity; using System.Linq; using System.Web; namespace WebApplication11.Models { public class Wino { public int WinoId { get; set; } public string Nazwa { get; set; } [Sprawdz...
a6ccf3efcc75cfecbaec3b6deba5f7278678a857
C#
itsthekeming/percolate
/src/Percolate/Builders/PercolateTypeBuilder.cs
2.859375
3
using Percolate.Models; using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace Percolate.Builders { public class PercolateEntityBuilder<TEntity> where TEntity : class { public PercolateEntityBuilder() { Model = new PercolateType<TEntity>(...
51a9d3fda232b71bf40407083d48bc3f8c48ba80
C#
Nikpds/Skill-Test-Project-Address-Book
/AddressBook/AddressBook.Api/Services/DomainToViewMaps.cs
2.859375
3
using AddressBook.Api.Models; using AddressBook.Api.Views; using System.Linq; namespace AddressBook.Api.Services { public static class DomainToViewMaps { public static UserView UserToView(this User user) { return new UserView() { Id = user.Id, ...
c541cd0ff5a5565be442ed20a36636964ca7c35c
C#
megha18walia/CSharpExample
/Threading/ThreadingNew/ThraedingNew/ThreadingStatic/Cart.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ThreadingStatic { public class Cart { public Cart() { GroceryItems = new GroceryItem[10]; GroceryItems[0] = new GroceryItem("Milk", 1.00f); ...
9797dd000b8c55cdef464735a4b0a540149669cc
C#
JuliaSlipchuk/BookingUZ
/Booking.DataAccess/Repositories/TrainRecurringRepository.cs
2.78125
3
using Booking.DataAccess.RepoInterfaces; using Booking.DataAccess.Repositories; using Booking.Models.DBModels; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booking.DataAccess.Repositories { public class Trai...
b66a43ce12a828ce254cc5a773d2969ed80ecbae
C#
emurillojr/SofiasGrill
/App_Code/TableCS.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Security.Cryptography; using System.Data; using System.Data.SqlClient; using System.Configuration; // Table Class to pull from DB table by ID namespace SE256demoWEEK1 { public class TableCS { ...
3775cf3dc2debc6ae76dcded6c5024829fa01d71
C#
SorenZ/DataFramework
/src/DF.Core/Contracts/IRepository[TAggregate,TKey].cs
2.625
3
using DF.Core.Models; namespace DF.Core.Contracts { /// <summary> /// Represents a generic repository. /// </summary> public interface IRepository<TEntity, in TKey> : IRepository<TEntity> where TEntity : IEntity<TKey> { /// <summary> /// Gets an item by its key. ///...
f3810f4782149ac8cb8d9d1c33c5e4326d084a39
C#
personalnexus/ShUtilities
/Collections/SortedListExtensions.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; namespace ShUtilities.Collections { public static class SortedListExtensions { /// <summary> /// Copies the elements below and above the <paramref name="pivot"/> element in <paramref name="list"/> into the given spans. ...
c9bc926185386d3f9b54c48d4fee347f927c2e92
C#
anfavretto/AnalisadorLexico
/AnalizadorLexico/Token.cs
2.9375
3
namespace AnalizadorLexico { public abstract class Token { public TokenType Type { get; set; } public Token(TokenType type) { this.Type = type; } public abstract string GetValue(); } }
cd901b77ee30168621fed3fd2380d62de91465a9
C#
eto4detak/Kingdom
/Assets/Scripts/Game/Tumbler.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Tumbler : Singleton<Tumbler> { public Button tumbler; public TublerState state; private Text txtTubler; protected void Start() { txtTubler = tumbler.GetComponentInChildren<T...
a8a49eed2429676f9db4bc5d9a6f4a65cb41a742
C#
MercuryNuGet/SuperTuples
/SuperTuples.Test/JsonSerializationTests.cs
3.109375
3
using Mercury; using Newtonsoft.Json; using NUnit.Framework; namespace SuperTuples.Test { public sealed class JsonSerializationTests : MercurySuite { protected override void Specifications() { Specs += "When serializing #1 to json" .ArrangeNull() .Wi...
e8f57f958729ac5e1875f03e6478349ec99ce99a
C#
monosan9/csharp
/Wzorki/Program.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wzorki { class Program { const char CHAR = '*'; static void Star() => Console.Write(CHAR); static void StarLn() => Console.WriteLine(CHAR); static void...
2dd7cd868387ceedb122ca934bc32087c7bc06db
C#
HospitableHost/CSharpHomeWork
/The first week/Windows Version/Form1.cs
3.0625
3
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; namespace 四则运算计算器窗体版 { public partial class 四则运算计算器 : Form { public 四则运算计算...
fe59ef528e92f0121d4a19c301b0308dfbb162d5
C#
Michael-BCM/First-Person-Controller
/First Person Shooter/Assets/Imports/Utilities/Billboarder.cs
3.09375
3
using UnityEngine; /// <summary> /// Place this MonoBehaviour onto an object to enable billboarding around the selected axis. /// </summary> public class Billboarder : MonoBehaviour { /// <summary> /// If true, this object will rotate around the 'x' axis. /// </summary> [Header("Axes to rotate around...
b3ca63d424b379bfeef25dc3575238165c33efa3
C#
dotnet/dotnet-api-docs
/snippets/csharp/System.Net/HttpWebResponse/StatusCode/httpwebresponse_statuscode_statusdescription.cs
3.5
4
// System.Net.HttpWebResponse.StatusCode; System.Net.HttpWebResponse.StatusDescription /* This program demonstrates the 'StatusCode' and 'StatusDescription' property of the 'HttpWebResponse' class. It creates a web request and queries for a response. */ using System; using System.Net; class HttpWebResponseSnippet {...
fd595b514f5a4862e42ec4fb009eea9ce2878a0f
C#
yifangyun/fangcloud-csharp-sdk
/Yfy.Api/Utils/StreamHelper.cs
3.125
3
namespace Yfy.Api { using System.IO; internal static class StreamHelper { public static void CopyStream(Stream input, Stream output, int bufferSize = 4096) { byte[] buffer = new byte[bufferSize]; int read; while ((read = input.Read(buffer, 0, buffer.Len...
fc40caa9871b9575ef09c69c1d62d3121af8f68d
C#
paillave/Etl.Net
/src/Paillave.Etl.GraphApi/Provider/Writers/EqualsMethodWriter.cs
2.515625
3
using System; using System.Linq.Expressions; namespace Paillave.Etl.GraphApi.Provider.Writers; public class EqualsMethodWriter : IMethodCallWriter { public bool CanHandle(MethodCallExpression expression) { return expression.Method.Name == "Equals"; } public string Handle(MethodCallExpression ...
19d893332532db2286633124b24cc8831e0982e0
C#
vish35/FoodOrdering
/Models/ShoppingCart.cs
2.78125
3
using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Foodordering.Models { public class ShoppingCart { private readonly Foodorderi...
24d634e6f30e29f1fbfc29de5288b00b5aad6f8d
C#
vee-infosys/Yort.AfterPay.InStore
/src/Yort.AfterPay.InStore.Shared/AfterPayApiError.cs
2.578125
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace Yort.AfterPay.InStore { /// <summary> /// Represents an error response from the AfterPay API. /// </summary> /// <remarks> /// <para>See the AfterPay documentation for more information; https://docs.afterpay.com.au...
2c25dc92f907b034e0302258b6dfb003fe18962b
C#
Xicy/Comidat
/Comidat.Runtime/Runtime/Command/Command.cs
3.109375
3
using System; namespace Comidat.Runtime.Command { /// <summary> /// Command returns /// </summary> public enum CommandResult { /// <summary> /// Command is successfull /// </summary> Okay, /// <summary> /// command failed /// </s...
a96aed3867390d73358290ac3c7a559154d0e8ec
C#
Saint-of-Grey/RimworldGastroliths
/Source/Constants.cs
2.84375
3
using RimWorld; using Verse; namespace Gastroliths { class Constants { public static bool is_animal(Pawn pawn) { return pawn.RaceProps.Animal; } public static Thing makeGastrolith() { ThingDef what = Constants.whatGastrolith(); if (...
506a96662ed7a789e17883475d469fff3d0eadab
C#
iorilan/aspnetcore101
/16-DI/DIWithAutofac/GreetingService2.cs
3.390625
3
namespace DIWithAutofac { public class GreetingService2 : IGreetingService { public string Greet(string name) { var greet = ""; var h = System.DateTime.Now.Hour; if(h < 12){ greet = "Morning"; } else if(h >= 12 && h < 18){ ...
74f3af2a35fd4f5357edbee4f31f77a6350003bd
C#
mnasif786/Safe-Check
/EvaluationChecklist/EvaluationChecklist.Generator/Mappers/ConsultantMapper.cs
2.640625
3
using System; using System.Linq; using System.Collections.Generic; using BusinessSafe.Domain.Entities.SafeCheck; using EvaluationChecklist.Models; namespace EvaluationChecklist.Mappers { public static class ConsultantMapper { public static ConsultantViewModel Map(this Consultant consultant) {...
16a4084275a5c8e25d17576d47d2b8d9f6f12b2c
C#
JornWildt/Ramone
/Ramone/Utility/MethodDescription.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ramone.Utility { public class MethodDescription { public string Method { get; protected set; } public bool BodyAllowed { get; protected set; } private MethodDescription(string method, bool body...
2750ec2ee9cfc187900ddf28b0e17262e11b7824
C#
AndyRobbAVT/RestfulTravelClub
/Infrastructure/RouteLinker.cs
2.75
3
using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Web.Http.Controllers; namespace Infrastructure { public class RouteLinker : IResourceLinker { private readonly ContextWrapper _contextWrapper; public RouteLinker(ContextWrapper contextWrapper...
2332bacf46e328c60b6de050826f51c0c1237c8f
C#
mavrovski/SoftUni
/Programming Basics - Exercises/07.Advanced Loops/01. Numbers 1...N with Step 3.cs
2.703125
3
using System; public class Program { public static void Main() { int n = int.Parse(Console.ReadLine()); for(int i = 1;i<=n;i+=3) { Console.WriteLine(i); } } }
f47d355e7902642cd792f06543de93639a5a124f
C#
russjudge/ArtemisModLoader
/ArtemisComm/ShipActionSubPackets/SetStationSubPacket.cs
2.84375
3
using log4net; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace ArtemisComm.ShipActionSubPackets { public class SetStationSubPacket : IPackage { //**CONFIRMED public static Packet GetPacket(StationTypes station, bool isSel...
ca66a3c63014124d93da7a099c82b6351c803f64
C#
suterds/VR-Game-Virtual-Runners
/Virtual Runners/Assets/Scripts/Tools/ToolCollideWithObstacle.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // Script Purpose: Detect when the tool has collided with a trigger collider attached to an obstacle with a ToolEnter.cs script component // If the CollidedObject does have a ToolEnter.cs script, an Event will be sent to the Subscribed...
9e11d4023a7b93d9a3119f7f9efe5dd329b41f5b
C#
elindanielsson/Nybus
/src/engines/Nybus.Engine.RabbitMq/RabbitMq/BufferSubject.cs
2.859375
3
using System; using System.Collections.Generic; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading; namespace Nybus.RabbitMq { public class BufferSubject<T> : ISubject<T> { private readonly Subject<T> _subject = new Subject<T>(); ...
9b967c8d88f136a44d30b6707baf7487256adbd7
C#
autofac/Autofac
/src/Autofac/Util/Enforce.cs
2.703125
3
// Copyright (c) Autofac Project. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Globalization; using System.Reflection; namespace Autofac.Util; /// <summary> /// Helper methods used throughout the codebase. /// </summary> internal stati...
fa309f424c2de4e6b6b22e93a95d8c0a3a05bc04
C#
aristeoibarra/HackerRank_Exercises
/Exercises/Abstract Classes/Book.cs
3.09375
3
namespace Abstract_Classes { abstract class Book { protected string title; protected string author; public Book(string title, string author) { this.title = title; this.author = author; } public abstract void Display(); } }
e6443fc91800bc2326133f1cc188ded47d28b32e
C#
JosephZhu1983/WcfExtension
/QuickStart/QuickStart.Demo.Client/Program.cs
2.65625
3
namespace QuickStart.Demo.Client { using System; using System.Threading; using QuickStart.Services.Interface; using WcfExtension; class Program { protected static void Main(params string[] args) { Console.WriteLine("Wait 3 seconds"); Thread.S...
c3e524cd09e3f84e07db7ea287d384981e9f1b97
C#
devdor/SQLiteORMapper
/src/Dto/Category.cs
2.703125
3
using System; using System.ComponentModel.DataAnnotations.Schema; namespace SQLiteORMapper.Dto { [Table("category")] public class Category : AbstractDataItem { #region Fields and Properties [AppColumn("name")] public string Name { get; set; } ...
7a0c93112a843abadeb7f05ff27f497de867159f
C#
darshanrampatel/Advent-of-Code-2017
/AoC2017.Tests/Day13Test.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace AoC2017.Tests { public class Day13Test { [Theory] [InlineData(@"0: 3 1: 2 4: 4 6: 4", 24)] public void Part1(string input, int output) { var result = Day13.Part1(input); ...
54d10cd7a8af2d8e634b68b710c9bcefcdc9a2a6
C#
AndreYamasaki/Exercicio_23
/Exercicio_23/Exercicio_02.aspx.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Exercicio_23 { public partial class Exercicio_02 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { /* ...
a888d66be91a90e7db074c550cbbf844749d8251
C#
PracticaNetRom/andreea.mateiasi
/SummerCamp2017/API/DataAccess/CategoryMap.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace API.DataAccess { public class CategoryMap : EntityTypeConfiguration<Category> { public CategoryMap() {...
fc765217e4611d2f5a840f038f84baff0bf9203c
C#
leith-bartrich/libplatform
/Platform.cs
2.9375
3
//Copyright (C) 2011, FIE LLC. //See LICENSE.TXT for details. using System; using System.Diagnostics; namespace libplatform { /// <summary> /// Utility class. Helps deal with platform detection and possibly platform specific functionality. /// We're not going to simplify this to the point that we just re...
b734874e4d06fa95e03f3cb301b6a4129929a2e0
C#
Technology-Community/Computer-Timer-manager
/ShutDown/ShutdownManager/frmSelectMonth.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace ShutdownManager { public partial class frmSelectMonth : Form { public frmSelectMonth() { InitializeComponen...
76d17c4c91cb6d4b9d29d9516b1064812832edd6
C#
rkaszczuk/NETCoreCourseSamples
/07_MethodChaining/Samples/OrderCompositionSample.cs
3.5625
4
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace _07_MethodChaining.Samples { public enum PaymentOptions { Cash, CreditCard, BankTransfer} public class Product { public string Name { get; set; } public decimal Price { get; set; } } pub...
3ceda5ac12fa361ed0a09de6f0d3de8090dd2a1a
C#
twilio/twilio-csharp
/src/Twilio/Types/OutboundSmsPrice.cs
2.78125
3
using System.Collections.Generic; using Newtonsoft.Json; namespace Twilio.Types { /// <summary> /// POCO to represent an outbound SMS price /// </summary> public class OutboundSmsPrice { /// <summary> /// SMS mcc /// </summary> [JsonProperty("mcc")] public s...
e48640e098b9df7c5c3d5cb5b7cc50607337a28e
C#
ShemSkillman/AIN254-TankShooter3D
/TankShooter3D/Assets/Scripts/Core/GameSession.cs
2.640625
3
using System.Collections; using UnityEngine; using TankShooter.Combat; namespace TankShooter.Core { public class GameSession : MonoBehaviour { [SerializeField] int pointsPerKill = 15; [SerializeField] Health player; public int Kills { get { return kills; } } public int TotalSc...
c0a0d2bff90f2988beb4d279d30cfd17ec66b225
C#
spacecalm/csharpsortarray
/ConsoleExt.cs
3.03125
3
namespace System.ConsoleExt { public static class ConsoleExt { public static void WriteArrayIFormattable<T>(T[] array) where T : IFormattable { for (int i = 0; i < array.Length; i++) { Console.Write(array[i]); if (i != array.Length - 1) ...
52e65d2b262819322177c84e4e59d8524be987db
C#
UNFDanmark/GDC2017-GR9
/Raft Adventures/Assets/Scripts/CameraScript.cs
2.515625
3
using UnityEngine; using System.Collections; public class CameraScript : MonoBehaviour { Camera cam; private GameObject selectedGameObject; Rigidbody thisRigidbody; float distance; // Use this for initialization void Start() { cam = GetComponent<Camera>(); } // Update is called once per frame void Upda...
d76e68a5dbdd8174939e281fc0f9a09420b54e5a
C#
g-mirchev/A-Tailor-s-Tale-of-Shoemaking
/Assets/Scripts/Ending.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ending { private string endTitle; public string EndTitle { set{endTitle = value;} get{return endTitle;} } private string endStory; public string EndStory { set{endStory = value;} get{return endStory;} } priv...
feccc331685095d10c3861adb50323bbff6b7d78
C#
jedimastermaniac/ValheimMapMerge
/ValheimMapMerge/MainWindow.xaml.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace ValheimMapMerge { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> /// public partial class MainWindow : Window ...
6f7eebf61ed23a113297c962f7533628e349f7a0
C#
PointmanDev/WePay.NET
/WePay.NET/Account/Structure/Balances.cs
2.671875
3
using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; using WePay.Shared; namespace WePay.Account.Structure { /// <summary> /// The balances structure contains information on the account balances and automated withdrawals. /// Accounts can have multiple balances (one for each currency they s...
33b0d4b2224ee500a2d53a37a31f71550b6cba6a
C#
OstapTsizh/ChatBot
/Services/NotificationService/NotificationService.cs
2.8125
3
using Services.NotificationService.Interfaces; using System; using System.Collections.Generic; using System.ServiceProcess; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Services.NotificationService { public class NotificationService : ServiceBase { private readonl...
cc183368b7da016464e609f7913ba8dad368c244
C#
jporter7/YCP-RT-ControlRoom
/ControlRoomApplication/ControlRoomApplication/Entities/SpectraCyber/SpectraCyberConfig.cs
2.84375
3
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ControlRoomApplication.Entities { [Table("spectracyber_config")] [Serializable] public class SpectraCyberConfig { public SpectraCyberConfig(SpectraCyberModeTypeEnum mode, Sp...
fb21f73e2f584bad6707c17fbb4191a796c11155
C#
VoThiThao/my-first-project
/QuanLyTaiKhoan/QuanLyTaiKhoan/UserDao.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Data.SqlClient; using System.Data; namespace QuanLyTaiKhoan { public class UserDao { string connectionString = ConfigurationManager.ConnectionStrings["CN_Net"].ConnectionString...
86476270a169800857edc22013a9f4696281a9c5
C#
always-on/always
/plugins/rummy-plugin/Rummy.Game/LayOffMove.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Rummy { public class LayOffMove : Move { private readonly Card _card; public Card Card { get { return _card; } } private readonly Meld _meld; public Me...
98724e617cf7b7986ba1559e80efb6c7ca7c5be9
C#
PontusIvarsson/Softinsight
/src/Services/Blogging/Blogging.Tests/Domain/Hashtag.cs
2.75
3
using Blogging.Domain.BlogAggregate; using System; using Xunit; namespace Blogging.Tests.Domain { [Trait(TestHelper.TestType, TestHelper.UnitTest)] public class HashtagShould { [Fact] public void BeCreated() { Hashtag sut = new Hashtag("test"); Assert.Equal...
99707f4185af6ec16e7c1e5ba878dbe3b185f5a2
C#
cofie27/AB-Geometrie1
/Kreis.cs
3.34375
3
using System; using System.Collections.Generic; using System.Text; namespace AB_Geometrie1 { class Kreis { private int Radius; private double Durchmesser; private double Umfang; private double Flaeche; public Kreis() { Radius = 1; Durchm...
3a0f965dbfaacfcbd7c73cbaf40c74815b6eb3e1
C#
shendongnian/download4
/code3/403462-8987579-20344698-2.cs
2.75
3
using System; using System.IO; using System.Threading; using System.Windows; namespace Node { class Program { public static void Main() { var app = new Application(); app.Startup += ServerStart; app.Run(); ...
6ab78590bef095d2ab54e0d3d4d8f632884e9bce
C#
s00132263/Worksheet1
/Worksheet1/pages/WS1b.cshtml.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Worksheet1.pages { public class WS1bModel : PageModel { public string Message { get; set; } [BindProperty] ...
2dd962ac25c1ccb6b62625cc4a2b19ee49a0d562
C#
rozek1szymon/LeetCode
/C#LeetCode/Reverse String/Reverse String/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Reverse_String { public class Solution { public void ReverseString(char[] s) { s = s.Reverse().ToArray<char>(); } } class Pro...
3fb9bcc53263068ce9a14ecb784b591cbf47e425
C#
steve600/VersatileMediaManager
/Source/Infrastructure/VersatileMediaManager.Communication/Enigma2/Enigma2WebInterfaceDataAdapter.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using VersatileMediaManager.Communication.Interfaces; namespace VersatileMediaManager.Communication.Enigma2 { public enum Enigma2We...
cc8c17455b262774791536f8d9fc7cd76c96cbfd
C#
nahidhasanswe/AngularjsTokenAuthentication
/AngularjsTokenAuthentication/App-Code/CreateFromNumbers.cs
2.796875
3
using AngularjsTokenAuthentication.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; namespace AngularjsTokenAuthentication.App_Code { public static class CreateFromNumbers { public static string FromNumber(NumberSection ...
93cb233799df8edadffeb0777aa92b77f412a223
C#
shendongnian/download4
/code11/1950339-59196362-210614361-2.cs
2.765625
3
c# services .AddEntityFrameworkSqlServer() .AddScoped<IMigrationsSqlGenerator, SchemaMigrationsSqlGenerator>() .AddScoped<MigrationsSqlGenerator, SqlServerMigrationsSqlGenerator>() .AddDbContext<AppDbContext>((serviceProvider, sqlOpt) => { sqlOpt.UseInternalServiceProvider(serviceProvider) ...
8071ab31c2785c10f532f6b224aef3bd19bf5fb3
C#
TheBerkin/Devcom
/Devcom/PropertyConvar.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace DeveloperCommands { /// <summary> /// Represents a convar bound to a static property. /// </summary> public sealed class PropertyConvar : Convar { ...
618150e8d0f6b72e75d13c9b3b5d82801fa4a5a1
C#
lontivero/Torpedo
/test/Ed25519Tests.cs
2.5625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Torpedo; using Xunit; namespace test; public static class LinqExtensions { public static IEnumerable<IEnumerable<T>> SplitBy<T>(this IEnumerable<T> source, Func<T, bool> when) { int grouper = 0...
1e8da6bd0bb6a09103f431bcc61b179a48076229
C#
MIT-Reality-Hack-2020/A11YTK-Demo
/Assets/Scripts/SimpleGazeScript.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using A11YTK; using UnityEngine; public class SimpleGazeScript : MonoBehaviour { public Camera viewCamera; public GameObject cursorPrefab; public float maxCursorDistance = 30; public LayerMask cursorLayerMask; private GameOb...
cfb8a39260fa3c101ad4703cb7df71f60a3d6ab9
C#
serolmar/matutils
/Utilities/Parsers/IParse.cs
2.984375
3
namespace Utilities { using System; using System.Collections.Generic; using System.Linq; using System.Text; /// <summary> /// Enumeração dos níveis de erro possíveis numa leitura. /// </summary> public enum EParseErrorLevel { /// <summary> /// Erro de leitura. ...
374c3934cb7e4481765c3430c3b9f6ebd1fea5d6
C#
VowpalWabbit/reinforcement_learning
/bindings/cs/rl.net.cli/Stats.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Rl.Net.Cli { public class OnlineWelford { int count; double mean, m2; double sum; double min = double.MaxValue; double max ...
a73394879580f74152091daf7603f7fb217349e9
C#
AutomateThePlanet/AutomateThePlanet-Learning-Series
/dotnet/AutomationTools-Series/Jenkins-CSharp-Api/Services/BuildService.cs
2.53125
3
// <copyright file="BuildService.cs" company="Automate The Planet Ltd."> // Copyright 2016 Automate The Planet 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/lic...
bc268b64987f08dafc66e50d3f07bfab1c31d82c
C#
Daladwyn/Camping2000
/Camping2000/Models/IdentityModels.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace Camping2000.Models { // You can add profile...
52cd34713472a2e019926056468ebcf9ae06b2e8
C#
Simon-PJ/Design-Patterns
/DesignPatterns/Structural/Facade/DuneFacade.cs
2.546875
3
namespace DesignPatterns.Structural.Facade { /// <summary> /// Facade participant /// </summary> class DuneFacade { private readonly HouseArtreides _houseArtreides; private readonly HouseHarkonnen _houseHarkonnen; private readonly Fremen _fremen; public DuneFacade(...
0b78cf0ac3520ce2603ca3c92d920b11d00f0474
C#
MohammadmehdiKhani/BFS_AdjMatrix
/Program.cs
2.671875
3
using System; namespace BFS { class Program { static void Main(string[] args) { int[,] input = GraphHelper.Parse(@".\input.txt"); Graph graph = new Graph(input); graph.BFS(); graph.PrintTree(); } } }
f8eafa36530de7cdeb403cea4c275a7ca79044bb
C#
willianmarquesfsa/cursoCsharp
/Aula06/aula06.cs
3.3125
3
using System; class Aula06{ static void Main(){ int n1, n2, n3; n1=10; n2=30; n3=70; Console.WriteLine("n1=\t{0}, \nn2=\t{1}, \nn3=\t{2}",n1,n2,n3); double valorCompra=5.5; double valorVenda; double lucro=0.1; string produto="Pastel"; v...
c9995ca026e00095cf1efe16325195df22ce54a8
C#
makarenk0/wumpus-world
/Wumpus/AI/MultiAgent.cs
3.109375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pacman.AI { public class MultiAgent { private int[,] _map; private int _width, _height; private MinimaxTree _tree; private Diction...
f23ac06d4ae547a65015028ca69ae86b1b8ad19a
C#
MaxxWyndham/ToxicRagers
/ToxicRagers/CarmageddonReincarnation/Formats/crSetupLOL.cs
2.65625
3
using System.IO; using ToxicRagers.CarmageddonReincarnation.Helpers; namespace ToxicRagers.CarmageddonReincarnation.Formats { public enum SetupContext { Vehicle } public class Setup { SetupContext context; LUACodeBlock settings; public LUACodeBloc...
00c5c3000bb839cdb4ba25716cd85620ae732dd8
C#
andrewtovkach/EpamTraining
/Transport/Transport/Comparers/ComparerByOccupiedVolume.cs
2.9375
3
using System.Collections.Generic; using Transport.Model.Carriages; namespace Transport.Comparers { public class ComparerByOccupiedVolume : IComparer<Carriage> { public int Compare(Carriage x, Carriage y) { var carriageFirst = x as FreightCarriage; var carriageSecond = y...
25d0006f17da47ebb0910aded31497b00043a409
C#
Fur1ok/Duplicity
/src/Duplicity/Filtering/ObservableFilters.cs
2.765625
3
using System; using System.Collections.Generic; using Duplicity.Filtering.Aggregation; namespace Duplicity.Filtering { internal static class ObservableFilters { /// <summary> /// Merge changes in the given observable sequence of buffers to minimise output. /// For example, created then...
35e04d7959f84bad69d62d04e168d8bf5966557a
C#
shendongnian/download4
/code6/1133817-29860726-88980215-2.cs
3.375
3
using System; using Newtonsoft.Json; public class Program { public static void Main() { ConfigFile f = ConfigFile.Load(); f.ServerAddress = "0.0.0.0"; f.ServerPort = "8080"; f.ServerTimeout = "400"; f.Save(); } public class ConfigFile ...
0a930c5dedd5ea98fd3b9c4413bf1b8dfa604901
C#
gustavocbjunior/GameLoanManager
/Backend/GameLoanManager.Data/Maps/UserMap.cs
2.703125
3
using System; using GameLoanManager.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace GameLoanManager.Data.Maps { public class UserMap : IEntityTypeConfiguration<User> { public void Configure(EntityTypeBuilder<User> builder) {...
bc50da471b82c2c818a237d16ee3f3758a1a810c
C#
GuJlGaMesh/password_storage
/Password Storage/PasswordGenerationRules/LowerChar.cs
3.296875
3
using System; namespace Password_Storage { public class LowerChar : IGenerator { private const string lowerCase = "abcdefghijklmnopqursuvwxyz"; private readonly Random random = new Random(); public virtual int MinLength => 1; public string GetChar() => lowerCase[rand...
03bbc06c59d07ce0e9f6f8d8ecc7cc9747f5eec9
C#
team-hades/EventsSystem
/EventsSystem/EventsSystem.Server/EventsSystem.Api/Controllers/EventsController.cs
2.578125
3
namespace EventsSystem.Api.Controllers { using System.Linq; using System.Web.Http; using AutoMapper.QueryableExtensions; using EventsSystem.Api.Infrastructure.Mapping; using EventsSystem.Api.Models.Events; using Providers; using EventsSystem.Data.Data.Repositories; using EventsSystem.Data.Models; using Syst...
57df64c1e746b8b75be55f144b1d3a14b49d4d40
C#
nmitha/HelpdeskBot
/TheMakerShowBot/Controllers/MessagesController.cs
2.5625
3
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using Microsoft.Bot.Connector; using Newtonsoft.Json; using Microsoft.Cognitive.LUIS; using System.Diagnostics; using Microsoft.Bot.Builder.Dialogs; using He...
3023752115abd55a73bc261fbee88ddda4255163
C#
sandor-karajz/RobotFootball
/RobotFootball/RobotFootballGame/Ball.cs
3.140625
3
using RobotFootball.RobotFootballGame.Extensions; using RobotFootball.RobotFootballGame.Helper; using System; namespace RobotFootball.RobotFootballGame { public class Ball : GameObject { private static readonly double DRAG = 0.2; private static readonly double SHOT_SPEED = 40.0; privat...
8a6897e33ae586432e4dd6a8d7c3841c1bc40ea6
C#
rog1039/Rogero.NumberSystems
/src/Rogero.NumberSystems/Rogero.NumberSystems.Tests/AtoBTests.cs
2.96875
3
using FluentAssertions; using Xunit; namespace Rogero.NumberSystems.Tests; public class AtoBTests { [Fact] public void ZeroTest() { var convertAction = new Action(() => NumberConverter.ConvertFromDecimal(0, NumberSystem.AToB_OneIndex)); convertAction.ShouldThrow<ArgumentException>(); }...
5d39337259a3e0796eb3a0e02dcd4c1145496824
C#
CurtisVonRubenhoff/Nightmares
/Assets/Scripts/MainMenu.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class MainMenu : MonoBehaviour { [SerializeField] Image Veil; [SerializeField] Text Message; private bool fadeIn = false; private float counter = 0f; public vo...
79dae7d6527672c86d8f220916444acab44e6343
C#
MarSolMar/PCyP-2021
/Ejercicio 1/Ejercicio 1/Triangulo.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio_1 { class Triangulo { //Lado del triángulo private int ladoT; //Método constructor public Triangulo() { Console.WriteLi...
ddb0c04c936b4fd9f6fb2b7879abf048aa27b4d0
C#
detachmode/Dexel
/Dexel/Dexel.Model/Common/Extensions.cs
2.765625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using Dexel.Model.DataTypes; namespace Dexel.Model.Common { public static class Extensions { public static bool IsDefinitionIn(this DataStream defintion, IEnumerable<DataStreamDefinition> enumerable) ...
236820c635ab1d20dff0589aef8f0fb8ad8df456
C#
cfields93/GroupBlog
/Models/Data/BlogRepository.cs
2.71875
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.Entity.Validation; using System.Data.SqlClient; using System.Linq; using System.Web; namespace GroupBlog.Models.Data { public class BlogRepository : ApplicationDbContext { ApplicationDbContext repo = new Appl...
c985af349d835543dcbd08e4c4b78e0e351e0579
C#
Katarinich/BookLibrary
/Book-library/BookLibrary.ApiTest/RandomUserDraftGenerator.cs
2.875
3
using System; namespace BookLibrary.Api { class RandomUserDraftGenerator : IUserDraftGenerator { public UserDraft GenerateUserDraft() { var userDraft = new UserDraft(); const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; c...
3cae76860c7857873d6d837d377d68486ae868b2
C#
jnavero/Taller1POO
/EjemploPOO/Coche.cs
3.34375
3
using System; namespace EjemploPOO { //Ejemplo Estados de un coche. //Heredamos de vehiculo //En este ejemplo veremos, Herencia, Abstraccion, sobrecarga, sobreescritura y manejo de errores. //Ejercicio propuesto: //Modificar esta clase que permita meter varios coches (un array) y cada un...
e6a5afc95e29b6ab022ee084da7b68970ced6a4e
C#
vitoresan/LibWebSystem
/Infraestrutura/Domain/Models/Sessao.cs
2.578125
3
namespace Infraestrutura.Domain.Models { using Infraestrutura.Domain.Interfaces; using System; using System.Data; public class Sessao : ISessao { private IDbConnection _conexao; private Int32 _timeout; private IDbTransaction _transacao; public IDbConnection Conexao...
da41457ce5e88b579274359962253b4347949443
C#
Athos06/PongTest
/Assets/Scripts/GameManagement/TimerCountdown.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using System; public class TimerCountdown : MonoBehaviour { public Action OnCountdownFinished; private int countdownTime; private int timerCurrentTime; public int TimerCurrentTime { get { return timerCurrentT...
f4b4053921da25afd9d96db3474ed1f0e0761760
C#
bubdm/Cinchoo
/src/ExtensioinMethods/ChoArrayEx.cs
3.3125
3
namespace System { #region NameSpaces using System; using System.Collections.Generic; using System.Linq; using System.Text; #endregion NameSpaces public static class ChoArrayEx { public static T GetNValue<T>(this T[] array, int index) { if (array == null) return default(T); ...
bc0ee4337f0b19ecf4a96620be8b291c298d2721
C#
StPeteFrank/VillageCharacters
/Controllers/VillageController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using villagecharacters.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace villagecharacters.Controllers { [Route("api/[controller]")] [ApiController] public class VillageControlle...