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
cdf15cd619ba8873cab65f5e881cd0e3eb0f9022
C#
meitalB/Advance-programing-2-maze-C-sharp-
/ex2- MVVM server and client Desktop app/ex2/src/SearchAlgorithmsLib/ISearcher.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SearchAlgorithmsLib { /// <summary> /// Interface of objects that can search information in an ISreachable objects. /// </summary> /// <typeparam name="S"> is the ty...
ef18225e5afc37d539a41046a8107beddca22690
C#
romadzh/JsonTransformator
/Consist.JsonTransformator.BL/Services/ChildService.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Consist.JsonTransformator.DAL; using Consist.JsonTransformator.DAL.DataModels; using Consist.JsonTransformator.PL.Entities; namespace Consist.JsonTransformator.BL.Services { public interface IChildService { /// <s...
f4d038c21a5a5cd4b693d734d1565b935f45ae75
C#
rosered11/twelve-factor-aspnet
/account/dataaccess/repositories/AccountRepository.cs
2.640625
3
using System; using System.Globalization; using account.dataaccess.entities; using account.dto.requests; using Rosered11.Aspnet.Utilities; namespace account.dataaccess.repositories { public interface IAccountRepository { Account FindByCustomerId(Customer customer); } public class MockAccountRe...
c14eb54f5e2a93f262bd6649dcbf8f57a7354ecb
C#
QWERTYkez/OMineWatcher
/OMineWatcher/MVVM/Converters.cs
2.6875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Markup; using System.Windows.Media; namespace OMineWatcher.MVVM { public class MultiplyConverter : IValueConverter { public ...
fd245c5f0494529b1850476c99d84d6d8e1fcc4d
C#
SynHub/syn-speech
/Syn.Speech/Results/IPath.cs
2.890625
3
//PATROLLED + REFACTORED namespace Syn.Speech.Results { /** * Represents a path of words through the recognition result lattice. * <p/> * All scores are maintained in the logMath log domain */ public interface IPath { /** * Gets the total score for this path. Scores a...
76b6415069b1549fdb786ce072d5074a25b6f487
C#
zcstkhk/RhinoInside.NX
/RhinoInside.NX.Translator/Geometry/Raw/Encoder/CurveRawEncoder.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Rhino.Geometry; using Rhino.Geometry.Collections; namespace RhinoInside.NX.Translator.Geometry.Raw { static partial class RawEncoder { public static NXOpen.Line ToHost(LineCurve va...
34d2500cb28444e17a1fb5a10f01eff17dedb005
C#
harmschnakenberg/XlLog40
/XlLog/Print.cs
2.859375
3
using System; using System.Diagnostics; using System.IO; using System.Reflection; namespace Kreutztraeger { class Print //Fehlernummern siehe Log.cs 09YYZZ { private const string lastPrintLogFileName = "LetzterAusdruckT.txt"; private const int hoursBetweenPrints = 24; private static i...
0d449b05c7c0c6e6c2c65000032b1fe4abb59c89
C#
d3vildog/Personal-Projects
/BricksBuster/Weapon.cs
3.03125
3
namespace BricksBuster { using System; public class Weapon { public int leftX { get; set; } public int rightX { get; set; } public int Y { get; set; } public ConsoleColor Color { get; set; } public string Symbol { get; set; } public ...
a25d7b83546dc0afe8204fd3097a8b922254edfb
C#
woshihuo12/Awaitable
/Assets/Scripts/AwaitableCallbackWrapper.cs
2.84375
3
using System; using System.Collections.Generic; using Simple.Threading.Tasks; namespace DefaultNamespace { public class AwaitableCallbackWrapper : BaseAwaitableTask { public Action GetWrapper() { return () => { Complete(); }; } } ...
adfef62d4129e36721652158c4c19aa90cfc736f
C#
pioniak/sulmar-mon-design-patterns
/src/DesignPatterns/AdapterPattern/IRadio.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; namespace AdapterPattern { // Adapter // wariant klasowy public class HyteraRadioAdapter2 : HyteraRadio, IRadio { public HyteraRadioAdapter2() : base() { } public void Send(string message, b...
b93d29500231fa3700d44d51a14f45f93b716c88
C#
KubaPr/Battleships
/Battleships.Console.Tests/BoardPrinterUnitTests.cs
3
3
using Battleships.Core; using FakeItEasy; using FluentAssertions; using NUnit.Framework; using System; using System.Collections.Generic; namespace Battleships.Console.Tests { internal class BoardPrinterUnitTests { private BoardPrinter _subject; private PositionStateMapper _positionStateMapperD...
ded812c51d0a2db192169ca028a795df9cdf05fe
C#
harrybit/BossWell
/src/BossWell/BossWell.Cache/RedisConnection.cs
2.828125
3
using BossWell.ApiHelp; using BossWell.Configuration; using StackExchange.Redis; using System; namespace BossWell.Cache { public class RedisConnection { private static string Constring = RedisConfiger.WriteServerList;//Redis连接对象 private static readonly object locker = new object();//线程锁 ...
7b390b5f0698bdceef813101991d8d4e297ff220
C#
svetlai/TelerikAcademy
/Programming-with-C#/High-Quality-Code/03-Code-Documentation/01-StringExtensions/Example.cs
2.875
3
// <copyright file="Example.cs" company="Telerik Academy"> // Generated by Telerik Academy // </copyright> namespace CodeDocumentation { using System; using Telerik.ILS.Common; /// <summary> /// Examples of StringExtensions class /// </summary> public class Example { /// <summary>...
9a37e22a2922d3f043bd43a5ed5c9e626f7f7742
C#
AlexDeusdete/Portfolio
/Models/Education.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace PrjPortfolio.Models { public class Education { public int ID { get; set; } public int PersonID { get; set; } [StringLength(50)] ...
e8d6228eea1b4457aa9ebc3ffa6ee4f66047d275
C#
pedroferronato/ProtoMine
/Controle/UtilidadesTelas.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ProtoMine.Controle { class UtilidadesTelas { public void MensagemDeTeste(string message, string caption) { MessageBoxButtons but...
097e1e6ce8ca1db9d2daa9728dadda6be6d351e6
C#
KobirFiroz/Result_Ref_Vehicle
/VechicleAppPractice2/VechicleAppPractice2/VehicleUi.cs
2.859375
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 VechicleAppPractice2 { public partial class VehicleUi : Form { public VehicleU...
b5ee54c8e057c16da3c859a23c23855d37977e53
C#
ppedvAG/2017_06_23_CSharp_Duesseldorf
/Strukturen/Program.cs
2.75
3
namespace Strukturen { class Program { // Objekte von Strukturen sind immer Werttypen // Keine Vererbung static void Main(string[] args) { var f = new Fahrzeug(); f.Farbe = "Rot"; f.Geschwindigkeit = 40; f.Beschleunigen(10); ...
ceb00f17fb6faf6d2cae8b4e5c04879eeb2ee3a5
C#
PoLaKoSz/SMF-Scraper
/src/SMF-Scraper/Workers/Webpage.cs
2.859375
3
using HtmlAgilityPack; using PoLaKoSz.SMF.Scraper.Models; using System; using System.Collections.Generic; using System.Net; using System.Text; namespace PoLaKoSz.SMF.Scraper.Workers { public abstract class Webpage : IWebpage { public Uri URL { get; protected set; } protected string SourceCode { get; set; ...
8fcebd540d6704fead3fea865c27387304f03b36
C#
starvational/BizCollege
/BizCollege/BizCollege.DataAccessLayer/Repository/BizCollegeRepository.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NHibernate; namespace BizCollege.DataAccessLayer.Repository { public sealed class BizCollegeRepository<T,K> : IRepository<T, K> where T : class { public T Get(K itemId) { using (...
3d1153a00600f20ae7caab5e2dbed2f7f38814de
C#
kvervo/HorizontalLoopingSelector
/Silverlight4/Infrastructure/TestFramework/WorkItem.cs
2.96875
3
// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. using System; namespace Microsoft.Silverlight.Testing { /// <summary> /// A test work ite...
7215b9664b5ce84734a67e761eec507a065a477d
C#
CarlaCostea/Learning-OOP
/ValidateJSON.tests/ChoiceTests.cs
3
3
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace ValidateJSON.tests { public class ChoiceTests { [Fact] public void MatchReturnsTrueForTextMatchingTheFirstChoicePattern() { var digit = new Choice( new Character('0'), ...
650afbbacc407b383235e682a810aec97c680184
C#
SRCummings1/Capstone_Task_List
/Capstone_Task_List/Program.cs
3.4375
3
using System; using System.Collections; using System.Collections.Generic; namespace Capstone_Task_List { class Program { static void Main(string[] args) { List<string> menu = new List<string> { "List tasks", "Add task", "Delete task", "Mark task complete", "Quit" }; Li...
9a24253601573aa92ed9bcec308813423eabe9ea
C#
SnpM/LockstepFramework
/Core/Utility/FastCollections-master/Shortcuts.cs
3.65625
4
using System; namespace FastCollections { public static class Shortcuts { #region ArrayManipulation /// <summary> /// Shifts all items in array from index min to max by shiftamount. I.e. the item on index min will be shifted onto index min + shiftamount. /// </summary> /// <param name="array"></param> /...
3b2c2f8b00103e35e62ddd039c7ab3673da33085
C#
CaigerDeng/LeetCodeNote
/LeetCodeNote/LeetCodeNote/Array/001_TwoSum.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCodeNote.Array { /// <summary> /// 1. 两数之和 /// https://leetcode-cn.com/problems/two-sum/ /// </summary> public class Solution_1 { // method 0 pu...
23fb9158bb798dad22dad79356e49d2400cb56cb
C#
mcacciola/MunchKlone
/Munchkin/Munchkin/View/Menu.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Munchkin.Model; namespace Munchkin { /// <summary> /// Model class for a menu object. /// </summary> class Menu { private List<Asset> _assets; ...
6fd62523ad90cae0baf7fe6e6dd2b0b8aeecd9dd
C#
diegomtzb/AppBazurtoMusic
/AppBazurtoMusic/AppBazurtoMusic/Clases/Usuario.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace AppBazurtoMusic.Clases { public class Usuario { private string UsernId; private string UserNombre; private string UserApellido; private string UserEmail; // Constructor that takes...
c34edc651966cb0015185d8261364e14fc6e28bf
C#
serializable/Pomodoro
/Pomodoro/Timer/CountdownTimer.cs
2.625
3
using System; using System.Diagnostics; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Win...
775c375d93707b0688ad50bf0cd0e4e72e4b11c9
C#
sinairv/YAXLib
/YAXLib/Exceptions/YAXCannotAddObjectToCollection.cs
2.859375
3
// Copyright (C) Sina Iravanian, Julian Verdurmen, axuno gGmbH and other contributors. // Licensed under the MIT license. using System.Globalization; using System.Xml; namespace YAXLib { /// <summary> /// Raised when some member of the collection in the input XML, cannot be added to the collection object...
656b23f0dff28f2c7b3fffb2e01c007082f10b04
C#
kborisov760/Telerik-Academy
/03. C#OOP/03.ExtensionMethods-Homework/01.StringBuilder.Substring/Classes/Student.cs
3.359375
3
namespace ExtensionMethods.Classes { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Student { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public ush...
1efbb40c963a2fefa6b4351cda3999f307f9cc1d
C#
DiZLike/MedLiken
/MedLiken/Mednafen/TCfg.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Globalization; namespace MedLiken.Mednafen { public static class TCfg { public static string[] values; public static void Load(string cfg) { values = File.Re...
c6b194cfe336c11dc892fb224fbfed4766c9e0aa
C#
chojecik/NetPC-rekrutacja
/ContactsApp/Controllers/HomeController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ContactsApp.Models; namespace ContactsApp.Controllers { public class HomeController : Controller { private DatabaseEntities db = new DatabaseEntities(); public static string LoggedE...
224fbeed1d7018706914caed07b44887583df168
C#
VVoev/Telerik-Academy
/15.Data-Structures-and-Algorithms/18. Geometry/live-demo-03.08.2017/ClosestPairOfPoints/ConsistentRandom.cs
3.296875
3
namespace ClosestPairOfPoints { class ConsistentRandom { private const int Multiplier = 359; private const int Adder = 10037; private const int Modulo = 1000000007; private long current; public ConsistentRandom() { this.current = 42; } ...
6bca0dc7dba5cf516e084519083163167767edd7
C#
tommy-van-tran/CIS-200
/Programs/Program 2/Prog2/MainForm.cs
3.09375
3
// Grading ID: D5965 // Program 2 // Due: 3/10/2017 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 LibraryItems { publi...
5b522a8311ef3776b4b18718f71c4ade749f5f59
C#
ichimasa2020/WPFSamples
/ValidationSamples/Example2_1_ErrorTemplate/MainWindow.xaml.cs
2.796875
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;...
d1e193707623be07805036fe984a1ac5941e41a2
C#
heejaechang/OperationUnitTestGenerator
/SplitOperation/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.FindSymbols; using Microsoft.CodeAnalysis.MSBuild; namespace SplitOperation { class Program { static void Main(string[] args) ...
841cb6e588dad61115d25e73ea7a18895ce38ab5
C#
yindajies/FactoryPattern
/FacadePattern/FacadePattern/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FacadePattern { /// <summary> /// 外观(门面)模式:为子系统的一组接口提供一个一致的界面,此模式定义了一个高层接口,这个接口似的使得这一子系统更加容易使用。 /// 优点:完美地体现了依赖倒转原则和迪米特原则的思想,所以是非常常用的模式之一 /// </summary> class Program {...
fee8bb184bb77d5e315d4cfc45d36652a9c66b89
C#
lewismoten/vindinium-bots-and-local-arena
/Vindinium.Server.Logic/IBoardHelper.cs
2.65625
3
using System; using Vindinium.Common.DataStructures; namespace Vindinium.Game.Logic { public interface IBoardHelper { string MapText { get; set; } int Size { get; } string this[Pos position] { get; set; } string this[int x, int y] { get; } Board GetBoard(); void ...
033b0fd90164dda3a9a2c0f5bbfa4d282066682b
C#
SamiraMansouri/Airline-Company-Operation-System
/Airline Registration/Airline Registration/Classes/Carrier.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Airline_Registration.Casses { public class Carrier { public int ID { get; private set; } public String Name { get; private set; } public String Orig...
06d95d88b2cdf8d9d90d53522473be3e02255fce
C#
SamGomes/interaction-mechanics-cross-ant
/Assets/Scripts/LetterTrack/LetterSpawner.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class LetterSpawner : MonoBehaviour { public GameObject letterPrefab; public GameManager gameManager; public float minIntervalRange; public float maxIntervalRange; private int score = 0; ...
39ab4e5bb6e6df4675b071f2d5a51cf591879fad
C#
shendongnian/download4
/code10/1735559-50340506-173419374-4.cs
3.515625
4
// Create a StringWriter to hold the data, and write each line. var sWriter = new StringWriter(); foreach (Stud student in StudentList) { sWriter.WriteLine("Name: " + student.Name); sWriter.WriteLine("Subject: " + student.Subject); sWriter.WriteLine("A...
7bcc83f8c054c9a947cd7069e643768ca3c315c1
C#
SingletonSean/endpointer
/Core/Endpointer.Core.Client/Http/AccessTokenHttpMessageHandler.cs
2.65625
3
using Endpointer.Core.Client.Stores; using Microsoft.Extensions.Logging; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; namespace Endpointer.Core.Client.Http { /// <summary> /// Add an access token header to the request. /// </summary> publi...
9be8f1016edc54be77c3e3762502b500eeded468
C#
ceNobiteElf/icolib
/Icolib/Source/ExportTemplate.cs
2.796875
3
using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using System.Xml; using System.Xml.Serialization; namespace Icolib { [XmlRoot("template")] public class ExportTemplate { #region Internal Types [XmlType("item")] public class Item ...
18275dd0e989b3b7873dfd2352a2e51a9a4d4360
C#
ivaylokenov/TelerikHackaton.Ruler
/Ruler/TelerikHackaton.Ruler.Data/RulerData.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TelerikHackaton.Ruler.Model; namespace TelerikHackaton.Ruler.Data { public class RulerData : IRulerData { private readonly RulerDbContext context; private readonly Dictiona...
8213962a1f02a3a85c0f6b326e82331edfaac63c
C#
NatalliaAkaronka/Lab17_Okoronko
/Lab17_Okoronko/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab17_Okoronko { delegate void Trains(); class MyEvent { // Объявляем событие public event Trains UserEvent; // Используем метод для запуска события ...
413bbe2d04df98f23ec0f2463d2d1ff6ad308ae6
C#
Meetem/UnityEmu
/UnityEmuCore/Object.cs
2.6875
3
namespace UnityEngine { public abstract class Object { // ReSharper disable once InconsistentNaming public string name { get; set; } internal abstract void DestroyObject(); public static void Destroy(Object obj) { if (obj == null) retu...
3ad7aba9025135ce056e32998a2ee4ffffdaa6fe
C#
nuclearMonkeys/Combot-Evolved-Remixed
/Combat-Evolved/Assets/_Scripts/PlayerScripts/PlayerStamina.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerStamina : MonoBehaviour { public delegate void StaminaRegen(int stamina); public static StaminaRegen OnStaminaRegen; // Start is called before the first frame update publ...
0f177a0f888f1f520f0b10db579e18f39521aa77
C#
jeetshah1110/Calculator-Wpf
/Calculator new/MainWindow.xaml.cs
2.890625
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;...
c057530f9bafda3adf9dd9622537b237409171ea
C#
Dradonhunter11/DradonBotSharp
/DradonBotSharp/Services/JsonService.cs
2.546875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.WebSocket; using DradonBotSharp.Core; using DradonBotSharp.Market; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.J...
130e9acdd76fd40a4bf86237cb4e431153953945
C#
silverspace/samsara-sdks
/openapi-generator/csharp-nancyfx/src/Org.OpenAPITools/Models/HosLogsResponse.cs
2.765625
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using Sharpility.Extensions; using NodaTime; namespace Org.OpenAPITools.v1.Models { /// <summary> /// HosLogsResponse /// </summary> public sealed class HosLogsResponse: IEquatable<HosLogsResponse> { /// <...
de3171e723dd7a97f5e4df4e3e5be7a83254509d
C#
codehutch/coding-challenges
/AndyHutchinson/RobotWarsTests/DirectionTests.cs
2.875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using RobotWars; namespace RobotWarsTests { [TestClass] public class DirectionTests { [TestMethod] public void TestNeighbours() { // North's neighbours. Assert.AreSame(Direction.FindDirection(...
794ad37bd3365b797392e67e69fbd8b064abf90a
C#
thdankert/Daggerfall.NET
/Daggerfall/Extensions/Microsoft.Xna.Framework/ViewerComponent.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Xna.Framework { public class ViewerComponent : GameComponent { public ViewerComponent(Game game) : base(game) { FieldOfView = Angle.De...
7a2edb6fc263499910bd64baca9cad9327b1d9bc
C#
1804-Apr-USFdotnet/kimberly-waddle-project1
/RestaurantReviewConsole/RestaurantReviewWeb/Controllers/RestaurantsController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using RestaurantReviewLibrary.Models; using RestaurantReviewLibrary; using RestaurantReviewData; namespace RestaurantReviewWeb.Controllers { public class RestaurantsController : Controller { stat...
b1a9e828f0fec0584f7cfb4a24a84785f20159db
C#
FrancoFonzo/TP2-Academia
/Business.Logic/UsuarioLogic.cs
2.71875
3
using System.Collections.Generic; using Data.Database; namespace Business.Logic { public class UsuarioLogic : BusinessLogic { public UsuarioAdapter UsuarioData { get; set; } public UsuarioLogic() { UsuarioData = new UsuarioAdapter(); } public List<Entities...
5c04d2074e0cbaaae8a81590cf1f2281456f9625
C#
pmcgrath/presentations
/corkaltnet_docker_20141118/monoappdemo/app.cs
3.296875
3
using System; using System.Threading; class App { private static readonly string Version = "1.0"; public static void Main(string[] args) { var _sequence = 1; while(true) { Console.WriteLine("{0}: v{1} OS={2} User={3} Sequence is {4}", DateTime.Now, App....
5f9d2b8401a4c903f154cb0cf2da831e913222b5
C#
AngelMinTic/HospiEnCasa1
/HospiEnCasa.App.Persistencia/AppRepositorios/RepositorioEnfermera.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using HospiEnCasa.App.Dominio; namespace HospiEnCasa.App.Persistencia.AppRepositorios { public class RepositorioEnfermera : IRepositorioEnfermera { private readonly AppContext _appContext; //Recomendable por seguridad public Re...
9fae7f3a54316f3ccaa296f709fac9138ddd8880
C#
danielagondim/Tcc
/TCC.CursosOnline.Dominio/Repositorio/QuestoesRepositorio.cs
2.65625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Configuration; using TCC.CursosOnline.Dominio.Entidades; namespace TCC.CursosOnline.Dominio.Repositorio { public class QuestoesReposi...
c6590f6102eb7a6a06f91857cd458032b582525f
C#
TSiu88/text-adventure
/Models/RoomThree.cs
3.15625
3
using System; namespace Adventure.Models { public class RoomThree { public bool Door3Locked { get; set; } public RoomThree() { Door3Locked = true; } public void RoomThreeCommands(string[] commands) { Console.WriteLine("****************************"); if (commands.Length <...
9f51758c115117b65a64fc9d7aaa657c6a9acca5
C#
hse-programming-CSharp2020-2021/207RoschupkinaMarina
/module2/YC5/TaskE/Triangle.cs
3.75
4
using System; public class Triangle { private readonly Point a; private readonly Point b; private readonly Point c; private double AB => GetLengthOfSide(a, b); private double AC => GetLengthOfSide(a, c); private double BC => GetLengthOfSide(b, c); public Triangle(Point a, Point b, Point ...
3194463f7c853bf74f3156b97a39d0a23907ec38
C#
joe20123/Actio
/src/Actio.Common/Events/ActivityCreated.cs
2.609375
3
using System; namespace Actio.Common.Events { public class ActivityCreated : IAuthenticatedEvent { public Guid UserId { get; } public Guid Id { get; } public string Category { get; } public string Name { get; } public string Description { get; } public DateT...
f3ae3343009e312e8ce0010a801c074cd5c7a882
C#
GeoffCox/Photiso
/previous-versions/v1/Photiso/PhotoErrorEventArgs.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Photiso { public class PhotoErrorEventArgs : EventArgs { private readonly string _fileName; private readonly string _errorMessage; public PhotoErrorEventArgs(string fileName, string errorMe...
57b2be50fc4b37722fd8fa8f691048b2e9306e7f
C#
BrandonDrake/JSAM-Project
/JSAM/Repositories/EmployeeRepository.cs
3.078125
3
using System; using System.Collections.ObjectModel; using JSAM.Classes; using JSAM.DataContext; namespace JSAM.Repositories { public class EmployeeRepository { /// <summary> /// Simulates importing employee data from a database and creates the employee objects /// </summary> pu...
77d0fb3c253eb38f786c7ab8efa8d22fe68bd802
C#
IvanParvanov/TelerikAcademy2016
/HQC-P2/Homeworks/02-Code-Tuning-and-Optimization/OperationPerformanceTester/Core/TestSuites/AdvancedArithmeticOperationsTestSuite.cs
3.234375
3
namespace OperationPerformanceTester.Core.TestSuites { using System; using System.Text; /// <summary> /// Provides methods to benchmark the performance of Math.Sin, Math.Sqrt and Math.Log over different data types. /// </summary> public class AdvancedArithmeticOperationsTestSuite : Nai...
3a51f92f6ad29a773f6c42b6f37c538f14b6f3c9
C#
Schulprojekt/Hello.WCF-Asp.Net
/Hello.WCF-Asp.Net/Hello.WCF.DataAccess/MessageDal.cs
3.046875
3
using System; using System.Collections.Generic; using Hello.WCF.Dataobjects; using System.Data.SqlClient; using System.Data; namespace Hello.WCF.DataAccess { public class MessageDal { //Datenbank Gespeicherte Prozedur private const string createMessageMethod = "usp_Message_Create"; pri...
1ba667171b8bdf79707899e5750a83e8df8a4ff7
C#
zerratar/RavenBot
/src/RavenBot.Core/Net/WebSocket/ConnectionProvider.cs
2.78125
3
using System.Collections.Generic; using System.Linq; namespace RavenBot.Core.Net.WebSocket { public class ConnectionProvider : IConnectionProvider { private readonly ILogger logger; private readonly IPacketDataSerializer packetDataSerializer; private readonly List<IConnection> connecti...
1fbe8a8d43f4a536dc686b5d1edb32094750d5f0
C#
AndresRedondo87/VererbungUndMehrZuOOPzweiteHerausf
/Employee.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VererbungUndMehrZuOOPzweiteHerausf { class Employee { // Mitarbeiterklasse Namens "Employee" // als Basisklasse (Superklasse) mit den Eigenschaften Name, // Fi...
757b32be79020fc25f8747b1b5a76a5dc9437237
C#
msd5374/dotnetprog
/Day5/day5/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace thread1 { class Program { public delegate int mydel(int i); static void Main11(string[] args) { Thread t = new Thread(new Th...
0f8ea4143915e6da4ec8421a5f518c4902ae9cbe
C#
Blagovest-Todorov/InheritanceOOP
/Person.cs
3.421875
3
using System; namespace Inheritance { class Person { public string Name { get; set; } public int Age { get; set; } public Person(string name) { Name = name; } public void Sleep() { Console.WriteLine($"I am an {this} slee...
7d5148e98b39133a65dda2a0a41d531e92613413
C#
wIksS/TelerikAcademy
/CSharpPartOne/2.PromitiveDataTypesAndVariables/05-CharUnicode/05-CharUnicode.cs
2.953125
3
// 5. Declare a character variable and assign it with the symbol that has Unicode code 72. Hint: first use the Windows Calculator to find the hexadecimal representation of 72. using System; class CharUnicode { static void Main() { Console.WriteLine((char)0x48); } }
68a674e9d29824c2fc539de3757f2a540f5e806e
C#
martinhelfrich/automatatutor-backend
/PumpingLemmaTest/ProverTest.cs
2.65625
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using PumpingLemma; namespace PumpingLemmaTest { [TestClass] public class ProverTest { static List<String> alphabet = new string[]{ "a", "b" }.ToLis...
ecfbbfcd224bf5c11092866acb15ac21a5cfe78b
C#
dqchess/VACATe
/Cosmic Quest - Order and Chaos/Assets/Scripts/World/Lever.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; // Class for player-lever interaction public class Lever : Interactable { protected Animator Anim; protected Room Room; public bool IsPulled; private AudioSource _audioClip; private void Start() ...
66c3311e0c28d7f42c4d316463805978b0cbe700
C#
DannyVanderZee/MissileCommand
/Assets/scripts/LvlManager.cs
2.5625
3
using UnityEngine; using System.Collections; public class LvlManager : MonoBehaviour { private int score; // Use this for initialization void Start () { score = 0; } // Update is called once per frame void Update () { Debug.Log(score); } public void AddPoints(int Points) { ...
334f212e0a2a57b6429813a3b0efd19d70050c02
C#
tobymac208/EZStatements_CS
/EZStatements/POCO/Statements/StatementTracker.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace EZStatements.POCO.Statements { [Serializable()] public class StatementTracker : ISerializable ...
49b524ed034c8cb1eefabf728931f74fe562a4f2
C#
lipemiranda159/studies
/VoteCerto/Transparencia.Brasil.SDK/InfraStructure/APIClient.cs
2.515625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace Transparencia.Brasil.SDK.InfraStructure { public class APIClient<T> : InfoAPI { private HttpCl...
fed0ee57baf8a89bfe028a2103699bc769709c7a
C#
lukaszzalewskiqq/VeganRPG
/source/Items/Weapon.cs
3.234375
3
using System; using System.Collections.Generic; using System.Text; namespace VeganRPG { class Weapon : Item { public Weapon() : base() { } public Weapon(int level, string name, Tuple<int, int> damage, bool isBase = false) { this.Level = level; t...
48d39820ad816cb3351eaee427249444d0d1a1aa
C#
PCMS2016/PhotoCentre
/PCMS/DAL/DBAccess_Size.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace DAL { public class DBAccess_Size : IDBAccess_Size { public bool AddSize(Size size) { SqlParameter[] paramete...
fd0bab59ecb0636fa220c9ab876480c2ff6d2080
C#
goncalo-oliveira/rest-schema-aspnet
/src/Mvc/HttpRequestSchemaExtensions.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; using RestSchema; using RestSchema.Decoders; namespace RestSchema.Mvc { /// <summary> /// Schema extensions for HttpRequest /// </summary> public static class HttpRequestSchemaExtensions { //...
7ef1a23f45965053ec0efc81735ce268de57ceb3
C#
alexfosters2014/IngresosPlatform
/Negocio/Repositorios/FuncionarioRepositorio.cs
2.609375
3
using AccesoDatos.Data; using AutoMapper; using Microsoft.EntityFrameworkCore; using Modelo; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Negocio.Repositorios { public class FuncionarioRepositorio : IFuncionarioRepositorio { ...
21f274fd20c4158dcf6a342779537573a22fd8b3
C#
mishagupta08/DiscountTadkaShoppingNew
/DTShopping/General.cs
2.734375
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.IO.Compression; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Security; using System.Net.Sockets; using System.Reflection; using System.Security.Cryptography; using Sy...
b5e9d8d9700d41be7cfa58a8314e01f1151aa262
C#
ShoumenDas/Crud_Test
/Backend/Backend/Repositories/CrudRepository.cs
2.953125
3
using Backend.DBContext; using Backend.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Backend.Repositories { public class CrudRepository : ICrudRepository<CrudModels> { readonly Crud_Context _context; public CrudRepository(Cr...
3c11e700c9275b7f08ec79fbc2fc06bb42015ce4
C#
alice-cash/tortoise-mog-code
/Server/Text/RandomString.cs
2.65625
3
/* * Created by SharpDevelop. * User: Matthew * Date: 7/29/2010 * Time: 11:03 PM * * Copyright 2012 Matthew Cash. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. ...
a50281367a99a26739219aa3bc584194db7cc1d4
C#
tolik-punkoff/csharp-examples
/exit-code-example/src/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; namespace ExitCodeExample { class Program { //console application return custom exit code //use ExitCodeExample.exe <exit_code_number> static void print_help() { Console.WriteLine("console applicatio...
c18030871b90a7aa440f438e0a6ced6feaed0a99
C#
jimu/jamcraft
/Assets/Scripts/UI/LaneIndicator.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /** * Repeatedly moves game object along first leg of a lane to indicate selected lane * * This object should not be activated unless or until a lane has been selected */ public class LaneIndicator : MonoBehaviour { [SerializeFiel...
b72a2bdd2bf0842174606b85bc9b130445052d56
C#
Mfantasy/SmeshlinkProject
/SmeshlinkProject/Utils/MathHelper.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SmeshlinkProject.Utils { public static class MathHelper { #region Byte /// <summary> /// Returns a hex string representation of the given bytes array. ...
b1dc1890c791c1d73e485433b2002b8aa4066ff9
C#
MarkAPhillips/ninject.interceptors.cache
/src/demo/InMemoryCacheProvider.cs
3.15625
3
using System; using System.Collections.Generic; using Ninject.Interceptors.Cache.Cache.Provider; namespace Ninject.Interceptors.Cache.Demo { internal class InMemoryCacheProvider : ICacheProvider { private Dictionary<string, object> _map = new Dictionary<string, object>(); /// <summary> /// Save value to cache...
71fc2ecfea5106ec30c926b074d7c4b71bf3e6fd
C#
jarDotNet/BlazorConnectFour
/BlazorConnectFour/Data/GameBoard.cs
3.1875
3
using System.Linq; namespace BlazorConnectFour.Data { public class GameBoard { public ColoredDisc[,] Board { get; } public TurnManager TurnManager { get; } public WinnerManager WinnerManager { get; } public int LengthX => Board.GetLength(0); public int LengthY => Board.GetLength(1); ...
edab21d480c5aa060d53b74ee87d21d492e37b7b
C#
Cerium/Labyrith1
/Labyrinth1/Labyrinth1/Scoreboard.cs
3.5
4
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Linq; namespace Labyrinth { public class Scoreboard { public string Show(string fileName) { var players = new List<Player>(); ReadScores(fileName, players); ...
5ab207b47a33ebefa105c5d20fd81a240e7e2aad
C#
jonfast565/loan-compliance
/LoanCompliance.BusinessLogic.Impl/AprTest.cs
2.546875
3
using System.Linq; using LoanCompliance.Data; using LoanCompliance.Models.Api; namespace LoanCompliance.BusinessLogic.Impl { public class AprTest : IComplianceProcessor { private readonly IDataAccess _dataAccess; public AprTest(IDataAccess dataAccess) { _dataAccess = dataA...
cbbda47f375e3d6bc69325b265c06452a65e3460
C#
McKrackn/SWA-Samples
/AddressBook.InClass/AddressBook.InClass/MainViewModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Net.Mime; using System.Text; using System.Windows.Threading; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; namespace AddressBook.InClass { public class MainViewModel : ViewModelBase { public ContactStore ContactStore { get; } ...
0b41f0e8db3332eb431505fdbf14bd5a89125f57
C#
soluling/I18N
/Samples/ASP.NET/Core/MVC/Driving/Controllers/DefaultController.cs
2.671875
3
using System; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using Driving.Models; using Soluling; namespace Driving.Controllers { public class DefaultController : Controller { private IStringLocalizer localizer; public DefaultController(IStringLocalizer<DefaultController> local...
10b17b505ccdf9294f766ef71459e35d1a9a4360
C#
ben-foster-cko/checkout-webapi-validation
/src/APIValidationDemo/Validation/InputValidationFilter.cs
2.578125
3
using FluentValidation; using FluentValidation.Results; using FluentValidation.WebApi; using System.Web.Http.Controllers; using System.Web.Http.Filters; using System.Web.Http.ModelBinding; namespace APIValidationDemo.Validation { public class InputValidationFilter : ActionFilterAttribute { private IVa...
fb772de9c46517752a2215125035b66d0a37d17a
C#
avendatagmbh/Viewbox_old_2021-
/Libraries/AvdCommon/Rules/SortRules/RuleSortString.cs
2.640625
3
using DbAccess; namespace AvdCommon.Rules.SortRules { public class RuleSortString : SortRule { public RuleSortString() { Name = "Sortiere als String"; UniqueName = "SortString"; } public override bool HasParameter { get { return false...
af60ee81a1af6b6dfef604d96aed206265ae6a56
C#
expectomas/EventSparkz
/2103Project/Entities/Advertisement.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _2103Project.Entities { public class Advertisement : IEquatable<Advertisement> { public int advertisementID; public string imageDirectory = string.Empty; public string description = string.E...
eecaa46bce8f57ef730f9527b2d26979c5f0d4ea
C#
kepisty89/fuzzyRules
/FuzzyUtils/FileManagement.cs
2.859375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FuzzyUtils { public class FileManagement { public static void WriteToFile(string filename, string data) { string fileDirectory = Pa...
7c35b0ac22a2f8c8888d33b61614461055e9c114
C#
hexxerrino/Training
/REGEXTraining/MatchPhoneNumber/Program.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace MatchPhoneNumber { class Program { static void Main(string[] args) { string numbers = Console.ReadLine(); ...
6cc3d3042a79b98b4b16977dfc6f5f63746fb33a
C#
vlganev/SoftUni_ProgrammingFundamentals-CSharp
/ConditionalStatementsAndLoops/CaloriesCounter/Program.cs
3.75
4
using System; namespace CaloriesCounter { class Program { public static void Main() { int lines = int.Parse(Console.ReadLine()); int calories = 0; for (int i = 0; i < lines; i++) { var ingredient = Console.ReadLine(); ...
250f08975d13613697cb7ca17513a9c57f8e4295
C#
cmwolf19/Move38-Pong
/Move38 Pong/Assets/Scripts/GameManager.cs
2.984375
3
/****************************************** * File Name: GameManager.cs * Author: Connor Wolf * Date: 5/23/2020 * Desc: * Controls the functionality of the game including scoring and resetting. * Singleton that is always assigned at beginning of the game. ******************************************/ u...
52fa959284182604310ac9296a6b624dce7ce9b3
C#
CodeHawkCloud/DistributedComputing
/C#_Projects/ThreeTierWebService/DataTier/Controllers/UserController.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using DataTier.Models; using BankDB; using System.Web.Http; using APIClasses; using System.Diagnostics; namespace DataTier.Controllers { //create user function public class UserController : ApiController { private UserAccessInterf...
c8b072d132e3d3c9e1b46f0f9d0e43750bd7720b
C#
C9Glax/DotMaps
/DotMaps/Datastructures/2DNode.cs
3.015625
3
namespace DotMaps.Datastructures { public struct _2DNode { public float X { get; } public float Y { get; } public _2DNode(float coordinateX, float coordinateY) { this.X = coordinateX; this.Y = coordinateY; } public override string ToStri...
b4c919b60b66a7b94a23131b66d66f720b0c9dc1
C#
nhmt120/CoffeeShop
/LoginForm.cs
2.890625
3
using System; using System.Data.SqlClient; using System.Windows.Forms; namespace CoffeeShop { public partial class LoginForm : Form { private SqlConnection connection; SqlDataReader reader; SqlCommand cmd; String username; String password; String role = null; ...
fa5ca21fb32dd01a0a59889f21f1c8886c28bd2b
C#
AngryPowman/Xamarin-Forms-Labs
/src/Forms/XLabs.Forms/Controls/SensorBar/SensorBarView.cs
2.859375
3
using System; using Xamarin.Forms; namespace XLabs.Forms.Controls.SensorBar { /// <summary> /// Class SensorBarView. /// </summary> public class SensorBarView : View { /// <summary> /// Initializes a new instance of the <see cref="SensorBarView"/> class. /// </summary> public SensorBarView() { } /...