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
817a85175ac3909d4769d5e67a31a357c0558a69
C#
IrinaMoroz/UnitsConverter
/UnitsConverter/UnitsConverter.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnitsConverter { public class UnitsConverter { public delegate double Function(double num); private Dictionary<UnitsConverterType, Function> converters; public...
8f2dcbb7584f066b8b0c7a159112fe93c6ec4df5
C#
almakhanov/Programming_Technologies_Lab_works
/Lab3_FarManager_Recursion/State.cs
3.4375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FarWithRecursion { class CustomFolderInfo { CustomFolderInfo prev; int index; DirectoryInfo[] dirs; public CustomFolderInfo(CustomFold...
ad04816c778620dda7c67f0ad1c23e8ffa43e59d
C#
vipomage/ProgrammingFundamentals
/29.StringsAndTextProcessingExcercise/29.StringsAndTextProcessingExcercise/02.ConvFromNto10Base/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace _02.ConvFromNto10Base { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); C...
9684305c6ca94b3eb48caf9666995245fb241224
C#
Diassai/WSEI-games
/resources/laboratories/Demolition/Assets/_Scripts/HudView.cs
2.875
3
namespace Demolition { using UnityEngine; using UnityEngine.UI; /// <summary> /// Stores the references to the UI elements, /// decouples UI from game logic /// /// Note that in this case, none of the UI elements /// are part of public API, so we can completely change UI without //...
c0f9605d345bd5ce75537c7c6f4f486376e39bc0
C#
raidenyn/NHibernate.GraphQL
/src/NHibernate.GraphQL/QueryOptimizationExtension.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace NHibernate.GraphQL { /// <summary> /// Extension for nHibernate query optimization /// </summary> public static class QueryOptimizationExtension { /// <summa...
3cdf2dc491a9762b18377612ea8d48e2a078d4ba
C#
AntonioFelixJr/projects_to_learning_csharp
/Section17/Linq2/Program.cs
3.15625
3
using System.Collections.Generic; using Linq2.Entities; using System.Linq; using System; using System.Globalization; namespace Linq2 { class Program { static void Print<T>(string message, IEnumerable<T> colletions) { Console.WriteLine(message); foreach(T obj in colletio...
14a55c64505434298afaf4bed726d001f0ed878d
C#
fbeltrao/iot-telemetry-simulator
/test/IotTelemetrySimulator.Test/PayloadGeneratorTest.cs
2.640625
3
using Moq; using System; using System.Text; using Xunit; namespace IotTelemetrySimulator.Test { public class PayloadGeneratorTest { private byte[] GetBytes(string v) => Encoding.UTF8.GetBytes(v); [Fact] public void When_Getting_Payload_Should_Distribute_Correctly() ...
115493e1d36e5363db1c494c60b7b2ab54d7186d
C#
huayangyiyang/MyFila
/FilaShop/Controllers/AddressController.cs
2.515625
3
using FilaShop.Filter; using FilaShop.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace FilaShop.Controllers { [LoginFilter] public class AddressController : Controller { private MyShopEntities db = new MyShopE...
9489248de545a311b0d7f6feaf9181a60b87c186
C#
c272/burrito
/burrito-api/BurritoAPI.cs
2.921875
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Burrito { /// <summary> /// Represents a single instance of the Burrito API. /// </summary> public...
0ba91715cd96281550ba193f4363446a05f64867
C#
IgorPR0/SequenciaCentena
/Program.cs
3.359375
3
using System; namespace SequenciaCentena { class Program { static void Main(string[] args) { string ok; do { Console.Write($"Digite ok ou sequencia para 1 a 100. Pressione ctrl C para cancelar."); ok=Console.ReadLin...
76b9a3ab4f4d97d9f15ab2a2bb3dd3fee291d4e0
C#
Jeremybdel/Projet-SpicyInvaderTest
/V3-LeTourneur/SpicyInvader/NewSpicyVader/Bullet.cs
3.203125
3
///ETML ///Auteur : Ethenoz Sofian ///Date : 18.11.2019 ///Description : La class Bullet sert à donner des attributs aux missiles using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NewSpicyVader { public class Bullet { ...
ebd75afee925c9811f322372ae163a734d9ab99e
C#
gatest1/May2019
/Booleans.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Booleans : MonoBehaviour { public bool isTrue; private bool isHappening; void Start() { isTrue = true; isHappening = true; } void Update() { if (!isTrue) { ...
90f381c3a90ee8a3344cf0a2356acaf8babab111
C#
jedrek17/projektOptymalizacja
/Optymalizacja/Optymalizacja/Variables.cs
2.59375
3
//Algorytm wykonany według: //http://akson.sgh.waw.pl/~jd37272/MO/mo_zaj3.pdf - prawdopodobnie zawiera błędy //poprawiony według: //http://optymalizacja.w8.pl/simplexNM.html using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using S...
61d4302a03d58f40a111fc6c1e267233a2bb5ffe
C#
lilou-cormic/LudumDare43
/Ludum Dare 43/Assets/Scripts/Token.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; public abstract class Token : MonoBehaviour { public Tile CurrentTile { get; set; } private bool IsInitialized { get; set; } = false; private bool IsMoving { get; set; } = false; protected abstract void...
7f674ef3b11161f7df528f783288d89917150f54
C#
RofinAndreven/Pattern-Software-Design
/Controller/CartController.cs
2.578125
3
using ProjectPSD.Handler; using ProjectPSD.Model; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ProjectPSD.Controller { public class CartController { public static List<Cart> GetCartListByUserId(int id) { return CartHand...
893825c0f135438b6abb9f84254eb69689662737
C#
rafamaxx/DioC-.NET
/Solução de Problema com .NET/Estrutura de Dados - 2/FiladoBanco.cs
3.078125
3
using System; namespace FilaDoBanco { class Program { static void Main(string[] args) { int numCasos = int.Parse(Console.ReadLine()); int numClientes; string[] entrada; int max = 0; int maxindex = 0; int[] fila; ...
9816cd764a3c98f5178a0ff548aad730dc4becea
C#
goveo/notes
/Notes/Views/NoteCreator.xaml.cs
2.5625
3
using Notes.ViewModels; 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 Syste...
6180b7b8f1580e101fad7c9535f9e29eb3dc345d
C#
jreddeko/Reddekopp.Dev
/src/Presentation/Reddekopp.Dev.Web/Factories/ViewModelFactory.cs
2.734375
3
using Reddekopp.Dev.Web.Domain; using Reddekopp.Dev.Web.Models; using System; using System.Collections.Generic; using System.Linq; namespace Reddekopp.Dev.Web.Factories { public class ViewModelFactory : IViewModelFactory { public IndexViewModel CreateIndexViewModel() { var model = ...
9b4e142507ae1a334e92352026af0ab29260bf91
C#
Shuvayu/algorithm-console
/AlgoApplication/Strings/Anagrams.cs
3.953125
4
using AlgoIApplication; using System; using System.Text; namespace AlgoApplication.Strings { public class Anagrams : IAlgorithm { public void Run() { Console.WriteLine("Enter the string to for an anagram."); var givenString = Console.ReadLine(); if (CheckAn...
349c34b5be88481d1fc10ababb1590e3fe5ccba8
C#
dalelion/TuneLoaderGUI
/TuneLoaderGUI/MainWindow.xaml.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Text.RegularExpressions; using YoutubeExplode; using YoutubeExplode.Models; using YoutubeExplode.Models.MediaStreams; using System.IO; using System.Diagnostics; using System.ComponentModel; namespace TuneLoaderGUI { ...
bd43ce04bc42aa73e296794e3ef98cd931659bea
C#
dowdeswells/Challenges
/CoderByte/CorrectPath/PathFinder.cs
2.859375
3
using System.Collections.Generic; using System.Linq; namespace CoderByte.CorrectPath { public class PathFinder { private readonly IBoard _board; public PathFinder(IBoard board) { _board = board; } public PathResult Solve(IPathElementSource commandSource) ...
a185e56b55e91a5e61a555f53fce729fa2a5462d
C#
Arafat6462/C-sharp
/CafeManagement/UpdateItems.cs
2.6875
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 CafeManagement { public partial class UpdateItems : UserControl { ...
b4427e76b2bcd5a52df7d5b5199a47ee52238b61
C#
Dmitry900/Atwood-Machine
/Атвуд/GL/Body.cs
2.625
3
using System.Drawing; using System.Drawing.Imaging; using Tao.OpenGl; namespace Atwood { public class Body { public float Mass { get; set; } public bool IsRight { get; set; } public void LoadTexture(Bitmap textureImage, bool flip) { if (flip) { ...
23dc6d9b2b2eac25df97f01d2249cd17cb0a1556
C#
tynar/DotNetBerlinClock
/Classes/BerlinUhrClock.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace BerlinClock.Classes { public struct BerlinUhrClock { public const int TicksPerSecond = 1; public const int TicksPerMin...
e4ace689ba11dc91267a8547fd557f8991312230
C#
dhristoskov/CSharp-simple-projects
/FunctionalProgramming/Students/Students.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Students { public class Students { public string FirstName { get; set; } public string LastName { get; set; } public string PhoneNum { get; set; } p...
0634dbfa78727cacf9ed150c292e0b384eeb1006
C#
HvaiY/MyCoreStudy
/D11-专题01--Linq/Lesson-05-Linq查询操作/实例--查询操作/Element.aspx.cs
2.6875
3
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.C...
9c72ec730faa0cc6a24e7474258f8c0ffd4de726
C#
axufuris/Halo
/Halo.Utilities/MathManager.cs
3.546875
4
using System; namespace Halo.Utilities { public class MathManager { /// <summary> /// Distances in miles between two Lat/Long Pairs /// </summary> /// <param name="sourceLatitude">The source latitude.</param> /// <param name="sourceLongitude">The source longitude.</para...
2074d21c4c66584a4807c17d48c438f1d997e263
C#
rvrsh3ll/HideFromAMSI
/HideFromAMSI/Program.cs
2.59375
3
using System; using System.Runtime.InteropServices; using System.Text; using System.Management.Automation; using System.Collections.ObjectModel; using System.IO; using System.Security.Cryptography; namespace HideFromAMSI { class Program { public static string EncryptedPs1Script = "The encry...
552b43030a178f292e98003ac56ddd7552fc6d7f
C#
hehao98/AnimalSimulationLab
/Assets/Scripts/RVO2/RVO2Manager.cs
2.625
3
/** * The Interface for manipulating RVO2 Library in Unity * RVO2Manager should be attached to an empty game object in order to function properly */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class RVO2Manager : MonoBehaviour { // This manager is a singleton static pr...
ad07d06f4ac5944d569d70688fca7c2834fcbff4
C#
timross14/Example-Work
/Battleship/BattleShip.UI/DrawBoard.cs
2.734375
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using BattleShip.BLL.GameLogic; using BattleShip.BLL.Requests; using BattleShip.BLL.Responses; namespace BattleShip.UI { public class DrawBoar...
c679650c237de95a4b69b9eb00e864b9bf26ca1f
C#
djn21/PromanDesktop
/ProMan/soap/WSDL.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.IO; namespace ProjectManager.soap { /// <summary> /// Used to serialize wsdl informations /// </summary> public class WSDL { /// <summary> /// Constan...
d512bb595861d5bb33242d5880b1ef7e55e3e184
C#
vidstige/TimelapsGit
/TimelapsGit/ITimeSpanContainer.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TimelapsGit { public interface ITimeSpanContainer { DateTime Start { get; } DateTime Stop { get; } } public static class TimeSpanContainer { public static double RelativeAgeOf(t...
6b216b9c97602e74a4454b5d15dd8065e617d72b
C#
ChuckkNorris/Commander_SPTF_Public
/TwitterClient/Controllers/TwitterController.cs
2.53125
3
using CommanderHelper.Services; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using TwitterClient.Services; namespace TwitterClient.Controllers { public class TwitterControl...
a7374090000e902491b3ac8402207cbf37c73d88
C#
rickors560/Departmental-Store-API
/DepartmentalStore/DepartmentalStore.Persistence/Repositories/StaffRepository.cs
2.65625
3
using DepartmentalStore.Application.Contracts.Persistence; using DepartmentalStore.Domain.Entities; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DepartmentalStore.Persistence.Repositories { public...
c63becc176238b1a11fb4c72c097fd82e9494673
C#
SzilvasiPeter/DotNetWebApp
/DotNetWebApp/Models/GenreExpressionAttribute.cs
2.8125
3
using System; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace DotNetWebApp.Models { public class GenreExpressionAttribute : ValidationAttribute//, IClientModelValidator { public GenreExpressionAttribute() { } // pub...
2364eca70abc0d5898d188cdee2b2c75222f1956
C#
aimanabsi/Hoster
/Hoster/Models/Lookup/OUILookup.cs
2.59375
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.IO; using System.Text.RegularExpressions; using System; using System.Xml; using Hoster.Models.Settings; namespace Hoster.Models.Lookup { public static class OUILookup { #region Variables private sta...
136047f1a1d274e9ce6789a6cf05a80fb5234503
C#
alecoelho/Mycology
/Micologia/Micologia/Paciente.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using Micologia.Negocio; using Micologia.Modelo; namespace Micologia { public partial class Paciente : Form { private int codigo = 0; PacienteBL blPaciente = new Pacie...
ce7d333c0663ec3a543f44e64d80b09ec71bf11f
C#
rnumata/CSharp-Cadastro
/Cadastro/Views/BuscarClientePorId.cs
2.90625
3
using Cadastro.DAL; using System; using System.Collections.Generic; using System.Text; namespace Cadastro.Views { class BuscarClientePorId { public static void Renderizar() { Console.WriteLine("Informe o Id do cliente"); int c = Convert.ToInt32(Console.ReadLine()); ...
604a5fe03ed6dba30d0ef1df38b333451481096f
C#
Manoj2711/DOT_NET_Assign
/Controllers/EmployeesController.cs
2.6875
3
using MvcApp1.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Data; using System.Data.SqlClient; namespace MvcApp1.Controllers { public class EmployeesController : Controller { // GET: Employees string str = @"Data...
86030599368426e9f06c789818069478e1a04782
C#
KitchenGun/BitEduResource
/WinForm/dotNetExam/09장=델리게이트/Anonymous/Anonymous/Program.cs
3.125
3
using System; delegate int dele(int a, int b); class CSTest { static void Main() { dele d = delegate(int a, int b) { return a + b; }; int k = d(2, 3); Console.WriteLine(k); } }
90efd1e89cb56b50c03ae1bb1ed6526b87fa34b0
C#
wilsade/WSPack
/WSPack.Lib.WPF/ViewModel/GroupViewModel.Properties.cs
2.609375
3
using System.Collections.ObjectModel; using System.Linq; using System.Xml.Serialization; using WSPack.Lib.Extensions; namespace WSPack.Lib.WPF.ViewModel { partial class GroupViewModel { /// <summary> /// Identificador do projeto /// </summary> [XmlElement("Id")] public int GroupId { ...
7d95bc6fee83eeb8316d5edb292aad9d5a8e5167
C#
qu3stor/CodeWars
/DeadAnts/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DeadAnts { class Program { static void Main(string[] args) { string ants = null; // --> 10 //string ants =...
b5ca4415319d933a9755a01e7844ceaa83434ecb
C#
AleMe2/MasterlyFocused
/BulletinBoard/Bulletin.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Focused.BulletinBoard { public class Bulletin { private static Bulletin instance; private readonly Dictionary<BulletinNotice, object> board; private Bulletin(...
efd632796275ab81e0eb8d092ec0247acbf7e231
C#
sostenes198/.NET-Estudos
/Estudos-Thread/AsyncAwait/GetAwaitGetResult/TesteObterResultadoUtilizandoResult.cs
3.0625
3
using System; using System.Threading.Tasks; namespace AsyncAwait.GetAwaitGetResult { public class TesteObterResultadoUtilizandoResult { public static void ObterResultado() { try { var resultado = GerarResultado().Result; } catch (E...
ea4c979829f4e511eb62e5199fa10836c048a6d1
C#
Leroikier/OOP-Dyr-Opgave
/OOP-Dyr-Opgave/OOP-Dyr-Opgave/Kat.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OOP_Dyr_Opgave { class Kat : Dyr { //Metode til og skaffe Dyr //Der overskrives den tomme skabelon fra "Dyr Klassen" public override string GetDyr() { ...
80e9a70ad26e497621f2cb3040f0cfde76230020
C#
AgnieszkaAnd/FactoryDesignPattern
/FactoryImplementation/Program.cs
2.640625
3
using FactoryImplementation.Creators; using FactoryImplementation.Creators.Abstract; using FactoryImplementation.Models.Interfaces; using System; using FactoryImplementation.View; namespace FactoryImplementation { class Program { static void Main(string[] args) { Console.WriteLine("Hello Fact...
bd4cc17f4a635db342232720d376d536ab136e82
C#
vitormoschetta/FluntValidators
/Entidades/Produto.cs
3.15625
3
using System; using Flunt.Notifications; using Flunt.Validations; namespace FluntValidators.Entidades { public class Produto : Notifiable { public Produto(string nome, decimal preco) { Nome = nome; Preco = preco; AddNotifications(new Contract() ...
9c9c6c408270c5eb2ec88e2ef23c73d663577385
C#
TonyAce91/Artificial-Mindset-Code-Examples
/Scripts/Antoines Stuff/Scripts/ArtificialIntelligence/Agents/CompanionHackScript.cs
2.59375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// This class is used when hacking the companion /// /// Code written by Antoine Kenneth Odi in 2017. /// </summary> public class CompanionHackScript : MonoBehaviour, IInteractable { ...
7bd02d5bb3e75049b963d3b56a72bbc7acf20985
C#
TeamBullsAndCows2/HQC-Team-Project---Bulls-and-Cows
/BullsAndCows.Test/ConsoleRendererTest.cs
2.671875
3
namespace BullsAndCows.Common.Test { using System; using BullsAndCows.Common.Interfaces; using BullsAndCows.Common.Tools; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class ConsoleRendererTest { [TestMethod] [ExpectedException(typeof(ArgumentNullEx...
211a3c9f4e8099205b6a43b0ee2d8e5f735338fe
C#
Mongit/ccnet-api
/api/DAL/UsuariosDAL.cs
2.734375
3
using BO; using Microsoft.Extensions.Configuration; using System; using System.Data.SqlClient; namespace DAL { public class UsuariosDAL : BaseDAL { public UsuariosDAL(IConfiguration config) : base(config) { } public Usuario Load(SqlDataReader dr) { Usuario ...
68f6955e2c1bba480db99260371f85e0d7326d7c
C#
isabelcabezasm/designpatterns
/factory/FactoryMethodSample/Costumes/GamoraCostume.cs
3.28125
3
using System; using System.Collections.Generic; using System.Reflection.Metadata.Ecma335; using System.Text; namespace FactoryMethodSample { public class GamoraCostume : ICostume { public string Suit { get => "Read leather suit"; } public string Boots { get => "Red boots"; } public string Mask { get =...
660996ed22918f82b400dcb9e28f8485eb203577
C#
yamin05/.NETAssignmentVS2015
/WebApplication1/Exceptions/WrongInputEmailException.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1.Exceptions { public class WrongInputEmailException : Exception { private int errorCode { get; set; } private string errorMessage { get; set; } public WrongInputEmailException...
136f292bc2c36514525b515741450d6c6dcd6e69
C#
killerrin/KillerrinToolkit
/Killerrin.Toolkit.Core/Games/Randomized/GuessTheNumber.cs
3.421875
3
using System; using System.Collections.Generic; using System.Text; namespace Killerrin.Toolkit.Core.Games.Randomized { public class GuessTheNumber : Randomizer { /// <summary> /// A static Randomizer which shares a seed /// </summary> public static new GuessTheNumber Instance {...
63f591027cb5d15be0c6cbd1d8dd1ce51e68698b
C#
andrewgarcia808/Triangle-Calculator
/Updated Calculator Application/Updated Calculator Application/Program.cs
3.859375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { public class Triangle { double side_a; double side_b; double side_c; public Triangle(double a, double b, double c) ...
b3c54f6ca0d78f30ef22ecda0e8c6355758b2737
C#
kraskoo/SystemSplit
/IO/ConsoleWriter.cs
2.78125
3
namespace SystemSplit.IO { using System; using Interfaces; public class ConsoleWriter : IOutputWriter { public void WriteLine() { Console.WriteLine(); } public void WriteLine(string message) { Console.WriteLine(message); } ...
782a8f9651de9fbb3e1d14460c29073aaa229c9b
C#
ctec135-fall19/programming-assignment-2-arrays-methods-classes-DRAKEGitHub
/Prob1/Prob3/Student.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Prob3 { class Student { #region Student Name private string studentName; // properties public string Name { // get and set ...
7f37726d360f9b18c65f36bac8c44502e84451f1
C#
MicrosoftDocs/dynamics-365-customer-engagement
/ce/snippets/csharp/CRMV8/relationships/cs/workwithrelationships.retrieverelationship.cs
2.796875
3
// <snippetworkwithrelationships.retrieverelationship> //You can use either the Name or the MetadataId of the relationship. //Retrieve the One-to-many relationship using the MetadataId. RetrieveRelationshipRequest retrieveOneToManyRequest = new RetrieveRelationshipRequest { MetadataId = _oneToManyRelationsh...
51bd352d63d9ab6f0f0e601d491a5f16680f3b34
C#
ezoneproject-archive/archived.arduino.LCD1602Clock
/LCDTimeSet/Form1.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace LCDTimeSet { public partial class Form1 : Form { public...
4352c1eb863ca6dd942ba6376afaa690aa053fe3
C#
jinguohua/absmanager
/ChineseAbs.ABSManagement.DeploymentTool/ABSMgrDeployment/ActionExecuter.cs
3
3
using System; using System.Collections.Generic; using System.Windows.Forms; namespace ABSMgrDeployment { public class ActionExecuter { public RichTextBox richTextBoxLog { get; set; } private void ShowLog(string msg) { richTextBoxLog.Text += msg + Environment.NewLine; ...
080ef54b0e2cfd9856c16a6558eb0cb04628956c
C#
busterkaas/Movieshopv2MVO
/MovieShopUITest/OrderlineTest.cs
2.546875
3
using MovieShopDAL.BE; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MovieShopUITest { [TestFixture] public class OrderlineTest { [Test] public void Orderline_properties_set_ok_test() ...
dad3b0c1ae4903195dab57de6aa956aa126a860a
C#
beejoy/NEATariffCalculator
/NEATariff/Tariff.cs
2.90625
3
using System; using System.Collections.Generic; namespace NEATariff { public enum AmpereEnum { Ampere5, Ampere15, Ampere30, Ampere60 } public class Tariff { // service charge (update as per NEA rates) private double[,] serviceCharge = new double[,] ...
6faa805b5eca994064a60600e90433ab48d04290
C#
YaraslauSupanitski/HomeTaskNET
/Part6/ConApp6_2_new/Program.cs
3.265625
3
using ConApp6_2.CommandsClasses; using ConApp6_2.Objects.Recirvers; using LibraryForConsole4; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace ConApp6_2 { class Program { static void Main(string[] arg...
8879fecc2ad1412732aafc5a17e3ffb300c4548a
C#
samtiger69/Restaurant
/Restaurant/Services/OrderService.cs
2.578125
3
using Restaurant.Models; using System; using System.Data.SqlClient; using static Restaurant.Models.Enums; namespace Restaurant.Services { /// <summary> /// order database manager /// </summary> public class OrderService : BaseService { private static object lockObj = new Object(); ...
0c20ed3c7277cf89b616ac493815061dcb5ad965
C#
rikilingam/32013-Assignment2
/ThreeAmigos_ExpenseManagement/BusinessLogic/CurrencyService.cs
3.03125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using ThreeAmigos_ExpenseManagement.DataAccess; using ThreeAmigos_ExpenseManagement.Models; namespace ThreeAmigos_ExpenseManagement.BusinessLogic { public class CurrencyService { IConfigura...
7fbed074378c7a14dca43ab71c5d714aac3abeba
C#
gideondsouza/ProjectEuler_CSharp
/ProjectEuler/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using ProjectEuler.Problems; namespace ProjectEuler { class Program { static void Main(string[] args) { RunProblem(new Problem25()); } //ma...
18ea382c4e563bb442800a0d316f98ccf85dda7f
C#
darekion/AnomalyDetection
/C#/DataService.ashx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace VHistory3 { /// <summary> /// Summary description for DataByChannel /// </summary> public class DataService : IHttpHandler { ClsDb db; string dateForm...
c14bb1d3a8479035364cd83100eba8b3baa0dca7
C#
Russ-Stirling/StreamingServerAndVideoPlayer
/StreamingServer/Model-Client.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Sockets; namespace StreamingServer { class Model_Client { int rc; byte[] rb; Socket tcpSock; public Model_Client(Socket s) ...
2e079ebbf408427b0ead8d67fd6964da2ddbd5c6
C#
Montana91/webforms
/MyWebApplication/Project.aspx.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using ProjectFees; namespace MyWebApplication { public partial class Project : System.Web.UI.Page { public decimal BasePrice = 100.00m; protected void Pag...
08a112012cbe2252c3038b4a3da59fd0ace22857
C#
prasanjeetd/dotnet-core
/Practice.Classlibrary/OOPS/OOPS.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; namespace Practice.Classlibrary.OOPS { public class Base { public void Test() { Console.WriteLine("Test"); } } public class Derived : Base { public new void Test() { ...
140898ad4c446032e5e4d34e0057fb291c4e031d
C#
trdwll/CaptureThat
/CaptureThat/CaptureThat/Forms/CaptureAreaForm.cs
2.59375
3
/* * Copyright (c) 2016-2019 Russ 'trdwll' Treadwell. All rights reserved. * Licensed under the MIT License. See LICENSE.md file in the project root for full license information. */ using System; using System.Drawing; using System.Windows.Forms; namespace CaptureThat { public partial class CaptureAreaForm : Fo...
402cc98f1f3086f0a824a81943f4147321e9bff1
C#
gbhl/bhl-us
/BHLDataObjects/Concrete/PaginationStatus.cs
2.515625
3
#region Using using System; #endregion Using namespace MOBOT.BHL.DataObjects { [Serializable] public class PaginationStatus { public static int New { get { return 5; } } public static int Pending { ge...
100631cdb6d1df16b21782d969be24f264fe120f
C#
DontBelieveMe/Noughts-And-Crosses
/Source/Pause.cs
2.71875
3
using System; using System.Windows.Forms; namespace NoughtsAndCrosses { public class Pause { public Pause(int seconds): this((double) seconds) { } public Pause(double seconds) { DateTime time = DateTime.Now.AddSeconds(seconds); while (DateTi...
4b18229b737b5781c3c8c90c7070d24c82b9ac36
C#
tdav/Algorithms
/Algorithms/DataStructures/Strings/StopSymbolFirstComparer.cs
3.21875
3
using System; using System.Collections.Generic; using JetBrains.Annotations; namespace EdlinSoftware.DataStructures.Strings { public class StopSymbolFirstComparer<TSymbol> : IComparer<TSymbol> { private readonly IComparer<TSymbol> _comparer; private readonly TSymbol _stopSymbol; publi...
213c0c3c9f1c053269212dc863f025fb6bfa1ba3
C#
EL-BID/Nexso
/VS2013_PROJECT/NexsoProBLL/SolutionLogComponent.cs
2.6875
3
using System; using System.Data; using System.Linq; using NexsoProDAL; namespace NexsoProBLL { public class SolutionLogComponent { private SolutionLog solutionLog; private MIFNEXSOEntities mifnexsoEntities; public SolutionLog SolutionLog { get { return solutionLog;...
f9b85eec1b81ee0b1bd23abb1f0d7eb43a028096
C#
jluce1996/guessinggame
/GuessingGame/GuessingGame/Program.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GuessingGame { class Program { static void Main(string[] args) { int guess; int a = 1; int b = 100; string input; int i = 0; C...
d98c7fcaebf7c9c04f1db994723a00fd6dd17278
C#
saurabh30/SaaS-Product-Import
/Saas Product Import/Saas Product Import/Program.cs
2.671875
3
using System; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Saas_Product_Import.Repository; using Saas_Product_Import.Repository.SQL; using Saas_Product_Import.Sources; namespace Saas_Product_Import { class Program { static void Main(string[] args) { ...
eeb438e9a3d21af62c4bb83e3afccbafa6045bce
C#
bodapeter/DevOpsTeszt
/src/backend/HelloWord.Api/Controllers/GreetingController.cs
2.671875
3
using HelloWord.Bll.Dtos; using HelloWord.Bll.Interfaces; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace Hel...
41ca2486b95e60034d8baec4fe7a081bdae840f9
C#
smakkerz/Invoice
/Develop.Data/Managed/ManageListInvoice.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Develop.Data { public partial class ManageListInvoice { private static TestEngineEntities db = new TestEngineEntities(); public static EFResponse Insert(ListInvoice pa...
fa085a1ba553cdcd66c1ec8f8cd59c6e1df7a9af
C#
Espi4U/WebAPI
/WebAPI/Helpers/RandomHelper.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebAPI.Helpers { public static class RandomHelper { private static readonly Random _random; static RandomHelper() { _random = new Random(); } public ...
aa2b1fa010a8be926765400497cc33e4dececc36
C#
sloncho/Nancy
/test/Nancy.Tests/Unit/Json/SimpleJsonFixture.cs
2.625
3
namespace Nancy.Tests.Unit.Json { using Nancy.Json.Simple; using Xunit; public class SimpleJsonFixture { [Fact] public void String_dictionary_values_are_Json_serialized_as_strings() { //Given dynamic value = "42"; var input = new ...
53f3827f5e4279ebbffa4b047b9e46fc4f2ef456
C#
rbrogan-git/wa-toolkit-games
/code/SocialGames.Core/Repositories/UserRepository.cs
2.59375
3
namespace Microsoft.Samples.SocialGames.Repositories { using System; using System.Collections.Generic; using Microsoft.Samples.SocialGames.Common.Storage; using Microsoft.Samples.SocialGames.Entities; public class UserRepository : IUserRepository, IStorageInitializer { private readonly...
8ed01098e1fc0bb4aad21b1f1daefcd46aafcf1c
C#
Ksu-1506/tasksForAutomationCourses
/Task9_10ForCourses/NUnit_Calculator/Calculators/ScientificCalculator.cs
3.515625
4
using System; using System.Linq; namespace NUnit_Calculator.Calculators { public class ScientificCalculator : IScientificCalculator { public double Power(double num1, double num2) { return Math.Pow(num1, num2); } public double PercentageNum1FromNum2(double num1, double num2) { return (num1 * 100) /...
ca2ea46a0e30c6546f19d555b023548f9d16813f
C#
learnerChick/Algorithms.Old
/SymbolGraph.cs
3.53125
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms { public class SymbolGraph { private Dictionary<string, int> symbolTable; private String[] allLines; private String[] keys;...
e2ebf1a6c1b8301fc395560357f041d318ad8e78
C#
picoe/Eto
/src/Eto.Gtk/CustomControls/DateComboBox.cs
2.578125
3
using Eto.GtkSharp.Forms; namespace Eto.GtkSharp.CustomControls { public class DateComboBox : BaseComboBox { DateTime? selectedDate; private DateComboBoxDialog dlg; DateTimePickerMode mode = DateTimePickerMode.DateTime; public event EventHandler DateChanged; protected void OnDateChanged(EventArgs e) { ...
ea1f2db8a79ab95fcd0b9d52c42cf9133fa80437
C#
Ref12/AsyncDbg
/src/AsyncDbg.Core/DgmlWriter.cs
2.59375
3
// -------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // -------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; usi...
e06fafccf3c5c99ca53ca752f90314cd1cb91bd8
C#
AltarnRain/Experiments
/SettingsByName/SettingsByName.cs
3.0625
3
/* Figured how to get and set appliction settings by using the Control.Name property. */ using SettingsByName.Properties; using System; using System.Configuration; using System.Linq; using System.Windows.Forms; namespace SettingsByName { public partial class SettingsByName : Form { public SettingsB...
f8e959d37ece3199727a339e4011c68363b1ec27
C#
Iteucation-kursus-2018-gruppe1/MVC-Kursus-Project-2018
/Whishlist/Models/WishInitializer.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; namespace Wishlist.Models { class WishInitializer : DropCreateDatabaseAlways<WishDB> { protected override void Seed(WishDB context) { base.Seed(context); var ...
45754f188ce0a4e950ce5e3d14d27ceb73c57301
C#
ConradParker/RockPaperScissors
/RockPaperScissors/RockPaperScissors.Data/Configuration/AutoMapperConfiguration.cs
2.859375
3
using AutoMapper; using RockPaperScissors.Dto.Query; using RockPaperScissors.Model; using System.Text; namespace RockPaperScissors.Data { public class AutoMapperConfiguration { public static void Configure() { ConfigurePropertyMappings(); } private static void Conf...
72acce9f26f5775839558a69214fe2dee6a512f9
C#
philippe-donnette/PC-Lawn-Mowers
/LawnMowers.Tests/Validators/InputValidatorTest.cs
2.640625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using PC.LawnMowers.Model; using PC.LawnMowers.Validators; namespace LawnMowers.Tests.Validators { [TestClass] public class InputValidatorTest { private readonly IInputValidator _validator; public InputValidatorTest() { ...
ce564f7774ea0a173ce50d78ea4b9d3735cf5f33
C#
franciscopoot/bot_tarea
/RastreoPaquetes/RastreoPaquetes/Clases/Chain/DiasValidador.cs
2.59375
3
using RastreoPaquetes.DTO; using RastreoPaquetes.Interfaces.Chain; using System; using System.Collections.Generic; namespace RastreoPaquetes.Clases.Chain { public class DiasValidador : IRangoTiempoValidador { public IRangoTiempoValidador Siguiente { get; private set; } public void AsignaSigui...
4b6543a486c32a1f255e2ff6c2895898b6137a60
C#
crazybaz/r2d2
/Assets/src/components/movingSystem/MovingConfig.cs
2.53125
3
using System; using UnityEngine; public enum MovingType { None, // не двигается, используется для мин Forward, // тупо летит вперед относительно своего контейнера PlayerTarget, // летит в точку где был игрок на момент выстрела Aiming, // наведение на игрока с инерцией Prediction, // прямой полет с...
a1230f08919774efb5b669862165d9cce99e4aea
C#
JelleVLD/ApplicationChallengeBackend
/ApplicationChallenge/Controllers/OpdrachtTagController.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using ApplicationChallenge.Models; using ApplicationChallenge.Attributes; namespace ApplicationChallenge.Controllers { ...
f39757430e6d4b9836e93f4d930da6377ecd4294
C#
TANAKA001/XamarinLab
/XamarinForms2018/sessao08/App003_Controles/App003_Controles/App003_Controles/Controles/ListViewPage.xaml.cs
2.609375
3
using App003_Controles.Modelo; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace App003_Controles.Controles { [XamlCompilation(XamlCompilationOptions.Compile)] p...
ac66c96969f303339235b2b9dd186e031d4bb572
C#
Scubaboy/QuadWebApi
/QuadWebApi/Infrastructure/BreezeContextProviders/Quad/QuadBreezeContextProvider.cs
2.515625
3
using Breeze.ContextProvider; using Breeze.ContextProvider.EF6; using QuadWebApi.Infrastructure.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace QuadWebApi.Infrastructure.BreezeContextProviders.Quad { public class QuadBreezeContextProvider<T> : EFContextPr...
c126f80e70b40cd7a9b452075ce78fbe5a626af8
C#
rjuneja3/PerfectBabySitter
/PerfectBabysitter/Models/IJobPostingsFakeRepository.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PerfectBabysitter.Models { interface IJobPostingsFakeRepository : IJobPostingsRepository { public new IQueryable<JobPosting> JobPostings => new List<JobPosting> { new JobPosti...
c19c29241abf1bc0954320b2e031b56d471ef55e
C#
matiasbeckerle/notechest
/Notechest/Notechest/Models/NotechestDBContext.cs
2.6875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Web; namespace Notechest.Models { public class NotechestDBContext : DbContext { public DbSet<Organization> Organizations { get; set; } public DbSet<Project> Projects { g...
8c0287af97c92c713975b9d9d7a336a281b90f0b
C#
pitasek123/PO
/Zadanie 2.3/Zadanie 2.3/Program.cs
2.984375
3
using System; namespace Zadanie_2._3 { class Program { static void Main(string[] args) { double masa, wzrost, bmi; Console.WriteLine("Podaj masę w kilogramach: "); masa = double.Parse(Console.ReadLine()); Console.WriteLine("Podaj wzrost w metrach...
3e64719c26278ec3211d11f7c66deb127056c440
C#
StefH/bunit
/src/Rendering/RenderEventPublisher.cs
2.6875
3
using System; using System.Collections.Generic; namespace Bunit { internal class RenderEventObservable : IObservable<RenderEvent> { protected HashSet<IObserver<RenderEvent>> Observers { get; } = new HashSet<IObserver<RenderEvent>>(); public virtual IDisposable Subscribe(IObserver<RenderEvent>...
a85a39bc930078580281808aa91683c23425bf82
C#
honwahwong/DMS
/Dms.FileService/DmsFileService.cs
2.703125
3
using Dms.Domain.Interfaces; using Dms.Domain.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dms.FileService { public class DmsFileService : IDmsFileService { private DmsFileCont...
206a34b45ab13323c12b00f9d6eba4b4d2a127ac
C#
GeraldJosue/SystemPDO
/BusinessLogic/Aguinaldo_General.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataAccess; using TransferObjects; namespace BusinessLogic { public class Aguinaldo_General { public Int32 Id {get; set;} public DateTime Fecha { get; set; } publ...