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
dd32c3b7efc8a210ab3d56360dc1309b44298c63
C#
XemioNetwork/CommonLibrary
/Xemio.CommonLibrary/Administration/Impersonator.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; using System.Security.Authentication; using System.Security.Permissions; using System.Security.Principal; using System.Text; using Xemio.CommonLibrary.Common; namespace Xemio.CommonLib...
52334596cba7be0df84fe3472e99f28b976ad998
C#
Trushkeen/RKSI.Net-Solved
/Lab6/Logger.cs
3.125
3
using System.IO; using System.Text; namespace Lab6 { class Logger { string Path { get; } public Logger(string path) { Path = path; } public void WriteLog(string text) { using (StreamWriter sw = new StreamWriter(Path, true, Encoding.Defaul...
4e8a1e94a91b39d5aa6e7077e7198cee66f3dab7
C#
sr-invisible/UCRMS
/UCRMS/UCRMS/Controllers/TeacherController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using UCRMS.Manager; using UCRMS.Models; namespace UCRMS.Controllers { public class TeacherController : Controller { DesignationManager designationManager = new DesignationManager(); Depa...
bd9c3e37506e0c40a6f2bd4a11b9871ee1b44bc5
C#
aloisdg/Nepholo
/Nepholo.Plugin.Cloud.OneDrive/FileConverter.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Web.UI; using OneDriveRestAPI.Model; namespace Nepholo.Plugin.Cloud.OneDrive { public static class FileConverter { public static List<File> ToFiles(this IEnumerable<OneDriveRestAPI.Model...
3d57e764fbcc3af75185211952bbfae5bf64bbbc
C#
shendongnian/download4
/first_version_download2/420744-36931434-116908180-2.cs
2.703125
3
public void db1_read() { if (con_opened == false) { con = new SQLiteConnection("Data Source=MyDatabase.sqlite;Version=3;");//Version=3; con_opened = true; con.Open(); } string sql = "select * from bestscore WHERE...
7932039fd222f43f99976daad159dc6684420669
C#
SvetoslavPetsev/Arrays---Lab
/07. Equal Arrays/Program.cs
4.03125
4
using System; using System.Linq; namespace _07._Equal_Arrays { class Program { static void Main(string[] args) { int[] arrayA = Console.ReadLine() .Split(' ') .Select(int.Parse) .ToArray(); int[] arrayB = Console.ReadLine(...
d4426031e9d48426501a43b735c5c80cb2b1eb80
C#
iowen/Tricare
/TriCare/TriCare/Views/RefillPage.cs
2.640625
3
using System; using System.Collections.Generic; using TriCare.Data; using Xamarin.Forms; namespace TriCare { public class RefillPage :ContentPage { public RefillPage () { this.BackgroundColor = Color.White; var rRepo = new RefillRepo(); Title = "Refills"; var ra =rRepo....
3706f09a8d47461b51d4bb3a5d5bb7348155160b
C#
deepaknasa/Coding-Assessments
/IKMAssessment/CSharp/ActionHandler.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IKMAssessment.CSharp { public delegate void MyActionHandler(List<int> list); class ActionHandler { public event MyActionHandler OnMyMethod; public ActionHandler() {...
3be5c37b1befd11f3998f4c8ff75a994e51f7d00
C#
Aptacode/Aptacode.TaskPlex
/TaskPlex/Stories/Transformations/BoolTransformation.cs
2.53125
3
using System; namespace Aptacode.TaskPlex.Stories.Transformations { public sealed class BoolTransformation<TClass> : UpdateAtEndTransformation<TClass, bool> where TClass : class { /// <summary> /// Update a bool property on the target to the value returned by the given Func after the task ...
22ce73ef433cbeb0f441c39f7c0bfd1e7631d7be
C#
mrvenus314/MyProject
/CSharpDesignMode/CSharpDesignMode/StatePatternSample/Card/PartnerB.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StatePatternModel.Card { public class PartnerB : AbstractCardPartner { public PartnerB(string nickName, int money) { this.NickName = nickName; this.Money = money; } ...
cee9bc384e602ded325545c693ac56984382c5f8
C#
SatenikH/IEnumerator_IEnumerable
/ConsoleApp14/PersonList.cs
3.28125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { public class PersonList:IEnumerable { Person[] persones = new Person[4]; public PersonList() { persones[0] ...
f83551d0f7e62c4e0679a8fb86e884abb8ac7dce
C#
Desocrit/BoDCode
/Characters/Stats/StatModifier.cs
2.703125
3
using System; [Serializable] public class StatModifier : IEquatable<StatModifier> { // Stat to be modified. public Statistic modifiedStat; // Amount stat is to be modified. public float modifier; // If the stat should be multiplied instead of added. public bool isMultiplier; // If the stat ...
68ee3fd08f297847175a966db59e33afd86a0df3
C#
ObjectivityLtd/Bot.Common.Dialogs
/Objectivity.Bot.BaseDialogs/Dialogs/PromptValueDialog.cs
2.6875
3
namespace Objectivity.Bot.BaseDialogs.Dialogs { using System; using System.Threading.Tasks; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Luis.Models; [Serializable] public abstract class PromptValueDialog<T> : BaseLuisDialog<T> { public string PromptMessage { g...
6a8869de11acb3b8d10e244e014002998683269e
C#
2106-Module1/2106-Module1
/HotelManagementSystem-Module1/HotelManagementSystem-Module1/Domain/IPromoCodeService.cs
2.65625
3
using HotelManagementSystem.Domain.Models; using System.Collections.Generic; /* * Owner of IPromoCodeService Interface: Mod 1 Team 4 */ namespace HotelManagementSystem.Domain { public interface IPromoCodeService { /// <summary> /// Search and retrieve all existing promo code /// </su...
24962c137ffc21dbbe48d8445407233d4c8a7557
C#
shimunmatic/iOrder
/BackendUndWeb/iOrder/Backend/Services/Implementation/CategoryService.cs
2.78125
3
using Backend.Models.Business; using Backend.Repositories.Interface; using Backend.Services.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Backend.Services.Implementation { public class CategoryService : ICategoryService { private ...
d1bed7aae4dceba98d60a8b78007f6449fce62a4
C#
MelissaTorres/GiftshopBackend
/SS.Gift-Shop.Core/IEmailSender.cs
2.84375
3
using System; using System.Net.Mail; using System.Threading.Tasks; namespace SS.GiftShop.Core { public interface IEmailSender { Task Send(MailMessage message); } public static class EmailSenderExtensions { public static Task Send(this IEmailSender emailSender, string subject, ...
449c8696e71949c509907c707d0ea66c1c17ddea
C#
WorldExcSoft/Community
/Community.BLL/ExamCourseBLL.cs
2.578125
3
using System; using System.Collections.Generic; using Community.DAL; using Community.Model; namespace Community.BLL { public class ExamCourseBLL { ExamCourseDAL dal = new ExamCourseDAL(); #region 业务逻辑层其他扩展方法 #endregion #region 业务逻辑...
78664b2bd0002836754042258b7b2c245a381b28
C#
cokceken/Password-Kata1
/Domain/Service/UserService.cs
2.71875
3
using Password.Domain.Contract.UserContract; using Password.Domain.Model; using Password.Domain.Model.Exception; using Password.Domain.UnitOfWork; namespace Password.Domain.Service { public class UserService : IUserService { private readonly IUserDataService _userDataService; public UserServi...
f4d0aeffa17bacc975d8be1d111eea378b86e509
C#
danishtech/YouthApp
/YouthApp/Insanity.cs
2.515625
3
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Threading.Tasks; //namespace YouthApp //{ // public class Insanity // { // public async Task<IEnumerable> Quarterly(byte start, byte end) // { // //return await new ApplicationDbContext(dco).Revenues...
c9098d744f9ef8623c3e7572433e3a2b2a2092e3
C#
Imiolak/StochasticCheckers
/Checkers.Experiment/Measurement/GameEndedWithResultMeasurement.cs
2.90625
3
using Checkers.Engine; using Checkers.Engine.Display; namespace Checkers.Experiment.Measurement { public class GameEndedWithResultMeasurement : IMeasurement { private readonly GameResult _result; private int _winCount; public GameEndedWithResultMeasurement(GameResult result) {...
3d77a4adeef8b7e95eb1b84c22987f6d4eb66f10
C#
SaberZA/CqrsRestService
/CqrsRestService.Core/ConsoleLoggingService.cs
2.546875
3
using CqrsRestService.CorePortable; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CqrsRestService.Core { public class ConsoleLoggingService : ILogger//, IServerLogger { private string _hostInfo; ...
bd4a005c20d32dc8066bd8547d993057668bd2b0
C#
yasuzo/simple-2d-unity-app
/Assets/Scripts/DropArranger.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DropArranger : MonoBehaviour { //objekt koji ce se kreirati public GameObject theDrop; //runda/nivo na kojem je igrac public int round; //broj kockica koje ce se instancirati public int startin...
d2162a1d59880d5e3757423c17fcca04c6551c10
C#
MariamEssam/DataStructure-AlgorithmsSuite
/AlgoSuite/UniqueSequence.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AlgoSuite { /// <summary> /// https://aonecode.com/amazon-online-assessment-winning-sequence /// <ID>5012</ID> /// </summary> class UniqueSequence { public int[...
40aebca0adcff0f8e02c6dd49463c77c4011c6fd
C#
qq651267797/Learning-every-day_2
/LearningEveryDay_2/3,字符串转换整数-8/MyAtoi.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3_字符串转换整数_8 { //请你来实现一个 atoi 函数,使其能将字符串转换成整数。 //该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。 //第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字组合起来,作为该整数的正负号; //假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成整...
7fea3ab2e0551d56b0091a043c0ef473e1eebb08
C#
ebruyasar11/retrieve-octocat-console
/SeleniumOctocatRetrieve/Program.cs
2.6875
3
using System; using System.Diagnostics; using System.IO; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Interactions; using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; namespace SeleniumOctocatRetrieve { class Program { ...
5830f134b09d7903c63818af973be4368acfb18e
C#
EmptyBucket/DungeonCrawlBot
/BehindTheNameGenerator/UrlBuilder/BehindTheNameUrlBuilder.cs
2.96875
3
using BehindTheNameGenerator.ParametersFactory; namespace BehindTheNameGenerator.UrlBuilder { //builder pattern public class BehindTheNameUrlBuilder : IUrlBuilder { private readonly IParametersFactory _parametersFactory; private const string BaseUrl = "https://www.behindthename.com/random/...
943a06fd532d65443ce4ea51de64d465abd36451
C#
levonaramyan/CodeFights_Tasks
/Arcade/The Core/04. Loop Tunnel/CountSumOfTwoRepresentations2/Program.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // Given integers n, l and r, find the number of ways to represent n as a sum // of two integers A and B such that l ≤ A ≤ B ≤ r. // Example: // For n = 6, l = 2, and r = 4, the output should ...
5a247ae5ffacec4d5662cad284330150c2553a1b
C#
askguanyu/CodePlexDevLib
/main/Product/Codes/DevLib.Data/DbHelperParameterCache.cs
2.578125
3
//----------------------------------------------------------------------- // <copyright file="DbHelperParameterCache.cs" company="YuGuan Corporation"> // Copyright (c) YuGuan Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace D...
9fd6d15ea53863dad0316787ffbe11f54d8caeda
C#
JavaJoe127/WeatherStationRaspPi
/Conversions/Rounding.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WeatherStation.Conversions { public class Rounding { public static decimal RoundToSignificantFigures(double num, int n) { if (num == 0) { ...
d3fa2c44180cd7439fdefa3f1b37359be61d28c0
C#
callehellebjork/squealing-chainsaw
/auseTxtGame/planting.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace auseTxtGame { class planting { public static void plant() { String[] seeds = new string[4]; seeds[0] = "empty"; seeds[1] = "empty"; ...
203afd6643c82c4bf8cec5577e50aba035aba76b
C#
edirgarcia/CodeFights
/InterviewPractice/DataStructures/LinkedLists/LinkedLists/ListNode.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinkedLists { public class ListNode<T> { public T value { get; set; } public ListNode<T> next { get; set; } public static ListNode<int> GetLinkedList(int[] arr...
bbc2391e3ea3dbb4d18480295b7c5536d8987f39
C#
JHilmarch/codekata
/Kata04.DataMunging/Kata04.DataMunging.Tests/Model/WeatherDataTests.cs
3.125
3
using System; using FluentAssertions; using Xunit; namespace Kata04.DataMunging.Tests.Model { public class WeatherDataTests { [Theory] [InlineData(-1)] [InlineData(0)] public void ConstructWeatherData_DayNumberIsNotPositiveNumber_ThrowsArgumentOutOfRangeException(int dayNumber)...
a124d0c863b9580a0b33d076535ddc69062b1430
C#
JokkRus/Counter-Strike
/CounterStrike/CounterStrike/Team.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace CounterStrike { class Team { public int Score { get; set; } public List<Gun> guns; public List<Person> persons; protected int co...
b686dff9ee3b4226104ef2476ffc068b1191920b
C#
jianminchen/Leetcode_Julia
/By Algorithms/Leetcode 236 Lowest Common Ancestor/by topics/Fix naive solution timeout with complicated function/236 play with return backtracking For fun.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lowest_common_ancestor_236_timeout { public class TreeNode { public int val; public TreeNode left; public TreeNode right; public TreeNode(int x) { val =...
a1b32e962c66f813213233bfa2bc57bebf2dc079
C#
shanzm/DesignPatterns
/03单例模式/03单例模式-读取配置文件/AppConfig.cs
3.078125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03单例模式_读取配置文件 { public class AppConfig { //定义字段,用于存储唯一实例。注意是静态的 private static AppConfig appConfig = null; //对应配置文件设置相应的属性,注意是只读的 ...
f5d7ccbcba91c44873902bc69d4a29ec5297ad19
C#
CarterCommunity/Carter
/src/Carter/Request/StreamExtensions.cs
3.265625
3
namespace Carter.Request; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; public static class StreamExtensions { /// <summary> /// Gets the <see cref="HttpRequest" /> Body <see cref="Stream"/> as <see cref="string"/> asynchronously in the optional <see cref="Encoding...
edff2165dccee6c9a7ac9851e622a14b9eaf9792
C#
dmedrzak/ZTP
/ZTP/Controllers/CurrentLoggedUser.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZTP.Models; namespace ZTP.Controllers { public sealed class CurrentLoggedUser { private User _user; private static CurrentLoggedUser _instance=null; private static ...
d54045b46e661482b7bcc0eb7db048e8b2b1dcd0
C#
ThePickingSolution/TPS-System
/Development/TPS/Picking.Hardware.Handler/Business/ReceivedMqttMessage.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Picking.Hardware.Handler.Business { public class ReceivedMqttMessage { public string Message { get; private set; } public bool IsReceived { get { return Message.Split(...
96fc4659bc5b58963ea5400009b40e1c0ff29ee6
C#
SWATOPLUS/RandomizedAlgorithms
/RA12BadElement/RA12BadElement/Program.cs
2.953125
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace RA12BadElement { internal class Program { private const string InputFileName = "element.in"; private const string OutputFileName = "element.out"; p...
1a4d6bbacc19d2c778ce2320c59e8a1e69991165
C#
bartosz-szymanski/ID3EntropiaApp
/EntropiaApp/Utils/FileReader.cs
2.765625
3
using System.Collections.Generic; using System.IO; namespace EntropiaApp.Utils { class FileReader { public List<string[]> Arrays { get; set; } private readonly string fileName = "/Users/bartosz/Documents/test123.txt"; public void ReadFile() { Arrays = new List<strin...
6fdcf103de4d4a5bdfa8ab4a6ef44927f2a89ed9
C#
alaeners/AED
/TI_FINAL_AED/TI_FINAL_AED/VeiculosHash.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TI_FINAL_AED { public class VeiculosHash { VeiculosListas[] _hashtab; public int contaColisao() { int cont = 0; for (i...
57b35eb030b59d4e2a597eb47be7a3593d62cbda
C#
Shaansh2601/Shantanu_HandsOn
/DesignPatternCaseStudy/DesignPattern_PracticeCaseStudy2/DesignPatternHandsOn2/SteveObserver.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PracticeCaseStudyObserverPattern { class SteveObserver : INotificationObserver { public string Name { get { return "Steve"; } } public void OnServerDown() ...
e27c29c66a16c1f2a23e1269d93e7e3e7b401c70
C#
BCProgramming/DodgerX
/DodgerX/DodgerX/iGameState.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; namespace DodgerX { public class GameRunnerData { private List<Particle> _Particles=new List<Particle>(); private List<AttackingObject> _At...
04611d3541c723fc1fea5829e0e00dd0753f21ee
C#
ComputerMaster1st/Railgun
/Railgun/Core/ServerCount.cs
2.78125
3
using System; using System.Threading.Tasks; using System.Timers; using Discord; using Discord.WebSocket; using Railgun.Core.Configuration; namespace Railgun.Core { public class ServerCount { private readonly MasterConfig _config; private readonly DiscordShardedClient _client; private re...
93cd1c945b0771f9e5221ba6f727626ba8d14c25
C#
dragobaltov/Programming-Basics-And-Fundamentals
/TrackDownloader/TrackDownloader/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrackDownloader { class Program { static void Main(string[] args) { List<string> blacklistedWords = Console.ReadLine().Split(' ').ToList(); List...
a21d98c790c50f1a754059d88d83986d1f511d90
C#
dmitrygboyko/algorithms
/Tests/SortingTests.cs
2.90625
3
using Xunit; using Algorithms.Sorting; namespace Tests { public class SortingTests { [Fact] public void SelectionSort() { var array = new int[] { 6, 5, 4, 3, 212, 1, 32, 2 }; Selection.Sort(array); Assert.Equal(new int[] { 1, 2, 3, 4, 5, ...
cc0cfa98a0827ba4a0e58289def31874c9fece6d
C#
Aspectrus/MultiThread-Random-Text-Generator
/ThreadGeneration/ApplicationWindow.cs
2.71875
3
using System; using System.Windows.Forms; using System.IO; using System.Configuration; namespace ThreadGeneration { public partial class ApplicationWindow : Form { private bool ThreadGenerationIsOn = false; ThreadTimers threadtimers; AccessDatabase accessdatabase; private strin...
1d34b2ec589348a9053fc7e468d57303f956e582
C#
intrepion/zetcode-csharp-sqlite-tutorial-version
/Version/Program.cs
2.953125
3
using System; using System.Data.SQLite; namespace Version { class Program { static void Main(string[] args) { string cs = "Data Source=:memory:"; string stm = "SELECT SQLITE_VERSION()"; using var con = new SQLiteConnection(cs); con....
11e16121047f5f5ea5ac94c14302e0cf6f77daa9
C#
YigaoFan/TestLanguage
/CSharpSrc/ContinuedAction.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConfigureParser { public class ContinuedAction { private readonly List<Action> _actions; public ContinuedAction(List<Action> actions) { this._actio...
e49db47e00cbd2c2f5fa884ae0b30f1a7eb65e7b
C#
BorisBorshevsky/spaceinvaders-ex2
/SpaceInvadersGame/ObjectModel/SpaceShipComposite.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using XnaGamesInfrastructure.ServiceInterfaces; using XnaGamesInfrastructure.Services; using XnaGamesInfrastructure.ObjectModel; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using X...
35b23a8f3db60099ee6c43ff60325966159ce8c6
C#
OpportunityLiu/MvvmUniverse
/Opportunity.MvvmUniverse/Commands/~AsyncCommandWithProgress/~Action{T, TProgress}.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Foundation; namespace Opportunity.MvvmUniverse.Commands { /// <summary> /// Execution body of <see cref="AsyncCommandWithProgress{T, TProgress}"/>. /// </summary> /// <para...
79439afe2290b56df179f86683fd8068f3a6e980
C#
ekolis/FrEee
/FrEee/Utility/IPopulator.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace FrEee.Utility { public interface IPopulator { /// <summary> /// Performs potentially expensive lookup logic to retrieve that data which needs to be populated //...
0e918e78cfdd6cde4619229a3ae94326ef07676a
C#
polytronicgr/httpclone
/src/HttpClone.Library/Common/PathExclusionList.cs
2.578125
3
#region Copyright 2011 by Roger Knapp, Licensed under the Apache License, Version 2.0 /* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
418ccc7508fe458561090c08e80d1d7b9b1edcc7
C#
fahad1226/MS_DotNET
/C#-Basics/FirstApp/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Collections; namespace FirstApp { class Program { static string Name(string name) { return name; } static int Name(int age) { return age; } static void Main(string[] args) { ...
a6e88dde881f683aa10ae3a782056cb795dfa27b
C#
jestemlidzia/Design-and-development-of-high-level-object-oriented-system
/Metody fabryczne i fabryki abstrakcyjne/FruitIce.cs
3.40625
3
namespace LAB05_IceCreamFactory { class FruitIce : Icecream { public bool waffle; public string icing; public FruitIce(int price_, string taste_, bool waffle_, string icing_) : base(price_, taste_) { waffle = waffle_; icing = icing_; }...
1f7409a17c5a29da867e72182b735898d9f907a3
C#
eyassug/ApexReusables
/Apex.Common/Net/EmailAccount.cs
2.765625
3
using System.Net.Mail; namespace Apex.Common.Net { public class EmailAccount { private readonly string _name; private readonly MailAddress _address; public EmailAccount(string address) : this(string.Empty,address) { } public Em...
df00f0cc6ae387b091af8e3b46d0e7550576ca34
C#
Delubear/RandomItemGenerator
/RPGItemGenerator/ItemGeneration/SecondaryProperties/PropertyClasses/DamageTypes/Slashing.cs
2.96875
3
using static RPGItemGenerator.ItemGeneration.Enums; namespace RPGItemGenerator.ItemGeneration { public class Slashing : SecondaryProperties { public Slashing() { Key = 1; this.PropDescription = "Slashing"; } public override void Execute(Item item) ...
9d47481968d835f47360aecbc03f2d5af8f07f22
C#
SamusKerenos/Alhorithms
/DelegateRepresetnation/DelegateRepresetnation/Program.cs
3.5625
4
using System; namespace DelegateRepresetnation { class Program { private static Action<string> _showCondition = condition => { Console.WriteLine($"это фильтрация для {condition}"); }; static void Main() { // вот тут мы инициализируем переменную делегата методом Func<string, bool> _conditionResol...
1abcf476cc4945d1a8c288a946bd42f5ae6ada87
C#
sadiel06/Proyecto-final-compiladores
/Procesos/AnalizadorSintactico.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Procesos { public class AnalizadorSintactico { public AnalizadorSintactico() { TablaSimbolos = new TablaSimbolos(); } public TablaSimbolos ...
66feaa7a479d949fb7bffc8c0f44956fa00d5619
C#
shendongnian/download4
/latest_version_download2/165741-34223956-106169389-2.cs
2.828125
3
private bool Authenticate(string user, string password) { using ( var context = new PrincipalContext(ContextType.Domain, Environment.UserDomainName) ) { return context.ValidateCredentials(user.Trim(), password.Trim()); } }
7e10dd7b8933fd0f028fb7fda8a93ca75b40b1ac
C#
Dimaematveev/Balance_NEW
/Meccanici/Meccanici.DAL/DBConnection.cs
3.234375
3
using System.Configuration; using System.Data.Common; using System.Data.SqlClient; using System.Threading.Tasks; namespace Meccanici.DAL { /// <summary> /// Соединение с БД /// </summary> public class DBConnection { /// <summary> /// экземпляр объекта Соединения с БД /// </...
b3a86695f9e6db1cacca0ec318b5eae68befb3bc
C#
elipmoc/Function_calculator
/Function_calculator/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Function_calculator { class Program { //拡張BNF記法 // []は 0回か1回を表し // {}を0回以上の繰り返し // +を1回以上の繰り返しとする /* 文 : 式 || 変数宣言 ...
990ef99eb526fe613d5fd715ff4330039b31c399
C#
Fawel/AutoImageSeacrh
/src/AIS.Persistance/ImageFiles/InMemoryImageFileRepository.cs
2.8125
3
using AIS.Application.Interfaces.Repositories; using AIS.Domain.ImageFiles; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace AIS.Persistance.ImageFiles { public class InMemoryImageFileRepository : IImageFileRepository { private static...
c0babce6c17ef146dc444972376ad07d5346e19e
C#
robert-impey/CodingExperiments
/C-Sharp/ImperativeMapping/ImperativeMapping/Program.cs
3.59375
4
using System.Diagnostics; using static System.Console; namespace ImperativeMapping { internal class Program { private static void Main(string[] args) { const int size = 10 * 1000 * 1000; var ys = new int[size]; var stopWatch = new Stopwatch(); ...
1a4106cf5c3e421a7fc128d1c2f2c460b962ec62
C#
ViktoriiaKlymenko/HomeWorks
/ASP.Net/WebApplicationFoodService/WebApplicationFoodService/Controllers/ProductController.cs
2.59375
3
using EntityFrameworkTask; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using PastriesDelivery; using System.Collections.Generic; namespace WebApplicationFoodService.Controllers { [ApiController] [Route("[controller]")] public class ProductController : ControllerBase { p...
30c980c1f53c88fc172f836a80396085c548fc0c
C#
dukeofharen/armyknife
/src/Armyknife.Tools/Implementations/TinyUrlTool.cs
2.671875
3
using Armyknife.Business.Interfaces; using Armyknife.Exceptions; using Armyknife.Models; using Armyknife.Resources; using Armyknife.Services.Interfaces; using Armyknife.Utilities; using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace Armyknife...
0471a8a1c8e6417c5201cdcacec4cbe8aa10478d
C#
Petermarcu/Projects
/Pi/Raspberry.IO.GeneralPurpose/PinConfiguration.cs
3.078125
3
#region References using System; #endregion namespace Raspberry.IO.GeneralPurpose { /// <summary> /// Represents the configuration of a pin. /// </summary> public abstract class PinConfiguration { #region Instance Management /// <summary> /// Initializes a new instance of...
f13787434f180828e029353dd5e9114ad1de2935
C#
DobromirZlatkov/TELERIK-Academy-Master
/TELERIK C# OOP/TELERIK-OOP-HW3/AllNumbersDivisibleBy3and7/AllNumbersDivisibleBy3and7.cs
4.21875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AllNumbersDivisibleBy3and7 { /*Write a program that prints from given array of integers all numbers that are divisible by 7 and 3. Use the built-in extension methods and lambda expressions...
a5b0c5de6be415bdcf4859e5d4c8d8791a83913b
C#
panaiotuzunov/Basics-Second-Run
/Simple Conditional Statements/Metric Converter/Program.cs
3.0625
3
using System; namespace Metric_Converter { class Program { static void Main(string[] args) { double num = double.Parse(Console.ReadLine()); string fromUnit = Console.ReadLine(); string toUnit = Console.ReadLine(); double numInM = num; ...
69933fb70d8994b6d5941e56e370473a3d76a896
C#
Albawab/MyWork
/C-/OOP/02 - Inheritance/02 - Inheritance/Cars.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02___Inheritance { class Cars { // The relation is "is a kind" public string model; public string make; string year; public void printModel() ...
7e374a23a62a1b5b83d6438c18703dea02dbbed4
C#
TheTFo/LightBDD
/src/LightBDD.Framework/Commenting/StepExecutionExtensions.cs
2.734375
3
using LightBDD.Core.Configuration; using LightBDD.Framework.Commenting.Configuration; using LightBDD.Framework.ExecutionContext; using LightBDD.Framework.Extensibility.Implementation; namespace LightBDD.Framework.Commenting { /// <summary> /// Extension class for <see cref="StepExecution"/> allowing to commen...
af3e7cd5f89eb673c4d1a66c9ea8e48603096b8b
C#
Yewert/AS-Trace
/AS-Route/AdressInfo.cs
2.875
3
using System.Net; namespace AS_Route { public class AdressInfo : IAddressInfo { public AdressInfo(IPAddress address, string country, string autonomousSystem, string internetServiceProvider) { Address = address; Country = country; AutonomousSystem = autonomou...
7fe8c499555cf6517305e8259dab832ede807890
C#
Rudy95/Workflow
/Workflow_BL/DAL/UserRepository.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Workflow_Models; using Workflow_Models.Models; namespace Workflow_BL.DAL { public class UserRepository : GenericRepository<User> { public UserRepository(DatabaseConfiguration cont...
a139b025749272dd286c5810e7eb8488d348cbf5
C#
jazmincbp/trabajo
/21Julio/CLASE8/CLASE8/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CLASE8 { class MayorMenor { private int v1,v2,v3; private int May,Men; public void CargarValores() { Console...
1aef10d69b2b850fc6d786cad264f8759ca6fc6b
C#
lucamihai/TextMining
/TextMining.Entities/TextData.cs
2.71875
3
using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; namespace TextMining.Entities { [ExcludeFromCodeCoverage] public class TextData { public Dictionary<string, int> WordDictionary { get; set; } public Dictionary<string, int> AcronymDictionary { get; ...
37063b500023c5b9604185e2eb838c665b6de265
C#
austinjwilson/CSharpClass
/Labs/Lab2.cs
2.765625
3
using System; namespace CSharpClass.Labs { public class Counting { public void MyLab2() { for (int value = 0; value < 50; value++) { if (value % 3 == 0) { Console.WriteLine(value); } } ...
ccbe01f2845eabfc61afd1e1d517d86e9e2985df
C#
jeongroseok/Astro-Game-Framework
/Astro.Networking/Messaging/NetworkMessage.cs
2.78125
3
using System; using System.IO; namespace Astro.Networking { public class NetworkMessage { private byte[] buffer; public short OwnerId { get; private set; } public Stream Stream { get { return new MemoryStream(buffer); } ...
7a0d527accd2a97cc6d2b8121a7d759426c7f1dd
C#
andreweua/ArduinoRFID
/Server/InnerSoft.MeEncontre.InfraStructure/Images/ImageHelper.cs
2.640625
3
using System; using System.IO; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; namespace MeEncontre.Infrastructure.Images { public static class ImageHelper { public enum AnchorPosition { Top, ...
90453ab64d1483796ab73814621d07fbc6df65ca
C#
wite/Kata
/TakeANumberAndSumItsDigitsRaised.cs
3.71875
4
using System; using System.Collections.Generic; public class SumDigPower { public static long[] SumDigPow(long a, long b) { List<long> numbersWithProperty = new List<long>(); for (long x = a; x <= b; x++) { string valueAsString = x.ToString(); long power = valu...
3b004a0b412ae410c8f68c1bd59ae76f74cc2025
C#
HoaiNN1/AdventureGame
/Adventure/Controllers/CharacterController.cs
2.625
3
using Adventure.Commom.Models; using Adventure.Services.Characters; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Adventure.Controllers { [ApiController] [Route("[controller]")] pu...
53810ea71550414a5aa3b67f14a9cb5d49168cb6
C#
phamhoanghaison0402/Fsoft-Fresher-.NET-2017
/Projects/source/IPM/IPM.Service/InterviewerService.cs
2.78125
3
using System.Collections.Generic; using IPM.Business; using IPM.Model.Models; namespace IPM.Service { /// <summary> /// </summary> public interface IInterviewerService { /// <summary> /// Gets all. /// </summary> /// <param name="searchString">The search string.</pa...
d64c7c42f83ac7119f20f8e0f2019dfad1b9b497
C#
dnartub/sample-aspcore-vue-dockers
/src-back/common/Cqrs/Interfaces/ICqrsService.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Cqrs.Interfaces { /// <summary> /// Фабрика получения обработчиков действий (комманд и запросов) /// Выполнение обработчиков /// </summary> public interface ICqrsService { /// <su...
12740aea20f29a7d50ddc295254cfef03dd52796
C#
sajayantony/oci-anoymous-pull-dotnet
/ContentStore.cs
2.625
3
using System; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Azure.ContainerRegistry; using System.Text; using System.Text.Json; using System.Threading; using Microsoft.Rest; using System.Net.Http.Headers; using System.IO; namespace OCIArtifact.Samples { public class ContentStore { ...
42adf285f850ddc9e583882159f4cc142de50f7a
C#
roman-belfer/VGA
/VipGuardAccounter/Common.UI/Controls/RateControl.xaml.cs
2.78125
3
using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; namespace Common.UI.Controls { public partial class RateControl : UserControl { public RateControl() { InitializeComponent(); RateCollection = new ObservableCollection<bool>(); ...
488f90783a99d80ee43c0bf943236a3260b0cf0f
C#
TsvetelinIvanov/SoftUni-CSharpFundamentals-I2018
/CSharpAdvanced/02MultidimensionalArraysExercise/08RadioactiveMutantVampireBunnies.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; namespace _08RadioactiveMutantVampireBunnies { class Program { static void Main(string[] args) { int[] lairDimensions = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) ...
a63151ed1068b12765cf899a0896c81e1acbed37
C#
constantlearning/unitri
/unitri-pds/Aula06/aula06-ex03/aula06-ex03/repository/ConnectionFactory.cs
2.671875
3
using System; using System.Data.SqlClient; namespace aula06_ex03.repository { class ConnectionFactory { private static string connString = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\Lucas\Documents\Projetos VS2017\unitri-pds\Aula06\aula06-ex03\aula06ex03.mdf;Integrated Security=Tru...
3ea306ca24e6009bfb5d77bd33c433685a9d27d2
C#
PavelRunchev/Dot.Net-Advanced
/C# Advanced/8. Functional Programming - Exercise/5. Applied Arithmetics/AppliedArithmetics.cs
4.09375
4
using System; using System.Linq; namespace AppliedArithmetics { class AppliedArithmetics { static void Main() { Action<int[]> printCollection = numbers => Console.WriteLine(String.Join(" ", numbers)); Func<int[], int[]> encrementAllElements = numbers => { ...
a5000b79a82804cfe2500f0a13ef4267dd96c6fa
C#
NshanKepityan/assignment_12
/MathServer/TCPServer.cs
3.34375
3
using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace MathServer { public class TCPMathServer { private IPAddress ipAd; private TcpListener listener; private Socket socket; priv...
e59f99a685c543abae042a33fc101f4e189a8a80
C#
duckstop/charapp
/CharApp/Repositories/CharacterRepository.cs
2.9375
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using CharApp.Abstract; using CharApp.Models; namespace CharApp.Repositorys { public class CharacterRepository : ICharacterRepository //Repository af typen Character. { ApplicationDbContext _...
647285f5466fb26e5fd35942698b8e531b2b00e6
C#
Brannos1970/PGDrive
/PGDrive/PGoogleDrive/Internal/Models/General/PGDriveConfig.cs
2.578125
3
using System; using System.Configuration; namespace PGoogleDrive.Internal.Models.General { internal class PGDriveConfig { public static PGDriveConfigSection _Config = ConfigurationManager.GetSection("PGDrive") as PGDriveConfigSection; public static ApiKeyPGDriveElementCollection GetApiKeysDr...
ee65fc82e6e81bd77d10223b07e9c1aa0873b0de
C#
philanderson888/2019-06-c-sharp-labs
/labs/lab_43_database_app/MainWindow.xaml.cs
2.6875
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;...
968ef0ad24f29704864d7861a457aba2e1f94459
C#
Agilsaav/TFM
/tfm/Assets/Scripts/Movement/LinearMovement.cs
2.984375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Class not used: Moves an object in a direction. public class LinearMovement : MonoBehaviour { [SerializeField] float distanceToMove = 5.0f; [SerializeField] float speed = 1.0f; [SerializeField] Vector3 direction = new Vector...
08abbfbbf6c560877504b7d8ce73296fc53b3389
C#
looki666/LanguageProject
/LanguageProjectUnity/Assets/Scripts/AI/Cognition/Inference/Pattern/EvaluationPattern.cs
2.984375
3
using System; using System.Collections.Generic; public enum EntailmentContext { Upward, Downward, None } public class EvaluationPattern { public IPattern pattern { get; protected set; } public EntailmentContext context { get; protected set; } public EvaluationPattern(IPattern pattern, Entailm...
59d61b84c5398f384ae52c2c2c1194139434e333
C#
matheushcamilo/Cadastro-DIO
/Cadastros/Cadastros/Classes/RepositorioSeries.cs
3.515625
4
using Cadastros.Interfaces; using System; using System.Collections.Generic; namespace Cadastros.Classes { public class RepositorioSeries : IRepositorios<Series> { private List<Series> listaSerie = new List<Series>(); public void Atualizar(int i, Series objeto) { listaSerie[...
731a23b849981b231d74f851b0201104001ef87f
C#
damjik/Colorful.Console
/src/Colorful.Console.Tests/TextPatternTests.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Colorful; using System.Drawing; namespace Colorful.Console.Tests { public sealed class TextPatternTests { private static readonly string dummyString = "cat"; p...
0008425874b50b466c3cadfa64adf1fcc5a2396a
C#
caffeine239/BeatSaberCloneScoreServer
/Database/DataBase.cs
2.78125
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; public class DB { public static Database _current = new Database(); } public c...
a7417e0e7a58344d31172dd2b8feb2294945f393
C#
dnknitro/photoname2date
/src/NameFix/NameFixProgram.cs
2.546875
3
using System; using System.Collections.Generic; using System.Windows.Forms; using NameFix.AppCode; using NameFix.Properties; namespace NameFix { internal static class NameFixProgram { public static FilesList FilesList; public static RenamerConfig RenamerConfig; /// <summary> /// The main entry...
ede6315cd5823a003a0097eea45fa149bc309048
C#
tsandtm/BOEdu
/SourceCode/project.web/Components/Range.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace project.web.Utils { public class Range { public static List<int> GetYears(int intRange) { List<int> ltIntOutput = new List<int>(); for (int i = 0; i < intRange; i++) ...
cd099f6d8f39ab34d797422acd1152cbf9bc580b
C#
Silmaverd/KALAMBURY-BETA
/KalamburySerwer/GameClient.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace KalamburySerwer { class GameClient { private Client clientInstance { set; get; } public void Connect(Socket clientSocket, int id...
cbeb716a367216a71a6e974137bf1ec50ed11cd0
C#
DylanSoler/ProyectoDAM
/UWP/FootballTrainingManager/FootballTrainingManagerUI/ViewModels/Converters/clsConverterRutaImagenFormTact.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace FootballTrainingManagerUI.ViewModels.Converters { public class clsConverterRutaImagenFormTact : IValueConverter { //Dado un sistema (Ej. 4-2-3-1), s...