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
9b17eb0a96b4404a61a5cbdc3ef99f4f0a152e51
C#
waverill/get_mah_versions
/get_mah_versions/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.Threading.Tasks; using System.Windows.Forms; using System.Net; using HtmlAgilityPack; using System.Text.RegularExpressions; namespace get_mah_version...
21855d6c8918b33f544e20c0e5577ee451e24d69
C#
anitha-john/shrike-survey-tool
/server/SurveyAPI/RepositoryFactory/CreationRepository.cs
2.734375
3
 using Dapper; using Models; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Linq; namespace RepositoryFactory { public class CreationRepository : ICreationRepository { //Add questions public async Task<int> AddQuestions(Questions...
4a93745c56874c9c32e41dc3649d808da21ce7ac
C#
leoskiline/ECommerce-LP4
/Trabalho/Models/Cliente.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Trabalho.Models { public class Cliente { int _id; string _nome; string _cpf; string _email; string _senha; Cidade _cidade; List<ClienteContato> _co...
3b4a373c6b6fbf38ae4c49c8b8ce5508386a4fa8
C#
christianmadhan/EventMaker
/App1/App1/Model/Event.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Controls; using App1.Common; namespace App1.Model { class Event : NotifyChanged { private DateTimeOffset _datePicker; private TimeSpan _timePicker; ...
5ce93765d87ad531fb24b3adc960f2d987a93184
C#
alberot11/1-DAM
/PR/Tema 1 y 2/DiasMes.cs
3.640625
4
//Alberto Girón Serna using System; class DiasMes { static void Main() { Console.Write("Dime el mes (1-12): "); int mes= Convert.ToInt32(Console.ReadLine()); if (mes==2) Console.WriteLine(28); else if (mes==4 || mes==6 || mes==9 || mes==11) Cons...
04b02d88fd0039d7e091548e82b23cda480fe006
C#
liuxx532/TspPsoDemo
/TspPsoDemo/RouteManager.cs
2.953125
3
using System; namespace TspPsoDemo { using Utilities; public class RouteManager { private readonly IRandomFactory randomFactory; private readonly IRouteUpdater routeUpdater; public RouteManager(IRandomFactory randomFactory, IRouteUpdater routeUpdater) { ...
69ec81c4c822f69c073d3410fa67634dff688c18
C#
djvidov/Piler
/Piler/Controls/Crane.cs
3.3125
3
using System; using System.Threading; using System.Windows.Forms; namespace Piler.Controls { public class Crane : Button { public Crane() { this.Size = new System.Drawing.Size(10, 100); } public bool IsReady { get { r...
d80896e997a42544ad08c038f5504d84271c2a35
C#
sinerger/HR_Application
/HR_Application_BLL/Models/Base/CommentModel.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace HR_Application_BLL.Models.Base { public class CommentModel { public int ID { get; set; } public int EmployeeID { get; set; } public string Information { get; set; } public string Date { get; set; } ...
d0793678d81ca7586b5fb93bd35b231fdddf8c70
C#
krishnamurthysvg/test
/TDD/Day03/Mock_Day3/GuessingGame/Utilities..cs
3.25
3
using System; using System.Text; using System.IO; using System.Security.Cryptography; using System.Linq; using System.Collections.Generic; namespace GuessingGameLib { class Utilities { public static string FILE_PATH = "./Redirect.txt"; public static string ENCRYPTION_KEY = "MAKV2SPBNI99212"; ...
c5c3213d7445eae5d363a4af3d5c60a3d4f33786
C#
BrianKilmer/TrainingC-
/Small Examples/Arrays/Arrays/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Arrays { class Program { static void Main(string[] args) { int[] numbers = { 4, 3, 8, 0, 5 }; Array.Sort(numbers); foreach (int i ...
6c0e415f58ebdafb737e88ec08ab435b12bfa9a3
C#
Mossharbor/ActivityStreams
/Mossharbor.ActivityStreams/ActorTypes/PersonActor.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; #pragma warning disable CS1658 // Warning is overriding an error namespace Mossharbor.ActivityStreams { /// <summary> /// Represents a formal or informal collective of Actors. /// </summary> /// <example> ///{ /// "@context": ...
911712b3d6d3f199c782cd7e48fd4ca61975e24d
C#
AndrioCelos/CBot
/CBot/IniReader.cs
2.953125
3
using System.Diagnostics.CodeAnalysis; namespace CBot; public class IniFile : Dictionary<string, Dictionary<string, string>> { public IniFile() : base() { } public IniFile(IEqualityComparer<string> comparer) : base(comparer) { } public IniFile(IDictionary<string, Dictionary<string, string>> source) : base(source) ...
8725985ec97e0f5e45e78674123d53f424c42055
C#
charul0827/Design-Project
/RobotSwarmServer/Control_Strategies/Strategies/Collision_Avoidance/CollisionFreeNavigation.cs
2.640625
3
/* * CollisionFreeNavigastion is a form of collision avoidance that lets the robots detect in advance if * they are on a collision course. It's theory can be read about in J. Snape, J. van den Berg, S. J. Guy, D. Manocha (2011). "The hybrid * reciprocal velocity obstacle". */ using AForge; using System; using Sy...
265efa6c365573e9ed790827daacbf24a6d28fdf
C#
janatdev/GiftAidCalculator
/GiftAidCalculator.Tests/TestCase_As_a_donor.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Moq; using NUnit.Framework; using GiftAidCalculator.TestConsole; using GiftAidCalculator.TestConsole.BuisnessLayer; using GiftAidCalculator.TestConsole.Interfaces; using GiftAidCalculator.TestConsole.EntityDataSource; ...
16c9069769e47e57a959b50b23255c60190ac502
C#
radtek/MedicalSystemDemo_anhuixiongke
/安徽省胸科医院/复苏/源代码/Client/MedicalSystem.Anes.Client.FrameWork/Helper/ModelHandler.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; namespace MedicalSystem.Anes.Client.FrameWork { /// <summary> /// 实体对象与DataTable互转 /// </summary> /// <...
181b4ea3bcc67ac4f9c25f884d5041284ae34da9
C#
Arctra234/SuperBloki
/SuperBloki.WebUI/Infrastructure/Binders/CartModelBinder.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using SuperBloki.Domain.Entities; using System.Web.Mvc; namespace SuperBloki.WebUI.Infrastructure.Binders { public class CartModelBinder : IModelBinder { private const string sessionKey = "Cart"; public objec...
7f6e1d2a7ee66484c19b4df89291e37e230f7b8a
C#
shendongnian/download4
/first_version_download2/214326-16644558-40885065-4.cs
2.71875
3
public class CustomerHandler { // in BL you may have to call several DAL methods to perform one Task // here i have added validation and insert // in case of validation fail method return false public bool InsertCustomer(Customer customer) { if (CustomerDat...
b44f822ff4b6d112e814431408183327a0f462a0
C#
2011-nov02-net/lukef-project0
/StoreApplication/StoreApplication.DBClassLibrary/Repositories/StoreRepository.cs
3.015625
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace StoreApplication.DBClassLibrary.Repositories { public class StoreRepository : IStoreRepository { private readonly DbContextOptions<Project0DBContext> _contextOptions; public Stor...
e5f103395606c1bc07dd477cc23da3986c208b36
C#
shendongnian/download4
/code3/488302-11160241-25881305-2.cs
2.65625
3
var connection = new MySqlConnection(connStr); try { connection.Open(); var command = new MySqlCommand( "SELECT * FROM tblCountry WHERE Name = @Name", connection); command.Parameters.AddWithValue("@Name", name); ... } finally { connection.Close(); }
b80b0e87d71fb30408633d48bc3a8008dd757c0e
C#
pavani8/ShopBridgeApplication
/ShopBridge(BackendSolution)/Controllers/SubCategoryController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ShopBridgeClassLibrary; namespace ShopBridge_BackendSolution_.Controllers { public class SubCategoryController : A...
4083fe8722fd1a2572356315e68e879193a2b2be
C#
adyshkins/ClothesForHandsGroup2
/ClothesForHandsGroup2/Windows/EditminCountWindow.xaml.cs
2.640625
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;...
ca9a26fcc76c24cff6d6cc6e65da643937a57bea
C#
smithkl42/AlantaMedia
/Alanta.Client.Media/RtpPacket.cs
2.765625
3
using System.Diagnostics; using Alanta.Client.Common.Logging; namespace Alanta.Client.Media { public enum RtpPacketType { Connect = 0, Stream = 1 } public enum RtpParseResult { Success, DataIncomplete, DataInvalid } public abstract class RtpPacket ...
e1022076e346bf8c4a6d5358ae198872ff9a1a65
C#
zyr365/ChatRoom
/WebApplication2/WebForm1.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication2 { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Appli...
86f03f7f83de96f15db3dc3b9ce0f5b3a49beea4
C#
Velantine/Testgroud
/Assets/Scripts/OptionsClass.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml.Serialization; using System.IO; [XmlRoot("Options")] public class OptionsClass{ [Range(-80, 20)] [XmlElement("SoundVolume")] public float soundVolume; [Range(-80, 20)] [XmlElement("MusicVolume")] p...
6beed8ff1213cc490e0847ce8f667bb469c84297
C#
zeynepyalinizdagci/KodlamaIO
/Products/Program.cs
3
3
using System; namespace Products { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); Products hat = new Products(); hat.Name = "Hat"; hat.Description = "Hat"; hat.UnitInPrice = 5.9; hat....
c235f0f09de13a0afcbe549f0647aae3294a4f77
C#
hjy1999/CsharpHomework
/Homework3/program1/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace program1 { public abstract class FatherShape { private string myID; public FatherShape(string i) { id = i; } public string id //获得...
f5bf3a7d5d364dccd1e9de5b9b4d096b10a0e126
C#
reignstudios/CS2X
/CS2X.CoreLib/Reflection/AssemblyInformationalVersionAttribute.cs
2.828125
3
namespace System.Reflection { [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] public sealed class AssemblyInformationalVersionAttribute : Attribute { private readonly string _informationalVersion; public AssemblyInformationalVersionAttribute(string informationalVersion) { _informationalVers...
78bed820dfaac1b6e9d6ca6c3fb6e0c489927a24
C#
ZhenyaBarsamov/CourseWorks_GOES
/SGVL — копия/Visualizers/SimpleGraphVisualizer/EdgesDrawing/IEdgeDrawer.cs
3.140625
3
using System.Drawing; using SGVL.Types.Graphs; namespace SGVL.Visualizers.SimpleGraphVisualizer.EdgesDrawing { /// <summary> /// Интерфейс объекта, занимающегося рисованием рёбер графа /// и проверкой принадлежности координат рёбрам /// </summary> public interface IEdgeDrawer { /// <summa...
137e158da871f87a33f43a1e32586b7e766f7fe9
C#
kayyer/sigstat
/SigStat.PreprocessingBenchmark/Monitor.cs
2.734375
3
using Microsoft.WindowsAzure.Storage.Blob; using Microsoft.WindowsAzure.Storage.Queue; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SigStat.PreprocessingBenchmark { class Monitor { static CloudBlobContainer Container...
c2022debe31b9aaf67e806429b0f929a4dfb431e
C#
AnCh7/WealthLabDataConverter
/src/WealthLabDataConverter/Models/Fundamental/Split.cs
2.75
3
// ================================================= // File: // WealthLabDataConverter/WealthLabDataConverter.Library/Split.cs // // Last updated: // 2013-08-21 2:10 PM // ================================================= #region Usings using System.Globalization; using WealthLabDataConverter.Library.Models.Funda...
b408c2f28599feccd0208a9e45b419eccdbb353f
C#
ulitol97/HackingToTheGate
/Assets/Scripts/Game/UI/RemoteDesktopScreenUI.cs
2.578125
3
using Remote_Terminal; using UnityEngine; using UnityEngine.UI; using UnityObserver; namespace Game.UI { /// <summary> /// The RemoteDesktopScreenUI watches for changes in the VncManager. /// While the latter is active, updates the in-game object it is attached to with the remote desktop image, /// whi...
89296cdb7ad10abc1fe7e1eb6d40c2261ea6e933
C#
jeffchiudev/CoffeeShop.Solutions-cs-practice
/CoffeeShop/Controllers/EmployeesController.cs
2.96875
3
using System.Collections.Generic; using System; using Microsoft.AspNetCore.Mvc; using CoffeeShop.Models; namespace CoffeeShop.Controllers { public class EmployeesController : Controller { [HttpGet("/employees")] //display all employees public ActionResult Index() { List<Empl...
2af898fb08bc6010c612d671ce86d6af87022230
C#
HachyCode/SnakesAndLadders-V1
/Player.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; namespace SnakesAndLadders_V1 { //Facade pattern subsystem class class Player { public static int PlayerPlace { get { return playerPlace; } set { playerPlace = value; } } private st...
cd95517d2bfca029d88b11a84e20c7bf268d16be
C#
suvanl/Memo
/Memo/AttachedProperties/TextEntryWidthMatcherProperty.cs
2.96875
3
using System; using System.Windows; using System.Windows.Controls; namespace Memo { /// <summary> /// Matches the label width of all text entry controls within this panel /// </summary> public class TextEntryWidthMatcherProperty : BaseAttachedProperty<TextEntryWidthMatcherProperty, bool> { ...
068752c2bf70ae2de8fc8da437432aaa9bc08117
C#
FuchsFa/Robot-Puzzle
/Robot-Puzzle/Assets/Scripts/Model/GroundTile.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; #if UNITY_EDITOR using UnityEditor; #endif public class GroundTile : Tile { /// <summary> /// Die Sammlung der möglichen Terrain Types, die Tiles haben können. /// </summary> public enum Terrain...
380eb6ba9a4638b6858fe2c7ef05e6f07f323f66
C#
jhemphill1389/pairgame
/ConsoleGame/Weapons.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Linq; namespace ConsoleGame { class Weapons { static public void Main() { // Creating a dictionary // using Dictionary<TKey,TVal...
505ffaa810da3bb46f19704e200e3086c2ddebba
C#
uranium62/DynamicLib
/DynamicLib/Parser/DynamicTokenType.cs
3.03125
3
namespace DynamicLib.Parser { public enum DynamicTokenType { /// <summary> /// The unknown /// </summary> Unknown, /// <summary> /// The end /// </summary> End, /// <summary> /// The identifier /// </summary> ...
5df64eabd1b3d2d8226d6e6ef0280998e5de1823
C#
MiloszKrajewski/protoactor-dotnet
/src/Proto.Actor/Extensions/ActorSystemExtensions.cs
2.5625
3
// ----------------------------------------------------------------------- // <copyright file="ActorSystemExtensions.cs" company="Asynkron AB"> // Copyright (C) 2015-2020 Asynkron AB All rights reserved // </copyright> // ----------------------------------------------------------------------- using System; namesp...
b5a44a09ad60c1c073f0e5f226f791e9437d2e3d
C#
boyjimeking/u3dArpgDemo
/script/AssetBundlesAssetBundleInfo.cs
2.640625
3
namespace InJoy.AssetBundles { using UnityEngine; using Internal; /// <summary> /// The description of downloaded asset bundle. /// Instances would be created automatically during downloading. /// So end user should not do anything. /// </summary> public class AssetBundleInfo ...
882769b36b9624e1ecaa4d4cc2a6c442e181389a
C#
stadnichenko-olga/ITScool
/CourseTasks/Matrixes/Matrix.cs
3.4375
3
using Ranges; using System; using System.Text; using Vectors; namespace Matrixes { public class Matrix { private Vector[] strings; public Matrix(int stringsNumber, int columnsNumber) { if (columnsNumber <= 0) { throw new ArgumentException(nameof...
eb346b4a0cf3ec841fd1c74388776d7e289dcddf
C#
terry-u16/AtCoder
/Kujikatsu094/Kujikatsu094/Kujikatsu094.Test/AtCoderTester.cs
2.859375
3
using System; using Xunit; using Kujikatsu094.Questions; using System.Collections.Generic; using System.Linq; using Kujikatsu094.Collections; namespace Kujikatsu094.Test { public class AtCoderTester { [Theory] [InlineData(@"4 2 3 7 9", @"7")] [InlineData(@"8 3 1 4 1 5 9 2 6", @"8")] ...
ba03e6bb18fd6e4df7e7d08ec3db147399cdcfd2
C#
yonexbat/AdHocTestingEnvironments
/AdHocTestingEnvironments/Services/Implementations/EnvironmentService.cs
2.5625
3
using AdHocTestingEnvironments.Data; using AdHocTestingEnvironments.Model; using AdHocTestingEnvironments.Model.Entities; using AdHocTestingEnvironments.Model.Environment; using AdHocTestingEnvironments.Services.Interfaces; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System.Collectio...
e53c974fcf047e1502b5ee46bc72f97877ddb065
C#
evak2979/CheckoutTest
/tests/Checkout.Tests.Acceptance/PaymentGatewayControllerTests.cs
2.53125
3
using System; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Checkout.Web.Models; using Newtonsoft.Json; using Shouldly; using Xunit; namespace Checkout.Tests.Acceptance { [Collection("Container collection")] public class PaymentGatewayControllerTests { ...
d0d19547625da6cef6b459a224b5016c0f4aabc7
C#
ridgew/BraneCloud
/Source/Projects/EC/App/CartPole/CartPole.cs
2.734375
3
using System; using BraneCloud.Evolution.EC.Configuration; using BraneCloud.Evolution.EC.NEAT; using BraneCloud.Evolution.EC.Simple; using BraneCloud.Evolution.EC.Util; namespace BraneCloud.Evolution.EC.App.CartPole { [ECConfiguration("ec.app.cartpole.CartPole")] public class CartPole : Problem, ISimpleProblem...
d50f17ff8513c7807d7d3aa92252b3a82a3fba61
C#
reudismam/Refazer
/TreeElement/Spg.Isomorphic/IsomorphicManager.cs
2.890625
3
using System; using System.Collections.Generic; using RefazerFunctions.Substrings; using TreeElement.Spg.Mapping; using TreeElement.Spg.Node; namespace TreeEdit.Spg.Isomorphic { public class IsomorphicManager<T> { public static bool IsIsomorphic(TreeNode<T> t1, TreeNode<T> t2) { r...
976c16b81a6053f48aac477edf2c416109df0d6a
C#
GeorgiPetrovGH/TelerikAcademy
/12.Data-Structures-and-Algorithms/07. Recursion/Recursion/SubsetsOfStrings/Startup.cs
3.703125
4
namespace SubsetsOfStrings { using System; public class Startup { private static int k = 2; private static string[] words = { "test", "rock", "fun" }; private static string[] result = new string[k]; public static void Main() { GenerateVariatons(...
7a3e8a20ca27561b84f005b69d322175a28dd636
C#
Novikevicius/BattleCity
/Assets/Scripts/Shooting.cs
2.75
3
using System; using BattleCity.Miscellaneous; using UnityEngine; namespace BattleCity { public class Shooting { public const float halfTankSize = 0.2f; private Direction bulletDirection; private GameObject bulletSpawn; private GameObject bulletPrefab; public Shooting...
9592ee4e1fc01f8de2a1264cca869f470ad987c1
C#
Alireza1044/DS97981
/A10/A10/RabinKarp.cs
2.765625
3
using System; using System.Collections.Generic; using TestCommon; namespace A10 { public class RabinKarp : Processor { public RabinKarp(string testDataName) : base(testDataName) { } public override string Process(string inStr) => TestTools.Process(inStr, (Func<string, string, long...
8a5302c0ae93181247ec392d0bb5bccac98cf862
C#
MrBean355/KinderFinder
/Source Code/AdminPortal/AdminPortal/Controllers/WebAPI/Transmitters/FreeTransmitterController.cs
2.578125
3
using AdminPortal.Models; using System.Web.Http; namespace AdminPortal.Controllers.WebAPI.Transmitters { /** * Deregisters a transmitter from the system. */ public class FreeTransmitterController : ApiController { private KinderFinderEntities Db = new KinderFinderEntities(); [HttpPost] public IHttpActi...
36a87e73961c292ca94de36e8945f2471e1ab163
C#
alaAlex/SapHotelReservations
/BookingApp/Program.cs
3.734375
4
using System; namespace BookingApp { class Program { static void Main(string[] args) { Console.WriteLine("Welcome"); Console.WriteLine("Please enter size of your hotel: "); int hotelSize; while (!int.TryParse(Console.ReadLine(), out hotelSize) |...
04de9abcc18c6adfcc877c4507afea6ac968f007
C#
x-danma/OOPTest
/OOP/OOPvsFunc/GUIs/TerminalGUI.cs
3.34375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; namespace OOPvsFunc { public class TerminalGUI : IGUI { protected virtual string ShowPeoplePrefix { get; set; } = " - "; public void ShowPeople(ReadOnlyCollection<Person>...
e85989397edd4fd1990c03371e624ec3c35687e8
C#
Hlib7Dol/AnimalZooBinary
/Animal/AnimalZooBinary/AnimalZooBinary/Controller/FindBy.cs
3.390625
3
using AnimalZooBinary.Animals; using AnimalZooBinary.Scope; using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace AnimalZooBinary.Controller { internal class FindBy { internal void GroupByType(List<BaseAnimal> animals) { var groupedAnimals ...
a560fa713e9ac27c2948a92720488b94f62b2452
C#
Damnae/storybrew
/editor/UserInterface/Vector2Picker.cs
2.625
3
using BrewLib.UserInterface; using OpenTK; using System; using System.Globalization; namespace StorybrewEditor.UserInterface { public class Vector2Picker : Widget, Field { private readonly LinearLayout layout; private readonly Textbox xTextbox; private readonly Textbox yTextbox; ...
39a5886cc9d40762a2ceddfeaee1ef1cb2f66dae
C#
aadjesus/Diversos
/Exemplos_Internet/WPF/126_Ink-A-Mator/ArtControls/Palette.cs
2.53125
3
/**************************************************************************** * * * Created By: Ernie Booth * * Contact: ebooth@microsoft.com - http://blogs.msdn.com/ebooth * * ...
c1e14e8e3f5c5b3efad45658d443a83dda712f4c
C#
Aghw/cs230
/tree/master/NewFinalProject/LearningCenter/ClassEnrollmentRepository.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using LearningCenter.Models; using LearningCenter.DataAccessLayer; using System.Web.Caching; namespace LearningCenter { public interface IClassRepository { ClassModel[] Classes { get; } ClassModel Class(int c...
496a2fe250ab684e5f305205b6dba07973609298
C#
koson/cpp
/c#/DevForge/Sec-Three/school/ConsoleDev/Program.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleDev { class Program { static void Main(string[] args) { int year; int month; int day; year = Convert.ToInt32(Conso...
a68e46b97f449aa5a48caefc0912e5cf82bdbde0
C#
RamanBut-Husaim/MiSOI
/BSUIR.MiSOI.Lab01/ImageProcessing.Service/LinearFilterBase.cs
3
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace ImageProcessing.Service { internal abstract class LinearFilterBase : FilterBase { public override void Apply(Bitmap bitMap) { var rect = new Rectangle(0, 0, bitMap.Widt...
02d878eb109da1b46e4003dfa7c61465ef7973f1
C#
bibaoke/Less.Common
/Less.Common/Less.Text/EditExtensions.cs
3.453125
3
//bibaoke.com using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using Less.Collection; namespace Less.Text { /// <summary> /// 编辑 /// </summary> public static class EditExtensions { /// <summary> /// 替换 /// </summary> ...
4300ecd448b2fb707e5d7807714588a44dc6ff0b
C#
comaid/Pidgin
/Pidgin/Parser.Chain.cs
2.6875
3
using System; namespace Pidgin { public partial class Parser<TToken, T> { internal Parser<TToken, U> ChainAtLeastOnce<U, TChainer>(Func<TChainer> factory) where TChainer : struct, IChainer<T, U> => new ChainAtLeastOnceLParser<TToken, T, U, TChainer>(this, factory); } internal inter...
113b41310fa226ff8b0b46f7bb9fdfb1c2e53d65
C#
RohitKumarCG/InventoryProject
/Rohit/RawMatarialTest/GetRawMaterialBLTest.cs
2.625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Capgemini.Inventory.BusinessLayer; using Capgemini.Inventory.Entities; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Capgemini.Inventory.UnitTests { //Developed By Rohit //Creation Date: 01-10-2019 ...
bf9593b99bd734d574afdfbfd4029e0d6b8d691f
C#
anegostudios/vsapi
/Client/API/IClientNetworkChannel.cs
2.921875
3
using System; namespace Vintagestory.API.Client { public interface INetworkChannel { /// <summary> /// The channel name this channel was registered with /// </summary> string ChannelName { get; } /// <summary> /// Registers a handler for when you se...
5a549a1bb21101f9684e05b08ea7abf10dfa0311
C#
TimCodesStuff/BitcoinLibCSharp
/BitcoinLib/BitcoinLib/Encoding.cs
3.0625
3
using System.Numerics; using System; using System.Linq; namespace BitcoinLib { public class Encoding { public static byte[] HexStringToByteArray(string hexString) { return Enumerable.Range(0, hexString.Length) // Generate an enumerable of ints from 1 to hexString length ...
9a22345eb90dff2796241d9b2e77ec570d7ad2d7
C#
FUSEEProjectTeam/Fusee
/src/Engine/Core/Effects/UniformChangedEnum.cs
2.671875
3
namespace Fusee.Engine.Core.Effects { /// <summary> /// Enum for determining the action that needs to be taken for a uniform variable in the <see cref="EffectManager"/>. /// </summary> public enum UniformChangedEnum { /// <summary> /// The effect isn't needed anymore - the uniform w...
9aef1f2a89b969c16bbaac5728ce2420cea3d34b
C#
YuriAICruz/shmup-steam
/Packages/Splines/Assets/Scripts/Paths/Path.cs
2.515625
3
using System; using System.Collections; using Graphene.Utils; using UnityEngine; namespace Splines.Paths { [Serializable] public class Path : IPath { public Path(Path path) { StartPoint = path.StartPoint; EndPoint = path.EndPoint; XCurve = path.XCurve; ...
eae602644e8510fa9a417d61f6ef541db7ba694a
C#
RonokBhowmik/BasisTranningOOP49
/Console Applications/IterationConsoleApp/IterationConsoleApp/Program.cs
3.9375
4
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IterationConsoleApp { class Program { static void Main(string[] args) { //Prints the sum of the numbers o to 9 using...
57a6d9e849e76d08f8dff8d2073056defd816909
C#
shendongnian/download4
/latest_version_download2/225761-49654730-170522773-2.cs
2.859375
3
public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public int WeeklySales { get; set; } public override string ToString() { return $"{FirstName} {LastName}"; } }
ce8328e0b1f77c28216e5a5268527e0b6cba2fa6
C#
LennartMolFontys/TSS
/stringSplitter/stringSplitter/StringSplitter.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace stringSplitter { static class StringSplitter { public static string InitializeFormat { get; } = "ID:<value>UnitAmount:<value>Length:<value>TotalSeats:<value><value>Length:<valu...
c3ab433d8f705baadb6d0875b6ff9762dcba0301
C#
zubair1599/RP
/RPDailyScrape/Common.cs
3.078125
3
using System; using System.Text.RegularExpressions; using System.Threading; namespace RPDailyScrape { internal class Common { public static Random rand; public static void Wait() { var interval = (int) Math.Floor(1 + (rand.NextDouble()*2)); Thread.Sleep(interva...
9bc3cb174b98d8ba7e37e7cbe31d40d611e516f0
C#
nicolas98-a/Unaj-Menu-Digital
/App de Backend/Tp2-Rest-Acuña_Nicolas/Tp.Restaurante.API/Tp.Restaurante.API/Controllers/ComandaController.cs
2.609375
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using Tp.Restaurante.Application.Services; using Tp.Restaurante.Domain.DTOs; namespace Tp.Restaurante.API.Controllers { [Route("api/[controller]")] [ApiController] public class ComandaControlle...
bb8fefb3b746a49ca8fa347b38fdc56bff221756
C#
et8111/Lab13
/Lab13/LimboPlayer.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab13 { class LimboPlayer: Player { public override string Name { get; set; } public override Roshambo Ro { get; set; } public override int wins { get; set; } ...
d7fb476fc61fd7bf3082d84687cd6e4e7c49761d
C#
dotMorten/AllJoynDeviceSimulator
/src/SimulatorApp/AllJoynNotificationReceIver.cs
2.609375
3
using DeviceProviders; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AllJoynSimulatorApp { //Listens for AllJoyn notifications on the bus and raises an event when one is ...
1933b22030a9c95016ea15cee7c889298a0bda03
C#
yuva2achieve/TelerikAcademy
/HighQualityCode/05.ConditionalStatementsLoops/01.Chef/Chef.cs
3.703125
4
namespace _01.Chef { using System; using System.Linq; public class Chef { // Task 1 is in this file // Task 2 is in MainClass.cs public void Cook() { Bowl bowl = this.GetBowl(); Potato potato = this.GetPotato(); Potato ...
a0bdc1a35ff560bf8a42a712fbbf56733f07f10e
C#
llenroc/Cwq-LeetCode
/CSharpImpl/N1483_KthAncestorOfATreeNode.cs
3.65625
4
using System; using System.Collections.Generic; namespace CSharpImpl { /// <summary> /// link: https://leetcode.com/problems/kth-ancestor-of-a-tree-node/ /// /// You are given a tree with n nodes numbered from 0 to n-1 in the form of a parent array where parent[i] is the parent of node i. The ...
4ebe2335e3895d66765a0f3a3c07dd266bd9f4a6
C#
pcarvalho75/patternlab
/cloudService/hmm_old/ServiceHMM.svc.cs
2.53125
3
using PatternTools.FastaParser; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace hmm3 { // NOTE: You can use the "Rename" command on the "Refactor" menu to ...
9061e60433acbcd9980150da88b28e2c473a73b6
C#
sans90/SS
/计算面积/重载/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 重载 { class Program { //调用 static void Main() { ConsoleColor consoleColor = Console.BackgroundColor; Console.WriteLine("1-3", consoleC...
90a9f801477bfca6e2a990568ea453c832bc3232
C#
Pharsat/SIGED_3
/SIGED_3.CRM.Model/AccesoDeRecursos/OAD/OrdenesDeTrabajoOAD.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SIGED_3.CRM.Model.Negocio.Entidades; using SIGED_3.CRM.Model.Util.Enum; using SIGED_3.CRM.Model.Util.Session; namespace SIGED_3.CRM.Model.AccesoDeRecursos.OAD { internal class OrdenesDeTrabajoOAD { /// <summary>...
f6228e17fed5baa4610bf003514fd4c73dfac816
C#
filipetoscano/Platinum
/src/Platinum.Mock/MockDataAttribute.cs
3.046875
3
using System; namespace Platinum.Mock { /// <summary> /// Markup, indicating that a property is subject to random /// data being generated /// </summary> [AttributeUsage( AttributeTargets.Class | AttributeTargets.Property )] public class MockDataAttribute : Attribute { /// <summary...
351761c25a8925c9f8bcad90c6a6859553fe6f00
C#
Soeh0001/BackendLaborationGUI
/Models/LibraryModel.cs
2.65625
3
namespace LibraryAPI { using System; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; public partial class LibraryModel : DbContext { public LibraryModel() : base("name=LibraryModel") { } public virtual...
4da091e1c3419c7fa31a7442045756eec7c4e303
C#
kmich1/DSZI-2018
/Foods.cs
2.859375
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Graphics; using SFML.System; namespace DSZI_2018 { public struct Food { public string Path; public Sprite Sprite; public int Value; pu...
ecda40065ffe530f703830e76d21cd2f821fcf82
C#
hqw786/Test
/PicoVR/360/Assets/APP/Scripts/Framework/SubPool.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; public class SubPool { public SubPool() { } public SubPool(GameObject prefab) { prefabObj = prefab; } public GameObject prefabObj; List<GameObject> objs = new List<GameObje...
09a02c13b21019d78abff9fb620e73b2dd7bfb20
C#
sgprojectmanagement/sgemployeemanagement
/sgprojectmanagement/Repository/Repository.cs
2.765625
3
using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; namespace sgprojectmanagement.Repository { public class Repository<TEntity> { private IMongoDatabase _database; private string _tableName; private I...
9fa28cc9f850868f74e9d4ee8b4aa1effc9f4c93
C#
test-in-prod/ueravchatclient
/Crypton.AvChat.Gui/Power/OpWhitelist/Whitelist.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml.Serialization; using System.Diagnostics; namespace Crypton.AvChat.Gui.Power.OpWhitelist { [Serializable] public class Channel { public string ChannelName { get; ...
55df4ec5aa9bac600dd1a03e90b1e4889f3924cc
C#
Techbrunch/restore
/Restore.Tests/InMemoryCrudDataEndpoint.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using Restore.Channel.Configuration; namespace Restore.Tests { public class InMemoryCrudDataEndpoint<T, TId> : ICrudEndpoint<T, TId> where TId : IEquatable<TId> { [NotNull] private readonly TypeConfiguratio...
d9802ce1cd9121d8e22c09d9610ac4ec7913a4f3
C#
bartoszjaniak/MakeMyDayApi
/Poligon/Program.cs
2.890625
3
using MakeMyDayApi.Models; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Poligon { class Program { private static string connectionString = "data source=mssql4.webio.pl,2401;initial catalog=bja...
48ccb129f5c89fdb5e8c875bd964f0ef02b48ce9
C#
wilsonsantosnet/sample-seed-core-20-coreui
/Seed.Data/Repository/Sample/SampleFilterBasicExtension.cs
2.515625
3
using Seed.Domain.Entitys; using Seed.Domain.Filter; using System.Linq; namespace Seed.Data.Repository { public static class SampleFilterBasicExtension { public static IQueryable<Sample> WithBasicFilters(this IQueryable<Sample> queryBase, SampleFilter filters) { var queryFilter = q...
e4b07d8db17a5b1c365c3678a25334b6d3c83cda
C#
hungyiloo/photo-sorter
/PhotoSorter/Viewmodels/MainViewmodel.cs
2.671875
3
using PhotoSorter.Extensions; using PhotoSorter.Views; using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Windows.Media; using System.Windows.Media.Imaging; namespace PhotoSorter.Viewmodels { public class MainViewmodel : INotifyPropertyCha...
a3efae1f7fadb132e31d1ae5e05a75c56be97126
C#
SharePointDiv/HRPortal
/SGCorpHR.DATA/EmployeeDirectoryRepository.cs
2.59375
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 Dapper; using SGCorpHR.Models; using SGCorpHR.Models.Interfaces; namespace SGCorpHR.DATA { public class EmployeeDirectoryRepository : IEmployeeDi...
3241c406b6d95ddf1a55d8ee27fb6426505c2542
C#
Dominent/TelerikAcademy
/C# OOP/03.Defining Classes - Part 1/GSM.cs
3.171875
3
using System.Collections.Generic; using System.Linq; namespace Defining_Classes___Part_1 { class Gsm { private static int iPhone4S; public Gsm() : this(null) { } public Gsm(string model) : this(model, null) { } public Gsm(string model, string manufacturer) : this(model, manu...
d32caba5f4b64e17f437962af6d5de3e42eb0b78
C#
semihokur/pattern-matching-csharp
/Src/Test/Utilities/TestHelpers.cs
2.671875
3
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; namespace Ros...
40f1cec99325016dd311fe7ad49eb784f2a53757
C#
clangelov/TelerikAcademyHomework
/16_WebForms/IntroductionASP.NET-Homework/SumNumbers-WebForms/Summator.aspx.cs
3.0625
3
namespace SumNumbers_WebForms { using System; using System.Globalization; public partial class Summator : System.Web.UI.Page { protected void Sum_Numbers(object sender, EventArgs e) { try { var firstNum = int.Parse(this.firstNumber.Value); ...
bd1fa81569d580a2a71c88f407fbe1cc599c9aae
C#
AndreiValuika/EPAM_Training
/NET.W.2019.Valuika.10/Task_5/CompRowsSum.cs
3.578125
4
using System.Collections.Generic; namespace SortJaggedArray { public class CompRowsSum : IComparer<int[]> { public int Compare(int[] x, int[] y) { return SumRow(x) > SumRow(y) ? 1 : -1; } private static int SumRow(int[] row) { int sum = 0; ...
907e4d32139181ab79f8c6a45cdfdf4d9c7c77de
C#
line-developer-community/line-messaging-api-csharp
/line-messaging-api-csharp/Messages/Sender.cs
3.125
3
using System; namespace LineDC.Messaging.Messages { /// <summary> /// When sending a message from the LINE Official Account, you can specify the sender in Message objects. /// </summary> public class Sender { /// <summary> /// Display name. Certain words such as LINE may not be use...
388e7bed40aaa1ddde59fa36ad82b0f3e488f90f
C#
l87freeman/SquareCalculator
/GCalculator/Servises/LogReaderService.cs
2.890625
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using Services.Interfaces; using Services.Models; using Services.Extentions; namespace Services { public class FileLogReaderService:ILogReader { private readonly string _fileLogPath = Path.C...
24b0e81a32afed0cc1e45ff87bcfd7257d6a64e2
C#
palladiumkenya/IQCareKe
/IQCare.CCC/DataAccess.CCC/Repository/person/PatientPopulationRepository.cs
2.5625
3
using System.Collections.Generic; using System.Linq; using DataAccess.CCC.Interface.person; using DataAccess.Context; using Entities.PatientCore; namespace DataAccess.CCC.Repository.person { public class PatientPopulationRepository :BaseRepository<PatientPopulation>,IPatientPopulationRepository { privat...
a2ca19be3a14271f15a6cec2c28335510f808d7d
C#
SaintOswald/SaintOswald.Libraries.Extensions
/SaintOswald.Libraries.Extensions/SaintOswald.Libraries.Extensions/LongExtensions/LongExtensions.cs
3.46875
3
/*********************************************************************************** * * Saint Oswald: Libraries - Extensions * * Copyright (c) 2015 - 2016, Saint Oswald * *********************************************************************************** * * LICENSED UNDER THE MIT LICENSE * SEE LICENSE FILE ...
e6dc99e0b5bafffbfb84f439371f0caa25bcc598
C#
MokretsovD/ATM
/ATM/HostProcessor/Mock/ATMOperation.cs
3.03125
3
using System; namespace ATM.HostProcessor.Mock { /// <summary> /// Represents ATM operation. In this case only a withdrawal operation :) /// </summary> public class AtmOperation { /// <summary> /// Operation identifier /// </summary> public Guid OperationId { get; }...
4ed7269f190dad7961c79acf962e8221ee1727fb
C#
hdriel/C-_ScheduleCollage
/WindowsFormsApplication1/Lessons/ClassRoom.cs
2.921875
3
namespace ProjectAandB { using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public class ClassRoom { private string _building; [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] [Column(Order = 0)] public string building ...
11bb401fbf330d6b349e27146224772c07bd1a15
C#
Trio556/Programming
/Programming/DataStructures/IDictionary.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; namespace Programming.DataStructures { public interface IDictionary<tkey, tvalue> : IEnumerable<KeyValuePair<tkey, tvalue>> { int Count { get; } tvalue this[tkey key] { get;set; } void Add(tkey key, tvalue value); ...
805423afdeff7a1f194ff448875da9f5720bc1ed
C#
Alikvk/AyvanSaray-CSharp-Projects
/DERS KODLARI/Hafta 2/Hafta2Gun4Part2/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hafta2Gun4Part2 { class Program { static void Main(string[] args) { //implicit conversion (type-safe'tir.veri kaybı olmaz) int sayi = 5000; ...
1770f5aaad594655e3e7bcbe773d07c19a74b69c
C#
Shmuel930/Neural_Network
/Neural_Network/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Neural_Network { class Program { static void Main(string[] args) { NeuralNetwork myFirstNeuralNetWork = new NeuralNetwork(2, 12, 22); float[] in...