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
a17b206437ca40eb7e787e4c4bbbdd7ca0dfecc4
C#
EderCard/Comp100-002
/Week02/Q1_Candies/Program.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* * A confectionary store wants a program that will prompt * the user for the price of the candy and the amount of * money she would like to spend and then calculates and * display the amount of c...
b40377b615b7913be8a5fdd063e8f763738daf60
C#
nassimbendaou/FileManager
/filemanager/DAO/mydb.cs
2.6875
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using Oracle.ManagedDataAccess.Client ; using filemanager.Métier; namespace filemanager.DAO { class mydb { private SqlConnection conn; SqlC...
49e61353d3fc57dcb9a16fd4efc9d8a8bdd01b6e
C#
InfoLight/ITTerminal
/CardReader.cs
2.84375
3
using System; using System.Configuration; using System.IO.Ports; namespace ITTerminal { class CardReader { string COM_PORT = ConfigurationManager.ConnectionStrings["CardReaderCOMPort"].ConnectionString; private string nfc_code; public delegate void NfcReadCallback(string code); ...
e086ac69a5be7ff08d80b8d4f39d5038164deb9e
C#
nikolaygekht/WebTestTools
/gehtsoft.webtest.spellchecker/SpellCheckerFactory.cs
3
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; namespace Gehtsoft.Webtest.Spellchecker { /// <summary> /// The factory for spellchecker /// </summary> public sealed class SpellCheckerFactory { private readonly object mMutex = new object(); ...
d8bd0792fbafb1b21b175b17bb9f7b53845af60d
C#
Hitakashi/hitaBot-Refit
/Model/SubBadge.cs
2.65625
3
using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; namespace hitaBot.Refit.Model { /// <summary> /// </summary> [DataContract] public class SubBadge { /// <summary> /// Gets or Sets Request /// </summary> ...
4bdfb25d62162e83a1c9a5b99d7d27a80b92ee47
C#
ICC3101-201810/big-sister-erriveros
/EventosConsola/Counter.cs
3.484375
3
using System; namespace EventosConsola { public class Counter { //Este es el delegate del evento, ver //https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler?view=netframework-4.7.2 public event EventHandler ThresholdReached; private int threshold; private in...
7f71bafb142731f477310e40e39db1563cac7e23
C#
splucena/CIT365-F2020-FarWest
/SacramentPlanner/Data/DbInitializer.cs
2.703125
3
using SacramentPlanner.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SacramentPlanner.Data { public class DbInitializer { public static void Initialize(MeetingContext context) { if (context.Planner.Any()) { return; } var bisho...
8930e4025f64e6cc4efd8f123b0491f199979a09
C#
Gesh4o/MineSoftUniAdventure
/SoftUni 2.0/Basic level/04.ConsoleInputAndOutput/02.PrintCompanyInformation/PrintCompanyInformation.cs
3.203125
3
using System; class PrintCompanyInformation { static void Main() { string companyName = "BulgTech"; string companyAddress = "gr.Sofia, ulitca Gornonanadolnishte 6A"; string companyPhone = "+359 00 000 0000"; string companyFax = "No fax"; string companyWebsite = "http:\\...
6d9ba5533fca776f5f03fe83561f31124c0f0e73
C#
aquilahkj/Light.Oaks
/src/Light.Oaks/Exception/ParameterException.cs
2.734375
3
using System; namespace Light.Oaks { /// <summary> /// Parameter exception. /// </summary> public class ParameterException : Exception, IMultiError { /// <summary> /// Initializes a new instance of the <see cref="T:Light.Oaks.ParameterException"/> class. /// </summary> ...
5d90a1faf725c83958e4b42732ab1b8e2b7d3a1f
C#
jphacks/NG_1804
/JPHACKS2018/Assets/Script/StampFunction.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Kakera { //スタンプとコメントと写真を表示するためのもの public class StampFunction : MonoBehaviour { [SerializeField] private GameObject Scroll; //写真 [SerializeField] private U...
a25539cc2bde937c41a2bbfbcbc4adbae6b9fe93
C#
manardiaa/GraduationProject-Back
/BL/Repositories/WatchedRepository.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BL.Bases; using BL.Dtos; using DAL.Models; using Microsoft.EntityFrameworkCore; namespace BL.Repositories { public class WatchedRepository : BaseRepository<Watched> { private DbCo...
27822776368ec854de69bdef5dd3632fff9739b0
C#
FelipeMarini/OOP_Project_Console_Fight
/Character.cs
3.46875
3
namespace First_OOP_Project { public class Character { public string name; public int age; public string armor; public string AI = "Jarvis"; public int HP = 100; // System.Console.WriteLine("Hello World!"); // aqui podemos "puxar" o comando WriteLine que é originári...
51a0019cf58a3a940f3a81f8ac4ec49be739de79
C#
EmmelyIntriagoMolina/Ejercicios-logica
/cuadrado.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cuadrado { class Program { static void Main(string[] args) { Console.WriteLine("Ingrese el número de asteriscos por lado: "); ...
13c65195c5732acde0763cc6930ce33a75dc05b3
C#
andre197/SimpleExercises
/TeststingInfoFromDotNetLearningMaterials/Tree/Tree.cs
3.671875
4
namespace TreeProject { using System; using System.Collections.Generic; public class Tree<T> { private Node<T> root; public Tree(T value) { this.root = new Node<T>(value); } public Tree(T value, params Tree<T>[] children) : this(value)...
ef2274a274c2aab9b637a8baa2270f5543d07180
C#
umairn/TaskList
/TaskList.DataAccess.Tests/TaskRepository_Test.cs
2.640625
3
using Microsoft.EntityFrameworkCore; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace TaskList.DataAccess.Tests { [TestClass] public class TaskRepository_Test ...
aa97a8ad20781f9f9c3738566da7af911d18f52d
C#
TalentSoft/ConcurrencyPitfalls
/ConcurrencyPitfalls/02-ConcurrencyWithConcurrentDictionary.cs
3.390625
3
namespace ConcurrencyPitfalls { using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; [TestFixture] public class ConcurrencyWithConcurrentDictionary { ...
1e0a2dd19d2f9f85911d3de701e7d2b09133accd
C#
Bunk/trellow
/trellow.api/Data/Services/RestClientExtensions.cs
2.625
3
using System.Collections.Generic; using System.Linq; namespace trellow.api.Data.Services { public static class RestClientExtensions { public static Dictionary<string, string> ParseQueryString(this string queryString) { if (queryString.Length > 0 && queryString[0] == '?') ...
5ebc2e5ac35a4cd05e0e11c2231bc0ebfe2a4b63
C#
Sukanda237/Beginners
/List/Program.cs
3.796875
4
using System; using System.Collections.Generic; namespace List { class Program { static void Main(string[] args) { var number = new List<int> { 1, 2, 3, 4, }; number.Add(1); number.AddRange(new int[] { 5, 7 }); foreach (var n in number) ...
192aef19d0caa94cce432da5cae377edc7673959
C#
jarschroe/Procreate
/Procreate/Procreate/CellularAutomata.cs
2.65625
3
// The MIT License (MIT) // Copyright (c) 2014 Jared Schroeder (jarschroe) // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights /...
bbd9787820f76e509a2d7f364ca8e2e512cda205
C#
antosubhakar/Matrix
/DataService/DataManager/StudentsManager.cs
3.171875
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using DataService.Context; using DataService.Entities; namespace DataService.DataManager { /// <summary> /// Gestion d'Etudiants /// </summary> public class StudentsManager { /// <summary> //...
9dd708803851708edb7e716cf0aa87a111700c89
C#
melentyev/spbu-homework
/2016/DOTNET/NetTask4/NetTask4/NamesHelper.cs
3.53125
4
using System; namespace NetTask4 { internal class NamesHelper { private const string malePatronymicSuffix = "ович"; private const string femalePatronymicSuffix = "овна"; private static string[] maleNames = { "Иван", "Петр", "Макар", "Захар" }; private static string[] femaleNam...
04e8ffb180be9e7826d9a2ea8ebfe3c22d1fab5a
C#
Ruoli-Jesion/BeatSaberModInstaller
/BeatSaberModManager/Dependencies/CommonMark/Syntax/Block.cs
2.859375
3
using System; using System.Collections.Generic; namespace CommonMark.Syntax { /// <summary> /// Represents a block-level element of the parsed document. /// </summary> public sealed class Block { /// <summary> /// Initializes a new instance of the <see cref="Block"/> class. ...
7fc10b8e5fe416de4ffdf80bef278960d4d58b4a
C#
Qmando/Dawkins
/Assets/scoregui.cs
2.546875
3
using UnityEngine; using System.Collections; public class scoregui : MonoBehaviour { public int score = 0; public GameObject cell; string genTopText(int score){ string text = "Kills: "; string score_str = score.ToString (); text += score_str; return text; } void OnGUI() { // Black background Color ...
6cd14a53291dbaa799934898dfb714d386c2e688
C#
Thyago-Martins-EM/CRUD-Aluno
/EM.Repository/RepositorioAluno.cs
2.84375
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Linq.Expressions; using EM.Domain; using FirebirdSql.Data.FirebirdClient; namespace EM.Repository { public class RepositorioAluno : RepositorioAbstrato<Aluno> { private Conexao conexao = new Conexao(); ...
53f1eceb9395a45df6afb23d2448bfaaee2f6360
C#
zadrot1995/Tasks-for-Trainee-Software-Developer
/Task2/Models/Square.cs
3.28125
3
using System; using System.Collections.Generic; using System.Text; namespace Task2.Models { class Square : Shape { double side; public Square(double side) { this.Side = side; } public double Side { get => side; set => side = value; } public overri...
0e81a7120177b50432f00ad7c3e77d437aa1cc6e
C#
jeliozver/SoftUni-Work
/Programming-Fundamentals-September-2017/10-Files-and-Exceptions-Lab/P05-Folder-Size/StartUp.cs
3.328125
3
namespace P05_Folder_Size { using System.IO; public class StartUp { public static void Main() { Directory.CreateDirectory("TestFolder"); string[] files = Directory.GetFiles("TestFolder"); long totalSize = 0; foreach (var file in files) ...
df8edb31b8a981bba7d472fbfb99a5ea05f00efe
C#
MariaDesMeeres/TIC6441
/OpenWeatherMapApiClient/OpenWeatherMapApi.Domain/ForeCast3H_Domain.cs
2.5625
3
using log4net; using OpenWeatherMap.Model; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization.Json; using System.Text; using System.Threading.Tasks; namespace OpenWeatherMapApi.Domain { public class ForeCast3H_Domain:OWM_...
31aa2818891a8b1695aacfb8ce008eda56924f16
C#
unknownv2/basm
/src/MemorySharp/Modules/ModuleFactory.cs
2.609375
3
/* * MemorySharp Library * http://www.binarysharp.com/ * * Copyright (C) 2012-2016 Jämes Ménétrey (a.k.a. ZenLulz). * This library is released under the MIT License. * See the file LICENSE for more information. */ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using Sy...
e57d6641594d0dc24208986800a5a7afae357e7b
C#
grigdevelop/Veeam.Gzipper
/src/Veeam.Gzipper.Core/Streams/StreamChunkReader.cs
2.546875
3
using System; using System.IO; using System.IO.MemoryMappedFiles; using Veeam.Gzipper.Core.Streams.Types; using Veeam.Gzipper.Core.Threads; namespace Veeam.Gzipper.Core.Streams { public class StreamChunkReader : IDisposable { private readonly string _path; private readonly int _bufferSize; ...
c5346cd953769e9780169329a2a3d9fc77389fdb
C#
jvlyn21/bomberman
/Bomberman/Assets/Scripts/BombSpawner.cs
2.546875
3
using UnityEngine; using UnityEngine.Tilemaps; public class BombSpawner : MonoBehaviour { public Tilemap tilemap; public GameObject bombPrefab; public GameObject player; Vector3Int lastBombCell; bool bombCollision = true; public bool bombSpawned = false; void Update() { ///...
fb657f003e6514fe7f02ee6e069ffe76dcd6b6cb
C#
qwerty0157/ImpliedVolatility
/BlackSholes/Program.cs
3.125
3
using System; namespace BlackSholes { class MainClass { public static void Main(string[] args) { double stock = 20790; double strike = 20500; double maturity = 0.08767; double start = 0.0; double sigma = 0.1655; double rat...
55def6e2f3c0ae4f4a6bf4e5bfa134196acce6e0
C#
mcomtzg/PurpleSharp
/PurpleSharp/Simulations/ExecutionHelper.cs
2.625
3
using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; namespace PurpleSharp.Simulations { public class ExecutionHelper { public static void StartProcess_old(string binary, string cmdline, Lib.Logger logger, bool cleanup = false) { if (!clean...
577347802173b82ce5383650e37f9f2e0e91417b
C#
mmurshed/DataStructureAlgorithm
/DataStructure/Graph/GraphMatrix.cs
3.203125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace DataStructure.Graph { public class GraphMatrix<V, E> : IGraph<V, E> { private Dictionary<V, IVertex<V>> vertexCollection; public IEnumerable<IVertex<V>> Vertices => vertexCollection.Values; ...
8dff131154c24572cb9e5871fcdc038a7ce11aec
C#
mellobacon/MadLad
/MadLad/Program.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MadLad.Compiler.CodeAnalysis.ErrorReporting; using MadLad.Compiler.CodeAnalysis.Evaluator; using MadLad.Compiler.CodeAnalysis.Syntax; using MadLad.Compiler.CodeAnalysis.Syntax.Lexer; using MadLad.Compiler.CodeAnalysis.Syntax.Te...
d7ea6a163ff399c777f28e6902fdabc268b45c57
C#
satyampushkar/MedicineTracking
/server/MedicineAPI/Persistence.SQLiteDB/SQLiteDB.cs
3.328125
3
using MedicineAPI.Persistence; using MedicineModel; using Microsoft.Data.Sqlite; using System; using System.Collections.Generic; using System.Linq; namespace Persistence.SQLiteDB { public class SQLiteDB : IPersistence { private readonly SqliteConnectionStringBuilder _sqliteConnectionStringBuilder; ...
ec6817726cd93bdede6e989cd74184fee1e2cd18
C#
escapedinabookchest/Calculemus
/Calculemus/Model/Parser.cs
3.359375
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace Calculemus.Model { /** * The class Parser parses the textfile and puts its vertices and edges in the appointed dictionaries. */ public class Parser : IParser { ...
e67eaa1b086c60409a1071489225caf013a71f5c
C#
OkilyDokily/UniversityRegistrar.Solution
/UniversityRegistrar/Controllers/DepartmentsController.cs
2.5625
3
using Microsoft.EntityFrameworkCore; using UniversityRegistrar.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using System.Collections.Generic; using System.Linq; using System; namespace UniversityRegistrar.Controllers { public class DepartmentsController : Controller { Unive...
c37412a8ae9e42a26c1e790626f8058c14b60f8b
C#
dtbinh/TAFF
/tinyafricans3ff/Assets/Scripts/Characters/HeroManager.cs
2.6875
3
using UnityEngine; using System.Collections; using PlayFab; using PlayFab.ClientModels; using System.Collections.Generic; using PlayFab.Json; using System.Collections.ObjectModel; using System; public class HeroManager { private HeroManager() { GameManager.Instance.LoadingHeroData = true; } //make default constr...
e272f30ac9d180c83a7207d373adc1433a3874b2
C#
Sergius432/Projekt
/CompClub/CompClub/Aftorization.cs
2.5625
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.Data.SqlClient; namespace CompClub { public partial class Aftorization : Form { ...
abbd1e383b262ba8b72f607d22481626685503b2
C#
MilStancheva/Telerik-Academy-Homework-Assignments
/Design Patterns/Creational Patterns Homework/Creational Patterns Homework/FactoryMethodExampleTomatoes/PolishTomato.cs
2.984375
3
using System; using System.Linq; namespace FactoryMethodExampleTomatoes { public class PolishTomato : ITomato { private string sort; public PolishTomato() { this.Sort = sort; } public string Sort { get { retu...
d9cf745e6da8835191b97c588f5a18c19e879263
C#
ajarms/SPACE_INVADERS
/SpaceInvaders/Base Systems/MLink.cs
2.609375
3
using System; namespace SpaceInvaders { abstract class MLink { public MLink() { this.next = null; this.prev = null; } ~MLink() { } public MLink(MLink p, MLink n) { this.next = n; this.prev = p; ...
f00e3827718ff75cefacc7195bf309f8055d001c
C#
spartha1995/Tutorial
/Advanced/Thread_Demo/Thread_Demo/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Thread_Demo { class Program { static void Main(string[] args) { //Function Inialize #region //Function1(); ...
69d360875ebac3774aeaaf6ab9232e0e226994f0
C#
lmCamila/CSharpTreinamento
/Planner/View/PlanView.cs
2.828125
3
using Planner.Business; using Planner.Entity; using Planner.Utils; using System; using System.Collections.Generic; using System.Linq; namespace Planner.View { class PlanView { PlanBusiness planBusiness = new PlanBusiness(); public static List<Plan> PlanList { get; set; } public static ...
e4675c761161903c88d77ef36e06e49dc6853afa
C#
j-burrows/repository
/Repository/Presentation/PresentationRepository.cs
2.703125
3
/*-- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- | File: PresentationRepository.cs | Purpose: Defines the behaviour for a collection of renderable objects. | Updated: October 5th 2013 */// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ...
04c7e802b48711c7df88c6f4edf01541b5efef55
C#
timik44452/Neural-network-constructor
/Assets/Examples/Logical function approximation/LogicalExample.cs
2.53125
3
using Core.Neurons; using System.Collections; using UnityEngine; using UnityEngine.UI; public class LogicalExample : MonoBehaviour { private struct LernData { public float input0; public float input1; public float result; public LernData(float input0, float input1, float res...
257323dff0d93dc960fc2358be9f9d2e6546f07d
C#
soukoku/PerfAgent
/PerfAgent/Counters/NetworkInterface.cs
2.75
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Text; namespace PerfAgent.Counters { /// <summary> /// Contains common performance counters from the NetworkInterface category. /// </summary> public class Ne...
1ac0569ed5364211d822db4b2de73c4da614076b
C#
JoeTHallicks/junior-csharp-test
/unit-tests/ExampleTest.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using Dapper; using ui; using Xunit; namespace unit_tests { public class ExampleTest { [Fact] public void ShouldPass() { var dbConnection = new Database().GetConnection; dbConnection.Open(); var s...
2b59a842bdc37ff2019acc5081be73600d25145b
C#
aaaronz/Ghost-of-Captain-Wumpus
/WumpusXNA/WumpusXNA/Sound.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Media; using System.IO; namespace WumpusXNA { class Sound { public Sound() { } public void playEffect(String name) { WMPLib.WindowsMediaPlayer player = new WM...
91f352e282413ec12c73eacdc1bd50ec08966d20
C#
Pandinosaurus/C2_Collaboration_V1
/Assets/Misc/whiteboardTool.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class whiteboardTool : MonoBehaviour { private int textureSize = 2048; private int drawSize = 10; private Texture2D texture; private Color[] color; public bool isDrawing; private bool touc...
131f45b721916151e8107a3d760b4bc5edb92ff4
C#
FlavioFerreira/ControleDesempenhoAnalistas
/DesempenhoAnalistas/DAL/Conexao.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesempenhoAnalistas.DAL { public class Conexao { #region Variáveis SqlConnection conexao; SqlTransaction Trans; ...
a5297bfde8166b7a2b4472d52cc749dcfb4cdfc7
C#
wslyvh/MS-Enterprise-patterns-practices
/wslyvh.Core/Diagnostics/LoggerFactory.cs
2.8125
3
using System; using System.Diagnostics; using wslyvh.Core.Interfaces.Diagnostics; namespace wslyvh.Core.Diagnostics { public class LoggerFactory : ILoggerFactory { /// <summary> /// Creates a logger of the specified type. /// </summary> /// <param name="type">The type.</param> ...
163953764476382fb268cf29085e809e8de5525b
C#
MalachiMackie/BreakOut
/Assets/Scripts/Shared/Singleton.cs
2.59375
3
using System; using UnityEngine; using Object = UnityEngine.Object; namespace Shared { public abstract class Singleton<T> : MonoBehaviour where T : Object { private static T _instance; public static T Instance => _instance ??= FindObjectOfType<T>() ...
5fa2695b42e7027e77907566100eea82f614958f
C#
elumixor/Spaceships
/Assets/ML/ParameterFunctions/FitnessFunction.cs
2.625
3
using System; using UnityEngine; namespace ML.ParameterFunctions { public enum FitnessFunction { Linear, Gate, VerticalWithGates, } public static class FitnessExtensions { public static float EvaluateFitness(this FitnessFunction fitnessFunction, GenerationInstance instance...
5f73e03d317940d50f3708d14a731774c407047d
C#
georgipyaramov/CSharpPartTwo
/Arrays/11. BinarySearch/BinarySearch.cs
4.1875
4
/*Write a program that finds the index of given element in a sorted array of integers by using the binary search algorithm.*/ using System; class BinarySearch { static void Main() { Console.Write("Enter the length of the array: "); int arrLength = int.Parse(Console.ReadLine()); int[] a...
4730c7ec4de562368981836dd2fe0cd295e514f2
C#
radareorg/radare2-r2pipe
/dotnet/r2pipe/QueuedR2Pipe.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace r2pipe { public class QueuedR2Pipe : Queue<R2Command>, IDisposable { private IR2Pipe pipe; private bool iOpenedPipe = false; #if !PORTABLE /// <summary> ...
f72bbb7d5cced43b980e5bc3d0994e0ddf5a9fcb
C#
maamjadi/Face-Recognition-Front-End
/Face-Recognition-Front-End/Pages/SignUpPage.xaml.cs
2.515625
3
using System; using System.Collections.Generic; using System.Net; using Xamarin.Forms; using Newtonsoft.Json.Linq; namespace FaceRecognitionFrontEnd { public partial class SignUpPage : ContentPage { public const string path = "/teachers"; public string email { get; set; } public string...
83b2e94f4ca1a31a11b69904a4258fc19ed8a2fd
C#
IlyaSubochev/C_sharp_tasks
/SimpleTree2.cs
3.453125
3
using System; using System.Collections.Generic; namespace AlgorithmsDataStructures2 { public class SimpleTreeNode<T> { public T NodeValue; public SimpleTreeNode<T> Parent; public List<SimpleTreeNode<T>> Children; public int level; public SimpleTreeNode(T val, SimpleTree...
3efbc8482fe14f7c579d34b58157606ec5435388
C#
MustafaBKLZ/FileSystemWatcher_App
/FileSystemWatcher_App/Form1.cs
2.828125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace FileSystemWatcher_App { public partial class Form1 : Form { public Form1() { ...
026ef52b47425f7f34d11d3e4c5e27f24f2cb2fb
C#
josebaltodano/sdsds
/Domain/Entities/Empleados/Administrativo.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; namespace pratica.Entities.Empleados { public class Administrativo : Empleado { public float HorasExtras { get; set; } public Administrativo(int codigo, string cedula, string nombres, string apellidos, decimal sal...
7c6b21fe95470ab441c07fea829d30010e256c30
C#
nikitrifonovprojects/Data-Structures-and-Algorithms
/DataStructuresAndAlgorithms/NT.DataStructures.Tests/HashTableTests.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace NT.DataStructures.Tests { [TestClass] public class HashTableTests { [TestMethod] public void HashTableAddsKeyAndValueCorrectly() { //Arrange ...
bd64e9dc30c495a90d6d07fca41db6011e20d14d
C#
ytong3/DCOClearinghouse
/DCOClearinghouse/Models/ContactInfo.cs
2.59375
3
using System; using System.ComponentModel.DataAnnotations; namespace DCOClearinghouse.Models { public class ContactInfo { public bool IsContactInfoPublic { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Organization { get; s...
9994e51ec4eac8bf61469d6bf1f8cc68d7ac04d6
C#
LenivecGames/SynthwaveProject
/Assets/Scripts/Common/GameStateCallback.cs
2.546875
3
using UnityEngine; using UnityEngine.Events; using System.Collections; using System; namespace NeonSpace { [Serializable] public class UnityBoolEvent : UnityEvent<bool> { } public class GameStateCallback : MonoBehaviour { public GameState GameState; public UnityBoolEvent OnStateEvent ...
0a6414cf082a28c8a7347bd4e84ac0143194b76b
C#
PaperRonin/UniversityStuff
/Pong/Pong/Animated.cs
3.03125
3
using System.Drawing; using System.Windows.Forms; namespace Pong { abstract class Animated { abstract public void Move(); protected static void Move(PictureBox pb, Point direction) { pb.Location = new Point(pb.Location.X + direction.X, pb.Location.Y + direction.Y); ...
788c83740db687a355013a6ef8442d18ac644740
C#
talkattan/projects
/C# projects/Garage/Ex03.ConsoleUI/TruckUI.cs
3.0625
3
using Ex03.GarageLogic; namespace Ex03.ConsoleUI { internal class TruckUI { internal static void askForDangerousMaterials(Truck io_Truck) { bool check = false; System.Console.WriteLine("Are there dangerous materials on the truck? If so, write 'Yes', else write 'No'."); ...
7df259ab347e04609d9d1f3a9f170353b6575fe0
C#
AndMu/SmartDoc
/src/Wikiled.SmartDoc.Logic/Pdf/Readers/DevExpress/DevExpressPdfParser.cs
2.734375
3
using System.IO; using System.Text; using DevExpress.Pdf; using Wikiled.Core.Utility.Arguments; namespace Wikiled.SmartDoc.Logic.Pdf.Readers.DevExpress { public class DevExpressPdfParser : ITextParser { private readonly int maxPages; private readonly FileInfo file; public DevExpressP...
a3183f0c20a6f0f65a54bedd0a7d8296b9767e86
C#
EldHasp/StudentDormitories
/StudentDormitories/StDorModelLibrary/Interfaces/IRooms.cs
2.9375
3
using StDorModelLibrary.DTOClasses; using System.Collections.Immutable; using System.Threading.Tasks; namespace StDorModelLibrary.Interfaces { /// <summary>Интерфейс Модели для работы с комнатами</summary> public interface IRooms { /// <summary>Возвращает все комнаты всех общежитий</summary> ...
2026ca80b71e8c90d6036f467e24c18b0514d446
C#
kongres/libraries
/Kongrevsky.Libraries/Infrastructure/HtmlRenderer/HtmlRenderer.Core/Adapters/RGraphics.cs
2.953125
3
// "Therefore those skilled at the unorthodox // are infinite as heaven and earth, // inexhaustible as the great rivers. // When they come to an end, // they begin again, // like the days and months; // they die and are reborn, // like the four seasons." // // - Sun Tsu, // "The Art of War" namespace HtmlRenderer.Cor...
1cfc6ec7d80c9bfcbc2e1f3646494c05a0126ba7
C#
Aaronontheweb/SSA_Help
/CommonBusinessLogic/State/UserPermissionState.cs
2.640625
3
using System; using System.Collections.Generic; using Newtonsoft.Json.Linq; using EY.SSA.CommonBusinessLogic.General; using Newtonsoft.Json; namespace EY.SSA.CommonBusinessLogic.State { public class UserPermission { [JsonProperty] MicroServices.Area Area = MicroServices.Area.Client; ...
decfee3fc7f628e47a3f3fa72076684896b5ee51
C#
christianctavares/AT_AZURE
/Repository/EstadoRepository.cs
2.953125
3
using Domain; using Microsoft.EntityFrameworkCore; using Repository.Context; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Repository { public class EstadoRepository { private readonly AtContext _context; public E...
5b77849eb83cdee3a3c31a86afc818aef381a339
C#
dab2013/Project1_SSE554
/Project1_SSE554/GameType.cs
3.203125
3
using System; namespace Project1_SSE554 { public class GameType { public GameType() { } public int setGameType(string type) { int num = 10; if (type == "Endless-RPS") num = 0; else if (type == "FirstToTwo-RPS") ...
e95758dac8f41fd89e876e1285247b751d4f5bff
C#
kstAtBitLC/MehrfachvererbungMitInterfaces2
/MehrfachvererbungMitInterfaces2/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MehrfachvererbungMitInterfaces2 { class Program { static void Main (string [] args) { // geht nicht wegen abstract //Person p = new Person () { Name = "Kurt...
1e141e128803acf87f78046a2b1391cd983a0a72
C#
tianfengs/AbpPractice
/EFCodeFirstFor8Days/FirstCodeFirstApp/FirstCodeFirstApp/NewSample/StudentMap.cs
2.546875
3
using System; using System.Collections.Generic; using System.Data.Entity.ModelConfiguration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FirstCodeFirstApp.NewSample { public class StudentMap:EntityTypeConfiguration<Student> { public StudentMap() { ...
a7f537f087d9179fc1e2cf4bbf4b42e7001f749e
C#
BuguiBuguistica/OdonitSystem
/Backend/Odonit.Business/PersonService.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Odonit.DAL.Models; using Odonit.DAL; using log4net; namespace Odonit.Business { public class PersonService : IService<Person> { private readonly ILog _logger; private reado...
a88417509625d295e469401c90c2d20a043e4d1d
C#
horiah26/Junior-Mind-Mermaid-Flowcharts
/Flowcharts/Flowcharts/FileRead/SpecsToFlowchart.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Flowcharts { public class SpecsToFlowchart { readonly IEnumerable<ElementSpecs> elementSpecs; readonly Flowchart flowchart; public SpecsToFlowchart(Flowchart flowchart, IEnumerable<ElementS...
0f2ca8437f9c9688caa102de05cdd3c02020e387
C#
jagchat/freq-asked-samples
/web-api/mvc-and-web-api-and-cors-in-one/MvcAndApiSol/WebApiTests/UnitTest1.cs
2.640625
3
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace WebApiTests { [TestClass] public class UnitTest1 { [TestMethod] publ...
ece7bccf6e35d01c832aedb93b38de51c9b5f9d9
C#
DinhVietHoang07/C--
/Lab 05/Session 06/Ex18/Program.cs
3.640625
4
using System; namespace Ex18 { class Multiplication { static int _valueOne = 10; static int _product; static Multiplication() { Console.WriteLine("Static Construvtor initialized"); _product = _valueOne * _valueOne; } public static void Me...
48a8be1def03acbdee396c2042ace872b1610f51
C#
antoine3990/BDFI
/WebContacts/Models/Movies.cs
2.90625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace WebContacts.Models { public enum SexType { féminin, masculin } public class Movie { #region...
393ce614ece70a6c4fe08c2c25e7c171766bd054
C#
parvinder1982/FCT
/Fct.Infrastructure.Persistence/UnitOfWork.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; namespace Fct.Infrastructure.Persistence { using Fct.Infrastructure.Contracts; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using System.Linq; using System.Threading.Tasks; using Fct.Infrastruc...
e768cc67776a4a2a048c56483413e825c0717f8a
C#
zomi0/MoyuTool
/MyTool/FormSql/SqlConfigForm.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; namespace MyTool { public partial class SqlConfigForm : Form { IniFiles ini = new IniFiles(Directory.GetCurrentDirectory() + @"\ini\mysqlconfig.ini"); string Section = ""; List<string> Keys = ...
c115a57528f220c92cd368e4053e833979a702cf
C#
llliang273494627/FrameWork
/GACNew_VCU_Writer/SW_Section.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GACNew_VCU_Writer { public class SW_Section { public int Index { set; get; } public int Start_Address { set; get; } public int Length { set; get; } public int End_Address { set; get;...
6c04be339c296ea24b3679aa06d66b297d2acaf6
C#
PavelP4/SISPOSProxy
/Working/SISPOSProxy/Source/SISPOSProxy.Core/Caches/DbCache.cs
2.578125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using SISPOSProxy.Core.Enums; using SISPOSProxy.Core.Extentions; using SISPOSProxy.Core.Helpers; using SISPOSProxy.Core.Models; namespace SISPOSProxy.Cor...
f08563467cba3084d1e7d980c029ddfad44cb866
C#
WillCallTickets/SacredSound_Store
/Wcss/Generated/WillCall/Venue.cs
2.53125
3
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSoni...
51ddc660402247502233f168ccb96a83ac271a9b
C#
CrazyThink/Project
/mazeProject/mazeProject/Memory.cs
3.171875
3
using System.Windows; namespace mazeProject { class Memory { private int[,] mazeMemory; //쥐가 기억하는 미로 private int sight; //시야 private int step; //이동횟수 public Memory(int sight) { mazeMemory = new int[Constants.MAX_ARR_LEN, Constants.MAX_AR...
99b9d78c26f434a5e4895915e4a1f5c5c62b5fce
C#
changyook21/Designing-AddressBook-using-CSharp
/AddressBook/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { AddressBook book = new AddressBook(); while (true) { ...
1cac609aa7d61af57adf01f6feb77bd3f9a8af81
C#
netintellect/EF7App
/EF7ConsoleApp/ServiceCruiser.Model.Validations.Core/Validators/PropertyComparisonValidatorAttribute.Desktop.cs
2.640625
3
using System; using System.Globalization; using ServiceCruiser.Model.Validations.Core.Resources; namespace ServiceCruiser.Model.Validations.Core.Validators { partial class PropertyComparisonValidatorAttribute { /// <summary> /// Determines whether the specified value of the object is valid. ...
af34107cced925ad38d1805dea335764114a86e5
C#
diontools/DynamicWebApi
/src/DynamicWebApi/Server/TypeGenerator.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Reflection.Emit; using System.Text; using System.Threading.Tasks; namespace DynamicWebApi.Server { public static class TypeGenerator { public static MethodGenerator[]...
b57a577486d3c618e36d50fc15e31b3aa069754d
C#
RudolfHenning/QuickMon
/QuickMon3/QuickMonCore/Utils/SerializationUtils.cs
3.265625
3
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Xml.Serialization; namespace HenIT.Serialization { public static class SerializationUtils { #region Serialize /// <summary> /// Serialize class into an XML string /// <...
72f4e252d32d8741a601e41352b575182a8e26e2
C#
Joelyn056/RegistroDetalle-Tarea-6
/RegistroDetalleTarea6/DAL/Repositorio.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Linq.Expressions; using System.Data.Entity; namespace RegistroDetalleTarea6.DAL { public class Repositorio<T> : IDisposable, JRepository<T> where T :class { internal Contexto Pcontexto; public R...
a0409b0f00f2020b0868ad8e749570d74f724a95
C#
camilogaraventa/PrimeFactorsKata
/PrimeFactorsKata/PrimeFactorsKata/PrimeFactors.cs
3.453125
3
using System; using System.Collections.Generic; namespace PrimeFactorsKata { public class PrimeFactors { #region Methods public static List<Int32> Generate(Int32 number) { List<Int32> primes = new List<Int32>(); Int32 candidate = 2; while (number > ...
b16f992bbec666d2a6ba470d1a1f1d1caa312117
C#
jpsgamboa/here-api-net
/HereAPI/Routing/TypesResponse/GetRouteResponse.cs
2.859375
3
using HereAPI.Routing.TypesResponse; using HereAPI.Shared.TypeEnums; namespace HereAPI.Routing.Services.TypeResponse { /// <summary> /// CalculateRouteResponseType contains response data, structured to match a particular request /// for the CalculateRoute operation. The Route element may appear more than ...
439d36c910e772f1e8686789dff4bf7fd41e0fd3
C#
michaellperry/MyImproving
/MyImproving.Model/Services/ModeratorService.cs
3.15625
3
using System.Collections.Generic; using System.Linq; using System; namespace MyImproving.Model.Services { public class ModeratorService { private readonly Game _game; private CandidateDeck _candidateDeck = new CandidateDeck(); private Random _dice = new Random(); private Roun...
372914e5b5cb694722b54616dfc8727a0fdf1f05
C#
NikolayKostadinov/TelerikAcademy
/10.XAML/09.XAML-Concepts/XAML-Concepts-demos/AttachedBehavior/ViewModels/MainViewmodel.cs
2.890625
3
using AttachedBehavior.Behavior; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace AttachedBehavior.ViewModels { public class MainViewModel : ViewModelBase { private string message; public ...
a0f076ea4bca107c679d7cd511be56c492b6ab30
C#
MRadianLogs/The-Santasaurus
/Assets/Scripts/PlayerScripts/PlayerInteractionDetectionController.cs
3.046875
3
using System.Collections.Generic; using UnityEngine; /// <summary> /// This script is responsible for detecting whether or not there is an interactable object near the player. This is done using colliders. /// </summary> public class PlayerInteractionDetectionController : MonoBehaviour { private List<GameObject> ...
f700b03f8f5543e4a5bb4be541de5e18ac754a67
C#
mattiasw2/big5sync
/ big5sync/Syncless/SynclessSeamlessTester/TestWorkerClass.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading; using System.Timers; using Timer = System.Timers.Timer; using System.Security.Cryptography; namespace SynclessSeamlessTester { public class...
67ed103be8810c5159cca211100b9d99852f749c
C#
CGlesmann/ShapeShifter
/ShapeShifter/Assets/GameAssets/GameScripts/Game Scripts/LevelParser.cs
2.546875
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public static class LevelParser { public static Vector2 GetLevelPackLevelIndexes(string levelName) { Vector2 indexes = new Vector2(GetLevelPackIndex(levelName), GetLevelIndex(levelName)); return indexe...
888b825b8d0f1aea66ab6fd103f1819f8e35c1f6
C#
XavierRichardson/ThatGame
/ThatGame/TextAlignments.cs
3.328125
3
using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace ThatGame { class TextAlignments { public void newLine() { Console.WriteLine("\n"); } //prints and centers whatever you pass in. Only for line by line. Does not take x/y ...
fa34447ec6adde815db8bbca296efdeda3e3f844
C#
coodjokergl/ScriptRunner
/HashNormalHelper.cs
3.25
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace ScriptRunner { public class HashNormalHelper { /// <summary> /// 图片取HASH /// </summar...
2ef842c82f3bd5862f643a376873d9860ff322a7
C#
sbxn14/ResumeStripper
/Models/CV.cs
2.84375
3
using ResumeStripper.Models.AccountModels; using ResumeStripper.Models.Enums; using ResumeStripper.Models.Experiences; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ResumeStripper....
796dccc6a583378d78125d814aa6edd9ed632f7a
C#
PulsarBlow/Usain
/src/Usain.Slack/Models/Blocks/Composition/OptionGroup.cs
2.65625
3
namespace Usain.Slack.Models.Blocks.Composition { using System.Text.Json.Serialization; using Elements; /// <summary> /// Provides a way to group options in a select menu or multi-select menu. /// </summary> public class OptionGroup { internal const string LabelJsonName = "label"; ...
b1494c88eb50810bb4e5862e127013a7fbdb4561
C#
docascode/RestProcessor
/Microsoft.RestApi.RestSplitter/Model/Organazation/SwaggerToc.cs
2.5625
3
namespace Microsoft.RestApi.RestSplitter.Model { using System.Collections.Generic; public class SwaggerToc { public string Title { get; } public string FilePath { get; } public List<SwaggerToc> ChildrenToc { get; set; } public SwaggerToc(string title, string filePath, Li...