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
3e043aa4694c9b35c4cdd48a54c1ec59853f9620
C#
shamanhex/OmSU
/UAT.OmSU_01/PageObjectModel/FindAsAttribute.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ITSK.Selenium.PageObjectModel { [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class FindAsAttribute : Attribute { ...
237784b53cb7dd8c2728c93ed8a1a00cb476eb1e
C#
jasondavis303/Xamarin-DownloadManager
/DownloadManager/DownloadManager/MainPage.xaml.cs
2.5625
3
using System; using System.IO; using Xamarin.Forms; using System.Linq; namespace DownloadManager { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); string url = "https://s3.us-west-1.wasabisys.com/s3xp-demo-bucket-1/image%201.png...
98d1473cb540f4398c255a0544ede22fa8e60fdd
C#
Leodolz/Web-Project-React
/WebExamAppBackend/WebApplication2/Utils/StudentExamUtils.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using WebApplication2.DAL; using WebApplication2.Models; using WebApplication2.DBControllers; namespace WebApplication2.Utils { public class StudentExamUtils { public static RealExamQuestion[] GetAllStudentExamElement...
cd9d7b9822ef8c63cc73c1569aceb9d5d4084303
C#
sviatlanav/EPAM_Task_1
/Task_1/Demo/Extension.cs
3.8125
4
using System; using System.Linq; using Task_1.Interfaces; namespace Task_1.Demo { public static class Extensions { public static void ShowItems(this IGift gift) { Console.WriteLine("Set of sweets in a gift: "); foreach (var i in gift.Items) { ...
1035772ea8681437bd78569af3eada816b749bb7
C#
devjoes/DockerComposeFixture
/DockerComposeFixture/Compose/ProcessRunner.cs
2.703125
3
using System; using System.Collections.Generic; using System.Diagnostics; namespace DockerComposeFixture.Compose { public class ProcessRunner : IObservable<string> { private readonly List<IObserver<string>> observers; private readonly ProcessStartInfo startInfo; public ProcessRunner(P...
20c75de6df35ddc950534439025fa7caaa769c4a
C#
kingofkingdom315/practica
/практикум 13/консоль/Pract/Pract/Program.cs
3.234375
3
using System; using System.Security.Cryptography.X509Certificates; namespace Pract { class Program { static void Main(string[] args) { Console.Write("Введите количество прямоугольников "); int n = Convert.ToInt32(Console.ReadLine()); double[] A = ...
516dd8073e87506456563e3138f8b1024863510b
C#
warrior888/TeamCoding
/TeamCoding.Shared/Extensions/StringExtensions.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace TeamCoding.Interfaces.Extensions { public static class StringExtensions { public static int ToIntegerCode(this string str, bool ignoreCase =...
620930cc4ea37802d2e7f72a3f396eb4f04d8b76
C#
AscheLab/AscheLib.UniMonad
/Assets/AscheLib/UniMonad/Monad/IO/IO.ToIdentity.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; namespace AscheLib.UniMonad { public static partial class IO { private class ToIdentityCore<T> : IIdentityMonad<T> { IIOMonad<T> _self; Lazy<T> _lazy; public ToIdentityCore (IIOMonad<T> self) { _self = self; _lazy = Lazy.Create<T>(...
ed761a7c8d2db47349d8fa32be2a008663ca7582
C#
EamonNerbonne/general-programs
/2009-old/HwrSplitter/HwrDataModel/SymbolClass.cs
2.71875
3
using System; namespace HwrDataModel { public class SymbolClass { char? letter;//by agreement, char 0 is str-start, char 1 is unknown, char 10 is str-end, and char 32 is space uint? code; public char Letter { get { return letter.Value; } set { if (letter.HasValue && letter.Value != value) throw new Ap...
89335f4fe2b46cc54d14d7663a2af03545a8b08f
C#
toolgood/ToolGood.ReadyGo
/ToolGood.ReadyGo3/Enums/SqlFunction.cs
3.09375
3
namespace ToolGood.ReadyGo3.Enums { /// <summary> /// SQL函数 /// </summary> public enum SqlFunction { /// <summary> /// 使用自定义函数 /// </summary> Fuction, /// <summary> /// 求长度 /// </summary> Len, ///// <summary> ...
25e6f81aeb981520bb0988522f5f61ebb259118d
C#
andrei-pl/TelerikAcademy
/DataStructuresAndAlgorithms/DSA-LinearDataStructures/05. RemoveNegativeNumbers/Program.cs
4
4
namespace _05.RemoveNegativeNumbers { using System; using System.Collections.Generic; /// <summary> /// Write a program that removes from given sequence all negative numbers. /// </summary> class Program { static void Main(string[] args) { Console.WriteLine("Ent...
270ec755a9223349d55f0ae6d8f46482b4230191
C#
memuunkie/gametrackingapp
/PingPong/PingPong/Models/TeamGame.cs
3.078125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Web; using Dapper; namespace PingPong.Models { public class TeamGame { public static SqlConnection _conn = new SqlConnection(ConfigurationManager.ConnectionStrings["...
261dd9d345e6992084415ddd780c1b206a7333d2
C#
martijnmelchers/avans-festispec
/src/UserInterface/Converters/HasQuestionsConverter.cs
2.6875
3
using System; using System.Globalization; using System.Linq; using System.Windows; using System.Windows.Data; using Festispec.Models; namespace Festispec.UI.Converters { internal class HasQuestionsConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, Cult...
0d909081cb9184f0b96b09e9178552ab0e86b4c5
C#
juliavav/Integration
/Integration/Functions.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; using static System.Math; namespace Integration { class Functions { //public static double F(List<double> coefficients) //{ // if (coefficients.Count < 3) // { // Console.WriteLine("ERROR");...
50963e50b1cf6f2def8915f38c17ef6a225d849e
C#
turanfurkan/ClassMetotDemo
/ClassMetotDemo/Program.cs
2.625
3
using System; namespace ClassMetotDemo { class Program { static void Main(string[] args) { Customer customer = new Customer(); customer.Name = "Furkan"; customer.Surname = "Turan"; customer.Id = 1; customer.Email = "furkanturan10r@hot...
9722b65f04bf28284a0cc7915ce33689e32a986f
C#
ZeidH/RestaurantOrderingSystem-Chapeau
/ChapeauUI/Animation.cs
2.71875
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.Media.Animation; namespace ChapeauUI { class Animation { // For Pages internal static void AnimateIn(Pag...
d317f02a1447e96e57807459b04f37022b82eb76
C#
sergey-su/logjoint
/trunk/presenters/LabeledStepperPresenter/LabeledStepperPresenter.cs
2.640625
3
using System; using System.Linq; namespace LogJoint.UI.Presenters.LabeledStepperPresenter { public class Presenter : IPresenter, IViewEvents { readonly IView view; int currentValue; int[] allowedValues; int minValue = int.MinValue; int maxValue = int.MaxValue; bool enabled = true; public...
43a28f135cfba12fa89f1e5b7edb3704133763f6
C#
REHERC/Distance-Toolbox
/Photon/GUI/ToolPage/ToolPage.cs
2.59375
3
using System; using System.ComponentModel; using System.Windows.Forms; namespace Photon.GUI.ToolPage { [ToolboxItem(false)] public class ToolPage : UserControl { public ToolPage() { Globals.Colors.OnColorsUpdated += new Action(delegate () { this.Invalidate(); ...
a0c2b6c09e27f2193672554da2849d656e2cb175
C#
Codestellation/Galaxy
/subtree/quarks/src/Quarks/Exceptions/ExceptionExtensions.cs
2.859375
3
using System; using System.Linq.Expressions; using System.Reflection; namespace Codestellation.Quarks.Exceptions { internal static class ExceptionExtensions { private static readonly Action<Exception> PreserveStackTrace; static ExceptionExtensions() { var parameter = Expre...
c4432aa8c8de81595b35794f33aa96319c7eb2ed
C#
thomasrockhu/customer-tests-excel
/CustomerTestsExcel/Assertions/TableAssertion.cs
2.859375
3
using CustomerTestsExcel.CodeOutputWriters; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace CustomerTestsExcel.Assertions { public class TableAssertion<Parent, Child> : IAssertion<Parent> where Child : class { protected Expression<Func<Parent...
6e5a252d4346028da8e6191ace85d39809a55485
C#
jtext-103/CFET2Core
/Code/CFET2Core/Sample/SampleExtension.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Jtext103.CFET2.Core.Sample { /// <summary> /// extesion method related to sample /// </summary> public static class SampleExtension { /// <summary> /// wra...
1e89ba0dbb6bac9f825545e33b38bfa89626cdea
C#
CptKTL/GKO
/vt2/t3/NumberTextBox/NumberTextBox/NumberTextBox.cs
2.8125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace NumberTextBox { public partial class NumberTextBox : TextBox { ErrorProvider e...
47392264536cf2b3d51c0865caffdb6b4138e957
C#
claremacrae/Pipelines
/Pipelines/Sender.cs
2.6875
3
using System.Collections.Generic; using System.Linq; namespace Pipelines { public abstract class Sender<T> : ISender { protected readonly List<IListener<T>> Listeners = new List<IListener<T>>(); public abstract string Name { get; } IEnumerable<IGraphNode> ISender.Children => Listener...
935d46659d4669666ed149cb4484ea4cec2f4792
C#
doba7a/SoftUni
/Tech Module/Programming Fundamentals/11. Arrays - Lab/6. ReverseArrayOfStrings/StartUp.cs
3.234375
3
namespace ReverseArrayOfStrings { using System; using System.Linq; public class ReverseArrayOfStrings { public static void Main() { string[] arrayOfStrings = Console.ReadLine().Split(' ').ToArray(); Array.Reverse(arrayOfStrings); Console.WriteLine(...
f0df549aaa6b5ab6096cc9bf8f2d600430726705
C#
horbel/async-await-sharing
/async-await-demo/MoveNextCode.cs
2.921875
3
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Runtime.CompilerServices; //using System.Text; //using System.Threading.Tasks; //namespace async_await_demo //{ // class MoveNextCode // { // public static async Task<Int32> MethodTaskAsync() // { // ...
b97ab3bea49b447be54b8b5a063c6fc75c95e579
C#
ByteNuts/JasminSdk
/JasminSdk.Core/Models/AccountsReceivable/CreateReceipt/OpenAccountPosting.cs
2.53125
3
using System; using Newtonsoft.Json; namespace ByteNuts.PrimaveraBss.JasminSdk.Core.Models.AccountsReceivable.CreateReceipt { public class OpenAccountPosting { #region Required Properties /// <summary> /// The company code is the central organizational unit within the system. ...
f7a7b75ae8e7183351eb0642df5649c5c8111219
C#
shalzuth/SouthwestCheckin
/SouthwestCheckin/Networking.cs
2.71875
3
using System; using System.IO; using System.Net; using System.Text; namespace SouthwestCheckin { class Networking { CookieContainer cookies; String UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"; static ...
36cdcb405cf16b66c921e57e9f6d347237cac152
C#
taeyoung98/GameCube
/LoginClient/OAuth_Login/Game/PingPong/FPingPong.cs
2.609375
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 OAuth_Login.Game.PingPong { public partial class FPingPong : Form { bool goup,...
c81af1de1f7750f28be35d1192141b20083db4b5
C#
Seth-Thomas/KJPFit
/KJPFit.Services/StatService.cs
2.859375
3
using KJPFit.Data; using KJPFit.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KJPFit.Services { public class StatService { private readonly Guid _userId; public StatService(Guid userId) { ...
41003ca5b714fb323223cdd154d0977eb0ab7705
C#
arcus-azure/arcus.security
/src/Arcus.Security.Tests.Unit/Core/Stubs/AsyncStaticSecretProvider.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arcus.Security.Core; namespace Arcus.Security.Tests.Unit.Core.Stubs { internal class AsyncStaticSecretProvider : ISecretProvider { private readonly string _secretValue; //...
c353d02fd25fccb3986338bf7c5956d58515f136
C#
jamesatlas/iticse_2017_game
/Assets/scripts/WorldLoader.cs
2.53125
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class WorldLoader : MonoBehaviour { public ArrayList levels; // string public Dictionary<string, TextAsset> levelAssets; public Dictionary<int, int> worlds; private int world; [SerializeField] priva...
fd6ae8103dab96ef915797ce5195948fb0ad2dd8
C#
VladislavAnkov/SoftUni
/Programming-Fundamentals/Classes/04.Students/Program.cs
4.09375
4
using System; using System.Collections.Generic; using System.Linq; namespace _04.Students { class Program { static void Main(string[] args) { int numberOfStudents = int.Parse(Console.ReadLine()); List<Student> students = new List<Student>(); for (int i = 0...
aadb52f83d6dc6a9ec44f10a0510cf000af7d157
C#
wbband/OA
/TM.SaaS.OA/PF/SMT.SAAS.Platform.Model/Utility.cs
3.25
3
using System; using System.Reflection; using System.Linq; // 内容摘要: 工具类 namespace SMT.SAAS.Platform { public static class Utility { /// <summary> /// 根据跟定的两个已知对象TSource,TTarget /// 将TSource对象中与TTarget /// </summary> /// <typeparam name="TSource"></ty...
a155c0962c8441661aef0c73cbe3c51d0ff39421
C#
xkw168/OpenWHU
/专业课/电子信息学院/数据结构(C#)/代码/DSAGL_EXP/exp5lib/HashSearchList.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DSAGL { public class HashSearchList<T> { private HashNode<T>[] baseTable; public HashSearchList(int HashSize) { baseTable = new HashN...
5bcb7da9c0087e42ecd94a09b95a8dc6cd6e7a52
C#
adlf27/CSCI473
/Assign2/TeamProject/TeamProject/Form1.cs
2.828125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; /******************************************************************...
65ccbd9ecfda1f7f2c67026e397d77c14d8be3d6
C#
sahar227/anime-downloader
/AnimeDL GUI/AnimeDL GUI/Form1.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using System.Diagnostics; using Newtonsoft.Json; namespace AnimeDL_GUI { public p...
202c5eed532d74a673cb55d6cb02b9564cffd819
C#
saberdance/Karen
/DatavSimulator/DatavSimulator.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using tsubasa; namespace DatavSimulator { public class SimulatorConfigure { public string Name { get; set; } public TimeSpan UpdateInterval { get; set; } ...
d42bab2b0f859077c85e5106ee1155d7cf2c68dc
C#
modo123/Encryptor
/Projekt_AES/User.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography; namespace Projekt_AES { [Serializable] public class User { public string Login { get; set; } public User (string name) { ...
adaf8b83560bf7d92af18d2e184803c75c1551c7
C#
BlueBasher/TfsTimeSheet
/TfsTimeSheet/Models/TimeSheetItem.cs
2.546875
3
namespace TfsTimeSheet.Models { using System; using System.ComponentModel.DataAnnotations; using System.Configuration; using System.Globalization; using Caliburn.Micro; public class TimeSheetItem : PropertyChangedBase { public TimeSheetItem() { var defaultDateTi...
ba2e2b38043c279cc998a7fda5acca5326a49914
C#
tomascardenal/OnMenu
/Droid/Helpers/BaseRecycleViewAdapter.cs
2.8125
3
using System; using Android.Views; using Android.Support.V7.Widget; namespace OnMenu.Droid { /// <summary> /// Basic RecycleViewAdapter to inherit /// </summary> public class BaseRecycleViewAdapter : RecyclerView.Adapter { /// <summary> /// Itemclick handler /// </summary>...
048ba5edeedba2b50cbbfbd680ded7a90fda8b28
C#
RameshBettge/Unity_GrundlagenProgrammierung_02
/Assets/Week 3/Loops And Collections/SineGrid_02.cs
3.03125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // Spawnt viele Instanzen von einem Prefab in einem Grid. // Bewegt diese Instanzen wellenförmig in y-Richtung, basierend auf einer SinusFunktion // Die Farbe der Instanzen ändert sich, basierend auf ihrer y-position. public class SineGrid...
02c41cddde40b175202bcb0b38231f1662f702b3
C#
histefanov/HackerRank
/Mini-MaxSum/Program.cs
3.875
4
using System; using System.Linq; namespace Mini_MaxSum { class Program { static void Main(string[] args) { var arr = Console.ReadLine() .Split() .Select(int.Parse) .ToArray(); var result = MinMaxSum(arr); Cons...
f67def21dc0bdfc3a4355cf5dbad4f4493c63846
C#
Jarolim/AllMyHomeworkForTelerikAcademy
/OOP/02.DefiningClassesPartII/From ppl in forum/02.DefiningClassesPart2/Task1,2,3,4Point3D/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Point3DClass { static void Main(string[] args) { //01.creating a new instance of Point3D Point3D myPoint = new Point3D(4, 2, 1); //01.testing the overrite of ToString() Console.WriteLine(myPoint.ToString()); /...
9ac28ea2d487785a10f954c367cebaf0ca31df96
C#
Mamata2507/ASP.NET-All
/Telerik home 12.10.2015/C#2/CSharp2ExamPreparation/26.DogyCoins/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { int[] dimensions = Console.ReadLine().Split().Select(int.Parse).ToArray(); int rows = dimensions[0]; int cols = dimensions[1]; int[,] coins = new int[rows...
f522d9dff88225eb636f0ddeaa50d121f2bb34c1
C#
DioMuller/quest-for-the-crown-2
/src/QuestForTheCrown2/QuestForTheCrown2.Core/Entities/Behaviors/ChainBehavior.cs
2.890625
3
using Microsoft.Xna.Framework; using QuestForTheCrown2.Entities.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QuestForTheCrown2.Entities.Behaviors { class ChainBehavior<T> : WalkBehavior where T : Entity { public Entity Following { get; private s...
162eb4304c4555d8f401373c26a907522de468bc
C#
noodlecollie/nightfire-model-compiler
/src/cs/Qc/CommandAnimation.cs
2.546875
3
namespace JbnLib.Qc { public class CommandAnimation { public const string Command = "$animation"; private string _Name; public string Name { get { return _Name; } set { _Name = value; } } private string _File; public string File ...
bdac3c55fcb566f909ad207547fa6016925f18fa
C#
HisRoyalRedness/gpx-parser
/Person.cs
2.859375
3
using System; using System.Xml; using System.Xml.Linq; namespace HisRoyalRedness.com { public class Person : GpxItem<Person> { public Person() { } public string Name { get; set; } public Email Email { get; set; } public Link Link { get; set; } public static Pe...
737900b3419c4e00e3d3f1a2a487e6961ebba00e
C#
ianiancilla/TicToc2D
/Assets/Scripts/SightCone.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace TicToc.Mechanics { public class SightCone : MonoBehaviour { [SerializeField] private float sightRange = 15; [SerializeField] private float sightAngle = 30; [SerializeField]...
f9f1aaa68f4577020264ee02ba0e4af76074acb5
C#
tufactura-co/NugetTufactura.co
/Modelo/Cabecera.cs
2.734375
3
using System.ComponentModel.DataAnnotations; namespace TuFactura.co.Modelo { /// <summary> /// Contiene Todas las Propiedades neecsraias para crear la Cabecera de una Factura de Venta. /// </summary> public class Cabecera { /// <summary> /// Propiedad Utilizada para carga...
bd358a8c03e4d6986e9f0544e86c2f97d41308b2
C#
eduardoJoseRibeiro/Laboratorio03-Console-CSharp
/Laboratorio03/Tempo.cs
3.6875
4
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Laboratorio03 { public class Tempo { private int hora, min, seg; //Construtores public Tempo() { this.hora = 0; this.min = 0; ...
90ced36c45024c0e7e8a65d5c7e1f0cc228430e1
C#
chukhuck/Exercism
/csharp/proverb/Proverb.cs
3.1875
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; public static class Proverb { public static string[] Recite(string[] subjects) { if (subjects.Length == 0) return new string[0]; return subjects. Zip(subjects.Skip(1), (x, y) => ...
8c98a1b8ec9ce4360eb80744ecc7c92228860846
C#
jzfdoud/GeometricShapesWithInterfaces
/GeometricShapesWithInterfaces/Program.cs
2.96875
3
using System; namespace GeometricShapesWithInterfaces { public class Program { static void Main(string[] args) { var shapes = new IShape[] { new Quadrilateral {}, new Rectangle { }, new Square { }, }; for...
7f3da248c2571e3ef8b7f0623583af1795d6533f
C#
FLechantre/xamarin-forms-samples
/KwazyThreeDee/Forms3D/Icosahedron.cs
2.921875
3
using System; namespace Forms3D { public class Icosahedron : PolyhedronBase { static readonly double G = (1 + Math.Sqrt(5)) / 2; static readonly Point3D[,] faces = new Point3D[20, 3] { { new Point3D(0, G, 1), new Point3D(-1, 0, G), new Point3D(1, 0, G) }, { new ...
b8488ec7ee8e6b4f287929a202104b6da0fee696
C#
io-sink/BDVHDLtoNetlist
/BDVHDLtoNetlist/Block/Signal/StdLogic.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BDVHDLtoNetlist.Block.Signal { class StdLogic : ISignal { public SignalMode mode { get; } public SignalName name { get; } public Dictionary<string, object> at...
410fc03f0606df6cb2689f7adaba147a621927a8
C#
ayhan-karaman/MvcProjectCamp
/BusinessLayer/Concrete/ImageFileManager.cs
2.609375
3
using BusinessLayer.Abstract; using DataAccessLayer.Abstract; using EntityLayer.Concrete; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessLayer.Concrete { public class ImageFileManager : IImageService { IImageDal _im...
416b6c1e83ad310fb24f686d98f67acb315c6b36
C#
Jo-Hunter/TimeKeeper
/TimeKeeper/Business_Layer/Link.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TimeKeeper.Business_Layer { class Link { private int linkID, sessionID; private string linkName; public int LinkID { get { return linkID; ...
5405a61a3a13be353c9374b4e8bbb1e8b44ee7a5
C#
Catharsium/Catharsium.SmooStone
/src/Catharsium.SmooStone.Entities/GameState/Hands/Hand.cs
3.046875
3
using System.Collections.Generic; using Catharsium.SmooStone.Entities.GameState.Entities.Base; namespace Catharsium.SmooStone.Entities.GameState.Hands { public class Hand : IHand { #region Properties public int MaximumCards { get; set; } private IList<ICard> _cards; public I...
2c8af3b295bd75cc70ca05f2c21a3500c0762000
C#
Sebrovskiy/Task-2
/Task 2 new/Program.cs
2.875
3
using System; using System.Collections.Generic; using Task_2_new.Interfases; using System.Configuration; using Task_2_new.Classes; namespace Task_2_new { class Program { static void Main(string[] args) { try { #region Task 1 ...
327345eb7cdcddf663aa7402ed9b00b0d5b2a50d
C#
wordtinker/CSimpleBudget2
/ViewModels/Elements/AccountItem.cs
2.75
3
using Models.Interfaces; using ViewModels.Interfaces; using Prism.Events; namespace ViewModels.Elements { public class AccountItem : IAccountItem { private IDataProvider dataProvider; private IEventAggregator eventAggregator; internal IAccount account; public string Name => ac...
c0efbc4681f9d894c67ff5b069c91015fa60cb8b
C#
HectorZetino/TuSaludEnMisManos
/LibraryClassTrees/Nodo.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LibraryClassTrees { public class Nodo { public MedicamentoBT Medicamento; public Nodo Padre; public Nodo izquierdo; public Nodo Derecho; public ...
51e55e34b3449d14a9fd3a1eeeccb867ab0dcd9f
C#
Piotrekol/StreamCompanion
/plugins/FileMapDataSender/FileMapManager.cs
2.65625
3
using StreamCompanionTypes.Interfaces.Services; using System.Collections.Generic; using System.IO; using System.IO.MemoryMappedFiles; using System.Runtime.Versioning; using System.Text; using StreamCompanionTypes.Enums; namespace FileMapDataSender { public class FileMapManager { Dictionary<string, MapC...
e40f8a1579922fbe3d179342cbfcb2e195ca6bc8
C#
elliotthill/hex-strategy-game
/HexStrategy/HexStrategy/Entities/Cube.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace HexStrategy { public class Cube { float rotation = 0.0f; Vector3 position = Vector3.Zero; public void Draw() { // Copy any parent transf...
72f4164ebd21c12a390aec76e0e45ec5a9aeee7d
C#
ApPlamen/StudentInfoSystem
/University_frontend/University_frontend/University_frontend/Extensions/HttpHelper.cs
2.859375
3
namespace University_frontend.Extensions { using Newtonsoft.Json; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; public static class HttpHelper { public static T GetContent<T>(HttpResponseMessage response) ...
c18cfe7bd1933bd335ce0509bc4016ea948976c1
C#
joejy0109/WebApp-KnockoutJS
/WebApp-KnockoutJS/XmlGeneratorAndReadToObject.cs
2.65625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using System.Xml.Serialization; namespace ConsoleApplication5 { [XmlRoot("authroize")] public class...
51e9c37728dc2e73e516cff2d708dfabd34a3421
C#
cmelange/IfcCreator
/IfcCreator/ExceptionHandling/ReportableException.cs
3.109375
3
using Newtonsoft.Json; using System; using Microsoft.AspNetCore.Mvc; namespace IfcCreator.ExceptionHandling { /// <summary> /// This class serves as the base class for all Exceptions that can be reported via HTTP according to RFC7808 /// For that purpose it extends the System.Exception with a member of typ...
815b6ec6352a2c1eb2711dc5ddeea70e7e9b4b43
C#
StJohnSchruben/MageKnight
/MKService/NullServiceClient.cs
2.53125
3
using log4net; using MKService.QueryFactories; using Service; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MKService { internal sealed class NullServiceClient : IServiceClient { /// <summary> ...
a5a2798b986fe5f8d94f11d24df72e46b1df719e
C#
craz186/Escapist-C-Sharp-Scripts
/Assets/Scripts/Move.cs
3.640625
4
using System; public class Move { // TODO Finalize Move class, is direction and distance the best measurement? Would previous location to next location make more sense? // A Move will have a direction ENum // A Move will have a distance // Or will Move just have a destination? Or both? // How do w...
defbbf546a34ad595e011943837f66bd48de7987
C#
staff0rd/satire
/src/Program.cs
2.78125
3
using System; namespace satire { class Program { static void Main(string[] args) { var first = args[0].Substring(0, int.Parse(args[1])); var second = args[0].Substring(int.Parse(args[1])); Console.WriteLine(first); Console.WriteLine(second); ...
67d3dbe0304b5880a8242c721224ad280f5490fe
C#
Endika233/HolaMundo1
/dia1/dia1/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace dia1 { class Program { static void Main(string[] args) { //Console.WriteLine(2/2); /*Console.WriteLine(-5+8*6); Console.WriteLine...
ea2aca2c1b93852498339e116d268d9f5a4a54f9
C#
hjgode/RAC_switch
/sdf_src/OpenNETCF/OpenNETCF/Threading/EventResetMode.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; namespace OpenNETCF.Threading { /// <summary> /// Indicates whether an <see cref="EventWaitHandle"/> is reset automatically or manually. /// </summary> public enum EventResetMode { /// <summary> /// When signaled, th...
3a5c1a41a38c895e69ecbb5d0da60bca4d7d068c
C#
VenenS/Food.Services
/Food.Services.Tests/FakeFactories/TagObjectFactory.cs
2.625
3
using System; using System.Collections.Generic; using Food.Data.Entities; using Food.Services.Tests.Context; namespace Food.Services.Tests.FakeFactories { public static class TagObjectFactory { private static Random _rnd = new Random(); public static TagObject Create(User creator = null, Tag t...
2e4de8052399c452d500850c6709ca157da28c20
C#
OleksandrKulchytskyi/VkManager
/Srcs/Utils/StringBuiderExtension.cs
3.25
3
using System.Text; namespace Utils { public static class StringBuilderExtension { public static bool IsNullOrWhiteSpace(this StringBuilder poStringBuilder) { if (poStringBuilder.IsNullOrEmpty() == false) for (int x = poStringBuilder.Length - 1; x >= 0; x--) if (char.IsWhiteSpace(poStringBuilder[x]) ...
c93d9549b8048780498b3cd013738e4d82612e27
C#
aarondandy/pigeoid
/src/Pigeoid.Core/CoordinateOperation/Projection/TunisiaMiningGrid.cs
2.84375
3
using System.Diagnostics.Contracts; using Pigeoid.CoordinateOperation.Transformation; using Vertesaur; using Vertesaur.Transformation; namespace Pigeoid.CoordinateOperation.Projection { public class TunisiaMiningGrid : ProjectionBase { private class Inverse : InvertedTransformationBase<TunisiaMiningG...
d1007f973518d76eb2dd3868bc3758f72e1a5de5
C#
w-schoebel/2D-Farming-Adventure
/2D Farming Adventure/Assets/Scripts/InventoryObjects/Inventory.cs
3.0625
3
/* Author Wiebke Schöbel * Created at 03.06.2020 * Version 9 * * Controls the inventory */ using Assets.Scripts.ItemObjects.Types; using System; using UnityEngine; namespace Assets.Scripts.InventoryObjects { /// <summary> /// Controls the inventory /// </summary> public class Inventory : MonoBeh...
7b7bb71838a28883789b7662913b65cb1f713291
C#
marciobagnus/golosinas
/Dao/UsuarioDao.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Entidades; using System.Data.SqlClient; using System.Configuration; namespace Dao { public class UsuarioDao { public static bool esUsuarioRegistrado(UsuarioEntidad use...
b941ffca785794ac2a69683aa93c5a5a7b7632b6
C#
VlaTo/Hessian.NET
/Source/ValueElement.cs
2.875
3
using System; namespace LibraProgramming.Serialization.Hessian { /// <summary> /// /// </summary> public class ValueElement : ISerializationElement { /// <inheritdoc cref="ISerializationElement.ObjectType" /> public Type ObjectType { get; } ///...
b79c571f1c1d170a1dd592d9906a0d2f2ee7cc29
C#
Stanislav-Berezovsky/BSU.ASP.1501.Day9.Berezovsky
/Task1Console/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Task1; namespace Task1Console { class Program { static void Main(string[] args) { BinaryTree<int> tree = new BinaryTree<int>(); tree.Insert(5); ...
c4b06c4b5af3002888f736c0fcb36cc25b21a3a8
C#
leoguilen/aspnetcore_outbox-pattern
/components/vehicle-reservations.command-api/src/VehicleReservations.Command.Infrastructure.CrossCutting.Logger/Logging/SerilogLogWriter.cs
2.515625
3
using System; using System.Net; using Serilog; using Serilog.Events; using VehicleReservations.Command.Core.Configurations; using VehicleReservations.Command.Core.Interfaces.Infrastructure; using VehicleReservations.Command.Infrastructure.CrossCutting.Logger.Models; namespace VehicleReservations.Command.Infrastructur...
4243bc507b5c2e4d06caf2a82a48d9d57562a490
C#
adrianBalquinta/PlataformasDeDesarrollo
/13-10-2020/BlazorApp1/TareasAPI/Controllers/TareaController.cs
2.53125
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 Model.Entidades; using TareasAPI.Data; namespace TareasAPI.Controllers { [Route("api/[controller]")] [Api...
780c6485929eb3e0b1c63f2a40732e0e236972c2
C#
novocob/TelerikAcademy
/C# Part1/05.ConditionalStatements/03.TheBiggestInteger/TheBiggestInteger.cs
4.4375
4
/* Write a program that finds the biggest * of three integers using nested if statements. */ using System; class TheBiggestInteger { static void Main() { Console.Write("Enter first integer : "); int n1 = int.Parse(Console.ReadLine()); Console.Write("Enter second integer : "); ...
c556790d0cd53e0986d79bb56c3af18034ef9463
C#
annaladewig/exercicios-logica-de-programacao-unibratec
/1º Unidade/EXTRA-DataComMêsPorExtenso/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EXTRA_DataComMêsPorExtenso { class Program { static void Main(string[] args) { string data, mesExtenso; int apenasData, apenasMes, apenasAno; ...
4e247f6a182c006193c8d90857dd695cb5f265c4
C#
shendongnian/download4
/first_version_download2/298519-24447378-68172049-2.cs
2.765625
3
public Test(params object[] values) { this.Values = values .Select((x, idx) => new {x, idx}) .GroupBy(g => g.idx/2) .Select(g => new TestData(g.First().x.ToString(), (bool) g.Last().x)) .ToArray(); }
f2ac9cb82174526401f2e4dd8d46c6e99ac826f4
C#
ChristopherRH/Captions
/Captions/Controllers/PostController.cs
2.578125
3
using System.Linq; using System.Web.Mvc; using static Captions.Service.DataContextService; using System.Collections.Generic; using Captions.Viewmodels; using WebGrease.Css.Extensions; using System; using Captions.Service; namespace Captions.Controllers { public class PostController : BaseController { ...
3b1d05fa8fefee68b78f5f8788bf484b12003bf4
C#
AndrewLandy/CivilWarProject
/CivilWarProject/User.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace CivilWarProject { public class User { private userOracleADO userFactory = new userOracleADO(); private int userId; private String username; ...
46850839d42761a86c95ef79e892c5f24076787a
C#
kechols/interview-examples
/PhoneInterviews/HSoftware/Threading/ClazzProvidesThreadSafeMemberAccessUsingLock.cs
3.03125
3
namespace Kevins.HSoftware.Threading { public static class ClazzProvidesThreadSafeMemberAccessUsingLock { private static int numberField = 1; private static object synchronizationObject = new object(); public static int GetNumberField(bool makeThreadSafe = true) { ...
97434ceda40196cad5f86d222edb4ebffcf9b7eb
C#
763630473/SharePlatformSystem
/back/SharePlatformSystem/src/SharePlatformSystem.Core/Exceptions/EnumerableExtensions.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; namespace SharePlatformSystem.Core.Exceptions { /// <summary> /// Extension methods for <see cref="IEnumerable{T}"/>. /// </summary> public static class EnumerableExtensions { /// <summary> ///使用每个成员之间的指定分隔符连接已...
e42feffac6b0b5ef535a28e5eef1f25ca33e4ead
C#
Ucommercenet/Ucommerce.Sitecore
/src/UCommerce.SiteCore.Installer/MessageTemplateParser.cs
2.90625
3
using System.Text; namespace Ucommerce.Sitecore.Installer { internal static class MessageTemplateParser { public static bool TryParse(string messageTemplate, object[] propertyValues, out string parsedTemplate) { parsedTemplate = messageTemplate; if (string.IsNullOrWhite...
db8458fc3a77537dea15e848da41ee594c452a67
C#
brminnick/InvestmentDataSampleApp
/Src/InvestmentDataSampleApp/Database/BaseDatabase.cs
2.71875
3
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Polly; using SQLite; using Xamarin.Essentials; namespace InvestmentDataSampleApp { public abstract class BaseDatabase { public static readonly string DatabasePath = Path.Combine(FileSystem.AppDataDirectory, $"{nameof...
1a6bd400247cf8b041be07e36c0b79d57bc52294
C#
LukaszBaczewski/CookBookApp
/CookBookApp/ViewModels/FirstViewModel.cs
2.515625
3
using CookBookApp; using CookBookApp.Commands; using GalaSoft.MvvmLight.Ioc; using GalaSoft.MvvmLight.Messaging; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Windows; using System.Windows.Input; namespace CookBookApp.ViewModels { public class FirstViewMod...
366ecebda386e970503686a98bbf0cf08deec633
C#
blueskybcl/SF-Boilerplate
/SF.Web/Components/UserNameResolver.cs
2.578125
3
using SF.Core.Abstraction.Resolvers; using System; namespace SF.Web.Components { public class UserNameResolver : IUserNameResolver { private readonly ICurrentUserResolver _currentUserFactory; public UserNameResolver(ICurrentUserResolver currentUserFactory) { _currentUserFa...
8a14ff3d1a1ebb33632d3e3d70cc25bc41b122d6
C#
icefoxen/games-VRServer
/VRLib/Serializer.cs
2.609375
3
using System; using System.Collections.Generic; using MongoDB.Bson; using MongoDB.Bson.Serialization; using OpenTK; namespace VRLib { public class Serialize { public static BsonArray Vector2(Vector2d v) { var d = new BsonArray { v.X, v.Y }; return d; } public static BsonArray Vector3(Vector3d v)...
4fb9fbde1f974a8012111090b8ef2bb3f17b2d12
C#
paultaele/srl-research
/Srl/Srl/BaseMatcher.cs
2.765625
3
using Srl.Xml; using System; using System.Collections.Generic; using System.IO; using System.Windows.Ink; using System.Windows.Input; namespace Srl.Tools { public abstract class BaseMatcher : Matcher { #region Constructors protected BaseMatcher() : this(RESAMPLE_SIZE, SCALE_BOUNDS, ORIGIN, SC...
9134a2a720b91c0a937eb057f4bc59c925d3ae3d
C#
VictorNaumov/OrderService
/OrderService.Data.EF.SQL/DatabaseContext.cs
2.625
3
using Microsoft.Extensions.Configuration; using MongoDB.Driver; namespace OrderService.Data.EF.SQL { public interface IDatabaseContext { public IMongoCollection<T> GetCollection<T>(string name); } public class DatabaseContext : IDatabaseContext { private readonly IMongoDatabase _d...
36c43466327dd848749978594e5c3b08ffe47025
C#
BilyanaBorislavova/Programming-Fundamentals-2018
/List - Exercises/01. Max Sequence of Equal Elements/Program.cs
3.90625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Max_Sequence_of_Equal_Elements { class Program { static void Main(string[] args) { List<int> numbers = Console.ReadLine() .Split(new cha...
f0fce546c5d77fa2885746c460eb32134178e483
C#
mostafajf/booksy
/Services/BusinessService.cs
2.75
3
using Beauty.Data; using Beauty.Models; using Beauty.Services.Interfaces; using Microsoft.Extensions.Configuration; using MongoDB.Bson; using MongoDB.Driver; using MongoDB.Driver.GeoJsonObjectModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Beauty.Serv...
5d0d54fc2439fb4ac8f00159a2da65cbdb762369
C#
javaadpatel/crypto-check
/CryptoCheck.Core/Validators/CryptoQuoteRequestValidator.cs
2.59375
3
using CryptoCheck.Core.Models; using FluentValidation; using System; using System.Linq; namespace CryptoCheck.Core.Validators { public class CryptoQuoteRequestValidator : AbstractValidator<CryptoQuoteRequest> { public CryptoQuoteRequestValidator() { //Symbols cannot be null, and mu...
dfb7a4bfd70776cc3c3e15212a87ec62acab9732
C#
dsplaisted/NuGetPackageExplorer
/PackageViewModel/PackagePart/PathToTreeConverter.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using NuGet; namespace PackageExplorerViewModel { internal static class PathToTreeConverter { public static PackageFolder Convert(List<IPackageFile> paths, PackageViewModel viewModel) { if (paths == null)...
7f8e23f63c10ecf398a099bed0733a5fda44d756
C#
FrankXiC/ContosoUniversity
/ContosoUniversity.Api/Interface/StudentModefy.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ContosoUniversity.Models; using Microsoft.Extensions.Options; namespace ContosoUniversity.Api.Interface { public class StudentModefy : IStudentModefy { public Connection conn; public StudentM...
8b77ac8158d616b237879a69add1f9e632284750
C#
lanicon/blackcat
/Blackcat.WinForm/MessageBoxHost.cs
2.53125
3
using Blackcat.UI; using System.Windows.Forms; namespace Blackcat.WinForm { public sealed class MessageBoxHost : IMessageBoxHost { private readonly Control hostControl; private readonly IInvokerHost invokerHost; public MessageBoxHost(Control hostControl, IInvokerHost invokerHost) ...
98a0fdbccf5ef8813963facb5e8d45493aa95fd9
C#
cramonns/Rebirth
/Rebirth/1.2/01_Desenvolvimento/RebirthWindows/RebirthWindows/EditorClasses/Project.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace Rebirth.EditorClasses { [Serializable] public class Project { private string _name; private string _directory; [NonSeriali...