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
48dc004d3fdb938e95f656b9deb400fb604b2aa6
C#
SolidSquib/fighter
/Assets/Scripts/Utility/GameplayStatics.cs
2.984375
3
using UnityEngine; namespace Fighter { public static class GameplayStatics { /* This accounts for perspective camera projections and ensures that vertical joystick movement always * moves the character directly forwards and backwards instead of being influenced by the camera's * pers...
ce17af83754ed49ee32071c6b5168d264a53e3aa
C#
johannprell/FivePrototypes
/01_AugustPrototype/Assets/Scripts/Pooling/ParticlesPool.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Domination { public class ParticlesPool : MonoBehaviour { /* --- MEMBER VARIABLES --- */ [SerializeField] private GameObject _particleObj; [SerializeField] private int _instancesInPool; [SerializeField] private i...
baf991549567e132f65c7d7fd0002c53f0d2c081
C#
adina-blanaru/AutomationPractice
/AutomationPractice.PageObjects/PageObjects/BasePage.cs
3.28125
3
using OpenQA.Selenium; using OpenQA.Selenium.Interactions; using System; namespace AutomationPractice.PageObjects.PageObjects { public static class BasePage { public static void HoverOver(IWebDriver driver, IWebElement element) { Actions action = new Actions(driver); ac...
db4e6b35b8ee983e59c833517edd7ce9e0bdb2bb
C#
radtek/Checkmarx_Query
/Objc/Cx/General/Find_Downloaded_Data.cs
2.515625
3
// Find_Downloaded_Data // ---------------------------------------------- // This query finds all url strings that contain http scheme (http or https according to parameter), as well as all // NSData objects that were retrieved from these http urls via connection delegates. if (param.Length > 0) { CxList http =...
0329a09a0f26cdeaf8a5bb1f641f6551e42fd9ce
C#
AntoniaChavdarova/EasyTravel
/Services/EasyTravel.Services.Data/BookingsService.cs
2.765625
3
namespace EasyTravel.Services.Data { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EasyTravel.Data.Common.Repositories; using EasyTravel.Data.Models; using EasyTravel.Services.Mapping; using Microsoft.EntityFrameworkCore; pu...
8d7b7f42aad9834a34e8f0273da6adeef5d0947e
C#
TKseniya/Game
/Lab_game/Core.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Lab_game { public static class Core { static Core() { Factory.CreateRandomArmy(0); Factory.CreateRandomArmy(1); } public static void Start() { ...
12ae58379e48d48614df88cc6d3267e2175fa4c4
C#
tanishi109/try-unity
/Project Tanuki/Assets/Scripts/PlayerModel.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerModel : MonoBehaviour { public float[] legStates; private float maxLegState = 5.0f; private float minLegState = 0.0f; private float jumpDuration = 0.5f; private float legGrowSpeed = 0.5f; private float legShrinkSp...
23d24dc3780ffd1fb5906a5d454f71e5f7654287
C#
jmmccota/EFCore
/EfCore/Controllers/TesteController.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Persistence.Data; using Persistence.Models; using Persistence.Services; namespace EfCore.Controllers { [Route("api/[controller]/[action]")] public class TesteController : Cont...
194f57397506acf5f3a8d967f34c50a54db135bf
C#
Anton2725/Unit14_3
/Contact.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Unit14_3 { public class Contact // модель класса { public Contact(string name, string lastName, long phoneNumber, String email) // метод-конструктор { Name ...
268a191052081a6c3f7218b9550fa5f7fc822875
C#
FremyXS/lab04
/lab04.cs
3.21875
3
using System; using System.Collections.Generic; using System.Net.Http.Headers; using System.Runtime.InteropServices; using System.Security; namespace lab04 { class Program { static void Main(string[] args) { Console.WriteLine("Введите текст"); string text = Console.Read...
839b8e2f2b1d4b143d48a653b922251059693109
C#
SweDark/Library
/Library.Infrastructure/Services/BookService.cs
3.09375
3
using Library.Application.Interfaces; using Library.Domain; using Library.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace Library.Infrastructure.Services { public class BookService : IBookService { private re...
f00a8164de60952a1828018f5b526c8196af8be9
C#
tcm/csharp_snip
/day18/DataTableDemo.cs
3.203125
3
using System; using System.Data; // Compilieren mit: // mcs DataTableDemo.cs -r:System.Data.dll -r:System.Data.DataSetExtensions.dll class DataTableDemo { static void Main () { // DataTable holen. DataTable data = GetTable (); // Schleife um alle Datensätze zurückzugeben. foreach (DataRow row in data.Rows...
2f8636e2879f05a0d60c63dea5fe9c03ec633f4c
C#
karpediemnow/mysql-class-generator
/MysqlClassGenerator/ClassModellator/XmlDocumentatiionModellator.cs
2.84375
3
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace ClassModellator { /// <summary> /// http://msdn.microsoft.com/it-it/library/5ast78ax(VS.80).aspx /// </summary> public class XmlDocumentationModellator { /* ...
c0ad2c9af38a93c166a13f998a54eada3c88f2a8
C#
benjamin-hodgson/Sawmill
/Sawmill/Rewriter.RewriteIter.cs
3.328125
3
using System; using System.Threading.Tasks; namespace Sawmill; public static partial class Rewriter { /// <summary> /// Rebuild a tree by repeatedly applying a transformation function to every node in the tree, /// until a fixed point is reached. <paramref name="transformer" /> should always eventually re...
7c09a4822a3fe50d2f7f3611e64e7d30e44613ec
C#
irenecho75/menu_hub
/Assets/Scripts/UDPClient.cs
2.875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Linq; using System.Net.NetworkInformation; public class UDPClient : MonoBehaviour { // Start is called before the first frame update void Start...
2b6e30e6d35212edb6f100ce8108670698981bec
C#
LuGeorgiev/CSharpSelfLearning
/SoftUniCSAdvanced/ObJCommunicationEvents/P3_DependencyInversion/StartUp.cs
3.359375
3
using P3_DependencyInversion; using P3_DependencyInversion.Strategies; using P3_DependencyInversion.Contracts; using System; namespace P3_DependencyInversion { class StartUp { static void Main(string[] args) { PrimitiveCalculator calculator = new PrimitiveCalculator(new AdditionStr...
4387b4217492bc31f8c04b909cd2a80baffa8fb7
C#
iby-dev/Experimentation-API
/src/Services/Experimentation/Experimentation.Api/Controllers/FeaturesController.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using Experimentation.Domain.Entities; using Experimentation.Domain.Exceptions; using Experimentation.Logic.Directors; using Experimentation.Logic.Mapper; using Experimentation.Logic.ViewModels; u...
5dcfdf463fe576961b0f9ad0e3bf77a0103edd00
C#
AndriiTomashevsky/ModelBinding
/MvcModels/Controllers/HomeController.cs
2.65625
3
using Microsoft.AspNetCore.Mvc; using MvcModels.Models; using System.Collections.Generic; namespace MvcModels.Controllers { public class HomeController : Controller { private IRepository repository; public HomeController(IRepository repo) { repository = repo; } ...
d9210e477e49b6f9aa954371d34539e47d25f2b1
C#
RedCaplan/.Net_Elementary_Tasks
/Task1/Task1/Models/BoardSize.cs
2.59375
3
namespace Task1.Models { public struct BoardSize { public readonly int Height; public readonly int Width; public BoardSize(int height, int width) { Height = height; Width = width; } } }
671444ba65b7be090dad0e967fd589d4ed547fb7
C#
Fzzy2j/KeyboardSplitterXbox
/XInputWrapper/XinputController.cs
2.578125
3
namespace XinputWrapper { using System; using System.Collections.Generic; using System.Linq; using System.Threading; using XinputWrapper.Enums; using XinputWrapper.Structs; public class XinputController { public const int MaxControllerCount = 4; public const int FirstCo...
97c1e6668257e9fc4cd3cfc2033939ec63f3d47e
C#
DeveloperIlnaz/DataStructures
/DataStructures/Queue/IQueue.cs
2.71875
3
using System.Collections; using System.Collections.Generic; namespace DataStructures.Queue { public interface IQueue<T> : IEnumerable, IEnumerable<T> { T Peek(); void Enqueue(T item); T Dequeue(); void Clear(); bool Contains(T item); } }
fc0d9d4c6b868bc956c67ff62b0de7d11468aedb
C#
sajeelaa/Chatbot
/MainWindow.xaml.cs
2.65625
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;...
d46075481b46b38a3f11fd5e42465d181f778968
C#
AimalKhanOfficial/Problem-Solving
/LongestSubstring/LongestSubstring/Program.cs
3.984375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LongestSubstring { class Program { List<char> list = new List<char>(); static void Main(string[] args) { //Finding the unique alphabets with in a ...
ef5b1dffb8be2dda5781fd189fdb595fcb73d8e7
C#
noptran/pcm
/Common_Objects/Models/ProblemSubCategoryModel.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; namespace Common_Objects.Models { public class ProblemSubCategoryModel { public Problem_Sub_Category GetSpecificProblemSubCategory(int problemSubCategoryId) { Problem_Sub_Category problemSubCategory; va...
7835fb6542f3b8a6d115b4c697bef5e30b60e2f1
C#
kizisoft/TelerikAcademy
/OOP/04. OOP Fundamental Principles – Part I/01. School/SchoolClass.cs
3.453125
3
namespace _01.School { using System; using System.Collections.Generic; public class SchoolClass : SchoolNoneHumanObject { private List<Student> studentList; private List<Teacher> teacherList; public SchoolClass(string name, List<Student> studentList = null, List<Teacher> teach...
77601670199b9f9bbe16d3f7044d361a4cc3a81d
C#
kenrazo/SproutExam
/SproutExam/SproutExam.DataAccess/Repositories/EmployeeRepository.cs
2.8125
3
using Microsoft.EntityFrameworkCore; using SproutExam.DataAccess.DataContext; using SproutExam.DataAccess.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SproutExam.DataAccess.Repositories { public class EmployeeRepository : IEmployeeRepository ...
e6e674d665a3de6bb0da488ffc5ee6b3bd272afb
C#
luckydimdim/Infrastructure.Configuration
/Infrastructure.Configuration/ConfigurationHelper.cs
2.78125
3
using System; using Microsoft.Extensions.Options; using System.Text; using System.IO; using System.Security.Cryptography; namespace Cmas.Infrastructure.Configuration { public static class ConfigurationHelper { public static CmasConfiguration GetConfiguration(this IServiceProvider serviceProv...
2abf403d3a9926e221f63cbe1844f3bac63e3987
C#
VorobeY1326/Memory_Tests
/LastTask/3_TheCakeIsALie/Program.cs
2.53125
3
namespace _3_TheCakeIsALie { public static class Program { public static void Main() { const int threadsCount = 20; const int count = 1000000; var usualCountersTest = new UsualCountersTest(threadsCount, count); var wideCountersTest = n...
9de085785a23248315197e0fa23957023bfe6ce5
C#
brwBruno/ExeplosThiago
/TesteMariana/TesteMariana.Dominio/Funcionalidades/Materias/Materia.cs
3.203125
3
using System; using System.Text.RegularExpressions; using TesteMariana.Dominio.Base; namespace TesteMariana.Dominio { public class Materia : Entidade { public string Nome { get; set; } public Disciplina Disciplina { get; set; } public Serie Serie { get; set; } public Materia()...
db0705bebf71aeb05e8646ff8ec4752991b7b1e6
C#
tausif-fardin/Bank-Management-System
/AccountManagementSystem/Account.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace AccountManagementSystem { internal struct Date { private byte day, month; private ushort year; internal Date(byte day, ...
ce1d2dc0d7c450ecf3cae6f54065f56eae6bd82a
C#
teskeras/Settlements
/Settlements/Controllers/SettlementsController.cs
2.5625
3
using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Settlements.Core; using Settlements.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Settlements.Controllers { [Route("api/[controller]")] public class SettlementsController : Controlle...
f2cf3927f74d8a7400b4d1c7a2890dbcbf2a0063
C#
210503-Reston-NET/Malik-Sehar-P1
/SBL/ProductBL.cs
2.78125
3
using System.Collections.Generic; using Models; using SDL; using System; namespace SBL { public class ProductBL: IProductBL { private IRepository _repo; public ProductBL(IRepository repo){ _repo = repo; } public MProduct DeleteAProduct(MProduct mProduct) { ...
7828ce43f903e688a56918a76d33be716cd0d0f6
C#
asunar/CQRS
/TaskFlamingo/Data/TaskRetriever.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; namespace TaskFlamingo.Data { using System.Configuration; using System.Data.SqlClient; using Dapper; using TaskFlamingo.Models; public class TaskRetriever { public static SqlConnection GetOpenConnection() { var connection...
68cacf8f293324890e6ee83218db74edb7020d20
C#
Brylex/c-wzorce-projektowe-steven-john-metsker
/lib/Credit/ICreditCheck.cs
2.75
3
namespace Credit { /// <summary> /// Interfejs definiujcy wsplne metody dla klas sprawdzajcych /// limit kredytowy online i offline. /// </summary> public interface ICreditCheck { /// <summary> /// Zwraca dopuszczalny limit kredytowy dla klienta o podanym /// identyfika...
cfcad03cf275f37febee8ed3f2344c2522065d6c
C#
Berk1034/Tests-Generator
/TestsGenerator/TestsGenerator/bin/Babaika.cs
2.71875
3
namespace Human { public class Student { public void Learn() { Console.WriteLine("I am Learning!"); } } } namespace Creature { public class Babaika { public void Boo() { Console.WriteLine("Boo!"); } } }
f841d79b636be466a003585f9c50d47a66882ea4
C#
gabriellaxh/CSharp-Fundamentals
/C# OOP Advanced/Iterators And Comparators/09.LinkedListTraversal/MyLinkedList.cs
3.828125
4
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace _09.LinkedListTraversal { public class MyLinkedList<T> : IEnumerable<T> { private LinkedList<T> List { get; set; } public MyLinkedList() { this.List = new LinkedList<T>()...
95f3cdc828f139edb5194382104d9584b57f5deb
C#
colindj1120/Mp3_Player
/Mp3PlayerApplication/Mp3PlayerApplication/Functions/Miscellaneous.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace Mp3.Functions { class Miscellaneous { public static bool checkNull(DataGridViewRow row) { bool isNull = false; ...
723a4c659a8b948f8e5dd168ac1f0ec7001d9b4c
C#
shendongnian/download4
/first_version_download2/203226-15634126-38080154-2.cs
3.6875
4
using System; using System.Collections; class Program { static void Main() { Hashtable hsTbl = new Hashtable(); hsTbl.Add(1, "Suhas"); hsTbl.Add(2, "Madhuri"); hsTbl.Add(3, "Om"); DictionaryEntry[] entries = new Dictiona...
95f71cfb5fd76615bfb8b1b9a78540bd9f3a5260
C#
mustiian/GDSJam2020
/MIBvsAliens/Assets/Scripts/UntiControlSystem/EnemyDetectingSystem.cs
2.59375
3
using System; using DataStructures; using UnityEngine; public class EnemyDetectingSystem : MonoBehaviour { private bool _initialized; private Race _race; public void Initialize(Race race) { if (_initialized) return; _race = race; TargetsQueue = new Queue<...
80b9db5f7ecadc2fffe2541288a65111e753f536
C#
aabdugaliyev/Machine-Learning
/ML/ML/Form1.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ML { public partial class form : Form { List<T...
fcd31f084a6ba9841bdae71da50614488432886d
C#
ARLM-Attic/metalinq
/Releases/SerializableV1/ExpressionBuilder/Expressions/EditableMemberInitExpression.cs
2.59375
3
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Linq.Expressions; using System.Reflection; using System.Runtime.Serialization; namespace ExpressionBuilder { [DataContract] public class EditableMemberInitExpression : EditableExpression { ...
e14eb1821174c442221bd9fa2e2b3eb6d0bec617
C#
jmcupidon/openstack.net
/src/corelib/Configuration.cs
2.515625
3
using System; using Flurl.Http; using Flurl.Http.Configuration; using Newtonsoft.Json; using OpenStack.Authentication; using OpenStack.Serialization; namespace OpenStack { /// <summary> /// A static container for global configuration settings affecting OpenStack.NET behavior. /// </summary> /// <threa...
aded104bf330b9080d073fb3f0f5430d11238e00
C#
ErikNoren/StronglyTypedConfiguration
/StronglyTypedConfiguration.Tests/MultiValueTests.cs
2.71875
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace StronglyTypedConfiguration.Tests { [TestClass] public class MultiValueTests { [TestMethod] public void MultiValueString() { ...
c703f41cf14371c2dcee692d284ec2df965d8398
C#
RegJoshua/XPS
/XPS/XPS/Forms/DeleteUserForm.cs
2.8125
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 XPS.Logic; using XPS.Models; namespace XPS.Forms { /******************************************...
8db4e025532f3f0507b8ba33ebccaf8e61731515
C#
eabronskill/Event_Horizon
/Event Horizon/Assets/Scripts/Triggers/Enemies/EnemyTrigger.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyTrigger : MonoBehaviour { public List<GameObject> enemies; public GameObject parent; private bool activate = false; private bool triggered = false; void Start() { if (parent != null) ...
57ea2c0bacf325cf4e6a9e5b231e3ef006e8c751
C#
zhaoyuanhai/guangyu.bownt
/CompanyUI/App_Start/WhiteSpaceFilter.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; using System.Text; namespace CompanyUI.App_Start { public class WhiteSpaceFilter : Stream { private Stream _shrink; private Func<string, string> _filter; private System.Text.Encoding _...
3195b0108985562943a88cb5f11db40cd286be68
C#
ashwini-mnnit/Coding-Practice
/SerializeTree/Program.cs
3.21875
3
using System; namespace SerializeTree { class Program { static void Main (string[] args) { TreeNode One = new TreeNode (1); TreeNode Two = new TreeNode (2); TreeNode Three = new TreeNode (3); //One.Left= Two; //One.Right = Three; So...
2e4000b7127248fee55ffd3aae23a870011f7152
C#
cfmis/cf01
/CLS/ExpToExcel.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Reflection; using System.Drawing.Printing; using System.Windows.Forms; using System.Web.UI.WebControls; using System.Web.UI; using System.Data; using System.Diagnostics; using System.Threadin...
c7baf5a8f1bfce5ba8ea8d7f639f151a5c98097b
C#
MichaelSong9/when-its-done
/WhenItsDone/Tests/LibTests/WhenItsDone.Models.Tests/ClientTests/ClientRatingTests.cs
2.640625
3
using NUnit.Framework; using System.Linq; using WhenItsDone.Models.Constants; namespace WhenItsDone.Models.Tests.ClientTests { [TestFixture] public class ClientRatingTests { [Test] public void Rating_ShouldHave_RangeAttribute() { var obj = new Client(); var...
bb79f7f8c7a2ef91c13b725fbe52330e76262efb
C#
MichalGiemza/Algorytmy-II
/2-CNF/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _2_CNF { class Program { static void Main(string[] args) { const string wyr1 = "1|3 & 1|-4 & 2|-4 & 2|-5 & 3|-5 & 1|-6 & 2|-6 & 3|-6 & 4|7 & 5|7 & 6|7"; ...
6fd2f3de3ff8daa7616a984d8beedb756adae95e
C#
ebcbvbbbsrbbbbbb/rcgp
/simple_file_search/simple_file_search/Utility.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Windows.Forms; using System.Threading; using System.Windows.Threading; using System.Text.RegularExpressions; namespace simple_file_search { public static c...
7bdeb85759a481534b16d8a8cc1a046214d6458a
C#
Vazul25/MVC-Gyakorlat
/BLL/MegrendelesManager.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BLL { public static class MegrendelesManager { public static List<Megrendeles> Search(string nev, DateTime fromDate, DateTime toDate) { using (CRMEntities oc = new CRMEntities()) ...
4e7b36d1b9a661f94554ed23f9f658f3ed466e35
C#
ayhan-karaman/BtkAcademyDesignPatterns
/Sigleton/DoubleCheckhedLockinGreetingManager.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Singleton { public class DoubleCheckhedLockinGreetingManager : IGreetingService { private static DoubleCheckhedLockinGreetingManager _instance; private static object _l...
852cbc0c39028c55c0f8ae2207eb912a25b12ad3
C#
Serandrus/Touchless
/Touchless/Assets/Scripts/WinObject.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// This class defines the condition to win the game. /// </summary> public class WinObject : MonoBehaviour { public Player player; bool active; //Searchs the player. void Awake() { player = FindOb...
cf8f0ee7535fb1dfd8cb78591463bd96a561d7c4
C#
petegamble/justgoride.cc
/src/JustGoRide.cc.Web/Controllers/Api/ClubController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using JustGoRide.cc.Services; using JustGoRide.cc.Services.Interfaces; using JustGoRide.cc.Web.Models.Http; using Microsoft.AspNetCore.Mvc; namespace JustGoRide.cc.Web.Controllers.Api { public class ClubController : ...
9a747b60ec7e054d537398d6f836f48fc5cfd864
C#
lucky-ly/CbsTest
/CbsTest.Web.Shared/City/CityHttpClient.cs
2.59375
3
using System.Net.Http.Json; namespace CbsTest.Web.Shared.City { public class CityHttpClient { private readonly HttpClient _httpClient; public CityHttpClient(HttpClient httpClient) { _httpClient = httpClient; } public async Task<IEnumerable<CityResponse>> G...
ceeb5f0404e486c44feb45341e5ca2923e9c8f05
C#
jewer3330/thor
/client/Assets/ThorEditor/Runtime/GameObjectMap.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class MapItem { public string name; public GameObject go; } public class GameObjectMap : MonoBehaviour { public MapItem[] mapItems = new MapItem[] { }; private Dictionary<string, GameObject...
cf663c830b564ccfdb78a7884a888ca5bf051120
C#
sumgup/CleanCodeWorkshops
/Tracks/SOLID_Design_Principles/WeekThree-LSP-ISP-DIP/LSP/Problem/LSPDemo/Rectangle.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LSPDemo { // 1. Making a decision that square ISA Rectangle public class Rectangle { private double width; private double height; public virtual double Widt...
5a260aa8fa57ea18a3a02533de5d494a9d327360
C#
JRobinsonR/Sneak-Snack-Attack
/Assets/Scripts/Respawn.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Respawn : MonoBehaviour { //Put this script onto whatever collider should kill the player. [SerializeField] private Transform Player; //When you apply this script, designate the "Player" to what the player char...
12fb8c4a668f6d96a6d08d1982a66349fe64e730
C#
jon101514/Dark-Patterns
/Assets/Scripts/VictoryFruit.cs
2.640625
3
/** Jonathan So, jds7523@rit.edu * Victory Fruit is created when the player successfully completes a mission; they have randomized sprites and move on the screen like confetti. */ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class VictoryFruit : MonoB...
8166cb8923b7a0528007a831fc2110a7f53fb25b
C#
sam1169/xobnu-web-interface
/CorporateContacts.Domain/Concrete/EFCCNoteRepo.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xobnu.Domain.Abstract; using Xobnu.Domain.Entities; namespace Xobnu.Domain.Concrete { public class EFCCNoteRepo : ICCNoteRepo { private EFDBContextClient context = new EFDBContextC...
cc85213df39242d433a901bfba021fb59ed0c380
C#
officialmoonbyte/GlobalSSH
/GlobalSSH/GlobalSSH/EntryPoint.cs
2.90625
3
using System.Threading; using System; using System.Net.Sockets; using Renci.SshNet; namespace IndieGoat.Net.SSH { public class GlobalSSH { #region Vars public SshClient SSHClient; #endregion #region Startup /// <summary> /// Connects to the SSH server on st...
d00dd533091b84c2aaaf15ca212efe1367a6db87
C#
mynameiskate/TCP-file-exchange
/Form1.cs
2.703125
3
using System; using System.Net; using System.Threading.Tasks; using System.Windows.Forms; namespace TCPClientApp { public partial class FileSender : Form { private User _user; private string _savePath; private Progress<string> _progress; public FileSender() { ...
ef8e4538eb577ab435fbe741c35e3140d05bd478
C#
rodrigoborgesmachado/copiarServidor
/SubirServidor/Model/MD_Caminhosservidor.cs
2.75
3
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { /// <summary> /// [CaminhosServidor] Tabela da classe /// </summary> public class MD_Caminhosservidor { #region Atributos e Propri...
24300df13b2cc063c91a75e12087ed2e0915292b
C#
pjjtah/Bonfire
/Assets/Scripts/Monologue.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; public class Monologue : MonoBehaviour { public AudioSource audioS; public Text text; public string[] lines; int counter = -1; public void Start() { ReadNext(); } public void...
8b1150bb949142537ab791ff7e617a74473c6ffa
C#
bubdm/guluwin
/SunnyChen.Common/Windows/Forms/PropertyEditor.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace SunnyChen.Common.Windows.Forms { /// <summary> /// Provides the user interface of editing the properties of a given object. ...
038d9aee7a6e107ac2f4e3b78ba79d70ac5b6c7a
C#
emote-project/Scenario2
/Code/CaseBasedController/CaseBasedController/GameInfo/Player.cs
2.890625
3
using EmoteEnercitiesMessages; namespace CaseBasedController.GameInfo { public class Player { public Gender Gender; public string Name; public EnercitiesRole Role; public Player(string name, EnercitiesRole role, Gender gender = Gender.Male) { this.Name = nam...
586992d5d9d263087fe77b9d05ddb9844aded1a8
C#
Fenriswolf-VieR/Statusbits
/bin/x86/Debug/AppX/BitDecryption.cs
2.984375
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Text.RegularExpressions; namespace BitDecryption { public class BitDecryption { private string binary; private string hex; private string signedDec; private ...
05dfe41a1a7eabd9746d13e76f8dd8e2409e7acc
C#
pmzeitler/mgtextwindows
/TextWindowSystemLib/EnumWindowInteractions.cs
2.609375
3
 namespace net.PhoebeZeitler.TextWindowSystem { /// <summary> /// A convenience class that standardizes all possible user inputs to an active window. /// </summary> public enum WindowInteractions { // Confirm/advance OK, // Cancel one CANCEL, // Close all win...
cf63b52a1f5e116f9412197001b60ab64334612c
C#
jppoamaral/DecolaTech
/WatchList/WatchList/Classes/SeriesRepository.cs
3.125
3
using System; using System.Collections.Generic; using WatchList.Interfaces; namespace WatchList { public class SeriesRepository : IRepository<Series> { private List<Series> seriesLst = new List<Series>(); public List<Series> List() { return seriesLst; } pub...
206f5e0f548d51714853dc589b5f8df5afa88387
C#
KiDeokKim/coTest
/Programmers_4.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Programmers_4 { /*** * LV1 * Programmers * 3개의 값 더해서 소수 구하기 * https://programmers.co.kr/learn/courses/30/lessons/12977 */ public int solution(int[] num...
14019b541bef1f5d011397324c9edde504f15cfc
C#
MdSamreAlam/Project
/CalculatorTest.cs
3.046875
3
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace Calculator.Test { public class CalculatorTest { Calculator calculator = new Calculator(); [Fact] public void ShouldAddTwoNumber() { //Arrange int number1 = 10;...
e44cb8190374cbc8219b804bc6100507f7804f44
C#
Manojkumarupm/CustomerADO
/CustomerADO/DataLayer/XmlToDataset.cs
2.984375
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace DataLayer { public class XmlToDataSet { public DataSet ReadXmlToDataSet(string Fil...
c0b895f636e5466ba330e95fcf330703e6004e14
C#
lukusbeaur/Generic_Lambda
/GenericLINQ_Lamnda/Examples/PartialMethods.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenericLINQ_Lamnda.Examples { partial class PartialMethods//(1) { //declaration = ([modifier] dataType variable Name); //This version of will act as if the p...
6538ff539f9381a12b0da7d7df4b204ec6c0df13
C#
asimplestd/ComponentIoC
/Runtime/BehaviourExtensions/ObservableBehaviour.cs
2.609375
3
using System.Threading.Tasks; using System.Threading; using UnityEngine; public abstract class ObservableBehaviour : ObservableBehaviour<bool> { protected void Complete() { Complete(true); } } public abstract class ObservableBehaviour<TResult> : MonoBehaviour { private TaskCompletionSource<TR...
fead4debdb109e523a3540bb069121a945e10bb0
C#
AIBrain/UnitsOfMeasure
/UnitsOfMeasure Tests/LengthTest.cs
2.875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using UnitsOfMeasure; using UnitsOfMeasure.Length; using UnitsOfMeasure.Length.Imperial; using UnitsOfMeasure.Length.Metric; namespace UnitsOfMeasure_Tests { [TestClass] public class LengthTest { [TestMethod] public void AddInch...
3f34468c6702b7b12199b89db7bf0bc1bc60d749
C#
donnieholstrom/Cooking-Master
/Assets/Scripts/PlayerInteraction.cs
2.578125
3
using UnityEngine; public class PlayerInteraction : MonoBehaviour { public PlayerMovement.PlayerNumber playerNumber; private string interactInput; private bool hovering; public enum Interactable { Nothing, Veggies, Greens, Citrus, Melons, Pasta, ...
f7acba6906dfd6988e8135f43b5b81e6d471f3ea
C#
mnasif786/PortalAPIs
/PBS.Core/CQRS/Command/CommandDispatcher.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using StructureMap; namespace PBS.Core.CQRS.Command { public class CommandDispatcher : ICommandDispatcher { private readonly IContainer _container; public CommandDispatcher(ICon...
53fa8a4a0ba343a62393204fcd4d0d93f0cc3197
C#
rlsadiz/SOS
/Assets/Scripts/SnapToGrid.cs
2.546875
3
using UnityEngine; using System.Collections; // SOS! // Created by: Ronald Louie R. Sadiz // Copyright 2015 // All Rights Reserved. public class SnapToGrid : MonoBehaviour { public float xDimension; public float yDimension; public float zDimension; void Update() { //gets the current pos...
e6d665643e551a5b2674b6bf7873056bd9e87c44
C#
guildfau/Bermuda-Triangle
/Bermuda-Triangle/Assets/Scripts/Entity.cs
2.640625
3
using System.Collections.Generic; using System.Collections; using UnityEngine; /// <summary> /// Created by Daniel Resio. /// Class that is the base of all entities in the game. /// Some animations already implemented in code /// needs rigidbody /// TODO: collider info /// </summary> public abstract class Entity : M...
c43c6c5e7099a883ab84e66ed6cee01084d775c9
C#
Codeology/BoidsSimulation
/Assets/Flock.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Flock : MonoBehaviour { public FlockAgent agentPrefab; List<FlockAgent> agents = new List<FlockAgent>(); public FlockBehavior behavior; // Instantiation for Flock [Range(10, 500)] public int startingC...
91065b725dd560442736cac80f1838f77c235912
C#
ERNICommunity/View4Logs
/src/View4Logs.Core/LogFormats/LogFileFormatBase.cs
2.65625
3
using System; using System.IO; using View4Logs.Common.Interfaces; namespace View4Logs.Core.LogFormats { public abstract class LogFileFormatBase : ILogFormat { public abstract string Name { get; } public bool CheckCompatibility(Uri uri) { try { i...
e9f53aad738899773be3a101bab2910ba3c0e340
C#
VelinDimitrov/FMI-Plovdiv
/first year/first year third trimester-Algorithms and Data structures/Pipes/Pipes/BTree.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pipes { class BTree { public BNode root; public BTree(int value,double water) { this.root = new BNode(value,100,water); } private ...
96213489954693145df42ec59b8b6b7a01304855
C#
BigNikO/soft-uni-repos
/CSharp/C#Fundamentals/C#Advanced/04-FunctionalProgramming/Exercises/01-1-ActionPrint/ActionPrint.cs
3.640625
4
using System; using System.Linq; namespace Ex1ActionPrint { class ActionPrint { static void Main(string[] args) { var names = Console.ReadLine().Split(' '); Action<string> printAction = print; foreach (var name in names) { printAct...
8b4de9d85f42b5e435568ecb9a2092b985ceaea3
C#
mrlacey/StringToNumber
/StringToNumber/Extensions.cs
3.265625
3
//----------------------------------------------------------------------- // <copyright file="Extensions.cs" company="Matt Lacey (http://mrlacey.co.uk/)"> // Copyright © 2009 Matt Lacey // All rights reserved. // </copyright> //----------------------------------------------------------------------- using...
42c6e50c8189ca020aa318ce3937778174aed232
C#
JetBrains/TeamCity.VSTest.TestAdapter
/TeamCity.VSTest.TestLogger.Tests/MessageWriter/FileMessageWriterTests.cs
2.671875
3
namespace TeamCity.VSTest.TestLogger.Tests.MessageWriter { using System; using System.Linq; using System.Text; using MessageWriters; using Moq; using Xunit; public class FileMessageWriterTests { [Fact] public void ShouldAddNewLineAndWriteBytesForUtf8Encoding() { ...
ea41db9cc7eb6c3c4aef12b7f192891393010531
C#
joaoazevedo65485/tasksddd
/EventsManager.API/Controllers/TaskController.cs
2.625
3
using EventsManager.Application.Dtos; using EventsManager.Application.Interfaces; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; namespace EventsManager.API.Controllers { [Route("[controller]")] [ApiController] public class TaskController : ControllerBase { ...
432a57c40447bd6a103c416edd7b00d01461c53b
C#
shendongnian/download4
/first_version_download2/377110-46240468-156240279-2.cs
2.859375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Reflection; using System.Web.Script.Serialization; namespace SomeNamespace { #region Class CustomJavaScriptSerializer /// <summary> /// Custom Ja...
17932a348bc99ec32af7925255a8c0a96e205164
C#
jasonhuber/2010FallB_CIS407
/day4/website/getProductDetail.aspx.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _getProductDetail : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { System.Data.OleDb.OleDbConnection Conn = new S...
d4762f3e348407d9bb3ea5cc7d768e9d0942c2b6
C#
MitchReed123/FinalGoldBadge
/ConsoleAppChallenges/Cafe/MenuRepository.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cafe { public class MenuRepository { private List<Menu> _menu = new List<Menu>(); public void AddContentToMenu(Menu item) { _menu.Add(item); ...
31f63f92526d204aad1d3e4cf83b2b301b62a814
C#
den090312/xt_q2
/Task02/2.4.MY STRING/Program.cs
3.90625
4
using System; namespace _2._4.MY_STRING { public class Program { private static void Main(string[] args) { //создание объекта через массив var myString1 = new MyString(new char[] { 'a', 'b', 'c', 'd', 'e', 'i', 'j'}); Console.WriteLine("MyString1:"); ...
5c563e6540f775267cfd1c1ad28f34e5e0fb7e5c
C#
dabbers/ProxyScanner
/ProxyTool/Form1.cs
2.59375
3
using System; using System.Collections.Generic; using System.Collections.Concurrent; 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.Text.RegularExpressions; using System.Threading; using ...
fdd9d88708a34d5c52760abdadfc2dfd91328b53
C#
fazzer123/Gruppe-5---Just-Drink
/Projekt Mappe/DrinkzyWCF/WCF/OrderLineService.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ModelLayer; using BusinessLayer; namespace WCF { public class OrderLineService : IOrderLineService { OrderLineController olCtr; public OrderLineService() ...
926d673eb6748f7cf53305875bd9fcbaaeb9ebe5
C#
emagineNull/csharp-beginner
/nested-loops/NestedLoopsExercise/Fishing/Program.cs
3.5625
4
using System; namespace Fishing { class Program { static void Main(string[] args) { int quota = int.Parse(Console.ReadLine()); string fishName = Console.ReadLine(); int fish = 0; double total = 0; double totalWon = 0; dou...
61cc0ea7ce23c7f48a4d9860e99979b185d3f3de
C#
rgomesnet/RGomes.Escola
/src/RGomes.Escola.Domain/Aluno/Email.cs
2.71875
3
namespace RGomes.Escola.Domain.Aluno { using System; public class Email { public Email(string endereco) { if (!endereco.Matches(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$")) { throw new ArgumentException("O e-mail informado não é um valor válido."); ...
7d0ad61c5f46fbb505f841f6ef023e0e50f2d950
C#
mkbiltek/.NET
/LightIndexer/LightIndexerGUI/Classes/DisksTreeNodeProvider.cs
2.59375
3
using System.IO; using System.Linq; using System.Windows.Forms; using PDNUtils.Help; using PDNUtils.Tree; namespace LightIndexerGUI.Forms { public class DisksTreeNodeProvider : ITreeNodeProvider { public TreeNode[] GetChildNodes() { var driveNamesChecked = CheckedManager...
a73bc40e72ed70505097324a321c10a920597ec6
C#
EdgarVerona/gamejam-floatilla
/Assets/Health/HealthBar.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using UnityEngine.UI; public class HealthBar : MonoBehaviour { [SerializeField] float UpdateSpeedInSeconds = 0.2f; [SerializeField] float PositionOffset...
fe377c20df588789898515cbcb020658fcb6ab12
C#
Chlosans/OstaraUnity
/Assets/Scripts/Ostara.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using ChoicePasseur; public class Ostara : MonoBehaviour { public static string choice; public static void Choice(string data) { Debug.Log(data); choice = data; } publ...
563fcb4b260198f4bc37d222ec3b5b855af170d5
C#
soharle/algebra-de-conjuntos
/Actions/OperatorReverse.cs
3.15625
3
using algebra_de_conjuntos.Models; using System; using System.Text.RegularExpressions; namespace algebra_de_conjuntos.Actions { class OperatorReverse { public static Set ReversivelProdutoDasPartes(Set a) { string name = a.Name.Substring(a.Name.IndexOf('('), (a.Name.IndexOf(')'))); ...
7ca3187c4fbf87959525726f7da22fdc391628e5
C#
Killface1980/ONI-Modloader
/Source/MaterialColor/Extensions/Color32Extensions.cs
3.015625
3
namespace MaterialColor.Extensions { using System; using ONI_Common.Data; using UnityEngine; public static class Color32Extensions { public static float GetBrightness(this Color32 color) { float currentBrightness = Math.Max((float)color.r / byte.MaxValue, (float)color...