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
985b5bbd005774e60338082a33fb77a1b898051d
C#
WFR79/EngieEducation
/SuiteSecurity/Entities/EntityCollection.cs
2.578125
3
/* * Created by SharpDevelop. * User: HCE339 * Date: 22-05-2012 * Time: 15:35 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Collections; namespace SynapseCore.Entities { /// <summary> /// Description of EntityCollection. /// </summary> publ...
074513a70d5ab174927913438228f4944be9c5a0
C#
MiguePenaloza/TecWeb1-2020
/TiendaMusicalAPI/TiendaMusicalAPI/Models/InstrumentModel.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace InstrumentAPI.Models { public class InstrumentModel { [Required] public int Id { get; set; } [Required] public string Name { g...
1328811a47d2310cd98ed1f7f68f7ec75588c56e
C#
IvarsPL/C-Sharp-hw
/IfScooter/IfScooters.Test/RideHistoryTest.cs
2.71875
3
using NUnit.Framework; using System; namespace IfScooters.Test { class RideHistoryTest { [Test] public void RideHistoryConstructor_CreateNewInstance_ReturnsNewInstance() { //Arrange var expectedTurnover = 0; var expectedId = "123"; //Act...
96a67b3ef8d90e70b51d2e8e01de6282b872bcdb
C#
fabracht/designPatterns
/singletonPattern1/Singleton.cs
3.96875
4
namespace singletonPattern1 { public sealed class Singleton { // A readonly can only be assigned within the scope of the constructor private static readonly Singleton _instance; private static int TotalInstances; /* The private constructor is used to prevent th...
dab6afa95818b82d766963dde6d5bfb6ec29dadc
C#
perpetualKid/DevTest
/HtmlParser/HtmlParserTest/HtmlNodeCollectionTest.cs
2.671875
3
using HtmlParser; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace HtmlParserTest { /// <summary> ///This is a test class for HtmlNodeCollectionTest and is intended ///to contain all HtmlNodeCollectionTest Unit Tests ///</summary> [TestClass()] public class HtmlNodeCollec...
66ff5c1bc698863fb857d76c75fefdb4a5bb3765
C#
GeorgiSpasov/CSharpAdvancedHW
/StringLibrary/StringLibrary.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StringLibrary { class StringLibrary { static void Main(string[] args) { string input = Console.ReadLine(); Console.WriteLine(StringToIntArray(in...
f23fe6304a3c483090011c77a22c384b9722c416
C#
akimlyubchenko/Training-Summer-Express-2018
/NET.S.2018.Lyubchenko.02/ArraySort.Tests/ArraySortTests.cs
2.9375
3
// <copyright file = "ArraySortTests.cs" company = "EPAM"> // Array Sort Tests // </copyright> namespace ArraySort.Tests { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; /// <summary> /// Tests for Array sort /// </summary> [TestClass] public class ArraySortTests { ...
3d8da84e14d4066b9a4e00cec98cc0df7b646aec
C#
arrowflex/FreeAgent
/src/FreeAgent/ModelExtensions/BillExtensions.cs
2.578125
3
using FreeAgent.Helpers; using FreeAgent.Model; using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Threading.Tasks; namespace FreeAgent { public static class BillExtensions { public static Task<IEnumerable<Bill>> GetBillsAsync(this FreeAgentClient client, ...
8ea6ae4d91c4a550e651df1eb2f71e8167dd3feb
C#
anychart-integrations/asp-net-core-mvc-mysql-template
/Models/FruitDBContext.cs
3.09375
3
using System; using System.Linq; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using MySql.Data.MySqlClient; using System.Collections.Generic; namespace asp_net_core_mvc_mysql_template.Models { public class FruitDBContext { public string ConnectionString { get; set; } ...
46909900d84347583d4c7ef834ca2759ec25c378
C#
thelarz/MvcRouteFlow
/MvcRouteFlow/Path.cs
2.9375
3
using System.Collections.Generic; using System.Linq; using MvcRouteFlow.Exceptions; namespace MvcRouteFlow { public interface IPath { string Name { get; set; } List<IStep> Steps { get; set; } IPath AddStep(IStep step); IPath Install(); void Remove(); } public ...
c2152b3e82a4c53d8cfa388d2c94c56a10cec6ce
C#
IMHristov/SoftUni
/Tech Module 3.0/Programming Fundamentals/ExamPrep/Exam-Problem IV/ForceBook/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; namespace P_4ForceBook { class Program { static void Main(string[] args) { string input = Console.ReadLine(); Dictionary<string, List<string>> Sides = new Dictionary<string, List<string>>(); ...
61ca28fbbe70dc6bf52db7f895e1538c05587c15
C#
akexter/SlimeSlasher
/Slimy Slasher/Assets/3D Tilemap System/Scripts/TilePalette.cs
2.515625
3
#if UNITY_EDITOR using UnityEditor; #endif namespace UnityEngine.TilemapSystem3D { [CreateAssetMenu(fileName = "New Tile Palette", menuName = "3D Tilemap System/ Tile Palette")] public class TilePalette : ScriptableObject { /// <summary> /// The tiles resolution. /// </summary> ...
c9cfe67c0e8ffd47d61280cb6827088d5e86376e
C#
supreethgangam/dragonage-lightmapper
/DALightmapper/Geometry/3D/Triangle.cs
2.53125
3
using System; using System.Collections.Generic; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; namespace Geometry { public class Triangle { private Vector3[] _mVerts; private Vector2[] _tVerts; private Vector2[] _lVerts; private Vector3 _normal;...
c2eec7a70e98446cc6216fcf75774f85b7126dc2
C#
RyanTaite/JiraTimeLogSubmitter-BlazorServerSide
/JiraWorklogSubmitter/JiraWorklogSubmitter/Config/JiraSettings.cs
2.84375
3
namespace JiraWorklogSubmitter.Config { /// <summary> /// Used to store the appsettings values /// </summary> public class JiraSettings { private string _baseUrl; private string _email; private string _token; private string _apiUrl; private string _firstName;...
f1cfa52db12cf6222a5a4d03012206992b07af7f
C#
lorenzowind/csharp-projects
/ProjectWs02/src/DTOs/ProductDTO.cs
2.6875
3
using ProjectWs02.src.Models; namespace ProjectWs02.src.DTOs { public class ProductDTO { public int Id { get; set; } public string Name { get; set; } public decimal UnitaryPrice { get; set; } public static ProductDTO FromProduct(Product product) { return new ProductDTO { ...
82007da6cbec254b6642d8d174d65a2e7a5d36b6
C#
imcody/restful-api-aspnetboilerplate
/src/ResponsibleSystem.Common/Domain/Operations/OperationResult`1.cs
2.5625
3
// Decompiled with JetBrains decompiler // Type: ResponsibleSystem.Common.Domain.Operations.OperationResult`1 // Assembly: ns4D, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null // MVID: 9B44D8D9-B1BD-47D0-B47A-F7256B478C0B // Assembly location: C:\Repos\sani_nudge_ui\ResponsibleSystem.Api\libs\ns4D.dll using Sy...
81eed421e05cab1b9f0d59d202dc2efcfd0440db
C#
henanMayueyue/PicView
/PicView/Image Logic/SaveImages.cs
2.90625
3
using ImageMagick; using System.Diagnostics; namespace PicView { internal static class SaveImages { internal static void ResizeImageToFile(string file, int NewWidth, int NewHeight) { try { using (MagickImage magick = new MagickImage()) { ...
32e8e2ee10d705d937e5b2f1e41fe0e4777b1b1e
C#
gilles007-/ffxi-monitor
/DvsParse/FFACETools/ParseResources.cs
2.5625
3
using System; using System.Collections; using System.Collections.Generic; using System.Xml; using System.Xml.XPath; using System.IO; namespace FFACETools { public partial class FFACE { /// <summary> /// This class will parse the resources.xml file to /// translate ID <-> Names of spells/abiliti...
63e440bba7102b1ae6b84a75e5518998f36d73d7
C#
salvamr/zurrxpa
/ZurrapaLoader/DataBaseManagement/DataBase.cs
2.75
3
using FireSharp; using FireSharp.Config; using System; using System.Net; using ZurrapaGlobals; using SecuritySpace; namespace ZurrapaDataBase { public class DataBase { private FirebaseConfig Config { get; set; } private FirebaseClient Client { get; set; } private DateTime ExpireDate { ...
7e84a36950d4ab02039fffd93e393973f3a80278
C#
karabeliov/Telerik-Academy
/Courses/C#1/05.ConditionalStatements/01.ExchangeIfGreater/ExchangeIfGreater.cs
4.6875
5
using System; /// <summary> /// /// Write an if-statement that takes two integer variables a and b and exchanges their values if the first one is greater than the second one. /// As a result print the values a and b, separated by a space. /// /// </summary> class ExchangeIfGreater { static void Main(...
50c2c3458456e2ec1d4fbc062a2d3e14978afdce
C#
NunoGhost/Enterprise
/Common/Client.cs
3.015625
3
using System; using System.Runtime.Serialization; namespace Common { [DataContract] public class Client : IComparable<Client> { [DataMember(Name = "id")] public string Id; [DataMember(Name = "Email")] public string Email { get; set; } [DataMember(Name = "Username")]...
20acbb5f715816c83b6d48704ceda2a2f2b6e528
C#
MakoLab/RomanticWeb
/RomanticWeb/Mapping/Conventions/EntityIdPropertiesConvention.cs
2.546875
3
using System; using System.Collections.Generic; using RomanticWeb.Converters; using RomanticWeb.Entities; using RomanticWeb.Mapping.Providers; namespace RomanticWeb.Mapping.Conventions { /// <summary>Sets the converter of EntityId properties to an appropriate.<see cref="EntityIdConverter{TEntityId}"/> ...
5506782180b43675eb41d7097a69d1ee54bbfcba
C#
SvenLauterbach/Thinktecture.Abstractions
/src/Thinktecture.Net.Sockets.Abstractions/Net/Sockets/Adapters/UnixDomainSocketEndPointAdapter.cs
2.828125
3
using System.Net.Sockets; using Thinktecture.Net.Adapters; namespace Thinktecture.Net.Sockets.Adapters { /// <summary> /// Unix domain socket endpoint. /// </summary> public class UnixDomainSocketEndPointAdapter : EndPointAdapter, IUnixDomainSocketEndPoint { /// <summary> /// Implementation used b...
f0a5b27fc55c327b204f832522d0293e8af41544
C#
arthurrump/Zermelo.App.UWP
/Zermelo.App.UWP/Helpers/ExceptionHelper.cs
2.53125
3
using System; using System.Collections.Generic; using System.Diagnostics; using Microsoft.Azure.Mobile.Analytics; using Zermelo.API.Exceptions; namespace Zermelo.App.UWP.Helpers { class ExceptionHelper { public static void HandleException(Exception ex, string location, Action<string> ShowError, ...
d6fb3d40608c6935ac62edc0539a22304056d10c
C#
eledalsav/Week4_EsFinale_Dal_Savio
/Week4_EsFinale_Dal_Savio.Core/Week4_EsFinale_Dal_Savio.Core/BusinessLayer/MainBL.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; namespace Week4_EsFinale_Dal_Savio.Core { public class MainBL : IMainBL { private readonly IOrderRepository orderRepo; private readonly ICustomerRepository customerRepo; public MainBL(IOrderRepository orderRepo, ICusto...
8f2946da37a34ac04d04846183f77c72ba8b2fee
C#
ihristova11/TelerikSchoolAcademy
/C# Part1/02. Primitive-Data-Types-and-Variables/2. Primitive-Data-Types-and-Variables/12. PrintASCIITable/PrintASCIITable.cs
3.46875
3
using System; using System.Text; class PrintASCIITable { static void Main() { Console.OutputEncoding = System.Text.Encoding.UTF8; Console.WriteLine("\t \t \t \t ASCII Table\n"); byte counter = 0; char symbol = Convert.ToChar(counter); for (counter = 0; counter <= 127; c...
d525e16e5440c3a43f901172ecd017595272d53d
C#
istolboff/ExampleMapping
/ExampleMapping.Specs/SpecFlow/MismatchedRow.cs
2.703125
3
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace ExampleMapping.Specs.SpecFlow { internal sealed class MismatchedRow : RowMatchingResult, IEquatable<MismatchedRow> { public MismatchedRow(string rowKey, int rowIndex, IReadOnlyCollection<Mi...
28b665effdc8f6fffc8338a97c2396f7630c09bb
C#
redcake36/file_converter
/file_converter/json.cs
3.171875
3
using System.IO; using System.Collections.Generic; using System.Linq; namespace file_converter { public class FileJson : IFileWrapper { public string FilePath { get; } public FileJson() { FilePath = ""; } public FileJson(string s) { FilePath = s; } static string jsonTakeWords(s...
2f16faa59b9a3764d9f16cf97049bfd1b7e95e8e
C#
ElinamLLC/SharpVectors
/Source/SharpVectorRenderingWpf/Texts/WpfTextPosition.cs
2.8125
3
using System; using System.Windows; namespace SharpVectors.Renderers.Texts { public struct WpfTextPosition { private Point _location; private double _rotation; public WpfTextPosition(Point location, double rotation) { if (Double.IsNaN(rotatio...
8681fa1eb3dffe7ac2c6dd0f347d309fdb3a9c00
C#
gcvalderrama/Jarvis
/Lincoln/07Summarization/JarvisSummarization/JarvisSummarization/PageRank/KnowledgeGraph.cs
2.921875
3
using edu.stanford.nlp.ling; using edu.stanford.nlp.trees; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JarvisSummarization.PageRank { public class PRKnowledgeGraph { public int Size { get; set; } private IEnumera...
ffce624f915664d55ffce03c3fec40976e95d807
C#
indigoYoshimaru/OOP_game_project
/Objects/Zombies/LaneJumpingZombie.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace PlantvsZombie { public class LaneJumpingZombie:Zombie { pri...
f076c23d49f2ab991ebde6a5e9bb589b5b85cdda
C#
s-afterimage/FakeSimCity
/Assets/Scripts/common/constants/GameModel.cs
2.546875
3
using System.Collections.Generic; using UnityEngine; namespace Cariacity.game { public static class GameModel { private static IList<GameObject> hashList = new List<GameObject>(); public static void Add(GameObject model) { hashList.Add(model); } public sta...
68c0b2d3f2b299bd6add7a1f3202a73d074d544e
C#
gogetenk/asp-core-crud-example
/SecurePrivacy.Sample/src/SecurePrivacy.Sample.WebApi/Controllers/StuffController.cs
2.5625
3
using System.Threading.Tasks; using AutoMapper; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using SecurePrivacy.Sample.Bll.Services; using SecurePrivacy.Sample.Dto; using SecurePrivacy.Sample.Model; namespace SecurePrivacy.Sample.WebApi.Controllers { [ApiController] [Route("api/stuff")...
47a3d82364d75a19ad708c8cd82d8469e7f73cdb
C#
Anil1111/LearningCSharp-1
/ExceptionExtensions.cs
3.265625
3
using System; using System.Reflection; namespace LearningCSharp { public static class ExceptionExtensions { public static void ShowException(this Exception e) { if (e is TargetInvocationException invocationException) { invocationException.InnerException....
f1151c74c4851b1e631a940566ee000cc4f5da00
C#
tbergstrom/person_of_interest
/Classes/ConnectionMapper.cs
2.78125
3
using System.Collections.Generic; using System.Linq; namespace AspNetCoreSignalr.SignalRHubs { public class ConnectionMapping<T> { private readonly Dictionary<T, HashSet<string>> _connections = new Dictionary<T, HashSet<string>> (); public int Count { get { return _connections....
514f5ba51529ec149dd2170dbfb23525fc2bf75f
C#
littletelx360/Graphql-Controller
/GraphqlController/GraphqlController/Services/GraphqlControllerServiceBuilder.cs
2.703125
3
using GraphQL.Types; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace GraphqlController.Services { public class GraphqlControllerServiceBuilder { public IServiceCollection Services {...
de7079c734ab4cdb96366b69191be22e3333db6a
C#
spooky-doodle/Trestlebridge-Farms
/src/Actions/Facilities/ChooseGrazingField.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using Trestlebridge.Interfaces; using Trestlebridge.Models; using Trestlebridge.Models.Animals; using Trestlebridge.Models.Facilities; namespace Trestlebridge.Actions { public class ChooseGrazingField { public static void CollectInput(L...
7fea29381dfbdf3701f12097a843326dff94e0c3
C#
mertbogus/OOP_Stok
/DataAcessLayer/DALPersonel.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EntityLayer; using System.Data; using System.Data.SqlClient; namespace DataAcessLayer { public class DALPersonel { public static List<EntityPersonel> PersonelListele() { ...
8c215972f55ae624e9fd1c17eef7900a453ab8e5
C#
rpaschoal/DynamicRepository
/DynamicRepository/DataPagerAdapter.cs
2.71875
3
using DynamicRepository.Filter; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; using DynamicRepository.Annotation; namespace DynamicRepository { /// <summary> /// Translates annotation filter settings from annotations to be given as in...
ff97dd2ea692787f1664e03df1016cc608adcde5
C#
bakanaouji/CRFMNES_CS
/CRFMNES/Tests/OptimizerTests/EllipsoidTest.cs
2.921875
3
using NUnit.Framework; using System; using CRFMNES.Utils; namespace CRFMNES.Tests.OptimizerTests { [TestFixture()] public class EllipsoidTest { static double Ellipsoid(Vector x) { double f = 0.0; for (int i = 0; i < x.GetDim(); ++i) { dou...
b45d80d99843363725c70c4c5f1eb1b1558cc913
C#
giokeyboard/HeadFirst-CSharp
/Chapt6/DinnerPartyPlanner-v3.0/DinnerPartyPlanner-v3.0/Party.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DinnerPartyPlanner_v3._0 { class Party { public const int costOfFoodPerPerson = 25; public int NumberOfPeople { get; set; } public bool FancyDecorations { get; ...
08d54856d9dac1c3a93db06bfe43f09509ea005f
C#
whyknotnow/blogproject
/NBlog-master/NBlog.Web/Application/Storage/Azure/AzureExtensions.cs
2.59375
3
namespace NBlog.Web.Application.Storage.Azure { using Microsoft.WindowsAzure.Storage.Blob; using System.IO; public static class AzureExtensions { public static void UploadText(this ICloudBlob blob, string text) { byte[] buffer = System.Text.Encoding.UTF8.GetBytes(text); blob.UploadFromByteArray(buffer, ...
4783765606c0d88b430936e88a7fd3a22c3aaf95
C#
flu55y/AutoServiceApp
/AutoServiceApp/Model/Repositories/CarRepository.cs
2.75
3
using AutoServiceApp.Model.EF; using AutoServiceApp.Model.Entities; using System.Linq; namespace AutoServiceApp.Model.Repositories { class CarRepository { public string AddCar(Car car) { using (EfDbContext context = new EfDbContext()) { var carItem = con...
9df4e55d3a07b84cbe660144a6f9bc741122d858
C#
ParvathiRPai/AlgorithmsDataStructure
/DynamicProgramming/Recursion/RecursionofStrings/RecursionofStrings/SumofSubsets.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecursionofStrings { class SumofSubsets { public void Sum(int []set, int l, int r, int sum=0) { if(l > r) { Console.WriteLine(su...
db7fb8b5d9e126f9ab059b45219382ffbd1b8fb0
C#
Maxai2/Bank
/Bank/Bank/TransferTransaction.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //-------------------------------------------------------------- namespace BankName { class TransferTransaction : ITransaction { BaseClient to; BaseClient from; public double Amount { get; set;...
fc0c6fecf4d3350ed0a7f2704432d8931cec8713
C#
TymurLysenkoIU/il-compiler
/ILangCompiler/Scanner/Tokens/IdentifierToken.cs
2.84375
3
using System.Text.RegularExpressions; using LanguageExt; namespace ILangCompiler.Scanner.Tokens { public class IdentifierToken : IToken { public string Lexeme { get; } public uint AbsolutePosition { get; } public uint LineNumber { get; } public uint PositionInLine { get; } private IdentifierTo...
a686a40d1844e3345993d90bb5147922af526963
C#
kivanov22/SoftUni-CSharp-Advanced
/CSharp-Advanced/06_DefiningClasses/Exercise/P08.CarSalesman/Car.cs
2.640625
3
using System; using System.Collections.Generic; using System.Text; namespace P08.CarSalesman { public class Car { public Car(string model, int engine) { Model = model; Engine = engine; } public string Model { get; set; } public int Engine { get;...
c31b45fbf7700b24281c8a02a9d215cbfbc5dec8
C#
JeffGillispie/LoadFileAdapter
/LoadFileAdapter/Transformers/MetaDataTransformation.cs
2.78125
3
using System; using System.IO; using System.Text.RegularExpressions; namespace LoadFileAdapter.Transformers { /// <summary> /// Contains the settings to perform a transformation on the metadata /// of a <see cref="Document"/>. /// </summary> public class MetaDataTransformation : Transfo...
e4f273dd19ba8c0669395676b272f2d6374f53f0
C#
muguangyi/pioneer
/src/pioneer/PureLogic.cs
2.671875
3
/* * This file is part of the Pioneer package. * * (c) MuGuangYi <muguangyi@hotmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Pioneer { /// <summary> /// Logic base class. /// </summary> publi...
d320fc1013f028f5b2a8e824fade32f46debc6eb
C#
tijujohn83/CSharpLearn
/StringTrials/StringTrials/Program.cs
4.0625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StringTrials { class Program { static void Main(string[] args) { string s = "Technology"; Console.WriteLine("IS string null or empty: {0}", String.IsNullOrEmpty(s)); ...
102335dd3792789dcd04cd775624a907ff328d1a
C#
Tokiarivelo/pro
/doc/PdfTemplateGrid/PdfTemplateApp/Utils/AdornerClass.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Documents; using System.Windows.Media; namespace PdfTemplateApp.Utils { class AdornerClass : Adorner { public AdornerClass(UIElement adornedEle...
97fb20aa35e9dcb2c4a5d0d865e348a5c8cbb8a4
C#
matheuscardoso96/ApiCatalogoDeJogos
/ApiCatalogoDeJogos/Controllers/V1/GamesController.cs
2.6875
3
using ApiCatalogoDeJogos.Exceptions; using ApiCatalogoDeJogos.Models.InputModels; using ApiCatalogoDeJogos.Models.ViewModels; using ApiCatalogoDeJogos.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; na...
e3d4858494cceebea164f62105a062200916f698
C#
fabtosz/akademia_c_sharp_wieza_czarodzieja
/Form1.cs
2.578125
3
// Bartosz Fabiański 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 WindowsFormsApplication6 { public partial class Form1 : Form { ...
a7a503b7acca5837fcb478e7e7baa5b33e6e784d
C#
lvkat/Lab_5
/Lab_5/UtilsCreators.cs
2.875
3
using IMainInterface; using Lab_5.Utensils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IMainInterface; namespace Lab_5 { class CupCreator : BaseUtensilCreator { public override void SetProperties(Utensil utensil, List<strin...
94b10da9c431e825b3fb8e95261103d1cd8daa27
C#
hitinder/PropertyManagement
/PropertyManagement.BusinessObjectLayer/Services/StatusService.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; using PropertyManagement.BusinessObjectLayer.ViewModels; using PropertyManagement.DataObjectLayer; using PropertyManagement.DataObjectLayer.Models; using System.Threading.Tasks; namespace PropertyManagement.BusinessObjectLayer { ...
d9ff729fea5ef66438273a78eb012593d0866ad3
C#
esauri/ProjectQuest
/Project3/ErickSauri_Project2/Monster.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sauri_Project3 { public class Monster { int life; string type; string name; int damage; Dictionary<string, int> enemyAttack = new Dictionary<str...
f756f33e4214a358904221fad49687bd1332aa7f
C#
shendongnian/download4
/latest_version_download2/84655-15962447-38986691-4.cs
2.890625
3
private void CreateColumns() { var startDate = new DateTime(2013, 05, 07); var endDate = new DateTime(2013, 05, 17); //// Ensure that startDate < endDate, no validation in this example. var tmp = startDate; while (tmp <= endDate) { GridViewColumn gc = ...
498aeeca092553905c7d362a59f2ccefce7048f4
C#
shendongnian/download4
/first_version_download2/427299-37603272-119564103-2.cs
2.5625
3
try { ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2\\Security\\MicrosoftVolumeEncryption", "SELECT * FROM Win32_EncryptableVolume"); foreach (ManagementObject queryObj ...
4c4548f66587927eb45cef348d33cddc8bcd9532
C#
someExampleName/exampleOfRepository
/1.School/Class.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace School { class Class { // due to the fact that classes contain students we need to have a field made of list of students private List<Student> students; // eac...
40225470ab84edd0d40255fe67287c26aeaea4bd
C#
philong192001/EzTrade
/DAL/CodeDAL.cs
2.546875
3
using DAL.Models; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Text; namespace DAL { public class CodeDAL { private readonly IConfiguration _configuration; private readonly string _strConn...
83dc323e53e01969461e331f43ac3999323ffeea
C#
CodyHoll/GenericRPG_TeamMagenta
/Implementation/GenericRPG/FrmMap.cs
3.046875
3
using GameLibrary; using GenericRPG.Properties; using System; using System.Drawing; using System.Windows.Forms; using System.Collections.Generic; namespace GenericRPG { public partial class FrmMap : Form { private Character character; private Map map; private Game game; public FrmMap()...
d472a700ebb6861771f453047219d0bae9181246
C#
voinekku/tali-ihantala
/Assets/Scripts/Weapons/Weapon.cs
2.78125
3
using UnityEngine; using System.Collections; public abstract class Weapon : MonoBehaviour { public float timeBetweenShots = 0.5f; private bool firing = false; private float fireTimer = 1f; // Update is called once per frame void Update () { fireTimer += Time.deltaTime; if(firing) { if(fireTimer >= time...
8538de3fec03ffd1b62b0e804151df42364c1883
C#
sunny-lan/GenshinbotCsharp
/GenshinBotCore/reactive/Poller.cs
3.03125
3
using genshinbot.reactive.wire; using genshinbot.util; using System; using System.Collections.Generic; using System.Diagnostics; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Runtime.ExceptionServices; using System.Text; using System.Threading; using System.Threading.Tasks; namespace genshi...
52aac676a57e685385151e26546b9ac094e0cca0
C#
mpalics/MemCatch
/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; namespace MemCatcher { class Program { // REQUIRED CONSTS const int PROCESS_QUERY_INFORMATION = 0x0400; const int MEM_COMMIT = 0x00001000;...
b96d84fde0eab8eaf485d3f60ce097daa0152de0
C#
torkkeli/ChessLearningTool
/branches/master/src/ChessLearningTool/ChessLearningTool.Logic/ChessLogic/Pieces/ChessPiece.cs
3.015625
3
using ChessLearningTool.Data.Enums; using ChessLearningTool.Logic.Models; using System; using System.Collections.Generic; using System.Drawing; namespace ChessLearningTool.Logic.ChessLogic.Pieces { public abstract class ChessPiece : IChessPiece { protected ChessPiece(ChessColor color, BoardCoordinates...
525570d2eb291190b17b4a2a7da4f5542ce9058f
C#
hetzermj/AutomationBaseFramework
/APITestBase/DummyEmployeeAPIBase.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using APITestBase.DataObjects; using Newtonsoft.Json; using RestSharp; namespace APITestBase { public class DummyEmployeeAPIBase { const string BaseUrl = "http://dummy.restapiexample.com/"; reado...
9a40ee98856ccdada85f72cbc975578212d2c4be
C#
Meir-Shtarkman/BackEndSadna
/Classes/MultiplayerMatch.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UsefullMethods; namespace Classes { public class MultiplayerMatch { private string MultiplayerMatchID { get; set; } private List<User> PlayersList { get; set; } privat...
b0b2d81e51eba463e21198ccd1bde79f256a3d1f
C#
Vietcuong0508/Lab_Rider
/Ex5/Program.cs
3.6875
4
using System; namespace Ex5 { internal class Program { public static void Main(string[] args) { { for (int num = 1; num < 21; num++) { Console.WriteLine("Factorial of " + num + " is " + factor...
da7fba75762f3701331ca6171c3e93ec9664f5f4
C#
danwatland/FiascoRL
/FiascoRL/Display/SpriteGraphic.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using FiascoRL.Entities; namespace FiascoRL.Display { /// <summary> /// Collection of utility methods and variables used for processing graphics drawn to...
da42288cba1b21ccd22c7bf9d96e3f65aedc2b95
C#
NewLifeWorks/Software_-Bulgaria
/Software_University_Bulgaria/Open_Courses/Data_Structures/Other_Source_partII/07.Lesson.SimpleArray/Program.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _07.Lesson.SimpleStack { class Program { static void Main(string[] args) { // Stack One <> ID values Stack<int> values = new Stack<int>(); ...
08763cbc0f4be5bde4331a58a9597db2f066db00
C#
nickworonekin/PPFVoicePatternEditor
/PPFVoicePatternEditor/PPFVoicePatternEditor.cs
2.75
3
/* * PPF Voice Pattern Editor v3.0 * Written by Nick Woronekin * <http://puyonexus.net> * * This program allows you to change the voice patterns in * Puyo Puyo Fever PC and Puyo Puyo Fever 2 PS2. * * This program is being released as open source with no * specific license. Feel free to do whatever you want ...
e4ce970ad660b415105d0b00f58cca60a5c19b3e
C#
wi16b046/CodingDojo4
/Client/Communication/ClientObj.cs
3.203125
3
using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace Client.ViewModel { class ClientObj { Socket clientSocket; byte[] buffer = new byte[1024]; //Delegate for informing about receiving messages Action<str...
d05495d1b8caf4f8ab80c1c804fdc38aa28cbcad
C#
shendongnian/download4
/latest_version_download2/123788-24544927-68628704-2.cs
2.703125
3
public class Trade { } public class PositionNTS { public virtual void Adjust(Trade newfill) { } } public class Position : PositionNTS { private readonly object locker = new object(); public override void Adjust(Trade newfill) { ...
112503c2608053ed74374f496c320d7b223e204c
C#
shendongnian/download4
/code5/902192-22494784-60723102-2.cs
3.15625
3
private void btn_proceed_Click(object sender, EventArgs e) { // This dictionary contains indices of rows we need to replace. Dictionary<int, int> replaceable = new Dictionary<int, int>(); replaceable.Add(4, 1); replaceable.Add(7, 5); replaceabl...
13af66cca61d808f4199a0216902449e8de1ad38
C#
angew74/GestionePEC
/FaxPec.Model/ManagedModules/ModuleParts/DatiComuniRichiesta.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; namespace Com.Unisys.Pdf.ManagedModules.ModuleParts { /// <summary> /// Classe che espone i dati "più comuni" relativi alla richiesta. /// Dipendentemente dal tipo specifico di richiesta i dati possono /// essere presenti o meno. /...
fbbdf9c8dcfc273f05682ca8d2075c13e36ce337
C#
briansalato/InnerTrack
/InnerTrack.Common/Interfaces/Logic/IProjectLogic.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InnerTrack.Common.Objs; namespace InnerTrack.Common.Interfaces.Logic { public interface IProjectLogic { /// <summary> /// Returns a single project /// </summary> /// <param name="id">The...
73de4dc2b2ace03f3365f19a5817204a9a9e8eb1
C#
bmdevx/Ternary
/Core/_OLD/Chips/IChip.cs
2.65625
3
using System; using System.Diagnostics; using System.Linq; using Ternary.Tools; namespace Ternary.Old { [DebuggerDisplay("{DebuggerInfo}")] public abstract class IChip : IMultiIOComponent { public abstract int NUMBER_OF_PINS { get; } public ComponentTriggeredEvent[] Outputs { get; } ...
50ec9bc7441256752d9dd3dc29b0bd8697db92a2
C#
Varbanov/TelerikAcademy
/C# Part 1/001. Introduction to programming/09. Members of a sequence/SequenceMembers.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class SequenceMembers { //Write a program that prints the first 10 members of the sequence: 2, -3, 4, -5, 6, -7, ... static void Main() { for (int i = 2; i < 12; i++) { ...
e016ed46be55f81f654c18978c3fb46bfcc1c246
C#
babann/HOPE
/Receptors/HuntTheWumpus/CaveReceptor/CaveReceptor.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Clifton.ExtensionMethods; using Clifton.Receptor.Interfaces; using Clifton.SemanticTypeSystem.Interfaces; namespace HuntTheWumpus { public class CaveReceptor : BaseReceptor { ...
d617eaeb1381267dd6e92101a908e1b742f5d6bf
C#
inakama/SmallWorld
/Services.Test/SmallWorldServiceTest.cs
2.953125
3
using System.Collections.Generic; using NUnit.Framework; using SmallWorld.Service.Dtos; using SmallWorld.Service.Services; namespace Services.Test { public class SmallWorldServiceTest { private SmallWorldService smallWorldService; [SetUp] public void Setup() { this....
7aa10e69c49f9e385b88f5133e28e7ef34d82af8
C#
matiascc/TP4
/Ej2/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ej2 { class Program { static void Main(string[] args) { double num1, num2; Fachada fachada = new Fachada(); Console.Write("Ingrese...
94c75b0b4cc6a8f34115cc8a7f747d6790946707
C#
Snjeza2104/Learning-C-
/Proizvod/Proizvod/Program.cs
3.109375
3
using System; using System.Collections; namespace Proizvod { class Program { static void Main(string[] args) { string naziv; double cijena; double marza; double porez; //Proizvod proizvod = new Proizvod(); naziv = Console....
226a4a1ccb5ecfeb3985cb9081540fbeb60b8637
C#
thegrubbsian/MongoDBCSharpDemo
/NoRMaticSample/Article.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using NoRMatic; namespace NoRMaticSample { public class Article : NoRMaticModel<Article> { [Required, StringLength(50, MinimumLength = 5)] public string Title { get; set; } [Required] pu...
9d9baec3486b869ccaee083d96e987fff9c059a3
C#
letscodewithkalyan/AndroidMLVoiceApp
/Voice_App/Voice_App/Adapters/VoiceTextAdapter.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Support.V7.Widget; using Android.Views; using Android.Widget; namespace Voice_App.Adapters { public class VoiceTextAdapter : Recyc...
d65c56b9e409db03abd3ef2005ede22e2d6ce9ec
C#
theajanvin/Admin_Bestilling
/oblig1-1/DAL/BestillingRepository.cs
2.65625
3
using Castle.DynamicProxy.Generators.Emitters.SimpleAST; using Microsoft.AspNetCore.Cryptography.KeyDerivation; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using oblig1_1.Models; using System; using System.Collections.Generic; using System.Diagnostics; using Sy...
f6d6df4398c630c374ca2c307976eea645de5199
C#
bubdm/VectorEditor2
/TestEditor/DrawingStruct/IpLine.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace TestEditor { public struct LinePic { public float x1; public float y1; public float x2; public float y2; public Pen pen; ...
1fb6447c9293aaed99f6cebb107270cbc8d6af35
C#
etarhan/WPFPortfolio
/WPFPortfolio/Calculator/CalculateImput.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WPFPortfolio.Calculator { class CalculateImput { public bool DivByZero { get; private set; } public double AddCalc(double secondNo, double firstNo) ...
d5705f9ad64fac158b0a9b3030474655cc6da931
C#
MacakM/PB007-PetShop
/PetShop/Cat.cs
2.875
3
using System; namespace PetShop { public class Cat : IAnimal { public string Name { get; set; } public string Color { get; set; } public Food FavouriteFood { get; set; } public Cat() { Name = "Tom"; } public void MakeSound() { ...
1b8cac182c2712bb9f784313d5004089793211bd
C#
Keehyuklee/CSharp7Features
/ThrowExpressions.cs
3.546875
4
using System; namespace CSharp7 { class ThrowExpressions { public int ThrowExceptions() { //Throw expressions can be used in conditional operators and null coalescings. //Null coalescing String input = Console.ReadLine() ?? throw new Exception("Exc...
95100f9c4f0e37f8bace4334c4cfacb8337fb79d
C#
lgn/CurrentProject
/Web/Helpers/StringExtensions.cs
3.125
3
using System.Text.RegularExpressions; namespace System.Web.Mvc { public static class StringExtensions { public static string FormattedDayMonth(this int dayMonth) { var result = dayMonth.ToString(); if (result.Length == 1) result = "0" + result; retur...
39d54027fc005f3f1fc992fbf0646e9f511b6b8b
C#
jamdmasud/PharmacyDesktopApplication
/PharmacyDesktopApplication/UI/ShowDueDetails.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.Entity; using System.Drawing; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; using PharmacyDesktopApplication.Entities; using PharmacyDesktopApplication.Models; namespa...
18d1b8b554ee6cbe6f3377b2f69dc3a27940ee6c
C#
melon1313/Restful_WebAPI_with_DotNetCore
/Fake.API/Helper/ObjectExtensions.cs
3.03125
3
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace Fake.API.Helper { public static class ObjectExtensions { public static ExpandoObject ShapData<TSource>(this TSource source, string fields) {...
0a14deb20ca60ca21ba9e0ebad4a35287d02f91d
C#
chaos6631/OOP4200_DurakGame
/Durak/DurakLib/AIPlayer.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ch13CardLib; namespace DurakGameLib { class AIPlayer : CardsPlayed { #region CLASS MEMBERS #endregion #region CONSTRUCTORS /// <summary> /// C...
dd3a8739b4165d467702bb28def85c226449bb02
C#
mirkocerati/verifica-22-10-2021
/cerati/Reservation.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cerati { class Reservation { //Parametri public string Name { get; set; } public string City { get; set; } public DateTime CheckInDate { get; set; } ...
c9c5efe95290b39badc3d164dd72d4313975cf76
C#
shendongnian/download4
/first_version_download2/548596-51776139-179455640-2.cs
3.359375
3
bool IsMemoryAvailable(int amount) { int size = (int)Math.Sqrt(amount) / 2; try { using (Bitmap bmpTest = new Bitmap(size, size)) { } GC.Collect(); return true; } catch(Exception x) { return false; } }
e709d8604f922a0ca8bcc3d9b8b21d00c85cb8a2
C#
kuyu7766/Serenity
/src/Serenity.Net.Web/Mvc/VirtualPathUtility.cs
2.828125
3
using Microsoft.AspNetCore.Http; namespace Serenity.Web { public static class VirtualPathUtility { public static string ToAbsolute(IHttpContextAccessor accessor, string contentPath) { return ToAbsolute(accessor?.HttpContext, contentPath); } public static...
4b10e9a6b3e6d770ce7c5f9c49ab9c73c675c44b
C#
jcarlosmrls/reproductorcsharpunlam
/Reproductor/Clases/BaseDeDatos.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.OleDb; using System.Data.SqlClient; using System.Configuration; using System.Windows.Forms; using System.IO; namespace Reproductor { public class BaseDeDatos { private OleDbConnection ...
1c00b60426b60299f67787d1f8f590a3e456327b
C#
BeardedMark/SoftForGameCustomElemetns
/CustomFilter 1/CustomControls/MenuElement.xaml.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
d505df954dbd57499f8496644828dae2a74f7bed
C#
kcassata/KISSMetricNet
/KissApiWrapper.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Cache; using System.Text; namespace DaneSolutions.Wrappers { public class KissApiWrapper : Dictionary<string, string> { private string apiKey; private bool useSSL; pub...
a33fa2faf267b4dfdcb1a3f48acca0da114cb1aa
C#
sudipp/DS-Algo
/ConsoleApplication1/DesignPattern/Structural/Composite/Shape.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1.DesignPattern.Structural.Composite { public class Shape : IComponent { public void Render() { Console.WriteLine("Render shape"); ...