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
18d80a0c53a2724e64f82e4718c0a303785e07ae
C#
joesrinadh/AssetManagement
/Repository/RepositoryBase.cs
3.140625
3
using Infrastructure.Interface.DataAccess; using Microsoft.EntityFrameworkCore; using Repository.Models; namespace Repository { public class RepositoryBase<TEntity> : IRepositoryBase<TEntity> where TEntity : class { private ASMContext _context; public RepositoryBase(ASMContext context) ...
1251917b9a4df30f4bb75d57076a3e0f0bfd9a71
C#
berndoJ/DungeonRPG
/DungeonRPG/Assets/Script/Event/InventoryChangedEventArgs.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DungeonRPG.ItemContainer; namespace DungeonRPG.Event { /// <summary> /// Event argument class for the InventoryChanged event. /// </summary> /// <remarks> /// Copyright (c) 2018 by Johannes Berndorfer (ber...
df0c345269aeb44550f0557e57421fa604728e57
C#
natewaddoups/SSM
/SsmProtocol/Core/LogFilters.cs
2.71875
3
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Nate Waddoups // LogFilters.cs /////////////////////////////////////////////////////////////////////////////// using System; using System.IO; using System.Collections.Generic; using System.Diagnostics; using System.Text; n...
e2a2872c9f43ba96d9e805716ae19de569edd8a2
C#
PacktPublishing/Unity-5.x-Animation-Cookbook
/Assets/Chapter 07/Recipe 04/Scripts/Tired.cs
2.71875
3
using UnityEngine; using System.Collections; public class Tired : MonoBehaviour { public float tiredLerpSpeed = 1f; Animator anim; float weightTarget = 0f; float weight = 0f; // Use this for initialization void Start () { anim = GetComponent<Animator>(); } // Update is called once per f...
b36792a36a726b4b3fec07f59660895a50294626
C#
Sprunth/Cubo-Cubo
/Cubo Cubo/GameScreen.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Graphics; using SFML.Window; namespace Cubo_Cubo { class GameScreen : Drawable { private readonly RenderTexture _targetTex; private readonly Sprite _target; p...
8a9a580ce519ef14d19b25a4cb54556af7eec563
C#
azirkande/MicroBatchingLibraryDemo
/BatchingLib.Tests/BatchGeneratorTest.cs
2.5625
3
using BatchGenerator; using BatchingLibrary.Core.Database; using BatchingLibrary.Core.Database.Entities; using System; using System.Linq; using Xunit; namespace BatchingLib.Tests { public class BatchGeneratorTest { private IDbContext _dbContext; private readonly IBatchService _batcService; ...
825a14931e5f8656090e7dd6dfc3606253e469e5
C#
Manicreator/VolumeOptions
/Assets/Scripts/SoundUtil.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UniRx; /// <summary> /// サウンドユーティリティ /// </summary> public static class SoundUtil { /// <summary> /// ボリュームをデシベルに変換して取得 /// </summary> /// <param name="vol">ボリューム (0.0-1.0)</param> /// <returns>ボリューム [dB]</returns...
2c55b854369da0060eaaa7220271b39ae931f707
C#
NobuyukiInoue/LeetCode
/Problems/0100_0199/0101_Symmetric_Tree/Project_CS/Symmetric_Tree.cs
3.34375
3
using System; public class Solution { public bool isSymmetric(TreeNode root) { if (root == null) return true; return checkSymmetric(root.left, root.right); } public bool checkSymmetric(TreeNode temp1, TreeNode temp2) { if (temp1 == null && temp2 == null) ...
e468e7d99b1e0d0cfecd5a80e08f28b2ea9fce12
C#
interesaaat/TorchSharp
/src/TorchSharp/NN/Init.cs
2.625
3
using System; using System.Runtime.InteropServices; using TorchSharp.Tensor; namespace TorchSharp.NN { public static class Init { [DllImport("LibTorchSharp")] private static extern void THSNN_initUniform(IntPtr src, double low, double high); public static void Uniform(TorchTensor tens...
0a041de69aad0c2a2e3ff5498b143d90996c6ee3
C#
MarkKhromov/SharpDX-Examples
/Examples/AlphaMapping/TextureArray.cs
2.6875
3
using System.Linq; using SharpDX.Direct3D11; using SharpDXExamples.Examples.Core.Helpers; namespace SharpDXExamples.Examples.AlphaMapping { public class TextureArray { public ShaderResourceView[] ObjectTextures { get; private set; } public bool Initialize(Device device, string[] fileNames) { ...
7cd46e7f952b38c3cd8521d33208b916f3444008
C#
BlauFx/RhythmBox
/RhythmBox/Score/Score.cs
2.71875
3
using RhythmBox.Window.Animation; namespace RhythmBox.Window.Score { public static class Score { public static int ScoreInt { get; private set; } public static void ResetScore() => ScoreInt = 0; public static void CalculateScore(int combo, Hit currentHit) { int ad...
bf9a32dd0463b4768a9159dfb6bd69b140d29692
C#
Planke85/CSharp
/Class01/BonusHomework/Program.cs
3.03125
3
using System; namespace BonusHomework { class Program { static void Main(string[] args) { Console.BackgroundColor = ConsoleColor.DarkMagenta; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" * "); Console.ForegroundColor = Co...
deae46ee08d6de03645aa12e24775ff796b80b20
C#
DomhnallBoyle/agile_project
/CSC3045-CS2-Frontend/CSC3045-CS2/Models/Task.cs
2.546875
3
using RestSharp.Deserializers; using System.ComponentModel; using System.Runtime.CompilerServices; namespace CSC3045_CS2.Models { public class Task : INotifyPropertyChanged { [DeserializeAs(Name = "id")] public long Id { get; set; } [DeserializeAs(Name = "name")] public string...
0c832ff1cfefedf61ad98ef97e89503c359cad15
C#
easywaldo/SampleTDD
/test-lib/Test1.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoFixture.NUnit3; using NUnit.Framework; namespace SampleTest { public class User { public User(int id) { if (id < 1) throw new ArgumentOutOfRa...
a1773fb598fa40cfc3d6ef0e7d394ef33471aadd
C#
rynnwang/CommonSolution
/Development/Beyova.Common/Model/ApiTracking/Entity/DebugInfo.cs
2.875
3
using System.Net; using System.Text; namespace Beyova.Diagnostic { /// <summary> /// /// </summary> public class DebugInfo { /// <summary> /// The builder /// </summary> protected StringBuilder builder = new StringBuilder(); /// <summary> /// Gets o...
5c4983f84baf2ea24e20d06cf5d6b76af33776a8
C#
Roadrunner67/nf-debugger
/source/nanoFramework.Tools.DebugLibrary.Shared/Extensions/DebuggerExtensions.cs
2.71875
3
// // Copyright (c) 2017 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // using System.Threading.Tasks; namespace nanoFramework.Tools.Debugger.Extensions { public static class DebuggerExtensions { /// <summary> /// Check if device...
0fac1e48ce02df12355c8af7567af293b210055a
C#
dnsdurham/ArchitectureExamples
/Switchboard/ABC.DataContracts/Customer.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC.DataContracts { public class Customer { public string First { get; set; } public string Last { get; set; } public override string ToString() { ...
48ffe8645a1ae2dd8b309f4332f56726ff2b4632
C#
AlexanderWatsonAR/etherscape--Published-
/Assets/Scripts/PlaySound.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // Used for animation events. public class PlaySound : MonoBehaviour { public AudioClip nextClip; public AudioClip[] extras; public GameObject otherAudioSource; AudioSource audio; public void Start() { au...
890f2b4957b0d2b41b1dc7f88e865e411f1bc1e2
C#
DanielWeidinger/Schaetzerei
/Schaetzerei.Persistence/UnitOfWork.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Schaetzerei.Core.Contracts; using Schaetzerei.Core.Contracts.Repositories; using Schaetzerei.Persistence.Repository...
97a9c07d6c1b7dfa0aa093e12bf5d9e6f80c7082
C#
Fao2212/Caso2
/Model/BallBuilder.cs
2.859375
3
using Caso2.model; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Caso2.Model { class BallBuilder : IStrategy/*, IBuilder<List<Ball>>*/ { List<Ball> listBalls; public List<Ball> generate(int nu...
9d32531e1a512014115db3a2d7ca2abe196c0849
C#
JoshuaTerry/NextGen
/DDI/DDI.Shared.Test/Extensions/MemberInfoExtensionsTests.cs
2.65625
3
using System; using System.ComponentModel; using System.Linq; using System.Reflection; using DDI.Shared.Enums; using DDI.Shared.Helpers; using Microsoft.VisualStudio.TestTools.UnitTesting; using DDI.Shared.Extensions; namespace DDI.Shared.Test.Extensions { [TestClass] public class MemberInfoExtensionsTests ...
41b54363074e2941e7e9cdb48fcce7a2c245e5f9
C#
brunomlopes/ILoveLucene
/src/Tests/CalculatorTests.cs
2.703125
3
using Core.Abstractions; using Core.Extensions; using Plugins; using Xunit; namespace Tests { public class CalculatorTests { [Fact] public void CanCalculateSimpleExpressions() { var action = new Calculator(); action.ActOn(new TextItem("21 + 21")); ...
c42c720693e86b8202d5caf7add65c6af8e938ab
C#
teslax2/ZeusAssistant
/ZeusAssistant/Model/Messages/MessageAlarm.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZeusAssistant.Model.Messages { public class MessageAlarm : Message { public DateTime Time { get; set; } public double TimeConfidence { get; set; } public int Da...
ea0eab6bd69a0992359332ea4337565301d3e112
C#
tangxuehua/enode
/src/ENode/Infrastructure/Impl/DefaultTypeNameProvider.cs
2.640625
3
using System; using System.Collections.Concurrent; using System.Reflection; namespace ENode.Infrastructure.Impl { public class DefaultTypeNameProvider : ITypeNameProvider, IAssemblyInitializer { private Assembly[] _asemblies; private readonly ConcurrentDictionary<string, Type> _dict =...
78c097d29f1d38a81fa4090646df97b22f4334b0
C#
mdathaulla/C-Sharp-Advanced
/Garbage_Collector/Garbage_Collector/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GarbageCollector { class TestClassForGC { ~TestClassForGC() { for (int i = 0; i < 50; i++) { Console.Write("1"); } ...
01dabcbe7c935514dfaaecd71846e5c9893f1b28
C#
Flydiverny/da148a_csharp
/Assignment2/TrashManager/WasteSchedule.cs
3.3125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="WasteSchedule.cs" company="Markus Maga"> // Markus Maga // </copyright> // <summary> // Defines the WasteSchedule type. // </summary> // --------------------------------------...
e6843f419b59c4df8a92cd542bda9a76719e209f
C#
GeorgiTsekov/CSharpFundamentalsMay2019
/FunctionalProgrammingExe/P08CustomComparator/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; namespace P09ListOfPredicates { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int[] numbers = Console.ReadLine() .Split(" ", StringSplitOp...
8dba1079d2269f6f90390eeaed1403f0a2569533
C#
Borayvor/TelerikAcademy_2015_2016
/H08_High_Quality_Code/S19_DI_And_IoC_ContainersHomework/Dealership/Engine/Commands/Command.cs
2.625
3
namespace Dealership.Engine.Commands { using System.Collections.Generic; using System.Linq; using Common; using Contracts; using Contracts.Commands; using Contracts.Factories; public abstract class Command : ICommand { private ICommand Successor { get; set; } public vo...
28ac73ec55c1e6d2126935e21527da5ae16dffd8
C#
cleberspirlandeli/Arquitetura-de-Software
/OOP/03 - InterfaceVsImplementacao/Cases.cs
2.984375
3
namespace OOP { public interface IRepositorio { void Adicionar(); } public class Repositorio : IRepositorio { //public Repositorio(int a) //{ //} public void Adicionar() { // Adiciona item } } public class R...
d57b3ae7e48b9003743db1dd38f9434c83636968
C#
marklauter/graph
/src/Graph.Indexes/FileAdjacencyListGuid.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Graphs.Indexes { public abstract class FileAdjacencyListGuid : AdjacencyIndex<Guid> { public string Path { get; } private int size; public override int Size => this.size; pro...
297ad2510fcd1e9f2d945b769246afbdccc9f061
C#
Syrrianyl/EDDI-French
/DataDefinitions/TradeRating.cs
2.78125
3
using System.Collections.Generic; using System.Linq; using Utilities; namespace EddiDataDefinitions { /// <summary> /// Trade ratings /// </summary> public class TradeRating { private static readonly List<TradeRating> RATINGS = new List<TradeRating>(); public string edname { get; ...
4cdf802ff054e530ce8693aac3954b7f73ab04b4
C#
DrFingerClawz/OpenVP
/trunk/OpenVP/OpenVP.Metadata/.svn/text-base/Event.cs.svn-base
2.59375
3
// Event.cs created with MonoDevelop // User: chris at 3:08 PM 11/3/2008 // // To change standard headers go to Edit->Preferences->Coding->Standard Headers // using System; using System.Reflection; using OpenVP.Metadata.Loose; namespace OpenVP.Metadata { public class Event : MetadataObject { [LooseSo...
aef93d6b320669eb043dc4dbecd6fcfdf0a3da53
C#
CtrlFnAlt/Corso10157
/Models/ViewModel/LessonViewModel.cs
2.765625
3
using System; using System.Data; namespace Corso10157.Models.ViewModel { public class LessonViewModel { public int Id { get; set; } public int IdCourse { get; set; } public string Titolo { get; set; } public TimeSpan Durata { get; set; } public static LessonViewModel F...
f9bda1a8ffcd9cbd63bc7153ec2bc2a66349381d
C#
niyifalomo/mi-share-app
/Mi-Share.Service/UserService.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mi_Share.Model; using Mi_Share.Data.Infrastructure; using Mi_Share.Data.Repositories; namespace Mi_Share.Service { public interface IUserService { bool CreateUser(User user); U...
e783d63a524706de25fac1fa2e9b12ae6b245595
C#
dhirutech/pragmatic-cqrs-with-asp-net-core-for-spas
/4-cqrs-with-mediatr-and-odata/PersonsController.cs
2.703125
3
using MediatR; using Microsoft.AspNet.OData; using System; using System.Linq; namespace Sample { public class DeletePerson : IRequest { /// <summary> /// Id of the person /// </summary> public Guid Id { get; set; } } public class PersonsController : ODataController ...
addf91e1b678e5714b92d4e3b8709106d24ee291
C#
Mdejonge/GildtAPI
/Model/Tag.cs
2.515625
3
using Newtonsoft.Json; namespace GildtAPI.Model { public class Tag { [JsonProperty] public int Id { get; set; } [JsonProperty] public string Name { get; set; } public Tag(int id, string name) { Id = id; Name = name; } } }
4aedf530c8f42bb48b59a4f82f3ec7bb639c77a9
C#
sharkbound/csharp-projects
/CursorGoto/CursorGoto/Program.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; using System.Windows.Forms; using System.Drawing; using System.Threading; namespace csharp { class Program { static void Main(string[] args) { Co...
e5a6fb8bd7bd0ab1326018b6177556a3518bd476
C#
alesegdia/cube-wars
/Assets/Scripts/Tests/UtilsTest.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace CubeWars { namespace Tests { public class UtilsTest { [Test] public void ManhattanDistanceOrderTest() { ...
1559a0353d675f5e6d7832ce65ad421cb8a30d08
C#
zaz8065/worlds-best-bars-new
/WorldsBestBars.Services/ReviewService.cs
2.625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using WorldsBestBars.Services.Models; namespace WorldsBestBars.Services { public class ReviewService : BaseService { #region Public Methods /// <summary> /// Gets the pending moderation. ...
12806c01980c733a74fff4a1c4c410d1b1b0cc04
C#
Andranik93/Chat
/Client/Client.cs
2.90625
3
using System; using System.Net; using System.Text; using System.Threading; using System.Net.Sockets; using System.Windows.Forms; namespace Client { public partial class Client : Form { TcpClient _client; NetworkStream _nwStream; Thread _thread; Boolean _listen = false; ...
b0ffc66983dd85326b54d1b6f2a2b625f76b218f
C#
danieleli/Swagger.Net
/Swagger.Net._Test/Factories/ParameterFactory_Test.cs
2.515625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Web.Http.Description; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using Sample.Mvc4WebApi.Models; using Swagger.Net.Factories; using Swagger.Net.Models; namespace Swagger.Net._Test....
eb80cca19f262201906545d74b60128881cbb7a9
C#
tudor96stani/MSCertCode
/Chapter1/AsyncAwait/Listing1-19.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace AsyncAwait { class Listing1_19 { static void Main(string[] args) { SleepAsyncB(2000).Wait(); } static Task SleepAs...
4dd617d9785c0bf7ffa7efbecffec9affedabdab
C#
anitha510/AlgorithmsCoursera
/TopologicalOrdering/Program.cs
3.96875
4
/* Compute a topological ordering of a given directed acyclic graph (DAG) with 𝑛 vertices and 𝑚 edges. Input Format. A graph is given in the standard format. Constraints. 1 ≤ 𝑛 ≤ 10^5, 0 ≤ 𝑚 ≤ 10^5. The given graph is guaranteed to be acyclic. Output Format. Output any topological ordering of its vertices. (Many D...
7fdf70e2f8c2feec525bd0bdd61dd4b4800d5b13
C#
CogShift/RecurringInterval
/RecurringInterval/BiMonthlyInterval.cs
3.25
3
using System; namespace RecurringInterval { internal class BiMonthlyInterval : Interval { /**** WARNING ** * We are making assumptions here. * if the date is 1, move to 16th * if the date is 2-12, add 15 * if the date is 13-15 move to last day ...
6f398a561c5b463697adc5fade96d4003cd9a29f
C#
galaxymacos/LeetCodeGrind
/Algorithm/BinaryTree.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.Remoting.Messaging; namespace Algorithm { public class BinaryTree { public class TreeNode { public int val; public TreeNode left; pu...
4cb94acfcbc129bfb8428487ec7d69250261e4f5
C#
orangutanboy/Brainfuck-Interpreter
/BrainfuckInterpreter/Program.cs
2.984375
3
using System; using System.Diagnostics; using System.Text; using System.Windows.Forms; namespace BrainfuckInterpreter { class Program { private static string _programInstructions; [STAThread] static void Main(string[] args) { Console.InputEncoding = n...
810e67089fb36e8a551306837e351a5bce8e5510
C#
amandania/Senior-Project
/Server/Assets/Engine/Net/Packet/OutgoingPackets/SendMonsterSpawn.cs
2.640625
3
using DotNetty.Buffers; using System; using System.Text; using UnityEngine; /// <summary> /// Anytime the server wants to spawn a monster it will send this packet to all clients. /// <see cref="World.LoadMonsters"/> for call refrence /// </summary> public class SendMonsterSpawn : IOutGoingPackets { public OutGoin...
187b39a3aab19bc4225600b90c5a2a066a8d76cb
C#
dingxinliang/TestHPYL
/Himall.Core/Helper/ObjectHelper.cs
2.734375
3
 namespace Himall.Core.Helper { public static class ObjectHelper { /// <summary> /// 深复制 /// </summary> /// <param name="obj">待复制的对象</param> /// <returns></returns> public static object DeepColne(object obj) { var objJson = Newtonsoft.Json.Jso...
d7765e3191b527fa3e90983b2dd9f8a4f3c8a6f5
C#
chenbojian/Axe.SimpleHttpMock
/src/Axe.SimpleHttpMock/IContentDeserializer.cs
2.515625
3
using System; using System.Net.Http; using System.Threading.Tasks; namespace Axe.SimpleHttpMock { /// <summary> /// Represents an HTTP content deserializer. /// </summary> public interface IContentDeserializer { /// <summary> /// Deserialize http content to an object. /// <...
36dce0b77057769b89d6fc6a0856ef86f3ad16e1
C#
qipa/SOALog
/SOALog/FileAppender.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Collections.Concurrent; using System.Threading; using System.IO; namespace SOALog { class FileAppender : ICommonAppender { private static Stre...
e540b239f7e3bba45475662a124458e61f7ebc9e
C#
mrskme/EdabitTest
/EdabitTest/Medium/FindTheBomb.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; namespace EdabitTest.Medium { class FindTheBomb { public static string FindBomb(string sentence) => sentence.Contains("bomb") ? "Duck!!!" : "There is no bomb, relax."; } }
f81e52d32bddf979d2ddca2976f346997d85d063
C#
pushqrdx/Xamarine
/Xamarine/Xamarine/Hosting/Swan/Reflection/ExtendedTypeInfo.cs
2.90625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Reflection; namespace Xamarine.Hosting.Swan.Reflection { /// <summary> /// Provides extended information about a type. /// This class is mainly used to define se...
444ef1791d69c9ef62c7dbff1a8b43124b06275c
C#
TikTikys/Tasks
/10 - 2 - TaskEquals .Net Core/TaskEquals/EqualsOrGetHashCode.cs
3.734375
4
using System; namespace TaskEquals { class EqualsOrGetHashCode { public static void Main() { Console.WriteLine("\nЗадача: Реализовать свой класс Person(ФИО, Дата рождения, Место рождения, Номер паспорта), переопределить в нём методы. GetHashCode и Equals\n"); // Создаем...
a61e95f62b3ea624bdba30decc272bdb13bc8c22
C#
webgzf/RX-Explorer
/RX_Explorer/Class/IncrementalLoadingCollection.cs
2.546875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using System.Threading.Tasks; using Windows.Foundation; using Windows.Storage.Search; using Windows.UI.Xaml.Data; namespace RX_Explorer.Class { /// <summary...
4f591f435c361b25e5cab95c3356dfadbc02781c
C#
n1kr0/ADO_NET
/ADO_NET_user photo/PersonalsApp/Helpers/CompressImage.cs
3.21875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PersonalsApp.Helpers { public static class CompressImage { public static Bitmap CreateImage(Bitmap originalPic, int maxWidth...
fdb4151b85ad67baab53d23b91ed9897b87d8e69
C#
byrkalukasz/Testy_Automatyczne_Praca
/Functions/Autentyfication.cs
2.625
3
using System; using System.IO; namespace Eskok_autoTest { class Autentyfication { public string GetSmsPassword() { string tekst, SMSCode = ""; int index; if (File.Exists("D:\\kopia.txt")) { File.Delete("D:\\kopia.txt"); ...
61bc4b4cb7c5a40d7a241a5e867d241f65be42a5
C#
nizamializadeh/Hospital-Console
/Hospital/Hospital/hekimler.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hospital { class hekimler { public hekimler() { List<string> hekimler = new List<string>(); hekimler.Add("1.Dr. Oktay samilov"); ...
944a005b85c84db97358ebb9b4977d3b4600a39f
C#
AndreyBespamyatnov/Joyenjoy.me
/src/PhotoBooth.Service/Tasks/PrintTask.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using NLog; using PhotoBooth.Models; using PhotoBooth.Service.Helpers; namespace PhotoBooth.Service.Tasks { public class PrintTask { static reado...
0f05f7f9c8cb9fe1e8f7dff40f591e5b5087ce2d
C#
hotn/Vagrant-Tray
/VagrantTray/Model/VagrantInstance.cs
2.640625
3
using System; using System.Text.RegularExpressions; using System.Xml.Serialization; using MikeWaltonWeb.VagrantTray.Business.VagrantExe.Processes; namespace MikeWaltonWeb.VagrantTray.Model { [Serializable] [XmlRoot(IsNullable = false)] public class VagrantInstance : ICloneable<VagrantInstance> { ...
1afdb3fa53dee933626813f70f2dbdf3f30d45f7
C#
sandeepshakya/Inventory
/Inventory/Model/Models/Mapping/ProductLocationMap.cs
2.65625
3
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace Model.Models.Mapping { public class ProductLocationMap : EntityTypeConfiguration<ProductLocation> { public ProductLocationMap() { // Primary Key this.HasKey(t => t....
033517ce60ddfca4b9b544195e0c7b1290a2efe0
C#
Zaikao/TCC-TKP
/Controle.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TrabalhoConclusaoCurso.DAO; namespace TrabalhoConclusaoCurso.Modelo { public class Controle { public bool tem; public String mensagem = ""; public bool...
e5351be55f134049ae6654320e28c7e4eed72181
C#
desairavi1101/Train-Application
/TrainApplicationLibrary/Classes/Reservation.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrainApplicationLibrary.Classes { public class Reservation : IReservation { private static int NextTrainId = 1; private static int NextTicketNo = 1; private Li...
36b02edc4e57abb07fd465222721ea194c5aa825
C#
karthik-palchamy/MeatWallet
/Core/Specifications/BaseSpecification.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace Core.Specifications { public class BaseSpecification<T> : ISpecification<T> { public BaseSpecification() { } //Func<T, bool>---> represents a function that take...
ff7025bd0cbb7631ab2a7db56c44a054afd0d96c
C#
NakovaJ/C-HomeWork
/HeroesJourney/HeroesJoyrneyApp/HeroesJoyrneyApp/HeroesJoyrneyEntities/HeroesJourneyModels/Player.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace HeroesJoyrneyApp.HeroesJoyrneyEntities.HeroesJourneyModels { public class Player { public string Email { get; set; } public string Password { get; set; } public string Name { get; set; } public string...
7997f1ecb65b1d6f35b29a3aa19ef40f0000df2c
C#
marcsicr/littlewizard
/littlewizard/Assets/Scripts/SceneObjs/ItemContainer.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class ItemContainer : MonoBehaviour{ public AudioClip openClip; public static string TAG = "ItemContainer"; protected Animator myAnimator; public Item[] throwItems; private void Awake() { my...
a181674714480e57f0c0d214e7c6dcae73048773
C#
SaturnEclipseUK/DATEXIIToolkitCS
/DATEXIIToolkit/Models/EventDataStore.cs
2.796875
3
using DATEXIIToolkit.Models.DataObjects; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DATEXIIToolkit.Models { /// <summary> /// This data store contains the Event data indexed by event ID. /// </summary> public class EventDataStore : DataStore { ...
ba3cf2b5e3297dd9633a5cda5c0539cfab8b336d
C#
kns98/LL
/lltree/Program.cs
3.03125
3
using System; using System.IO; using System.Reflection; namespace LL { class Program { static void _PrintUsage() { var name = Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().GetModules()[0].Name); Console.Error.WriteLine("Usage: {0} <grammarfile> <inputfile>", name); Console.Error.Writ...
68c7f699824fbecd9a67c56aa955287ca4c35a53
C#
thelinuxlich/artemis_CSharp
/Artemis_XNA_INDEPENDENT/Utils/BagEnumerator.cs
2.5625
3
#region File description // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BagEnumerator.cs" company="GAMADU.COM"> // Copyright 2013 GAMADU.COM. All rights reserved. // // Redistribution and use in source and binary form...
b69395a117c97e146142776d616dcd1e605ff213
C#
OpenDDRmobi/openddr-csharp
/simple/DDR-Simple-API/Exceptions/ValueException.cs
2.59375
3
/** * Copyright (c) 2011-2017 OpenDDR LLC and others. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
b37aa3b8dbbee9ac5a973e4caec0a654d16c4598
C#
JamzZz/Terramon-Source-Code
/Razorwing.Framework/Bindables/NonNullableBindable.cs
2.65625
3
using System; using Razorwing.Framework.Configuration; namespace Razorwing.Framework.Bindables { public class NonNullableBindable<T> : Bindable<T> where T : class { public NonNullableBindable(T defaultValue) { if (defaultValue == null) throw new ArgumentNullE...
5eec43c21ce61a8497d5e80ced4205c9f3d1132a
C#
EricFreeman/TopDownShooter
/Assets/Scripts/Particles/BloodPool.cs
2.65625
3
using UnityEngine; namespace Assets.Scripts.Particles { [RequireComponent(typeof(SpriteRenderer))] public class BloodPool : MonoBehaviour { public float Speed = 3f; private Color _color; private Vector3 _spread; public void Setup(Vector3 spread, Color color) ...
e9ba7abfc48bc6c09d1189fdf261bb99098f41ca
C#
jspencersharpe/Gass-E
/GassE/Model/Event.cs
2.609375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.ComponentModel; using System.Text; using System.Threading.Tasks; namespace GassE.Model { public class Event : INotifyPropertyChanged { public int EventId { get; set; } public ...
3ea5fdb9f8ab350f6530d49a0a4eea4e2eab5386
C#
PlamenTsvetkov/SoftUni-Software-Engineering
/CSharp-Programming-Basics/Exams/e7.Exam22-23August.2020/01.SeriesCalculator/Program.cs
3.515625
4
using System; namespace _01.SeriesCalculator { class Program { static void Main(string[] args) { string nameSerial = Console.ReadLine(); double seasonNum = double.Parse(Console.ReadLine()); double episodsNum = double.Parse(Console.ReadLine()); do...
955e4df4b82c658dd66f1aa0b60bb2d56b8c1372
C#
bramom/Bug.RS
/Polymorphism/OOPAnimals2/Dog.cs
3.359375
3
using System; namespace OOPAnimals2 { public class Dog : Animal { public Dog(string name) : base(name) { } override public void DoWalk() { Console.WriteLine(string.Format("Dog {0} walk", Name)); } override public void DoTalk() ...
e94b94b22d225d3175303a38d3469e2dc5e08714
C#
msarchet/pvc
/Pvc.Core/PvcStream.cs
2.796875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace PvcCore { public class PvcStream : Stream { private readonly Lazy<Stream> stream; /// <summary> /// Arbitrary name f...
5d034613de981a946610a9fd217338d12b4ad9f5
C#
mmgore/SimpleTodoApp
/ToDoApp.Application/Commads/UpdateTodoCommandHandler.cs
2.546875
3
using MediatR; using System; using System.Threading; using System.Threading.Tasks; using TodoApp.Application.Exceptions; using TodoApp.Domain.Entites; using TodoApp.Domain.Interfaces; namespace TodoApp.Application.Commads { public class UpdateTodoCommandHandler : IRequestHandler<UpdateTodoCommand, Unit> { ...
60f361c66da8c9ebd9fb14077b411058650d668b
C#
predator006-P/CS_AdvancedCourse
/NullableTypes/Program.cs
3.21875
3
using System; namespace NullableTypes { class Program { static void Main(string[] args) { int a; bool b = true; DateTime? date1 = new DateTime(2020, 5, 30); DateTime date2 = date1.GetValueOrDefault(); DateTime? date3 = date2; ...
fb8b8e7c9e1556056e49ff9bb8ece9f9e1c4bacc
C#
nathanwoulfe/Umbraco-CMS
/src/Umbraco.Web.Common/ImageProcessors/CropWebProcessor.cs
2.875
3
using System; using System.Collections.Generic; using System.Globalization; using Microsoft.Extensions.Logging; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Processing; using SixLabors.ImageSharp.Web; using SixLabors.ImageSharp.Web.Commands; using SixLabors.ImageSharp.Web.Processors; namespace Umbraco.Cms.We...
1ac5a88c632d703097fdd6fb574bd2c5c5dd5fac
C#
BrunoGoffre/Programacion-II
/Ejercicios/ejercicios 1 - 20/Ejercicio 18/Rectangulo.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Geometria { class Rectangulo { float area = 0; float perimetro = 0; Punto Vertice1; Punto Vertice2; Punto Vertice3; Punto Vertice4; ...
cc7cc0037c61b49d58c95d10369b2c28f3fa7481
C#
DanielN97/SoftUni_Exercises
/Streams, Files and Dictionaries - Exercise/ZipAndExtract/Program.cs
2.71875
3
using System; using System.IO; using System.IO.Compression; class Program { static void Main(string[] args) { string startPath = @"../../../File"; string zipPath = @"../../../zipFile.zip"; string extractPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); ZipFi...
320b2a5e77dfbdaac3de4a58c93c6dd79fa3a8b5
C#
stenli327/TelerikAcademy-
/Programing with C#/C# Fundamentals II/03-Methods/09.SortingArray/SortingArray.cs
4.3125
4
using System; using System.Collections.Generic; /// <summary> /// Write a method that return the maximal element in a portion of array of integers starting at given index. /// Using it write another method that sorts an array in ascending / descending order. /// </summary> class SortingArray { static void Main() ...
1a40404fa6a7c32f6e939a3c88d8d3f4847d98b0
C#
BenjaminLeonhardt/P2PServerUncloudC-
/P2PServerFormsGui/Form1.cs
2.640625
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 System.Net.Sockets; using System.Threading; namespace P2PServerFormsGui { ...
caf06d7de1c6d0cbaa9d0d9aa9d1c47f6a9e27cd
C#
RaduMemetea/CryptoDen
/Algorithms/Hash/SHA.cs
3.375
3
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; namespace Algorithms.Hash { public enum ShaSize { SHA1 = 1, SHA256 = 256, SHA384 = 384, SHA512 = 512 } class SHA { public static String Hash(String input, ...
15018efb9479b6c0ff203e07e4b4d1a375eca76d
C#
WillCorrea/oportunidade
/FeedMinuto/FeedMinuto/Models/FeedNoticias.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; namespace FeedMinuto.Models { public class FeedNoticias { public FeedNoticias() { this.ListaFeed = new List<DadosFeed>(); this.ListaResumo = new Li...
60d30d2ac431a6f6cf4f5cdb16feb7a3fdda4755
C#
Gorbachevaa/TAT_tasks
/Dev-7/Builder.cs
3.921875
4
using System; namespace Dev_7 { public enum TriangleType { Equaliteral, Isosceles, Simple } /// <summary> /// Class build triangle according to rules. e.g. /// If the sides are equal builder creates Equaliteral triangle. /// </summary> public class Builder ...
ae43e25346feac2676ba8d49966244110b6e2207
C#
FahimFBA/csharp-crash-course
/MoreIfStatements/MoreIfStatements/Program.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MoreIfStatements { class Program { static void Main(string[] args) { Console.WriteLine(MaxNum(10, 100)); // passing two values to the method named MaxNum ...
1a9db5cbdd0cc60c67e264dc95552adb1259c4f5
C#
imdmahajankanika/DesignPatterns
/MapReduce/MapReduce/main.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace MapReduce { public class MainProgram { public static void Main(string[] args) { int size = 5; // Creating a matrix of r...
c16b9654fe97e0028f867d2eef033b2734877b85
C#
romeroej2/ExBuddy
/ExBuddy/Logging/IGathererLogger.cs
2.515625
3
namespace ExBuddy.Logging { internal interface IGathererLogger { /// <summary> /// Logs when there is not enough time to begin a gather /// </summary> void GatheringNotEnoughTime(); /// <summary> /// Logs when the node is gone /// </summary> void...
75f849f65ac1a87b3ee06e381a9933a359ad51d7
C#
leonnybg/CSharp-ProgrammingFundamentals
/L11 Data Types and Variables ex1/13. Vowel or Digit/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _13.Vowel_or_Digit { class Program { static void Main(string[] args) { var input = Console.ReadLine(); if (input=="a"||input=="u"||...
30c8b4bdf2ea2041ed4f554321589abedb2e39be
C#
nahomi16/practica
/Practica01/Practica01/Persona.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practica01 { class Persona { public string nombre = "", apellido = "", color = ""; public int edad = 0; public double peso = 0.0; public void Nacer() ...
2166cc153386fc89a7a9a2d9529111d52d7b60be
C#
phuongkien/SAHULHotelManager
/SAHULHotelManager/DTO/CDepartment.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SAHULHotelManager.DTO { class CDepartment { #region "Attribus" private int id; // mã bộ phận private string name; ...
29359a835fe1808867aaa8657b3c61b0dc171ed7
C#
KeRNeLith/QuikGraph
/src/QuikGraph/Interfaces/Edges/IUndirectedEdge.cs
2.65625
3
namespace QuikGraph { /// <summary> /// Represents an undirected edge. /// </summary> /// <remarks> /// Invariant: source must be less or equal to target (using the default comparer). /// </remarks> /// <typeparam name="TVertex">Vertex type.</typeparam> public interface IUndirectedEdge<...
d05d2fff2b18eaab4abbd01fd01d2054f18a701b
C#
laceywalkerr/TreeHouseC-
/CSharp/MethodReturnValues.cs
4.03125
4
using System; using System.Threading; class Program { static void Ask(string question) { Console.WriteLine(question); string answer = Console.ReadLine(); //Console.Readline will return the users responce when the question is prompted, and then gets assigned to the "answer" variable. ...
af33440893c62bf528fb0fb91157eb52808b9365
C#
killjoyelite/VP-end-of-semester-project
/WindowsService1/Service1.cs
2.609375
3
using System; using System.Management; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using System.IO; using System.Globalization; using System.Threading; namespace WindowsService1 { pu...
943edbb325fea833aa95fd83530099460acd3198
C#
ischool-desktop/K12.Data
/Permrec/ParentRecord.cs
2.71875
3
using System.Xml; namespace K12.Data { /// <summary> /// 家長及監護人資訊 /// </summary> public class ParentRecord { /// <summary> /// 預設建構式 /// </summary> public ParentRecord() { Father = new Father(); Mother = new Mother(); Cust...
78d687bd54e95571cb04755b07c6b9b8a5dcb950
C#
dsheehan23/WindowsFormC--DungeonGame
/Dungeon_Sheehan/Dungeon_Sheehan/Player.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dungeon_Sheehan { public class Player { public Player(string NAME) { this.Name = NAME; this.treasure_list = new List<Treasure>(); } ...
740b16dc13962f2e23357877e592ba12f3b9d3a1
C#
NightOwl888/MvcSiteMapProvider_FluentApiDemo1
/src/MvcSiteMapProvider_FluentApiDemo1/_FluentSiteMapNodeProviders/SemanticSiteMapNodeProviderWithoutDynamicNodeProviders.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using MvcSiteMapProvider; using MvcSiteMapProvider.Builder; using MvcSiteMapProvider.Builder.Fluent; namespace MvcSiteMapProvider_FluentApiDemo1._FluentSiteMapNodeProviders { public class SemanticSiteMapNodeProviderWithoutDynamic...
c97c3e8244bece489d51ca651008bad9d542df80
C#
GoginashviliBidzina/Booth.Management
/Booth.Application/Queries/Product/ProductListingQuery.cs
2.65625
3
using System.Linq; using FluentValidation; using System.Threading.Tasks; using System.Collections.Generic; using FluentValidation.Attributes; using Microsoft.EntityFrameworkCore; using Booth.Application.Infrastructure; using Booth.Domain.ProductManagement.ReadModels; namespace Booth.Application.Queries.Product { ...
d318b70c39a182fde2b8efd1093964fc4af191ce
C#
discord-net/Discord.Net
/src/Discord.Net.Core/Entities/Activities/SpotifyGame.cs
2.9375
3
using System; using System.Collections.Generic; using System.Diagnostics; namespace Discord { /// <summary> /// A user's activity for listening to a song on Spotify. /// </summary> [DebuggerDisplay(@"{DebuggerDisplay,nq}")] public class SpotifyGame : Game { /// <summary> ///...
cee7a7eef1a23ca5d3aabc84b13f42d696d67d26
C#
vsk1705/Personal-Projects
/Sudoku Solver .NET Console Application/SudokuSolverApp/Strategies/SimpleMarkUpStrategy.cs
3.5
4
using SudokuSolverApp.Data; using System; using System.Linq; namespace SudokuSolverApp.Strategies { class SimpleMarkUpStrategy : IStrategy { private readonly SudokuMapper _sudokuMapper; public SimpleMarkUpStrategy(SudokuMapper sudokuMapper) { this._sudokuMapper = sudokuMapp...