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
633c2d6fee7609f06f92b8dbb933e4782bf3601f
C#
yberry/DinoCars
/Assets/Mega-Fiers/Scripts/MegaFiers/MegaShape/MegaShapePro/MegaLoftEase.cs
2.875
3
 using UnityEngine; public enum MegaLoftEaseType { Sine, Expo, Circ, Quad, Cubic, Quart, Quint, Back, Square, Lerp, }; public class MegaLoftEase { public delegate float easingFunction(float start, float end, float value); public easingFunction easing; // = this.easeInOutSine; public MegaLoftEase() { ea...
2e2b986bcac36b32c28db7c73f436067aabe8b51
C#
justwannafly22/Ultimate-Asp.Net-CW
/Entities/DTO/Service/ServiceForManipulationDto.cs
2.625
3
using System; using System.ComponentModel.DataAnnotations; namespace Entities.DTO.Service { public abstract class ServiceForManipulationDto { [Required(ErrorMessage = "Attendance name is a required field.")] [MaxLength(80, ErrorMessage = "Maximum length for the Name is 80 characters.")] ...
64bf7dd20afd03768ad6befdc48ef0022507eca1
C#
titif-cda/FoodBook
/Server/BLL/Services/CommandeService.cs
2.578125
3
using BO.DTO.Responses; using DAL.Repository; using DAL.UOW; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL.Services { class CommandeService : ICommandeService { private readonly IUni...
deee8f5b472e3eb3eeda40b5a4017817e9ff763b
C#
Steven24K/SquillerWebshop
/Models/DbXtensions.cs
2.671875
3
namespace Webshop.Models.DbXtensions { using System; using System.Linq; using System.Collections.Generic; using Webshop.Utils.Xtratypes; using Webshop.Models; using Webshop.Models.EntityInfo; using Webshop.Models.ViewModels; using Webshop.Utils.Xtensions; public stati...
847518f675a2ea330cd9a7516d11cb9e7f2e2d54
C#
Semhsen/AlfaPlastik
/Alfa/Alfa.DataAccessLayer/EntityFramework/Repository.cs
2.78125
3
using Alfa.Core; using Alfa.Entities.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Alfa.DataAccessLayer.EntityFramework { public class Repository<T> : IDataAccess<T> whe...
de5dfeaae95ab0f3e3f8bda69d2b65376f400d15
C#
etyemy/DNA_Final_Project_2016
/FinalProject/Gene.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FinalProject { /* * Gene class holds the gene details. * Main purpose - easy transfer of gene details */ public class Gene { private string _name; pr...
c20c50ddeadbfbb46e08f43475b893293ffd89d3
C#
BelievingHeart/ALC906
/Core/Helpers/FaiCollectionHelper.cs
2.609375
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Core.Enums; using Core.ViewModels.Database.FaiCollection; using Core.ViewModels.Fai; using Dapper; namespace Core.Helpers { public static class FaiCollectionHelper { public static ...
7b032b15e9c07c1992ea3c3322769b5acb8b90e1
C#
vadimvoyevoda/SystemProgramming
/Lesson1_Processes/1. StartCloseProcesses/MainWindow.xaml.cs
2.734375
3
using System; using System.Diagnostics; using System.Windows; namespace Lesson1_Processes { public partial class MainWindow : Window { Process newProcess = new Process(); public MainWindow() { InitializeComponent(); btnStart.Click += btnStart_Click; ...
bce423aa0ec93c59d5b120ed368a027120b74b09
C#
shtilyanov/HomeworkDSA
/Combinatrorics/Combinatorics/A plus B to N/task8.cs
3.734375
4
namespace A_plus_B_to_N { using System; using System.Collections.Generic; public class task8 { public static List<long> coeficents = new List<long>(); public static void GetCoeficents(int n) { long c = 1; coeficents.Add(c); for (int i = 0; i...
96c208d999eb94d686fcf4240330be9595b9bde0
C#
raj-chimmalgi/Flir.TestingApp
/Flir.ServiceClient/PowerSupplyServiceClient.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using Flir.Entities; namespace Flir.ServiceClient { public class PowerSupplyServiceClient : IPowerSupplyServiceClient { private PowerSupplyDevice _connectedPowerSupplyDevice; private List<PowerSupplyDevice> _lstPowerSupply; ...
e28d15f01358556052b6b44be21cdcb6f3bbfe80
C#
lesulix/Modellierung-A3
/0347138-domanski-michal-A3/Grammar/Rules/ProductionRule_Postfixes.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SimpleCGA.Grammar.Rules { public partial class ProductionRule { /// <summary> /// If there is a single shape at output, its symbol can be overriden here. /// </summary> protected int...
447ded49b44d3177689125705ac3f978ca4d6693
C#
LaoyaoCode/Fuel_Injection_Pum_Test_PC_APP
/Fip/Code/DB/HParaModel.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fip.Code.DB { public class HParaModel { /// <summary> /// 设定值 SET /// 转速,只能为整数 转/分 rpm /// </summary> public int S_RotateSpeed = -1; /...
a04f0c84778c3f2eed2ee2995e290164c7f47b3b
C#
wades12385/console-dudle
/ConsoleFPS2/Program.cs
2.546875
3
using System; using System.Collections.Generic; using System.Windows.Input; using System.Linq; class Program { [STAThread] static void Main(string[] args) { Timer.CreateSingleTon(); Timer sTime = Timer.Get(); InputKey.CreateSingleTon(); SceneManager.CraeteInstance(); SceneManager sce...
8c1d6f29ae61191ed7631523629a2739b4443e8b
C#
tehnarka/Singleton
/single/Program.cs
3.328125
3
using static System.Console; namespace ConsoleApp { //одинак public class Odinak { public static Odinak Instance() { if (_odinak == null) { _odinak = new Odinak(); return _odinak; } else { ...
31f4f715fbc971cf0cb137de5946ae7c5da5b0a0
C#
zouh520sdo/OdettaIce
/Assets/Scripts/FlyingIceBlock.cs
2.796875
3
using UnityEngine; using System.Collections; public class FlyingIceBlock : MonoBehaviour { public float iceFlyingRange = 5f; public float iceFlyingSpeed = 10f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void FireIce...
bd9ceeac550d7697c951d988d77ca1e898a08da1
C#
Shokhan/ShkolaSoftheme
/CSharpHW/25/ConsoleApplication1/ConsoleApplication1/Program.cs
3.421875
3
using System; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int input = 0; while (input > 2 && input < 1) { Console.WriteLine("1.Archive.\n2.Extract."); input = int.Parse(Co...
fad9ead14376a4ce0c3fe40a0c9205eb397d3c36
C#
Pavel-Durov/SymMath
/SymMath/Views/LetterSelector.xaml.cs
2.765625
3
using SymMath.Keyboard; using System; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; namespace SymMath { public partial class LetterSelector : Window { private readonly TextBox[] _textBoxes; private Tupl...
60ef37a59f0aee6cb9b0ecd1fc6bf91b9b069b95
C#
zephyrworkshop/florafiora
/Assets/Scripts/Canvas/FadeScript.cs
2.734375
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class FadeScript : MonoBehaviour { public float timer; public bool fadingIn; public bool fadingOut; public bool fadeComplete; // Use this for initialization void Start () { } // Update is called once per frame ...
426894cd47b74f933b41d1cc8877749ceb72e095
C#
Phuong-Huynh/MauThietKeHDT
/MyGraphics/MyGraphics/Common/CairoGraphics.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Cairo; using System.Windows.Forms; using System.Drawing; namespace MyGraphics.Common { public class CairoGraphics : CommonGraphics { protected Context lib; pr...
5f8001386e52a5a5226847b35de61b1de31509f8
C#
llenroc/communityapp-1
/TechReady/ViewModels/SessionDetailsPageViewModel.cs
2.5625
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TechReady.Common.Models; namespace TechReady.ViewModels { public class SessionDetailsPageViewModel:BaseViewModel { private TrackSession _session; pub...
1f8ff8b7918be6151e22f110bb20a0c2d08fd58f
C#
romagny13/EasyDb
/EasyDbLib/Mapping/MappingContainer.cs
2.703125
3
using System; using System.Collections.Generic; namespace EasyDbLib { public class MappingContainer : IMappingContainer { EasyDb db; public Dictionary<Type, ITable> TableByModelType { get; } public DefaultMappingBehavior DefaultMappingBehavior { get; set; } public MappingCon...
4860dc7663a2b923d59f47d7bb0f8304a83076a4
C#
dnsdurham/DesignPatterns
/DesignPatterns.Behavioral.Tests/TaxCalculatorTests.cs
2.765625
3
using System; using DesignPatterns.Behavioral.Strategy.OrderProcessing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DesignPatterns.Behavioral.Tests { [TestClass] public class TaxCalculatorTests { /// <summary> /// Verify the US Tax Rules algorithm /// </summary> ...
7bab544855f355c4a84f4407c27d84dac94c6bcc
C#
neilharvey/AdventOfCode
/2021/Day15/Util.cs
3.21875
3
namespace Day15; public static class Util { public static void PrintGraph(Graph graph, IList<Node> path) { for (var y = 0; y < graph.Height; y++) { for (var x = 0; x < graph.Width; x++) { var node = new Node(x, y); if (path.Contains(node)...
0763ca55f939d3068420f3da7239c2cb36e7f01f
C#
DSplawski92/Data-Importer
/DS.Tests/AsciiDataImportTest/AsciiDataImportSource.cs
2.734375
3
using NUnit.Framework; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DS.DataImporter; using DS.AsciiImport; namespace UnitTestProject { public class AsciiDataImportSource { static AsciiSettings Create...
faf17902d5f2856cdfac908e6a6dd7bb4574321b
C#
Tonire/RRHH-Analytics
/iManagerGen/IManagerGenNHibernate/EN/IManager/LineaVentaEN.cs
2.609375
3
using System; // Definición clase LineaVentaEN namespace IManagerGenNHibernate.EN.IManager { public partial class LineaVentaEN { /** * Atributo id */ private int id; /** * Atributo cantidad */ private int cantidad; /** * Atributo venta */ private System.Collections.Generic.IList<IManagerGenNHibernate.EN.IM...
aa66c35c50542a3e1b7e54f541f9323c71aa1488
C#
ErlashTheOne/VideoClub
/Videoclub/Film.cs
3.015625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; namespace Videoclub { class Film { public int Id { get; set; } public string Title { get; set; } public string Synopsis { get; set; } public int Recommend...
2cec50acee1dabd09f2758f91ee49a8438465832
C#
mihkelotto/KTA-17-Programmeerimine
/src/03-graded-assignment/GradedAssignments-15.01/Exercise-two/Tab.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercise_two { public class Tab { public List<double> Items { get; private set; } = new List<double>(); public void Add(double value) { Items.Add(v...
a707ad67f312733a04c1b52e0f413aceccb81f73
C#
1902-feb18-net/matthewV-code
/MoreAnimals/MoreAnimals.Library/IAnimal.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; namespace MoreAnimals.Library { public interface IAnimal { //implied for all of an interface to be public //we don't have fields but we do have properties. //Not auto-implemented in an interface. int AnimalId ...
70b86e22c21115fffe4204bf631540e00eaa5228
C#
alephist/edabit-coding-challenges
/CSharp/FactorsOfGivenNumber.cs
3.828125
4
using System.Linq; namespace CSharp { // Create a function that finds each factor of a given number n. // Your solution should return an array of the number(s) that meet this criteria. // https://edabit.com/challenge/WR3Q72Jbv7Kyzu6AT public static class FactorsOfGivenNumber { public static...
3db32b73345114a4206698a2b7c6123141e602ac
C#
redskin92/GameJam_MiniGame
/MinGame/Assets/Scripts/ElijahScripts/Projectiles/Projectile.cs
2.515625
3
using System; using ElijahScripts.Manager; using ElijahScripts.Tank; using UnityEngine; namespace ElijahScripts.Projectiles { public class Projectile : MonoBehaviour { [SerializeField] protected float damageAmount; protected virtual void OnHit(Collision2D collision) { ...
6f8d8f0232118398c682d479c757386879e33572
C#
AntonC9018/hopper.cs
/Core/Items/Equippable.cs
2.53125
3
using Hopper.Core.Components; using Hopper.Core.WorldNS; using Hopper.Shared.Attributes; using Hopper.Utils; namespace Hopper.Core.Items { // TODO: the typeId thing should be stored in the equippable or in another component. // TODO: refactor it so that the checks are done once at the start which attaches conc...
639e4c966e0ee3c0e2d1bf35468714763691eeaa
C#
aqua1911/ImproveEF
/DataAccess/BlogRepository.cs
2.71875
3
using BusinessLogic; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccess { public class BlogRepository : IBlogRepository { private readonly IUnitOfWork _unitOfWork; public BlogRepository(IUnitOfWork unitOfWork) { ...
925cba0a8ee22bed8c75808d59b2afcb5333ae98
C#
sagy1/TQ_C-Training
/AccessModifier/Class1.cs
2.671875
3
using System; namespace AccessModifier { public class Class1 { public int add() { int a = 10; Console.WriteLine("Add Method"); return a; } } }
bd057651b4b3f3f40bd10388d777fe3481c82c19
C#
uwx/CommonLibrary.NET
/src/Lib/CommonLibrary.NET/Mapper/MapperXml.cs
2.546875
3
/* * Author: Kishore Reddy * Url: http://commonlibrarynet.codeplex.com/ * Title: CommonLibrary.NET * Copyright: � 2009 Kishore Reddy * License: LGPL License * LicenseUrl: http://commonlibrarynet.codeplex.com/license * Description: A C# based .NET 3.5 Open-Source collection of reusable components. * Usag...
8e3cf7e3ea13bb1fbaa767e2354dbab349240987
C#
svet110/ProgrammingFundamentalsExtended
/MethodsAndDebuggingExercises/EnglishNameOfTheLastDigit/EnglishNameOfTheLastDigit.cs
3.890625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EnglishNameOfTheLastDigit { public class EnglishNameOfTheLastDigit { public static void Main() { int n = int.Parse(Console.ReadLine()); string n...
5d679349cf25ba395e16067bb2bb4b0528f8c055
C#
KaloyanDragiev/Fontys-University
/Year1/C#1/week4/week4/BankAccount/BankAccount.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankAccount { public class BankAccount { private int _accountNumber; private decimal _balance; public BankAccount() { } public BankAc...
5b05192f8ccb075c3c35a1875b258603d0e0446d
C#
gabriel-valenga/CursoCsharpCompletoUdemy
/Exercicio37AlturaMediaNPessoas/Program.cs
3.515625
4
using System; namespace Exercicio37AlturaMediaNPessoas { class Program { static void Main(string[] args) { double alturaMedia; double somaAlturas = 0; Console.WriteLine("Digite o número de pessoas:"); int numeroPessoas = int.Parse(Console.ReadL...
5629a8805c57a3c890b68335f1aa394d54e7b738
C#
devui1085/windows_store
/WindowsStoreDeveloperClient/Developer.UI/Converters/BooleanToColorConverter.cs
2.875
3
using System; using Windows.UI; using Windows.UI.Xaml.Data; namespace WindowsStore.Client.Developer.UI.Converters { /// <summary> /// Value converter that translates true to <see cref="Colors.Blue"/> /// and false to <see cref="Colors.Red"/>. /// </summary> public sealed class BooleanToColorConver...
27cc723dfa359c6c15f69f0b2cd2813f5199ff41
C#
smartmaster/-MyCommonLibs
/zzz-test/TestCs-sss003/TestCs/MyNum.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; namespace TestCs { class MyNum { public int Num { get; set; } public static bool operator true(MyNum num) { Console.WriteLine($"operator true on {num.Num}"); return num.Num > 0;...
114cda9f46535bc158a9669741c7da20bce6a5a2
C#
shendongnian/download4
/first_version_download2/211888-16428723-40284048-2.cs
2.546875
3
public class MyControl : Control { private Font myOtherFont; public Font MyOtherFont { get { if (this.myOtherFont == null) { if (base.Parent != null) return base.Parent.Font; ...
0cd8864463e19ded2e028ccaea99b5628961c99c
C#
Merwer/Chronicle-Data
/Repository.cs
2.84375
3
using com.greasyeggplant.chronicle.data.csvData; using CsvHelper; using CsvHelper.Configuration; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace com.greasyeggplant.chronicle.data.entities { public class Repository : Localizer { public static readonly strin...
c4e2f29f05d7e97ea6554a8622e53b0b24ff90c9
C#
bsstokke/tinyradius4net
/Src/TinyRadius.Net.Core/Dictionaries/DictionaryParser.cs
2.875
3
using System; using System.IO; using System.Text.RegularExpressions; using TinyRadius.Net.Attributes; namespace TinyRadius.Net.Dictionaries { /// <summary> /// Parses a dictionary in "Radiator format" and fills a /// WritableDictionary. /// </summary> public class DictionaryParser {...
e351b0290e55b73a2be70ec50c66206c770a08ae
C#
AleksanderUrbanowicz/ScriptableObjectsLibrary
/Assets/Scripts/StateMachine/Events/BoolEventListener.cs
2.546875
3
using UnityEngine; using UnityEngine.Events; namespace BaseLibrary.StateMachine { public class BoolEventListener { public string id; public ScriptableEventListener scriptableEventListenerOnTrue; public ScriptableEventListener scriptableEventListenerOnFalse; public BoolEventLis...
0afbe0ae9ccdeccb6b584bb97ba646cea6374bbd
C#
MickaelAlliel/photext-journey
/Photext Journey/Input/KeyboardInput.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace Photext_Journey { public class KeyboardInput { private KeyboardState kbState, newKbState; public KeyboardInput() { ...
cf06a2347d650dcc5d2a2a9438d1882f55a45398
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/abc005/B/4320601.cs
3.125
3
using System; using System.Linq; using System.Collections.Generic; class Atcoder110 { public static void Main() { int i, j, min; int n = int.Parse(Console.ReadLine()); var List = new List<int>(); for (i = 0; i < n; i++) { j = int.Parse(Consol...
adf9c42f245ce57daa6d63c39d09ab23f974f812
C#
mkbhanu/Dot-Net-Code-Assessment
/Matchbook.Server/Matchbook.Tests/Persistence/Model/ClearingAccountTests.cs
2.578125
3
using Matchbook.Model; using Microsoft.EntityFrameworkCore; using System.Linq; using Xunit; using static Matchbook.Tests.Persistence.EntityAssertions; namespace Matchbook.Tests.Persistence.Model { public class ClearingAccountTests : PersistenceTestBase { private readonly DbContextFixture f...
c8f2e7d88d5afd565bb5995c3fe657b4a90a0dbe
C#
AmberWolfe/VendingMachine
/Capstone/classes/ChangeService.cs
3.234375
3
using System; using System.Collections.Generic; using System.Text; namespace Capstone.classes { public class ChangeService { private int Quarter { get; set; } private int Dime { get; set; } private int Nickel { get; set; } private int[] ChangeList { get; set; } = new int[3]; ...
081c907c6626449742f41eb209c26aa22b9cf151
C#
cadillaclizard/TriangleIrc
/▲IrcLib/IrcServer.cs
2.703125
3
using System; using System.IO; using System.Net.Sockets; using System.Net; using System.Text; using System.Reflection; using System.Collections.Generic; namespace TriangleIrcLib { /// <summary> /// Represent IRC server connection. /// </summary> /// <typeparam name="T">The type of class containing met...
f4743be6fd2906dbdad5c9210ef4e1195fa14386
C#
eylvisaker/AgateLib
/src/AgateLib/Collections/Generic/BinaryTreeNode.cs
2.8125
3
// // Copyright (c) 2006-2018 Erik Ylvisaker // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy...
30826f8358ab60c09ffe264475eb4688da429d19
C#
GFoley83/LearnProjects
/ctarti/Chapter02/C02_Notes.cs
3.390625
3
using ctarti.Library; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chapter02 { //public class Node //{ // Node next = null; // int data; // public Node(int d) // { // data = d; // } ...
9b78a844fae534aaf7b3424faf07ccfa76189bbd
C#
bogdansafta/remotelearning2017
/sources/AlexandruVaja/VendingMachine/VendingMachine/PaymentTerminal.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace VendingMachine { class PaymentTerminal { public void Pay(int id, Payment payment) { Dispencer dispencer = new Dispencer(); Product product = dispencer.Get(id); double ch...
d22bfee5c110810e488b9afd86537704226c1be0
C#
JorgeFaria/IDJ
/Exercicios/Animal Clinic/Program.cs
3.453125
3
using System; namespace Animal_Clinic { class Program { public static int contador=2; static void Main(string[] args) { string command = Console.ReadLine(); while (command != "End") { for (int i = 1; i < contador; i++) ...
1d08881d98d8a675c4fee0c3eea1c21b164d7ba5
C#
barrygchen/BMWBCWebSite
/CMWebSite/Home/GetFamilyDetails.aspx.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace CM { public partial class GetFamilyDetails : System.Web.UI.Page { public string szFamilyID; protected void Page_Load(object se...
6675829bf68db4b354b77b642bbd147dd0a5de92
C#
FieryBlackFox/first
/Template/FindTemplate.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace findTemplate { public static class FindTemplate { public static SortedSet<Border> SetOfFoundTemplates(this string str, string template) { List<string> listTemplate = ListTemplate(templat...
30c7c14b8c46e9ffdfe930691d03b031e9d72414
C#
RonaldoVasconcelos1/Api_Zero
/Services/MovieInfoRepository.cs
2.96875
3
using System.Collections.Generic; using System.Linq; using api.Context; using api.Entities; using Microsoft.EntityFrameworkCore; namespace api.Services { public class MovieInfoRepository : IMovieInfoRepository { private readonly MovieDbContext _context; public MovieInfoRepository(MovieDbContext...
1f920988e0992fc3107d83273d8feda35674709f
C#
manhng83/UnitTestMoq
/UnitTestMoq/Services/EmployeeService.cs
2.796875
3
using Microsoft.EntityFrameworkCore; using System.Linq; using System.Threading.Tasks; using UnitTestMoq.Models; namespace UnitTestMoq.Services { public class EmployeeService : IEmployeeService { #region Property private readonly AppDbContext _appDbContext; #endregion Property ...
3b7ebb28a95369f3ae41a57b3933680913bc0b7b
C#
CntSoft/Public
/VanChi.FMS.Web/Common/StandardizeText.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace LacViet.HPS.EDO.MVC.Common { /// <summary> /// Lớp thực hiện việc chuẩn hóa văn bản /// </summary> public class S...
13969cdaf8df0c089521c6a95e0b0d7134c25a7e
C#
cs22918980x/classBorrow
/classBorrowAndRepay/ClassBorrowAndRepay.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; namespace classBorrowAndRepay { class ClassBorrowAndRepay { public string Name; public int Money; public ClassBorrowAndRepay(string name, int money) { this.Name = name; this.Money = mone...
d26594165d70d8799a6d382c9611025961b057ea
C#
Felandil/Chiota
/Chiota/CEXEngine/Crypto/Cipher/Asymmetric/Encrypt/NTRU/Polynomial/ModularResultant.cs
2.609375
3
#region Directives using VTDev.Libraries.CEXEngine.Crypto.Cipher.Asymmetric.Encrypt.NTRU.Arithmetic; using VTDev.Libraries.CEXEngine.Numeric; #endregion namespace VTDev.Libraries.CEXEngine.Crypto.Cipher.Asymmetric.Encrypt.NTRU.Polynomial { /// <summary> /// A resultant modulo a <c>BigInteger</c> /// </summ...
81702a96e0dbbeaba8573e6eeb369ce4cecc533a
C#
SofiaVasileva/University-Projects
/Homework 8/PiggyBank/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PiggyBank { class Program { static void Main(string[] args) { int number = 0; double sqrt = 0; double bonus = 0; double ...
2ea0e9a152b671ab48c1625d00e9747f86c0eeac
C#
gOnTheMoon/FractalProcessingServer
/FractalProcessingServer/FractalProcessingServer/MandelbrotLogic.cs
2.796875
3
using System.Numerics; using NotificationServer; namespace FractalProcessingServer { public class MandelbrotLogic : Logic { public override IEvent ProcessEvent(IEvent eventToProcess) { ComplexPixelEvent complexPixel = eventToProcess as ComplexPixelEvent; Complex number...
7e36669b29ef1d335ea28ffd8072da4d9056ba17
C#
sandeepchauhan/libs
/DataStructures/CustomString.cs
3.59375
4
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learning.Libs.DataStructures { public class CustomString { private readonly string _value; private readonly int _length; private c...
95c427e4c2fc70da2a11b804971d2fc7e846ad87
C#
CroSafan/CSharp_Practice_Console
/Challenge_277_Simplifying_fractions/Program.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Challenge_277_Simplifying_fractions { class Program { /// <summary> /// https://www.reddit.com/r/dailyprogrammer/comments/4uhqdb/20160725_challenge_277_easy_simplifying...
2f4ae0537cd8871d34cc61757c617321cc79d1fc
C#
riotgibbon/StravaChallenge
/StravaChallenge/HttpTools.cs
2.84375
3
using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace StravaChallenge { static internal class HttpTools { public static async Task<T> GetHttpResponseAsync<T>(string requestUri, string accessToken) { var client = GetJsonHttpClient(); ...
1efc8d6beb869b6f0589ef60254bced24230d267
C#
kristiqn124/Draw-Project
/SharpDevelop2-WinForms/src/Model/EllipseShape.cs
3.125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Draw.src.Model { class EllipseShape : Shape { #region Constructors public EllipseShape() { } public EllipseShape(RectangleF ellipse)...
0a2da15ac6eb693cb6e5020828096201187e50b8
C#
victorko/vsc
/VSC/Core/Registers.cs
2.796875
3
using System; namespace Vsc.Core { public class Registers { private readonly double[] data; public Registers() { var registerCount = Enum.GetNames(typeof(Register)).Length; this.data = new double[registerCount]; } public double this[Register re...
70f83dfdae07265161114a9f1d31d26fc21d3261
C#
andrewgrits/GuitarStore
/ProductStore.WebUI/Controllers/AdminController.cs
2.578125
3
using System.Web.Mvc; using ProductStore.Domain.Abstract; using ProductStore.Domain.Entities; using System.Linq; using System.Web; namespace ProductStore.WebUI.Controllers { [Authorize] public class AdminController : Controller { IGuitarRepository repository; public AdminController(IGuita...
4f60b912d56439a855e53a4297fbfa44504dba45
C#
ShimizuShiori/Reface.AppStarter
/src/Reface.App.Starter/ComponentCreatingEventArgs.cs
3.015625
3
using System; namespace Reface.AppStarter { public class ComponentCreatingEventArgs : EventArgs { /// <summary> /// 此时创建的需求类型 /// </summary> public Type RequiredType { get; private set; } /// <summary> /// 已创建出的实例 /// </summary> public object Cr...
412732c83144bbdc9ba48f8e6484b76eea61cc54
C#
Corothigo13/ExercicioFigurasGeometricas
/Exercicio/Figuras_Geometricas/Figuras_Geometricas/Hexagono.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Figuras_Geometricas { class Hexagono:Forma { double area, perimetro; override public void calcularArea(double lado, double b) { area = (3 * (lado * ...
07cbcf76e04fb2a797b19408d41914af77010b86
C#
alexiscordts/sdmay21-44
/C#Backend/InpatientTherapySchedulingProgram/Services/PermissionService.cs
2.859375
3
using InpatientTherapySchedulingProgram.Exceptions.PermissionExceptions; using InpatientTherapySchedulingProgram.Exceptions.UserExceptions; using InpatientTherapySchedulingProgram.Models; using InpatientTherapySchedulingProgram.Services.Interfaces; using Microsoft.EntityFrameworkCore; using System.Collections.Generic;...
a04be545a8efaef96a983844f814b5e4f6a6e58a
C#
liebasam/GenericNEAT
/test/GenericNEAT.Tests/Samples/NeuralNets/TNNetChromosome.cs
2.734375
3
using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace GenericNEAT.Samples.NeuralNets.Tests { [TestClass] public class TNNetChromosome { [TestClass] public class Constructors { [TestMethod] public void Failure() ...
c22618cfb0d5120793c590d32b1e777537425278
C#
SePiat/EPAMtraining-
/Task_2/TextProcessor/TextHandler/Parser.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using TextProcessor.Core; namespace TextProcessor { public class Parser : IParser { public List<ISymbol> CollectionSymbolFromText { get; set; } = new List<IS...
7de3366f6111e038ae64756533fae5768aa37951
C#
skyras-infotech/swabhav
/MVC/ContactDynamicApp/ContactDynamicCore/Repository/ContactRepository.cs
2.890625
3
using ContactDynamicCore.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ContactDynamicCore.Services; namespace ContactDynamicCore.Repository { public class ContactRepository : IContactRepository { public ContactDBConte...
2224570bb9fc299dc565e47ecee97d056077a8b9
C#
YesratRahman/classwork-rahman-yesrat
/SpringFoodApp/SpringFoodBackend/SpringFood/Repos/CartRepo.cs
2.890625
3
using Microsoft.EntityFrameworkCore; using SpringFoodBackend.Interfaces; using SpringFoodBackend.Models.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SpringFoodBackend.Repos { public class CartRepo : ICart { private SpringFoodDbConte...
89c3fdf585695c9a57d0e68d5eec81a40ef1ea09
C#
YeKyawTun/TOB-Game-Design
/TOB project/Assets/Scripts/movieManager.cs
2.625
3
using UnityEngine; using System.Collections; public class movieManager : MonoBehaviour { public MovieTexture movie; private Renderer movieRenderer; private bool stop; // Use this for initialization void Start () { stop = false; // set the movie as a texture movieRenderer = this.GetComponent<MeshRenderer>...
e55631cd4930016b8ebf3605fcefe03e00b6ab95
C#
marcwittke/Backend.Fx
/src/environments/Backend.Fx.AspNetCore/Versioning/VersionHeaderMiddleware.cs
2.578125
3
using System; using System.Reflection; using System.Threading.Tasks; using JetBrains.Annotations; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; namespace Backend.Fx.AspNetCore.Versioning { [UsedImplicitly] public class VersionHeaderMiddleware { private readonly RequestDe...
fa4043c1339681df39c93d9a1a0617118a5a9705
C#
yg2522/Grid-Test-Project
/Classes/VisualDiffTextBlock.cs
2.921875
3
using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media; namespace WpfApplication1.Classes { public class VisualDiffTextBlock : TextBlock { #region CurrentTextProperty public static readonly...
01e449d733eabf1f786bc400094a42a49ca1439b
C#
kkkars/Homework-2
/Library/Task_4.2/Program.cs
2.875
3
using System; using Library; namespace Task_4._2 { class Program { static void Main(string[] args) { PaymentService payment = new PaymentService(); try { //To check the exception for already used voucher. //The...
36b9de55dc613a94e27eb1480ae4c594fd5c3ef2
C#
Spidermain50/CoPowerScreening
/xUnitTesting/SimsShould.cs
2.875
3
using CoPowerScreening; using System; using Xunit; namespace xUnitTesting { public class SimsShould { [Fact] public void BeOnSameLine() { var line = new Line(); var sim1 = new Sim(line); var sim2 = new Sim(line); Assert.Same(sim1.Line, s...
c6b0ebd619546348812acc40dc1bbae0f8244bf3
C#
TS1980/TripAppBeta
/TripApp/ViewModel/Trip.cs
2.515625
3
using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TripApp.Model; namespace TripApp.ViewModel { class Trip : ViewModelBase { ...
3eee5e2cd4edd4bf78a8a6e6da28598dc8cd2cfb
C#
murilomathaus/CRUD
/CRUD/ViewModel/HomeViewModel.cs
2.640625
3
using CRUD.Database; using CRUD.Model; using Prism.Commands; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace CRUD.ViewModel { public class HomeViewModel : BaseViewModel { public List<Client> Clien...
53f385d78ba093df77e249685a4a38d8f4927253
C#
jerekapyaho/eumemberdata
/csharp/Timeline/Coordinates.cs
3.40625
3
using System; namespace EUMembers; public class Coordinates { private double _latitude; public double Latitude { get { return _latitude; } set { if (value >= -90 && value < 90) { _latitude = value; } ...
b85e33f38a35c8e4a7011c3419d54552506931a7
C#
kandrakah/Cardinal.ClickSign
/Cardinal.ClickSign/Models/AddSignerResponse.cs
2.546875
3
/* The MIT License (MIT) Copyright (c) 2019 - Marcelo O. Mendes All rights reserved. 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...
35dfc34df8dec0afbaf044a5528a63ea467de18a
C#
lazymushroom22/Project-II-Use-of-Databases
/CarRentalProject/CarRentalProject.ApplicationLogic/Services/BookingService.cs
2.6875
3
using CarRentalProject.ApplicationLogic.Abstractions; using CarRentalProject.ApplicationLogic.DataModel; using CarRentalProject.ApplicationLogic.Exceptions; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CarRentalProject.ApplicationLogic.Services { public class ...
e1274d0aad3379f3520f4ddda5cdd43d158e5a50
C#
liqun2013/CommonLibrary
/CommonLibraryWeb/Infrastracture/SessionStateHelper.cs
2.625
3
using System; using System.Web; namespace CommonLibraryWeb.Infrastracture { public static class SessionStateHelper { public static object Get(SessionStateKeys key) { if (HttpContext.Current == null) return null; string keyString = Enum.GetName(typeof(SessionStateKeys), key); return HttpContext.Cur...
62c5ca6c6907a9e064d6a39f70f77e470e59e482
C#
MartinNikolovMarinov/CSharp_DSA
/SoftUni/DataStructures/02.LinearDataStructures/Homework/LinearDataStructuresTests/01.SumAndAverageTests.cs
3.28125
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using LinearDataStructures; namespace LinearDataStructuresTests { [TestClass] public class UnitTest1 { [TestMethod] public void SumAndAverageTest() { // test 1 ...
e5cf097e6298f374c9d59ca3b57234a1e912a12e
C#
gpdoud/AppConfigLibrarySolution
/TestConsole/Program.cs
2.625
3
using AppConfigJsonLibrary; using System; namespace TestConsole { class Program { static void Main(string[] args) { var jsonpath = @"C:\repos\dotnetcore30\AppConfigLibrarySolution\TestConsole\configdata.json"; using(var json = new AppConfigJson<Json.ConfigData>(jsonpath)) { ...
f92ee30d8da78e6bdde0d8a262cd139278f926c0
C#
peterlambov/CSharp
/C#Homeworks/C#Part2Homeworks/06ExceptionHandling/Ex03ReadingFile/File.cs
3.78125
4
//Write a program that enters file name along with its full file path (e.g. C:\WINDOWS\win.ini), //reads its contents and prints it on the console. Find in MSDN how to use System.IO.File.ReadAllText(…). //Be sure to catch all possible exceptions and print user-friendly error messages. using System; using System.IO; ...
0260d1b06a46c340b1ab18ff68ac13de1e46fcfa
C#
IanRJacobs/NetCoreSample
/Application/ProductServiceSingleton.cs
2.578125
3
using Domain; using Infrastructure; using System; using System.Collections.Generic; namespace Application { public class ProductServiceSingleton : IProductServiceSingleton { private IProductRepositorySingleton _productRepository; public ProductServiceSingleton(IProductRepositorySingleton prod...
d3d7e4803147c7566fd3d1ff07b68160eef42ff7
C#
techbuzzz/Samples-archive-msdn-products
/Microsoft Office Developer Documentation Team/Office-2007-OBA-Sample-Application-Kit-for-SAP-2680/[C#]-Office 2007 OBA Sample Application Kit for SAP/C#/SWP/SWPConnectionDataReader.cs
2.609375
3
using System; using System.Data.Common; namespace SoftwarePronto.CodeGenerator.DatabaseDriverCommon { public class SWPConnectionDataReader : IDisposable { private DbConnection _connection; private DbDataReader _reader; public SWPConnectionDataReader( DbConnection connectio...
234032a973afc452e3f48b6124ce016f7cd6117a
C#
AveryHuo/PeefyLeetCode
/src/CSharp/1-100/54.SpiralMatrix.cs
3.203125
3
using System; using System.Linq; using System.Text; using System.Collections.Generic; namespace PeefyLeetCode.SpiralMatrix { public class Solution { public IList<int> SpiralOrder(int[,] matrix) { List<int> ans = new List<int>(); if (matrix.GetLength(0) == 0) return ans; ...
e01a013ff92ed5cffa480ea75b4ecd275924c861
C#
Oleynik1Juri/cd
/projects/CyclicDesignsApp/CyclicDesignsApp/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CyclicDesignsApp { class Program { static void Main(string[] args) { Console.Write("Введите число a: "); var a = Convert.ToInt32(Console.ReadLin...
bab250a662b0aca6e3453e37e0d113ed68168658
C#
shendongnian/download4
/first_version_download2/344091-29170279-86296116-2.cs
2.84375
3
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { //Check if we're formatting the color column if (this.dataGridView1.Columns[e.ColumnIndex].Name == "Color") { //Make sure there's a value set if (e.Value != null) ...
84f2e0f05cb159714d61b371be1c3ca91020966c
C#
OpenLocalizationTestOrg/ECMA2YamlTestRepo2
/fulldocset/add/codesnippet/CSharp/m-system.codedom.compile_11_1.cs
3.03125
3
if (fileExtension[0] != '.') { fileExtension = "." + fileExtension; } // Get the language associated with the file extension. if (CodeDomProvider.IsDefinedExtension(fileExtension)) { CodeDomProvider provider; ...
097a4c41b79f5eed15737fba9385e592a948c685
C#
pkar70/docs
/docs/csharp/language-reference/keywords/codesnippet/CSharp/namespace_3.cs
3.21875
3
namespace SomeNameSpace { public class MyClass { static void Main() { Nested.NestedNameSpaceClass.SayHello(); } } // a nested namespace namespace Nested { public class NestedNameSpaceClass { public static void SayHello() ...
45ba838f965754670edf040ed7670536eefbfdf7
C#
anabeatrizdsmorais/trabalhos_academicos_CScharp
/Exercicio 3 For C#(Tabuada Crescente).cs
3.515625
4
using System; namespace prog_estruturad { class Exercicio3For { static void Main(string[] args) { int i, n; double r; n = 0; r = 0; Console.Write("Digite um numero para a tabuada: "); n = int.Pa...
c5e1b52eded950c43b5137bddd0131d8fbef46cc
C#
WindowsT10/frontend
/OnBoardFlight/OnBoardFlight/ViewModel/Passenger/SerieListViewModel.cs
2.625
3
using Newtonsoft.Json; using OnBoardFlight.Model; using OnBoardFlight.Model.Helper; using OnBoardFlight.Model.Media; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace OnBoardFlight....
f097e7b020f337aedbac3434f73e7419e7f3586d
C#
l3kov9/TechModule
/ArrayAndListAlgorithmsExercises/04.ArrayHistogram/ArrayHistogram.cs
3.796875
4
namespace _04.ArrayHistogram { using System; using System.Collections.Generic; using System.Linq; public class ArrayHistogram { public static void Main() { var list = Console.ReadLine().Split().ToList(); var sizeList = list.Count; while (list.Cou...
3ac6b3fe184844d30f7bd14d21f756cd53504216
C#
QualitySolution/QSProjects
/QS.Configuration/IChangeableConfiguration.cs
2.640625
3
using System; namespace QS.Configuration { /// <summary> /// Интерфейс который в плане чтения конфигурации должен быть похожим на IConfiguration от MS /// Чтобы он был заменяем без переписывания кода и в последствии /// И был бы как IConfiguration более универсальным. То есть не связанным с местом хранения данных....
bfaf92d8aa09adf96b241958e2f994cfd7a23aa1
C#
jpolfer/SimpleCalculator
/SimpleCalculator/SimpleCalculator/Default.aspx.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CSE; using System.Data.SQLite; namespace SimpleCalculator { public partial class _Default : Page { private void LoadHistoryList() { List<...