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
7ba4dae6bf539565c29edf19d6ed49f3978acb1a
C#
ThibaudTailly/titreProAngular2
/Alimevovf/Services/ArticleService.cs
2.84375
3
using Alimevo2.Models; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace Alimevo2.Services { public class ArticleService { public enum Orders{BY_ID,BY_NAME,BY_DATE_OF_MODIFICATION}; pub...
77091c6987cfeea1374316e3d522ea236cbe6d21
C#
shendongnian/download4
/first_version_download2/605655-59239182-210804042-2.cs
3.171875
3
int userInput = Convert.ToInt32(Console.ReadLine()); bool exists= false; foreach (KeyValuePair<int,Library> lib in dictionary) { if (userInput == lib.Key) { Console.WriteLine("You chose book = {0}",lib.Value.bookName...
81e910b415f18d87a418dc748f5eeb6a1cf136d5
C#
eyesyang/CentaDbManageSysSln_2012
/CentaLine.Common/SessionUtility.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace CentaLine.Common { /// <summary> /// session操作类 /// </summary> public class SessionUtility { public static T Get<T>(string key) { try { ...
dea8754fdcb2dffed10e0de27016f38fcff1d222
C#
BorisLechev/CSharp-Advanced
/C# Advanced/2. Multidimensional Arrays/Exercise/6.BombTheBasement/BombTheBasement.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; namespace _6.BombTheBasement { class BombTheBasement { static void Main(string[] args) { int[] dimensions = Console.ReadLine() .Split(' ', StringSplitOptions.RemoveEmptyEntries) ...
771704a90a385e0c4f898ee099b6a1e300260c36
C#
shendongnian/download4
/code10/1875342-55972999-197028923-2.cs
2.71875
3
enum GVColumns { //We make an enum for our GridView columns Id = 0, CustomerName, BillNum, SubTotal, Discount, GrandTotal, Credit, AddedDate, AddedBy } private void btnsubtootal_Click(object sender, EventArgs e) { ...
7ea8079b3ba62d22e2524b373b29c513480986bf
C#
QuinntyneBrown/Network
/src/Network.Api/Features/Skills/GetSkillById.cs
2.578125
3
using MediatR; using System; using System.Threading; using System.Threading.Tasks; using Network.Api.Core; using Network.Api.Interfaces; using Microsoft.EntityFrameworkCore; namespace Network.Api.Features { public class GetSkillById { public class Request: IRequest<Response> { publi...
7468634fdaa38658f01caa98b5fc6366b0f43068
C#
jorzen2010/AdsGitBySky
/AdsServices/StatisticsServices.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common; using AdsEntity; using AdsDal; namespace AdsServices { public class StatisticsServices { private static UnitOfWork unitOfWork = new UnitOfWork(); public st...
5a0e06aaac1fa245f7d44152ff7eab724d89c7fb
C#
hobnob/mediatonic-techtest
/MediatonicApi/Models/Services/UserAnimalService.cs
3.34375
3
using MediatonicApi.Models.Exceptions; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; namespace MediatonicApi.Models.Services { public class UserAnimalService : IService<UserAnimal> { /// <summary> /// The context to use for this service ...
486a415647fea84fe5609c9a05e77d90acc46d89
C#
shendongnian/download4
/code6/1020565-26149856-74684392-2.cs
2.875
3
static void Main(string[] args) { var objs = new object[] { new Class1(), new Class2() }; // Note the change of type for item to "dynamic" foreach (dynamic item in objs) { Method(item); } }
c50c0f57b7a5ecf605904c7c1fa7348acea6ccb6
C#
selegnasol/Coderbyte
/Coderbyte/Solution0013.cs
3.640625
4
/* Have the function WordCount(str) take the str string parameter being passed and return the number of words the string contains (e.g. "Never eat shredded wheat or cake" would return 6). Words will be separated by single spaces. */ using System; public class Solution0013 { public static int WordCount...
96c14b49491c78f05d81d9f50cf8a9a92d0d0379
C#
hsyhhssyy/BGOUnity
/UnityProject/Assets/CSharpCode/GameLogic/Actions/ActionHandler.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using Assets.CSharpCode.Entity; namespace Assets.CSharpCode.GameLogic.Actions { public abstract class ActionHandler { protected GameLogicManager Manager { get; private set; } protected ActionHandler(GameLogicManager manager) ...
baa5ba4acf30c826fee34aee6392375dd2b3f7ae
C#
onlyforkbj/dotnetprograms
/CodeGenerator/CodeGenerator.Lib/Generating/TextElement.cs
2.859375
3
namespace CodeGenerator.Lib.Generating { public class TextElement { public int StartIndex { get; private set; } public int Length { get; private set; } public int EndIndex { get { return StartIndex + Length; } } public string RawText { get; private set; } publi...
120ab061ba47d7d4693b9daaed7285ca7ebc3be3
C#
thuantv9/wallbicycle
/ADMIN/DentistryManager/DentistryManager/Models/MedicalProcedure.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DentistryManager.Models { /// <summary> /// Lớp này mô tả về các thủ thuật điểu trị, lớp này đặc biệt quan trọng /// </summary> public class MedicalProcedure { public string id { get; set; } ...
8edbb27891c02b1a866143221d53536375b8e854
C#
justDeek/Useful-Unity-Utilities
/Custom PlayMaker Actions/Random Customs/RandomFloatOnSlope.cs
2.875
3
using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory("Random")] [Tooltip("Insert two ranges and a value on the first range to get that percentage on the second one. Useful for 2.5D games, e.g. if you want GameObjects to spawn further down the farther away they are or vice versa, thus creating...
5df3a38651569d8f38e01224eac3989d77677800
C#
prozerran/Miscellaneous
/Azure/Storage/Queue.cs
2.53125
3
 using Microsoft.Azure; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Storage { class Queue { static void Ma...
b32217f108f818b15ca08d410d493aa2fd365556
C#
renliguo/WebAPI
/Repositories/GenericRepository.cs
3.125
3
using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using WebAPI.Models; namespace WebAPI.Repositories { public class GenericRepository<T> where T : class { private WebAPIContext context; public GenericRepository(WebAPIContext context) { this.context = context; }...
7bbc40ae9f1a741b69a79e9f35f7e542ec885bb1
C#
ricardoschullerSL/library-grad-project-ricardo
/library-grad-project-tests/Repos/BookRepositoryTests.cs
3.125
3
using LibraryGradProject.Models; using LibraryGradProject.Repos; using System.Collections.Generic; using System.Linq; using Xunit; namespace LibraryGradProjectTests.Repos { public class BookRepositoryTests { [Fact] public void New_Book_Repository_Is_Empty() { // Arrange ...
fd5228e11a03421f09e28cd39e7fd04a28290079
C#
msdickinson/DickinsonBros.Logger
/Source/DickinsonBros.Logger/LoggingService.cs
2.515625
3
using DickinsonBros.Logger; using DickinsonBros.Logger.Abstractions; using DickinsonBros.Redactor.Abstractions; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; namespace DickinsonBros.Logger { public class LoggingService<T> : ILoggingService<T> { ...
162c2ae490755c3eacd346818747db31c1156462
C#
MasterDavy/Runite
/Runite/Tile.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.Windows.Forms; namespace Runite { public class Tile: PictureBox { public int line, col; public bool Empty; public Rune currentRune; ...
83194f821611f3e50bafcc5eecda2161cb4783c2
C#
urkaver/covid-kh-publisher
/Health.CovidKhPublisher/Health.CovidKhPublisher.Business/Extensions/EnumerableExtensions.cs
2.6875
3
using System; using System.Collections.Generic; namespace Health.CovidKhPublisher.Business.Extensions { public static class EnumerableExtensions { public static IEnumerable<DateTime> EachDay(DateTime from, DateTime thru) { for (var day = from.Date; day.Date <= thru.Date; d...
a5ad432921e6044900f292f6d7b2fd8acb0851fb
C#
Ifrit-Fire/Unity-Utils
/Scripts/Timber.cs
2.8125
3
using UnityEngine; namespace Sawyer.Utils { public static class Timber { public const int PERCISION = 3; /** * <summary> * Logs various details on a Collider from the provided GameObject. Optionally, use the percision param to adjust string output. * </summary> */ public static void LogCollider(this ...
16d5542069005a0a60e7a0b636ceea9665137207
C#
fitzychan/gmdashboard
/CommonCode/DataModels/Chart.cs
2.703125
3
using CommonCode.Interfaces; using System; using System.Collections.Generic; using System.IO; namespace CommonCode.Charts { public class Chart : IChart { public Guid TypeOfChart => GmDashboardTypes.Chart; //this is its place in the list. //This is what we want to display if we land on ...
0b4ec692b2f6b6f9d07fff5ed694a325a7b8c222
C#
mikolajMacioszczyk/Chess
/Chess/Models/Figures/FigureImplementation/Pawn.cs
3.265625
3
using System; using Chess.Enums; using Chess.Models.Position; namespace Chess.Models.Figures.FigureImplementation { [Serializable] public class Pawn : Figure { private bool _isFirstMove; public Pawn(Models.Position.Position position, TeamColor teamColor) : base(position...
393a289a1b326595b5e364ed159f571915bf3962
C#
naseood/Programming-Basic-09-2017
/ProgrammingBasic_09-2017/7DrawingLoopFor/Buterfly/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Buterfly { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int width = 2 * n - 1; int heig...
eb4f4952f19cb5a1733c96db6f1973ef7fd55451
C#
alexsherkhan/computer_graphics
/Lab2_color_spaces/Lab2_color_spaces/Form1.cs
2.953125
3
using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Lab2_color_spaces { public partial class Fo...
66f0fe28176f052f1d917c112381f81935477f6b
C#
radrex/MollisHome
/MollisHome/Data/MollisHome.Data/Configurations/MaterialConfiguration.cs
2.875
3
namespace MollisHome.Data.Configurations { using MollisHome.Data.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; /// <summary> /// Applies configuration for <see cref="Material"/> entity. /// Applies Composite Unique Constraint for <see cref...
ca8bb29c9a10cedb4c2831ef53c4814079a8eb28
C#
gilberto-pavanelli/Way2Socket
/client/client.cs
2.59375
3
using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; using System.Reflection; using System.Text; using System.Threading.Tasks; using ClassLibrary; using Nito.AsyncEx; namespace client { class SocketClient { private static Dictionary<string, ClientSocket> _client...
2c4551e06663fda4639f0631e65010b5ec22c7cc
C#
Robin--/AkkaBooker
/src/AkkaBooker.Shared/Seat.cs
3.09375
3
namespace AkkaBooker.Shared { public class Seat { public int Row { get; private set; } public int Number { get; private set; } public bool IsBooked { get; private set; } public Seat(int row, int number) { Row = row; Number = number; } ...
6c73133dca035497f975ab5cd85d40a610d2a8ff
C#
m9993/Asp.net-webBuy-Rest-API-Project
/webBuy with Rest API/webBuy with Rest API/Repositories/UserRepository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using webBuy_with_Rest_API.Models; namespace webBuy_with_Rest_API.Repositories { public class UserRepository : Repository<User> { public User VerifyLogin(string email, string password) { return thi...
3b8883174d0682b0634255f9999e4b2f2cb7c9db
C#
waimus/SandboxConsole
/SandboxConsole/SandboxConsole/Program.cs
3.0625
3
using System; namespace SandboxConsole { class Program { static MainClass main = new MainClass(); public static bool Running; static void Main(string[] args) { OnInitialize(); while (Running) { OnUpdate(); } } //Use this for initialization static void OnInitialize() { Running =...
7aec5f4cdc088933a768f4ca29fae62972d84f4c
C#
kyosuke0924/Competitive-Programming
/AOJ/PCK/0176/0176/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0176 { public class Program { public class Color { public string Name { get; } public int R { get; } public int G { get; } public int...
d182a9f9007202c1b0b3d6d31451d602f7d31845
C#
jfcastaneda/PasswordApp
/PasswordApp/PassChangePage.xaml.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Cont...
e3dd5c8a977fe52a493b326259eaeb7441b9bf7c
C#
louthy/language-ext
/LanguageExt.Sys/Sys/Console.cs
2.703125
3
using System; using System.IO; using LanguageExt.Common; using LanguageExt.Effects.Traits; using LanguageExt.TypeClasses; using System.Collections.Generic; using static LanguageExt.Prelude; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using LanguageExt.Pipes; using LanguageExt.Sys.Traits;...
1d32a034a711749135b5fe02ecb4086d8a0a8aaf
C#
AskMeAgain/TangleChain-System
/TangleChainIXI/Classes/Cryptography.cs
2.703125
3
using System; using NetherumSigner = Nethereum.Signer; using Nethereum.Hex.HexConvertors; using TangleChainIXI.Classes; using Tangle.Net.Cryptography.Curl; using TangleNet = Tangle.Net.Entity; using System.Threading; using Tangle.Net.Cryptography; using System.Collections.Generic; using System.Linq; using System.Threa...
08228f104fb11a63c6587f9d85ee130d7476f804
C#
shubhamjain-git/design-patterns
/DesignPatterns/DesignPatternsLibrary/SimpleFactory/PizzaStore/Pizzas/PepperoniPizza.cs
2.84375
3
namespace DesignPatternsLibrary.SimpleFactory.PizzaStore { public class PepperoniPizza : Pizza { public PepperoniPizza() { Name = "Pepperoni Pizza"; Dough = "Crust"; Sauce = "Marinara sauce"; Toppings.Add("Sliced Pepperoni"); Toppings....
b289a55382acf76f16f6c9b3a93d7d7d624d7ac4
C#
Thomas1995/Pokemon-Resurrection
/Pokemon/Pokemon/FormMoveDelete.cs
2.90625
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 Pokemon { public partial class FormMoveDelete : Form { Pokemons poke; ...
bd5feee38d06984bf6e51899e8260076d11c4ecc
C#
AEITO20SD/20sd-p5-c-introductie-MischaJoosten
/Arrays/Opdracht2/Program.cs
3.828125
4
using System; using System.Linq; namespace Opdracht2 { class Program { static void Main(string[] args) { int[,] array = new int[3, 3] // maakt deze integer aan en checkt of het wel 3 bij 3 is { { 1, 2, 3 }, { 4, 5, 6 }, {...
ef0da56898dd70ee93a5722e8441f5e92ed0a66c
C#
EvolutionJobs/b2xtranslator
/Xls/XlsFileFormat/Records/Font.cs
2.625
3
 using System.Diagnostics; using b2xtranslator.Spreadsheet.XlsFileFormat.Structures; using b2xtranslator.StructuredStorage.Reader; using b2xtranslator.Tools; namespace b2xtranslator.Spreadsheet.XlsFileFormat.Records { /// <summary> /// This record specifies a font and font formatting information. /// </s...
ea4057800589541502ec81919c1a08fa3ae781f8
C#
lukusbeaur/Generic_Lambda
/LINQ_To_Object/Examples/Deffered Querys/Restriction/Where_Operator.cs
3.609375
4
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; using LINQ_To_Object.Linq_To_Object_SQL_Database.Common; namespace LINQ_To_Object.Examples.Deffered_Querys.Restriction { //=====================================...
dc8588cbe8981eea1ee8c8fb58af76a1658282d4
C#
eldin17/GameKGR
/ShipGame/Assets/Scripts/Obstacles/Spawn/ObstacleSpawn.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ShipGame.Obstacles.Spawn { public class ObstacleSpawn : MonoBehaviour { public GameObject spawnee1; public bool stopSpawning1 = false; public float spawnTime1; public float spawnDelay1; ...
5f9fa01ac6e2767765fe2be7627d7e8c22782748
C#
lukasGlas/Unity-Project-GTAT1
/Unity Task 2/Assets/Scripts/PlayerControl.cs
2.78125
3
using System; using System.Collections; using System.Linq; using UnityEngine; namespace Scripts { public class PlayerControl : MonoBehaviour { //input for game control from player-chosen action public Action playerAction; //decides if player input is accepted //not needed as o...
56a722bbcddf6dc82088f961fa2ea3ab31465d29
C#
dafnadya/DB_Labs
/Lab3/Lab2/Controller/Controller.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Lab2.View; using Lab2.Model; using Lab2.Database; namespace Lab2.Controller { public enum Operation { GetById = 1, GetAll, Add, Update, Delete }...
99244a49974b9d35d8568f7372ba3da30a505aa1
C#
AhmedEsmailCis/Search-Engine
/crawler/CRAWLER/Program.cs
2.609375
3
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Net; using System.Net.Http; using System.IO; using System.Text.RegularExpressions; using System.Data.SqlClient; using mshtml; using System.C...
67df9796bd5d7503743d3f25436fcf84b5f0c0a5
C#
yugsh/PianoGame
/SheetMusic/ExampleSheetMusicDLL.cs
2.5625
3
/* * Copyright (c) 2007-2011 Madhav Vaidyanathan * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied ...
c285ea61e5f28f8ec40eb03322fde6a1cfb68ccf
C#
D10221/BantamSharp
/BantamTests/UnaryAndBinaryPrecedenceTests.cs
3.125
3
using Bantam; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Text.RegularExpressions; namespace BantamTests { [TestClass] //Unary and binary predecence public class UnaryAndBinaryPrecedenceTests { [TestMethod] public void TestMethod() { const string ex...
a6b228c2aa41d61b2c0fe8fcff91f8203c48c5ec
C#
USAID-DELIVER-PROJECT/ethiopia-hcmis-facility
/hcmis-facility/Code/Windows/BL/DAL/_YearEnd.cs
2.515625
3
/* '=============================================================================== ' Generated From - CSharp_dOOdads_BusinessEntity.vbgen ' ' ** IMPORTANT ** ' How to Generate your stored procedures: ' ' SQL = SQL_StoredProcs.vbgen ' ACCESS = Access_StoredProcs.vbgen ' ORACLE = Oracle_StoredP...
ce6435a57317ee1db7e55b4f4b95dad274778168
C#
parmarjaydip13/Practical_Test
/PracticalTask/Models/AuthorEditViewModel.cs
2.53125
3
 using System.ComponentModel.DataAnnotations; namespace PracticalTask.Models { public class AuthorEditViewModel { public int AuthorId { get; set; } [Required(ErrorMessage = "{0} is required.")] [StringLength(maximumLength: 50, MinimumLength = 0, ErrorMessage = "{0}'s length should be ...
acbb054273c90ce3948a629411af4918392b2712
C#
reudismam/Refazer
/TreeElement/Spg.Isomorphic/IsomorphicPairs.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using RefazerFunctions.Substrings; using TreeElement.Spg.Mapping; using TreeElement.Spg.Node; namespace TreeEdit.Spg.Isomorphic { public class IsomorphicPairs<T> { private Dictionary<TreeNode<T>, string> _dict1; private Diction...
9421ff10ae6ead58d15ca9879bc31c379f1b0ed1
C#
BasalaiTimofei/KursachSeventhSem
/Backend/Backend/Services/RoleService.cs
2.546875
3
using System; using System.Threading.Tasks; using Backend.Context; using Backend.Models.Database; namespace Backend.Services { public class RoleService { private readonly ApplicationContext _applicationContext; public RoleService(ApplicationContext applicationContext) { _a...
37313dd3d55125d2e78304aefcbac5bb04d21596
C#
stubuchbinder79/Chess
/Assets/Chess/Scripts/cells & pieces/Cell.cs
2.65625
3
using System; using UnityEngine; public class Cell : MonoBehaviour { [HideInInspector] public Vector2Int boardPosition = Vector2Int.zero; [HideInInspector] public Board board; [HideInInspector] public RectTransform rectTransform = null; [SerializeField, Tooltip("the sprite to show that ...
105b1656239c2fca6e2957fc37226baf07625dfc
C#
SergeyBednyuk/Patterns
/CreationPatterns/AbstractFectory/ConsoleApplication1/Program.cs
2.6875
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) { IFactory gucciF = new GucciFactory(); var gucciBag = gucciF.CreateBag();...
14d5f3222c188b70b725f6b7c0298cc9cef5cbf5
C#
bzuratomasz/WPF
/MCRX/Applications/DataAccessService/DataAccessService/Contracts/SupervisorService.cs
2.515625
3
using DataContract.ServiceContracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataContract.DataContracts; using Infrastructure.Interfaces.Services; using DataModel.Models; using AutoMapper; namespace DataAccessService.Contracts { pub...
9fd09a979aa650f97abd0cf2fc6317cbc9e7c4a4
C#
fxxxysh/toolkit
/toolkit/lib/Iocomp/common/Iocomp.Classes/ScaleRange.cs
2.53125
3
using Iocomp.Types; using System.ComponentModel; namespace Iocomp.Classes { public abstract class ScaleRange : SubClassBase { private double m_Min; private double m_Span; private bool m_Reverse; private ScaleType m_ScaleType; private double m_SplitStart; private double m_SplitPercent; private boo...
a10241c1728b18ebb61a81d0936a2be1b2f016d9
C#
ArchBang85/Neon-Cycle
/Assets/Scripts/TextBlinker.cs
2.609375
3
using UnityEngine; using System.Collections; public class TextBlinker : MonoBehaviour { public bool startingText = false; public GameObject nextText; public float initialDelay = 1.2f; int[] fibo = {2, 3, 5, 8, 13, 21, 34, 55, 89}; // Use this for initialization void Start () { if(startingT...
335f243f39bc3e7c1b760e5863863a40c1f70616
C#
NikiSpasov/CSharp-OOP
/10.UnitTesting/GameTestDemo/HighScore.cs
3.15625
3
namespace GameTestDemo { using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; public class HighScore { public const int MaxPlayers = 10; private List<Player> currentHighscore = new List<Player>(); private IEnumerable<Player> Load() ...
38d069287ce676bc40827feaffcd10dcf30fe107
C#
carissamorrow/shoestorec-
/Controllers/ShoeController.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using ShoeStore.Models; using ShoeStore.Repositories; using Microsoft.AspNetCore.Mvc; namespace ShoeStore.Controllers { [Route("api/[controller]")] [ApiController] public class ShoeController :...
1c62e27ab14725d95afc412ac0ef57d0f2cddf15
C#
DesislavStoev/WebProject
/App.Services.DataServices/CategoryService.cs
2.671875
3
using App.Data; using App.Models; using App.Services.Models; using App.Services.Models.Category; using System.Collections.Generic; using System.Linq; namespace App.Services.DataServices { public class CategoryService : ICategoryService { private readonly IRepository<Category> _repository; pub...
4faa3c3a004395feafc7e32583c5a0058e44f7a7
C#
dloprodu/SifawFramework
/Sifaw.Core/Utilities/UtilFile.cs
2.96875
3
/* * Sifaw.Core.Utilities * * Diseador: David Lpez Rguez * Programador: David Lpez Rguez * * =============================================================================================== * Historial de versiones: * - 14/12/2011: Creacin de la clase. * ===================================================...
5c5394cfb3ef8bb87a1027bb593322f080786ad8
C#
Army2015/PhysDrive-Unity
/game_dll/Assets/Scripts/ForMainMenu.cs
2.59375
3
using UnityEngine; using System.Collections; public class ForMainMenu : MonoBehaviour { private string myText = ""; private string myTextField = ""; void OnGUI(){ GUI.Box(new Rect(150,150,400,Screen.width / 2), "Main Menu"); GUILayout.BeginArea (new Rect (250, 250, 400, Screen.width / 2)); ...
fe59b982a073d42951b03bca5c98c904ce6ffcb6
C#
pscrv/NeuralNet
/NeuralNet/Networks/TestNetworkTrainer.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NeuralNet { public abstract class NetworkTrainer { #region protected members protected LinearTwoLayerTestNetwork _network; protected IEnumerable<VectorPair> _tr...
0a8bba3b09242237fa3136e99b41d6526d115e81
C#
IvarPett/APP2000
/APP2000/APP2000/APP2000/Controllers/HomeController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Security; using APP2000.Models; namespace APP2000.Controllers { public class HomeController : Controller { APP2000Entities db = new APP2000...
d2817539cb40e8fc31116a04db3df92a11a3f475
C#
geojorg/Pokedex
/Pokedex/Services/APIService.cs
2.90625
3
using Pokedex.Models; using System; using System.Diagnostics; using System.Net.Http; using System.Threading.Tasks; using Xamarin.Essentials; using Xamarin.Forms; namespace Pokedex { public class APIService { public static void ConectivityStatus() { var current = Connectivity.Networ...
678fa2d93581f3385d9ebe602ecd20d29245b55a
C#
ali-hazime/Game-Development-Project
/Assets/Scripts/Maze/MazeDataGenerator.cs
3.140625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MazeDataGenerator { // generator params public float placementThreshold; // chance of empty space public MazeDataGenerator() { placementThreshold = 0.1f; } public int[,] FromDimensions(int ...
e86877ec473afaa15a1c4dd75b67f5098d2ee71e
C#
jogomva/Proyecto-CMYKART
/Proyecto_cmykART/CapaNegocio/NArticulos.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CapaDatos; using System.Data; namespace CapaNegocio { public class NArticulos { //Metodo Insertar que llama al metodo Insertar de la clase DArticulos public static string I...
905683c2aad78d3f9935ed9ac6c094f377ff3ce4
C#
neysifm/ProyectoFinalVentas
/Entidades/Usuarios.cs
2.890625
3
using System; using System.ComponentModel.DataAnnotations; using System.Text; namespace Entidades { public class Usuarios { [Key] public int UsuarioId { get; set; } public String Nombre { get; set; } public String Clave { get; set; } public String ConfirmarClave { get; ...
beaf4b910e0740af298e76923d98bc9c68578e94
C#
yinchang0626/Nkust1082
/app/WebApplication/Controllers/StationsController.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Core.Services; using Microsoft.AspNetCore.Mvc; using WebApplication.Data; using YC.Models; namespace WebApplication.Controllers { public class StationsController : Controller { private readonly Appli...
c932df70c72357616da994dbc6ea0cc95541c975
C#
doraemon4makers/Doraemon4
/Assets/Script/GameManager/ItemInfoHelper.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; [System.Serializable] public class ChineseAndEnglish { public string chineseName; public string englishName; } public class ItemInfoHelper { // 中英文对照文本所在位置(不含Applicatioin.streamingAssetsPath) private const ...
b9e23bb54a42ad412dd18190e6193cda613c43be
C#
EfratHrrison/FlightSimulator-AP2
/FlightSimulator/Model/Info.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Net; using FlightSimulator.ViewModels; /******************** * class Info. * this class is responsible for the client side. * he will g...
3c046ac74d497183f554db7569ebf3f7d2cc3c3d
C#
KennyMiyasato/vertesaur
/src/Vertesaur.Core/PolygonOperation/PolygonBoundaryLocation.cs
3.03125
3
using System; using System.Diagnostics; using System.Diagnostics.Contracts; namespace Vertesaur.PolygonOperation { /// <summary> /// A location on a polygon boundary. /// </summary> public sealed class PolygonBoundaryLocation : IEquatable<PolygonBoundaryLocation>, IComparable<PolygonBo...
637d933526f1b545892e7a8d6f28108960460999
C#
mystuding123/Studying
/Сhapter4/Chapter4Task3/Program.cs
3.890625
4
using System; //3. Написати окремий метод, який знаходить суму бідь якої кількості чисел(використайparams) namespace Сhapter4Task3 { class Program { static int AddInt(params int[] numbers) { Console.WriteLine("Write {0} ints.", numbers.Length); int sum = 0; ...
4660a07e35fa4f4d72603244c5a7bf195cb82840
C#
debloke/FantasyCricket
/FantasyCricket/Common/Net/Exceptions/HttpResponseException.cs
2.53125
3
using System.Net.Http.Headers; namespace System.Net.Http { // Borrowed from NET.core public class HttpResponseException : Exception { public HttpStatusCode HttpStatusCode { get; private set; } public string Content { get; private set; } public HttpResponseHeaders HttpResponseHeade...
e8b8131ef0377ebdb03250b2e8cc79cfcbf20eb9
C#
GrumpyCockatiel/astroalgo
/C#/Angle.cs
3.171875
3
using System; using System.Collections.Generic; using System.Text; namespace TAGDigitalStudios.AstroAlgo { public struct Angle { private int degree; private int arcmin; private double arcsec; public Angle( int d, int m, double s ) { if ( m < 0 || m > 59 ) throw new System.ArgumentOut...
a8bf0d00e3d108e1d28b1bcdeb77416ede3c7543
C#
ozguraydogan/Dictionary
/Dictionary/MyDictionary.cs
3.78125
4
using System; using System.Collections.Generic; using System.Text; namespace Dictionary { class MyDictionary <TKey, TValue> { TKey[] keyItems; TValue[] valueItems; public MyDictionary() { keyItems = new TKey[0]; valueItems = new TValue[0]; } ...
c8b9619fd12e836fdcf639a29f7f4909ea098799
C#
ddinev90/boot-camp-scalefocus
/BankAccount.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.VisualBasic.FileIO; namespace BootCampBank { public class BankAccount: IAccount { public CSVReader CSVReader = new CSVReader(); publ...
43a1515513edd31036407ffc3ce1abca7ddd5451
C#
roy-t/Units
/Units.Generator/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.IO; namespace Units.Generator { class Program { static void Main(string[] args) { var text = File.ReadAllLines(args[0]); var tokens = new List<IToken>(); foreach(var line in text) { ...
8fad1092ae2d11adfda8ea3c58ff59a70a6623a9
C#
narayana-glassbeam/Hackerrank_Stuff
/Hackerrank/Algorithms/C# solutions/implementation/sherlock and squares.cs
3.78125
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; class Solution { static void Main(String[] args) { int T = int.Parse(Console.ReadLine()); while (T > 0) { int[] nums = Console.ReadLine().Split(' ').Select(n => int.Parse(n)).ToArray(); Consol...
dcbb94e2faea688c0b4ce582302af3d7e4e4917b
C#
sfizor/DiscoveryProjects
/SocialNetwork/SocialNetwork/Profile.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SocialNetwork { public class Profile { //public string Name {get; set;} private string _name; public string Name { get { ...
812dc3c1bdb52cf1ecdba8542fffeab42c69bc58
C#
crossql/crossql
/src/crossql/Constraints/AutoIncrementConstraint.cs
2.578125
3
namespace crossql.Constraints { public class AutoIncrementConstraint : IConstraint { private readonly IDialect _dialect; private readonly int _start; private readonly int _increment; public AutoIncrementConstraint(IDialect dialect, int start, int increment) { ...
fddca17b26ed27ebc3d065387b76643568f3e9de
C#
msysmilu/EsthaHelpers.NET
/Time/DateTimeHelpers.cs
3.234375
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web; namespace EsthaHelpers.Time { public static class DateTimeHelpers { private static string epoch_start_yyyyMMddHHmmss = "19700101000000"; private static string epoch_start_yyyyMMdd =...
85f444350e2f21dba8a4ad2367dd98c7ba62ab39
C#
joshuamunsters/MySerieListOnline
/MySerieList/DataLayer/Data/Mocks/MockSerieRepository.cs
2.546875
3
using Interfaces; using Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DataLayer { public class MockSerieRepository : ISerieRepository { private readonly ICategoryRepository _categoryRepository = new MockCategoryRepository(...
1f46fd4727cb35cfb37b37eba1421b1992bfdff0
C#
ZHOURUIH/GameEditor
/LegendEditor/Assets/Scripts/Frame/Common/Serialize/Serializer.cs
2.796875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; // 用于生成二进制文件的 public class Serializer : GameBase { protected int mIndex; protected int mBufferSize; protected bool mWriteFlag; // 如果为真,则表示是只写的,为假则表示是只读的 protected byte[] mBuffer; pub...
cf2822b3c0084b65d9fac2faf64ff8ed33d4031d
C#
sjmoden/advent20
/src/Day14Tests/InputCheckerTests.cs
2.734375
3
using Day14; using Moq; using NUnit.Framework; using Tools; // ReSharper disable InconsistentNaming // ReSharper disable CheckNamespace namespace Day14Tests.InputCheckerTests { [TestFixture] public class When_running_input_checker_with_example_values_part1 { private InputChecker _sut; ...
dbe72ef61fba8bf157ea58ebc2e2a249716abe9b
C#
FilippovMikhail/MicroservicesApp
/src/Catalog/Catalog.API/Controllers/CatalogController.cs
2.65625
3
using Catalog.API.Entities; using Catalog.API.Repositories.Interfaces; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; namespace Catalog.API.Controllers { [Route("api/v1/[controll...
99df345e766409e6d8ee2ba057217b745405cdd2
C#
Nongzhsh/ZSharp
/Framework/ZSharp.Framework.Domain.SqlDb/Repository/SqlDomainEventRepository.cs
2.515625
3
using System; using System.Linq; using System.Collections.Generic; using ZSharp.Framework.Serializations; using ZSharp.Framework.EfExtensions; namespace ZSharp.Framework.Domain { public class SqlDomainEventRepository<T> : BaseSqlDomainRepositroy, IDomainEventRepository<T> where T : IEventSourced { pri...
4eb674ec7249012e2c45f9b47200cc7558badf40
C#
RainsSoft/EasyUnityFramework
/client/UnityProject/Assets/Scripts/Core/UI/Progressbar.cs
2.671875
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System; public enum ProgressbarTypes { Determinate = 0, Indeterminate = 1, } public enum ProgressbarTextTypes { None = 0, Percent = 1, Range = 2, } public enum ProgressbarDirection { Horizontal = 0, Vertical = 1, } ...
74ca92e03a1dd225bd37c45e9e6d07f949deafe6
C#
DomGrieco/Lorule-Dark-Ages-Server
/Darkages.Server/Network/ServerFormats/ServerFormat2C.cs
2.71875
3
namespace Darkages.Network.ServerFormats { public class ServerFormat2C : NetworkFormat { public ServerFormat2C(byte slot, short icon, string text) { Slot = slot; Icon = icon; Text = text; } public override bool Secured => true; publi...
2dc7ec7899bbf169c37338e2ab0fdd4c317b27e8
C#
Mirradell/Ulearn_tasks
/part 2/9. Динамическое программирование/Tickets/TicketsTask_should.cs
2.765625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace Tickets { [TestFixture] public class TicketsTask_should { public void MakeTest(int halfLen, int totalSum, string answer) ...
0cb07991ac2a9fcb0ab890e18371e35fa25adac9
C#
MarioBeretta/AutodiffNet
/AutoDiffNetUnitTests/PowGradient.cs
2.890625
3
using AutoDiffNet; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; namespace AutoDiffNetUnitTests { [TestClass] public class PowGradient { [TestMethod] public void Pow1() { Variable x=new Variable();...
890551145707f32895a55b82c9628e1d49046257
C#
AsciiRose/Schiffspiel
/Item.cs
2.75
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace grundspiel { class Item : Objekt { private int wert; public Item(string bezeichnung, int positionX, int positionY, int wert, Bitmap bild) : base(bezei...
4c8bef8053e92ef073f9a05a6ca010f402a3718a
C#
HiVR/SerializedObjects
/SerializableVector3.cs
3.0625
3
// <copyright file="SerializableVector3.cs" company="HiVR"> // Copyright (c) 2016 HiVR All Rights Reserved // </copyright> namespace SerializedObjects { using System; /// <summary> /// Holds three floating point values, is serializable. /// </summary> [Serializable] public class SerializableVe...
53b7990b55027e2029124afcdf0284957d27fe57
C#
TomThe-Dev/ColoredLightsGameFix
/ColoredLightsFix/Assets/Resources/Scripts/GameManager.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public static GameManager S; public enum Direction { North, South, East, West } void Awake() { if(S == null) { ...
abb45c5524729bbc8073c60584e939c4d49eb789
C#
landrioli/HavingSomeCompetitiveProgrammingFun
/CCI/RecursiveAndDynamicProgramming/FindPermutationsWithoutDuplicates.cs
3.90625
4
using System; using System.Collections.Generic; using System.Text; namespace CCIChallenges.RecursiveAndDynamicProgramming { public static class FindPermutationsWithoutDuplicates { #region ApproachOne /*Approach 1: Building from permutations of first n-1 characters*/ public static List<...
eb76afcdca5d8fc52f9ba0c0f9b759922ff7a613
C#
ossan-dev/ISSTracker
/ISSTracker/Infrastructure/Interfaces/ISpeedService.cs
2.859375
3
namespace ISSTracker.Infrastructure.Interfaces { /// <summary> /// Service for calculate speed /// </summary> public interface ISpeedService { /// <summary> /// Calculate speed of the ISS /// </summary> /// <param name="distance">The distance traveled by the ISS in ...
e48b5213c30db5f111beeb6839c88e8f866570a1
C#
JasonTurley/CAAlphaTest
/CAAlphaTest/Utilities/Writer.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; namespace CAAlphaTest.Utilities { public class Writer { private Generator _gen = new Generator(); private Navigator _nav = new Nav...
c19a64704be03b7296d786072933ff8300c90a00
C#
olopezba/ComercioLibre.Common
/ComercioLibre/ComercioLibre/Converters/DateTimeToUpper.cs
3.03125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Xamarin.Forms; namespace ComercioLibre.Converters { public class DateTimeToUpper : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) ...
9150a425b5ad657d41502dee5c34f407d6fe954b
C#
si2012si/Magic-1089
/Problem_count_1089/Program.cs
3.625
4
using System; using System.Text; namespace Problem_count_1089 { class MainClass { public static void Main(string[] args) { double count = 100; double count1 = 0; double sum; while (count <= 999) { ...
0db76f59053f2902915379ad534a6f3a8b0df8e2
C#
bkosmowski/Design-Patterns
/DesignPatterns/DesignPatterns/Observer/WeekEvent.cs
3.359375
3
using System; namespace DesignPatterns.Observer { public class Button { public event EventHandler Clicked; public void Fire() { Clicked?.Invoke(this, EventArgs.Empty); } } public class Window { public Window(Button button) { ...
1135c6ecbcaaee33c8d5d2f75689883dd25c463a
C#
DmitriyVdE/DOTNETWS1920-DmitriyVanderElst
/LobbyApi/Repositories/CountryRepository.cs
2.8125
3
using LobbyApi.Data; using LobbyApi.DTOs; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LobbyApi.Repositories { public class CountryRepository : ICountryRepository { private readonly LobbyContext _context...
1bc2a5fcf3a8accd4357bb9a28653afd4330adea
C#
volinhbao/mediaplayer
/GUI/GUI/WavPlayer.cs
2.703125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using NAudio.Wave; using System.Media; using NAudio; namespace GUI { class WavPlayer : Player { private NAudio.Wave.WaveFileReade...
51352f4a42353aa75f7ec87667ded13d520bbe44
C#
dmanning23/MenuBuddy
/MenuBuddy/MenuBuddy.SharedProject/Widgets/Widget.cs
2.609375
3
using GameTimer; using InputHelper; using Microsoft.Xna.Framework; using System; using System.Threading.Tasks; namespace MenuBuddy { /// <summary> /// A widget is a screen item that can be displayed /// </summary> public abstract class Widget : IWidget, IDisposable { #region Fields private HorizontalAlignmen...