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
38fd4594876a4f83e7a5f1321b3b0bf2acf1ed52
C#
SesticM/tf-net
/Core/Src/NetTopologySuite/Geometries/Utilities/LinearComponentExtracter.cs
3.25
3
using System; using System.Collections; using System.Text; using Topology.Geometries; namespace Topology.Geometries.Utilities { /// <summary> /// Extracts all the 1-dimensional (<c>LineString</c>) components from a <c>Geometry</c>. /// </summary> public class LinearComponentExtracter :...
acb63bdeae2d939df9dc5d54e865d4dcb6b55b95
C#
dealproc/CredentialManagement
/source/WebHost/ModelMappers/ValueResolvers/MasterAccountResolver.cs
2.53125
3
using AutoMapper; using DataModel; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebHost.ModelMappers.ValueResolvers { public class MasterAccountResolver : ValueResolver<int, DataModel.MasterAccount> { IDataContext _DbContext; ...
1a46e327aa133c95729636c8f2b2e0133b6dd2d6
C#
hamzahazaimeh/studentmanagementBackend
/Controllers/StudentInfoesController.cs
2.6875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using StudentManag...
039ec445c2b781236f3e2a46d4e9a27cc61242a4
C#
lukaszWroc/University
/Materiały/POO/Lista3/Zadanie1/Zadanie1/Zad1.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* 1. Creator - Shape Factory przechowuje i tworzy na zamówienie obiekty typu Shape 2. Information Expert - Figury same liczą swoje pola - zobowiązania są przydzielane tym obiektom które mają informacje...
6bb162315beda0ec3bde3a9f56f5595ecae60bbb
C#
lxkbest/SexyColor.Net
/SexyColor.CommonComponents/Users/UserService.cs
2.625
3
using System.Collections.Generic; using SexyColor.BusinessComponents; namespace SexyColor.CommonComponents { public class UserService : IUserService { public IUserRepository userRepository { get; set; } /// <summary> /// 根据帐号邮箱获取用户 /// </summary> /// <param name="accou...
625e01dbd499ee09a8033818af51f177a1a87070
C#
ethiele/TickTackToe
/Program.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TickTackToe { class Program { static void Main(string[] args) { Game g = new Game(); Console.Write(g.ShowGameState()); Console.ReadLine(); AI ai1 =...
5d1af99983b672c98cf3d16842a5edcffe8eef1e
C#
1cekrim/flower
/Assets/Scripts/ItemScripts/ItemFactory.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItemFactory : MonoBehaviour { private Dictionary<string, Item> allItems; public void CreateAllItems() { allItems = new Dictionary<string, Item>(); foreach (Transform child in transform) { ...
62975054589481f93034c185b6543d00cd2bedb0
C#
Pinkuburu/Simple_G_J_K
/Assets/Scripts/PhysicSystem/Suppot Scripts/SemisphereSupport.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace PhysicalSystem { public class SemisphereSupport : MonoBehaviour, ISupport { public float radius; public float center_to_base; public Vector3 Support(Vector3 direction) { Vector...
07118349e8ab867e14d669be655ffe0649954b9b
C#
KayYowanu/TheKingdomproject
/Concrete/PostService.cs
2.71875
3
using Dapper; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using TheGospel.Contracts; using TheGospel.Entities; namespace TheGospel.Concrete { public class PostService : IPostService { private readonly IPostRepo _postrepo; public PostService(IPostRepo _po...
93d61986cd1d6316fb8cf860a9bcce238d828682
C#
XaLVaUA/projects
/Task4/Task4/Task4/Program.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task4 { class Program { static void Main(string[] args) { var arr = new ArbitraryArray<int>(-2, 3) {[-2] = 5, [-1] = 10, [0] = 3, [1] = 9, [2] = 11, [3] = 4...
86dacc18cae91e77681f55a3f9b1952cfd1e9bbc
C#
gergelykoncz/Patterns.Specification
/BusinessLayer/Specification/Person/Simple/PersonJobTitleSpecification.cs
2.78125
3
using BusinessLayer.Specification.Abstract; namespace BusinessLayer.Specification.Person.Simple { using Person = BusinessLayer.Entity.Person; public class PersonJobTitleSpecification : CompositeSpecification<Person> { private readonly string _jobTitleFragment; public PersonJobTitleSpecif...
e96f207df0df73a8095126a090ebf079aa4e3452
C#
CmdBianchi/EXERCICIO-02---ESTRUTURA-FOR
/EXERCICIO 02 - ESTRUTURA FOR/Program.cs
3.859375
4
using System; namespace EXERCICIO_02___ESTRUTURA_FOR{ class Program{ /// -------> START / MAIN ///////////////////////////////////////////////////////////////////////////////////////////// static void Main(string[] args){ Msg(); Conditional(); } /// ...
12914450d604f4f3c7fc0ff27dc87d71229eccda
C#
Grouts/Grout
/Main/Base/Grout.Base.DataClasses/SelectedColumn.cs
2.671875
3
namespace Grout.Base.DataClasses { /// <summary> /// Model class for column in select statement /// </summary> public class SelectedColumn { /// <summary> /// Gets or sets the table name from which the column need to be selected( Need to set only if the column belongs to a ...
844820aeb9390430cc91ea6b932da0d9e92954a7
C#
ElshadaiK/Object-Oriented-Programming-II_Lab
/Assignment-1/44.NewStringOdd.cs
3.640625
4
using System; using System.Linq; namespace HelloWorld{ class NewStringOdd { public void newStringOdd(){ Console.Write("Input a string : "); string str = Console.ReadLine(); var result = string.Empty; for (var i = 0; i < str.Length; i++) { ...
47c1a34a0fdae5b9d6db22e9cbeae0b64a181e09
C#
camjm/BeyondEarthApp
/src/BeyondEarthApp.Data.SqlServer/QueryProcessors/AllGamesQueryProcessor.cs
2.765625
3
using BeyondEarthApp.Data.Entities; using BeyondEarthApp.Data.QueryProcessors; using NHibernate; namespace BeyondEarthApp.Data.SqlServer.QueryProcessors { /// <summary> /// Packages data from database into QueryResult. /// </summary> public class AllGamesQueryProcessor : IAllGamesQueryProcessor { ...
f3416ee8652bbeeb918de045763973da65050bd9
C#
henrikfroehling/Trakt.NET
/Source/Lib/Trakt.NET/Requests/Handler/ResponseMessageHelper.cs
2.5625
3
namespace TraktNet.Requests.Handler { using System.IO; using System.Net.Http; using System.Threading.Tasks; internal static class ResponseMessageHelper { internal static async Task<Stream> GetResponseContentStreamAsync(HttpResponseMessage responseMessage) => responseMessage.Con...
2917a375da925bdc9fa9e007debf41ca86acd98e
C#
volokontsev/HW_UI_6.2
/Assets/Scripts/ObjectWithHealth.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class ObjectWithHealth : MonoBehaviour { [SerializeField] private float _maxHealth; [SerializeField] private HealthBar _healthBar; private float _objectHealth; public float MaxHea...
eab40053470229213421f10a7f0e0374eda31561
C#
Anton25121995/MyRepos
/TaskManager (Xamarin.Forms)/HelloMvxForms/HelloMvxForms/Converters/FromPathToImageSourceConverter.cs
2.53125
3
using MvvmCross.Platform.Converters; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using Xamarin.Forms; namespace HelloMvxForms.Converters { public class FromPathToImageSourceConverter : MvxValueConverter { public override object Conver...
152302300794d3f17cbfc2f3670e1d072af50f60
C#
davefancher/NETAsync
/Async/Examples/15_AsyncAwaitCancellationAndExceptions.cs
3
3
using System; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using static Async.Logger; namespace Async.Examples { public static class AsyncAwaitCancellationAndExceptionExample { private static Func<double, Task> DoResize(CancellationToken cToken...
57be21a761945bbc9e0de0350d618a1f62092de6
C#
TrickyTriangles/StraightUpGameJam1_DownToTheWire
/Assets/Scripts/Utils/MovementUtils.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class MovementUtils { public static Direction CheckMovementDirection(Vector2 looking) { Direction direction; if (looking.x == 0f && looking.y > 0f) { direction = Direction.NORTH; ...
7dbe1009afa60bb3d6a14a1f07d0137315660313
C#
cemeyer/t1bootstrap
/src/Lexer.cs
3.21875
3
using System; using System.IO; using System.Text; /* * Basic lexer. * * Tokens are: * * word: sequence of printable non-space characters (ASCII 33 to 126), * excluding ()[]{}`'"# * * literal string: starts with double-quote, followed by string contents * (escapes have been interpreted, and there is no...
6a5ed78ba73b53a500e5e545f6dba7a8f44858be
C#
ArnaudDebaene/LSMEmprunts
/LSMEmprunts/BorrowStateToStringConverter.cs
2.90625
3
using System; using System.Globalization; using System.Windows.Data; using LSMEmprunts.Data; namespace LSMEmprunts { class BorrowStateToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var state = (Bor...
744da50434d768af4d3610d922f8ae64f54bfc8d
C#
PonWer/DnDTextDecryptor
/DnDTextDecryptor/Program.cs
2.96875
3
using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("DnDTextDecryptor.Test")] namespace DnDTextDecryptor { internal class Program { internal static List<char> vokaler = new List<char>() { 'A', '...
60e1766d69f452e7f06e36661bc03cf6c68e0fbe
C#
15so42/SandTableWar
/Assets/Behavior Designer Samples/MiniGauntlet/Scripts/FireSphere.cs
2.796875
3
using UnityEngine; namespace BehaviorDesigner.Samples { public class FireSphere : MonoBehaviour { public Transform sphereGroup; public Vector3 force; // When the agent enters the trigger shoot the group of spheres at the agent public void OnTriggerEnter(Collider other) ...
5a50c609c5be9f66678f2efca75774b7407be4f0
C#
regulus33/PrivateVoid
/Assets/Scripts/PickupItem.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PickupItem : MonoBehaviour { private GameObject dialogBox; private Text dialogText; public bool timeToGetDialogGoing; public float letterPaused = 0.1f; public bool t...
110233af6c003f4776c21f7ce42ec11d6cb2c986
C#
gordonmleigh/msbuildversioning
/MSBuildVersioning/SvnInfoProvider.cs
2.84375
3
using System; using System.Collections.Generic; namespace MSBuildVersioning { /// <summary> /// Provides Subversion information for a particular file path, by executing and scraping /// information from the svn.exe command-line program. /// </summary> public class SvnInfoProvider : Source...
044409bbb46f83336e78b58a3a09809f504c5a0a
C#
Jpstilley/InheritanceExercise
/Inheritance/Reptile.cs
2.625
3
using System; namespace Inheritance { public class Reptile : Animal { internal bool IsColdBlooded { get; } = true; internal bool HasScales { get; } = true; internal bool Oviparous { get; } = true; internal int NumberOfLungs { get; set; } public Reptile() { ...
4650faab46ffe8c084d9f680f64fb0fb1bf084f0
C#
izzeking10/Ritboken
/Ritboken/Ritverktyg.cs
2.875
3
using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Ritboken { public class Coordinate { public int X { get; set; } public int Y { get; set; } public Coordinate(int x, int y) ...
39115f95ad5969b6a7c6ba65e17c41aff276c771
C#
gongchengshi/mimeo
/Mimeo/Utils/Mimeograph.cs
2.671875
3
using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using Gongchengshi; namespace Mimeo.Utils { /// <summary> /// Take all URLs and rewrite them to be absolute URLs to their Mimeo equivalents. /// </summary> static public class Mimeograph ...
e261fa3a0d474b2ac4b4fe09001607277f089805
C#
hmoss333/TommyTurtleRobot
/Assets/STEMDashScripts/TimeManager.cs
2.578125
3
using System; using System.Collections; using UnityEngine; using System.Collections.Generic; using SimpleJSON; using UnityEngine.SceneManagement; /********************************************************************** * * This class is used as the time manager. It uses the * singleton design pattern. ...
c5e66cc5ea825048013e10c2608e9379fa05da7e
C#
marufn17/C-.NetFinalProject
/PassLock/Username.cs
2.6875
3
using System; using System.Data; using System.Windows.Forms; using System.Data.SqlClient; namespace PassLock { public partial class Username : Form { public static SqlConnection sqlCon; public Username() { InitializeComponent(); } /* * will take bac...
8a2897d26715539c893031f75cf4e29370accc79
C#
JannyM85/SparkleXrm
/spkl.fakes/Microsoft.Crm.Sdk.Fakes/FakeOrganzationService.cs
2.65625
3
using FakeItEasy; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using System; using System.Collections.Generic; namespace Microsoft.Crm.Sdk.Fakes { public class FakeOrganzationService : IOrganizationService { #region Private memebers ...
4ec747c9bb5a3af234bbd9be532555fbc41be729
C#
Hap120/ClassFinder
/KidsClassFinder/KidsClass.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KidsClassFinder { public enum City { Redmond, Sammammish, Bellevue, Kirkland, I...
884f65a23e46392a2c3294fd69b14df1f7881419
C#
tingwei628/MCC
/Source/Compiler.cs
2.984375
3
using System; using System.Linq; using System.IO; namespace MCC { static class Compiler { static void Main(string[] args) { string inputfilename = "return_int.c"; if (args.Count() > 0) { inputfilename = args[0]; } if(!...
481c2fb14278237fe5cc73cbc1e2b36a88ea64e8
C#
brian070597/HeladeriaRepositorio
/Heladeria/Heladeria/Server/Controllers/UsuariosController.cs
2.671875
3
using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Heladeria.Shared.Modelos; using System.Security.Cryptography; using System.Text; namespace Heladeria.Server.Controllers { [ApiController] ...
e9a68975a6781673d4d2f8cb97b4508ec7630cc8
C#
dracjump/ProyectoTallerAutosDavid2021
/ProyectoTallerAutos.Datos/Repositorios/Modelos/RepositorioTipoVehiculos.cs
2.765625
3
using ProyectoTallerAutos.Datos.Repositorios.Modelos.Interfaces; using ProyectoTallerAutos.Entidades.Entidades; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProyectoTallerAutos.Datos.Repositorios.Modelos { ...
cac3d6e3a8cffc42108cb05cecf9d0a9c4391e91
C#
gjsduarte/TamTam.Trailers
/src/TamTam.Trailers.Services.YouTube/YoutubeVideoService.cs
2.5625
3
namespace TamTam.Trailers.Services.YouTube { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Google.Apis.Services; using Google.Apis.YouTube.v3; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Ex...
88182f657032b70fd0d809cb2eb7e5a8fa5d7151
C#
waterstonemf/Windows
/docs/PE File Format/Sample/ConsoleApplication4/ConsoleApplication4/Program.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication4 { [Flags] enum NodeType { None = 0, Single = -1, Double = -2, Three = -4 } class Program { ...
c347a843da4e6124d9466357aa7ba56846a97d2b
C#
fodysuli/Lost-Cities
/Assets/Scripts/PlayerController.cs
2.578125
3
using UnityEngine; using System.Collections.Generic; using System.Collections; public class PlayerController : MonoBehaviour { public GameObject handLocation; public GameObject expeditionLocation; List<int> m_handCards; List<int>[] m_playedCards; public void Init() { GameObject obj =...
fea0ee1d7e94973d1aa82124f130265a1c2055f1
C#
KaedeKasai/RoboSurvive
/RoboSurvive_demo0.9/Assets/Resources/YokoboriScripts/item.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class item : MonoBehaviour { string[] stone = new string[] { "Rock2","Rock3","Rock4" }; GameObject dropMaterial; GameObject dm; private float hard = 0.0f; private float hit = 0.0f; // Start is called before ...
930de36579fa18d0a50c2692eefdd8bdb6a13b84
C#
mknizewski/SportStore
/SportStore.Domain/Concrete/EFDbInitializer.cs
2.765625
3
using SportStore.Domain.Entities; using SportStore.Domain.SqlFiles; using System; using System.Data.Entity; using System.IO; namespace SportStore.Domain.Concrete { /// <summary> /// Autor: Mateusz Kniżewski /// Opis: Klasa inicjalizująca bazę danych gdy jej nie ma /// Data: 17.10.15 ...
9a311fcb8ab905c0d64796041b9b10abeb6d0211
C#
Clement-R/game_jam_template_2D
/Assets/Packages/Cake/Opera/Data/Sounds.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; namespace Cake.Opera.Data { [CreateAssetMenu(fileName = "Sounds", menuName = "Audio/Sounds", order = 0)] public class Sounds : ScriptableObject { public List<SFX> Values = new List<SFX>()...
dab8cdc4bb62dc84b0eecb700fcd2ec6c5b18ebc
C#
Spoertm/ddstats-scraper
/DdstatsScraper/Program.cs
2.734375
3
using DdstatsScraper; using DdstatsScraper.Responses; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; Console.WindowWidth = 120; while (true) { uint playerId = 0; while (playerId == 0) { Console...
42e0f2f71723b986f7154bbc1184b533e0abc809
C#
class-snct-rikitakelab/muphic
/muphic old version/LinkMake/Dialog/LinkFileWriter.cs
2.890625
3
using System; using System.Collections; using System.IO; using System.Text; using System.Windows.Forms; //TJ̒܂[ namespace muphic.LinkMake.Dialog { public class LinkFileWriter { ArrayList AnimalList; int Tempo; int Level; int Filenum; String Name; StreamWriter sw = null; public LinkFi...
12a1d3bd8089a3e49f00a90d21b701b0da9376b7
C#
bigmlcom/bigml-csharp
/BigML/BatchPrediction/BigMLClientBatchPredictions.cs
2.734375
3
using System.Threading.Tasks; namespace BigML { public partial class Client { /// <summary> /// Create a batch prediction using supplied arguments. /// </summary> public Task<BatchPrediction> CreateBatchPrediction(BatchPrediction.Arguments arguments) { return...
e4a1c5c6509acafde851d8297d4818a584318fd1
C#
bnynova/C_Sharp
/Telerik_Academy_HW/3. OperatorsExpressionsStatements/11. ModifyingToHoldValueAtPosition/ModifyingToHoldValueAtPosition.cs
2.53125
3
using System; class ModifyingToHoldValueAtPosition { static void Main() { int n = int.Parse(Console.ReadLine()); int p = int.Parse(Console.ReadLine()); int v = int.Parse(Console.ReadLine()); int mask = 1 << p; ..... } }
1b8aea6842e751448e68e76f322ff2f688abcbab
C#
LordJZ/Kamilla
/Kamilla/Network/Viewing/ViewerItemEventArgs.cs
2.9375
3
using System; namespace Kamilla.Network.Viewing { /// <summary> /// Represents the method that handles an event /// related to a <see cref="Kamilla.Network.Viewing.ViewerItem"/>. /// </summary> /// <param name="sender"> /// The object that raised the event. /// </param> /// <param name...
e5b381869af7753a140e0e4c1f8116d16ddf72f2
C#
tamirdresher/Ignite2017_MSAIDevBootcamp_Pre-day
/examples/06_Vision/01_vision/Bot/Services/CustomVisionService.cs
2.84375
3
using Newtonsoft.Json; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace Bot.Services { /// <summary> /// Service to call the Custom Vision API /// </summary> public class CustomVisionS...
46ba5f7cf1f8deb4371376e818522d6aa0221e82
C#
greenvox/FlowHelpers
/FlowHelpers/Models/DateTime/WeekRange.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace FlowHelpers.Models { public class WeekRangeResponse { public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } public string RangeLabel { get; set; } } public class WeekRange { ...
0ed451458dadd4e2cc339cb98ff72fbaefd137f4
C#
NightOwl888/J2N
/tests/J2N.Tests/Text/TestCharArrayCharSequence.cs
2.71875
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace J2N.Text { public class TestCharArrayCharSequence : CharSequenceTestBase<CharArrayCharSequence> { public override void SetUp() { base.SetUp(); target = new CharArrayChar...
cfa82221abe90d5841e0b3a9f25add9c5dc1791e
C#
nofuture-git/31g
/trunk/Code/NoFuture/Rand/Law/Procedure/Civil/US/Judgment/JudgmentAsMatterOfLaw.cs
2.84375
3
using System; using NoFuture.Rand.Law.Attributes; using NoFuture.Rand.Law.US; namespace NoFuture.Rand.Law.Procedure.Civil.US.Judgment { /// <summary> /// Capacity of a judge to withdraw a case from a jury when there is no meaningful question of law /// </summary> /// <remarks> /// <![CDATA[ "a met...
94be8919665f5452fe0815cbe4111e6b10209713
C#
RayWangQvQ/Ray.EssayNotes.Blazor
/BlazorRepository/EmployeeRepository.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BlazorDomain; using Microsoft.EntityFrameworkCore; namespace BlazorRepository { public class EmployeeRepository : IEmployeeRepository { private readonly MyDbContext _myDbContext; public Empl...
646453e90f4b8873ae51238464bcddb01e16903e
C#
Barkoff/WpfApp
/WpfApp/Model/Door.cs
3
3
using System.Windows; using GalaSoft.MvvmLight.Command; namespace WpfApp.Model { /// <summary> /// Дверь /// </summary> public class Door : Detail, IDoor { public RelayCommand OpenCommand { get; set; } public Door() { NativeName = "Дверь"; Weight = 4...
068f13090840f97af1301d43f8603da239f7e113
C#
cobalto/aspnet-core-social-network
/Libraries/Green.Services/Comments/CommentService.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using Green.Core.Data; using Green.Core.Domain.Comments; namespace Green.Services.Comments { public class CommentService { #region Fields private readonly IRepository<Comment> _commentRepository; #endregion #region Constructor /...
62fc700669756b1e187bd2da87ffe0058cf0a819
C#
josdan23/ProyectoBigonHnos
/ProyectoBigonHnos/data/ProvinciaDao/ProvinciaDaoListImpl.cs
2.53125
3
using ProyectoBigonHnos.data.ProvinciaDao; using ProyectoBigonHnos.dominio; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProyectoBigonHnos.data.ProvinciaDao { class ProvinciaDaoListImpl : IProvinciaDAO { private static Li...
fc004f22bd8fff9fb2a944c81306e6c8f3472c5e
C#
sureshbandi/socioboard-core
/SocioBoard/SocioboardAPI/Model/CompanyProfilesRepository.cs
2.578125
3
using Api.Socioboard.Helper; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Api.Socioboard.Model { public class CompanyProfilesRepository { public bool addAccount(Domain.Socioboard.Domain.CompanyProfiles compnayProfiles) { bool IsSucc...
2128968d4911c25ab3307b2c893f204489ca3308
C#
OmarMoataz/Speaker-Identification
/Recorder/Encoder.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Accord.DirectSound; using System.IO; using Accord.Audio; using Accord.Audio.Formats; namespace Recorder.Recorder { class Encoder : BaseRecorder { private WaveEncoder encoder; private MemoryStream _str...
98be418ad2af74ba2458dab340eb9f164ef41fd4
C#
tiagopsd/CarteiraDigital
/CarteiraDigital.Domain/Models/Validations/Result.cs
2.890625
3
using CarteiraDigital.Domain.Models.Interfaces; using System; using System.Collections.Generic; using System.Text; namespace CarteiraDigital.Domain.Models { public class Result<T> : IResult<T> where T : class { public bool Success { get; private set; } public List<string> Messages { get; priva...
1718596529dc2089a1bdaeb079de5416255381c9
C#
dzadnip/Monthly-LeetCoding-Challenge
/Trie/Trie/Trie.cs
3.234375
3
using System; using System.Collections.Generic; using System.Text; namespace Trie { // Copied from discussion area public class Trie { private readonly TrieNode _root; public Trie() { _root = new TrieNode(); } public void Insert(string ...
5ec28c48e6410d80abe6d1febedbfd35e6d13450
C#
SquallB/Check_n_Cook
/Check_n_Cook/Model/AbstractModel.cs
3.078125
3
using Check_n_Cook.Events; using Check_n_Cook.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /// <summary> /// Contains all the common operations for models. Here contains the views, and operations to add, remove and refresh them. /...
75dc1a03d2f95a9687c245cff872f7b1cbb98203
C#
gjurgica/Forum
/Forum different version/Forum 2.0/Forum.DataAccess/Repositories/CategoryRepository.cs
2.96875
3
using Forum.DataAccess.Interfaces; using Forum.DomainClasses.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Forum.DataAccess.Repositories { public class CategoryRepository : BaseRepository, IRepository<Category> { ...
6c352fecfa9340263feb1d91f3b468631bd39f10
C#
danhQuQu/Programming-techniques
/Form4.cs
2.53125
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 LogIn { public partial class Class : Form { scheduleEntities1 SE = new sc...
2205dc147fc2cb1ceef2a98f6111136ce41acfa7
C#
t2wain/learn-algo
/AlgoLib/Knapsack/Sack.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; namespace AlgoLib.Knapsack { public class Sack { public int Capacity { get; set; } public List<Item> AllItems { get; } = new List<Item>(); public List<Item> Items { get; } = new List<Item>(); public int TotalWei...
4cf3d4d31ca8fc9e741a1156a332ee47420e8333
C#
davetapson/PrisonConsoleApp
/PrisonConsoleApp/Program.cs
3.203125
3
using System; namespace PrisonConsoleApp { class Program { static void Main(string[] args) { Batch batch = new(); // bad name. Could be PrisonManager PrisonEngine... something. Console.WriteLine(""); Console.WriteLine("Welcome to Prison. You can check in...
318b70473e69c71e955479e2c36b13d68000ea48
C#
Mohanee/Cab_Invoice_Generator_Problem
/CabInvoiceGenerator/InvoiceSummary.cs
3.546875
4
using System; using System.Collections.Generic; using System.Text; namespace CabInvoiceGenerator { class InvoiceSummary { int no_of_rides; double totalFare, averageFare_perRide; /// <summary> /// Constructor to set value of no_of_rides and totalFare variables /// </sum...
2d1eea9836fb9ada7822809da14074ca5e0ce64f
C#
Adrado/SisifoNotes
/SisifoNotes.Lib.DA.EFCore/SisifoNotesDbSet.cs
2.65625
3
using Microsoft.EntityFrameworkCore; using SisifoNotes.Lib.Core; using SisifoNotes.Lib.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SisifoNotes.Lib.DA.EFCore { public abstract class SisifoNotesDbSet<T> : IDbSet<T> where T : Entity { i...
7e2c929ae0722cf16f712df8090f35c6e44022bd
C#
Darklight437/1st-year-game-prototype-2
/Assets/_Scripts/Behaviour Tree/SequenceBehaviour.cs
3.046875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* * class SequenceBehaviour * child class of Behaviour * * compound behaviour tree node that keeps executing * child nodes unitl one returns FAILURE * * author: Bradley Booth, Academy of Interactive Entertainment, 2017 */ p...
07e93e5c10feac722729a7fdb3f2d72b9aca017e
C#
kpro1999/SlimIOCP
/SlimIOCP/SlimIOCP.Shared/MessageBufferPool.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SlimIOCP { internal class MessageBufferPool<T> where T : MessageBuffer { int clearBufferId = -1; readonly int poolAmount; readonly Queue<T> pool; readonly BufferManager bufferManage...
ae08b17f4764f6aed3c17255e240126aa129fc00
C#
haruncanatali/Not_Giris_Otomasyonu
/NotKayitSistemi/OgrenciListesi.cs
2.625
3
using NotKayitSistemi.Model; 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 NotKayitSistemi { public partial class OgrenciListesi : Form ...
ceebfd020164d34ac7d54708d218716fcd8f25b5
C#
vladmikhbond/BookListDemo
/BookLibrary/Book.cs
2.734375
3
using System; namespace BookLibrary { public class Book { public Book(int id, string title, string authors) { Id = id; Authors = authors; Title = title; } public int Id { set; get; } public string Title { set; get; } public s...
36742350beb021ddb10378ccfe7712b51ea24a4a
C#
strider3029/Hex-to-Decimal
/HexToDecimal/HexToDecimal.cs
3.9375
4
using System; using System.IO; namespace HexToDecimal { class HexToDecimal { static int Main(string[] args) { // Check the argument and file exists if (args.Length == 0 || !File.Exists(args[0])) { Console.Write("You failed to specify the file...
e5220748b94c2d153b516189bce409824b3a127f
C#
ivan-azbukin/Dictator
/Dictator/Rocket.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; namespace Dictator { public class Rocket { /// <summary> /// Коллекция всех боеприпасов /// </summary> private List<int> _ammo; /// <summary> /// Массив с максимальным номером боеприпаса...
d1c27237d9f884419a11f64455ce21e180212e77
C#
andreimihailescu/ConsoleApp
/LINQ/BookShelf.cs
3.125
3
using System.Collections.Generic; namespace LINQ { public class BookShelf { private IEnumerable<Book> Books = new Book[] { new Book() { Title = "C# programming", Genre = "Educational", Price = 5 }, new Book() { Title = "Java programming", Genre = "Educational", Price = ...
e6d9c732667f6fae0e071b6ec1d7705c50fa0f93
C#
Al-Hurr/WeatherApp
/WeatherApp/Models/RequestClass.cs
2.796875
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace WeatherApp.Models { public static class RequestClass { public con...
45493b561383244784d0b4c8059356dc32b58f8e
C#
iNeverSleeeeep/NPOI-For-Unity
/NPOI.SS.Util/SSCellRange.cs
2.859375
3
using NPOI.SS.UserModel; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; namespace NPOI.SS.Util { /// For POI internal use only /// /// @author Josh Micich public class SSCellRange<K> : ICellRange<K>, IEnumerable<K>, IEnumerable where K : ICell { internal cl...
14d578c45514a152738cf8fdaff7719b7abcb090
C#
rongguoxu/NCrawler
/src/NCrawler.HtmlProcessor/RegexSubstitution.cs
2.8125
3
using System; using System.Text.RegularExpressions; using NCrawler.HtmlProcessor.Interfaces; namespace NCrawler.HtmlProcessor { public class RegexSubstitution : ISubstitution { private readonly Lazy<Regex> _match; private readonly string _replacement; public RegexSubstitution(Regex match, string replacement...
d950e84a6a235d5289becbdf6704fe263c7a2362
C#
GuzarevichJulia/MPP.Tracer
/TracerLibrary/ThreadInfo.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyTracer { public class ThreadInfo { public Stack<MethodDescriptor> methodStack = new Stack<MethodDescriptor>(); public List<MethodDescriptor> methodList= new List<Meth...
03d8444bb17b9337550f17b9e9196b1f70572687
C#
skotlowski/Learning
/C#/Course/Methods/Methods/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Methods { class Program { static void Main(string[] args) { SayHi("Mike", 32); SayHi("John", 54); SayHi("Jim", 23); Con...
fc45ad1ca4cb194e723a2227870fcf08c80f9e0b
C#
LinaVera/Ejercicios2
/Ejercicios2/1.maximo.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicios2 { class maximo { private static void Main(string[] args) { Console.WriteLine("ingrese numero 1"); int.TryParse(Console.ReadLine(), out int n...
8a92ea12749bfce8a9c106c66ff699555c6ff0ee
C#
Mfeliciano778/holbertonschool-csharp
/0x09-csharp-linear_algebra/33-inverse_2D/33-inverse_2D.cs
3.71875
4
using System; /// <summary> A class containing a public method called Inverse2D </summary> class MatrixMath { /// <summary> To find the inverse of a 2d matrix </summary> /// <param name="matrix">The first matrix</param> /// <returns>inversed matrix, else -1</returns> public static double[,] Inverse2D(...
8f77aa31bb063ae1dc0170f34138d644fbdddb63
C#
milkyway112/izdavanje-automobila
/Projekat/Rezervacija.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace Projekat { [Serializable] class Rezervacija { int idAutomobila; int idKupca; ...
8be66aa925976cbf9ced3727f37eb9005800fc53
C#
craftingcheetah/Inspiration
/Color.cs
2.875
3
using System; public class Color { public string Name; public int Value; public void ChangeRandomValue(int maxValue) { Value = new Random().Next(0, maxValue); } }
e296e068296fcd7baf639c8c5ba77b1347a2f217
C#
rasouza1982/RepositoryPattern
/RepositoryPattern.Infrastructure/IPersistRepository.cs
2.5625
3
using System; using System.Collections.Generic; namespace RepositoryPattern.Infrastructure { public interface IPersistRepository<TEntity> where TEntity : class { void Add(TEntity entity); void Add(IEnumerable<TEntity> items); void Update(TEntity entity); void Delete(TEntity entity); void Delete(IEnumerabl...
12a1ac8a8731cbd9a1e56e07a386ba24f0d7ba02
C#
caoth/BandwidthDelayAlgorithms
/SRAS/NetworkSimulator/NetworkSimulator/RoutingComponents/CommonAlgorithms/FordFulkerson.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NetworkSimulator.NetworkComponents; namespace NetworkSimulator.RoutingComponents.CommonAlgorithms { class FordFulkerson { private Topology _Topology; private BreadthFirstSearch _BFS; private c...
3ad939513cc42f88f1cda93f60129f2ad9f69fea
C#
Time2Ice/DiplomaSurvive
/Assets/Scripts/DiplomaSurviveDataGenerator/Implementations/ScoreContext.cs
2.578125
3
using DefaultNamespace; using DiplomaSurviveDataGenerator; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace Assets.Scripts.DiplomaSurviveDataGenerator.Implementations { public class ScoreContext : BaseScoreContext ...
9e257a388db28c0115942b2cbc4a55894d4d4398
C#
ifsmetrics-lab/ifsmetrics
/IFSComparer/Measures/XVBSM.cs
2.546875
3
using System; using IFSSharedObjects.Models; using System.Text; using System.Collections.Generic; using System.Linq; namespace IFSComparer.Measures { /// <summary> /// This measure was proposed in: /// /// Loor, M., De Tré, G.: In a Quest for Suitable Similarity Measures to Compare Experience-Based Evaluat...
a2149deb1d9b2ce0d31c8b0b461795d905167145
C#
alexb5dh/NoCMD
/NoCMD/Program.cs
2.609375
3
using System; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Windows.Forms; using NoCMD.Exceptions; namespace NoCMD { internal static class Program { private static void RunWrapper(string commandLine) { Process.Start(new ProcessStart...
946e9051a3bcfc4686b26b9d2ab935cfa9859fcb
C#
ninjapretzel/Spring2020LabExamples
/Assets/Lab6/V2Scripts/QuickAndDirtyWeaponSwitch.cs
2.609375
3
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace Lab6 { public class QuickAndDirtyWeaponSwitch : MonoBehaviour { public AWeapon[] weapons; PlayerControl player; void Update() { if (player == null) { player = GetComponent<PlayerControl>(); } if (Inpu...
eb8998dac12b81847da6a9e17027a0c759dcffb4
C#
shendongnian/download4
/first_version_download2/411319-35958688-113059425-4.cs
2.65625
3
var propName = "CSName"; var keyValues = Management .GetInstances() .Cast<ManagementObject>() .Select(obj => new { name = propName, value = obj[propName] }) .Where(obj => obj.value != null); var result = St...
7002ccb9b8e315e8c58d920d1f601c02ec32b3c2
C#
itran/AIMS
/LegacyVS2005/AIMSClient/BLL/User.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; using AIMS.Common; using AIMS.DAL; using System.Data; namespace AIMS.BLL { public class User : BaseObject { #region "Private Declarations" private string _userName =""; private string _userFullName = ""; private...
213ac36f7b81aef7babe5528db45441a977029a2
C#
dgg/nmoneys
/src/NMoneys.Tools/CompareIso/IsoCurrenciesCollection.cs
3.125
3
using System.Collections; using System.Collections.Generic; namespace NMoneys.Tools.CompareIso { // some countries share the same currency, so we normalize them internal class IsoCurrenciesCollection : IReadOnlyCollection<IsoCurrency> { private readonly Dictionary<short, IsoCurrency> _currencies; public IsoCu...
4d9bb570f71c5a036af6a580a2b2f8e4fd0ef171
C#
josuestaun/FCTs_Josue
/CapaDatos/GestionDatos.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Entidades; namespace CapaDatos { public class GestionDatos { BdFCTsEntities bdFCTsEntities = new BdFCTsEntities(); public GestionDatos() { } //Dev...
37735d632448450be122ffd14ee8da1e91d8e28e
C#
mattboschetti/xamarin-mobile-playground
/SampleAsyncTestingApp/SampleAsyncTestingApp/SampleAsyncTestingAppViewController.cs
2.75
3
using System; using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; using System.Threading.Tasks; namespace SampleAsyncTestingApp { public partial class SampleAsyncTestingAppViewController : UIViewController { public SampleAsyncTestingAppViewController () : base ("SampleAsyncTestingAppViewContro...
3fe012407d2b3028e2fa9a0d9ed739f1eabe3bee
C#
DenBread/metanit
/Den.Metanit/Den.Metanit/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Den.Metanit { class Program { static void Main(string[] args) { int a = 5; Console.WriteLine($"Начальное значение переменной a = {a}"); ...
4fc9ac142a59b3db92ce536c67726c0b1a9863a4
C#
Knagis/CommonMarkSharp
/CommonMarkSharp/InlineParsers/CommonMarkInlineParser.cs
2.78125
3
using CommonMarkSharp.Inlines; using System; namespace CommonMarkSharp.InlineParsers { public class CommonMarkInlineParser : IInlineParser<Inline> { public CommonMarkInlineParser(Parsers parsers) { Parsers = parsers; OthersParser = new Lazy<IInlineParser<Inlin...
e9b5cb6f3a0fedf4418e232051e158bba5fcf2e8
C#
showtroylove/IGS
/DevExpress.HybridApp.Wpf/Common/DataModel/WebApi/WebApiRepository.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Linq; using System.Linq.Expressions; using DevExpress.DevAV.Common.DataModel.EntityFramework; using DevExpress.DevAV.Common.Utils; using DevExpress.DevAV.DevAVDbDataModel; namespace DevExpress.DevAV.Common.DataModel....
c3cff979741d40bed933da876008ac30c0a4edaa
C#
ripa-alexandr/worker
/Worker.Web/ViewModel/Employee/EmployeeViewModel.cs
2.609375
3
using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Web.Mvc; namespace Worker.Web.ViewModel.Employee { public class EmployeeViewModel { public int? Id { get; set; } [DisplayName("Имя")] [Required(ErrorMessage = "Поле...
e8ec157d7eeb6f7893e16e3b9f294ff99d25af9f
C#
stackthatcode/ProfitWise
/Push.Shopify/Model/Shop.cs
2.5625
3
using Newtonsoft.Json; namespace Push.Shopify.Model { public class Shop { public long Id { get; set; } public string Currency { get; set; } public string TimeZone { get; set; } public string TimeZoneIana { get; set; } public string Domain { get; set; } public st...
e561e0b456b849c1dedc3625bb5c7a6e66e3b436
C#
SimeonStoykov/SoftUni
/C# basics/BGCoder/Telerik 28 December 2012/TelerikLogo/TelerikLogo.cs
3.515625
4
using System; class TelerikLogo { static void Main() { int n = int.Parse(Console.ReadLine()); int heightAndWidth = (n * 3) - 2; int leftLStar = (n / 2) + 1; int leftRStar = (n / 2) + 1; int rightLStar = heightAndWidth - (n / 2); int rightRStar = heightAndWidth -...
2f1a0343fcedfd971d284635209f97585d8538e7
C#
Flydiverny/da148a_csharp
/ConsoleApplication1/ConsoleApplication1/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.Write(new Program().GenerateHTMLRecurrence(7)); Console.ReadLine...