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
1a05c5ecd60b8d3ba3e3e3b90673658655fc576d
C#
FlorianRappl/YAMP
/YAMP.Core/Functions/ArgumentFunctions/LogspaceFunction.cs
2.703125
3
namespace YAMP { using System; [Description("LogspaceFunctionDescription")] [Kind(PopularKinds.Function)] sealed class LogspaceFunction : ArgumentFunction { [Description("LogspaceFunctionDescriptionForScalarScalarScalar")] [Example("logspace(2, 3, 5)")] public MatrixValue Function(ScalarValue start...
47bcd303d918062340f4d4d0cb7d2a8da1cc7ece
C#
filipwicha/ProjectTS-Csh-Client
/ProjectTS Csh Client/Program.cs
3.03125
3
using ProjectTS_Csh_Client; using System; using System.IO; using System.Net; using System.Text; using System.Net.Sockets; using System.Collections; using System.Linq; public class client { public static void Main() { try { TcpClient tcpclnt = new TcpClient(); ...
dcb4fdded0ffa7195dec7f816e2c372da1f10788
C#
gabrielhbcs/TreinoCSharpRadix
/Grafos/Services/Implementations/DistanceService.cs
2.921875
3
using System.Threading.Tasks; using Grafos.Services.Interfaces; using Grafos.Models; using Grafos.Repository.Interfaces; using System.Collections.Generic; using System; namespace Grafos.Services.Implementations { public class DistanceService : IDistanceService { IDistanceRepository _distanceRepository;...
199a72d556cf6d1d7eea62853ddfef7955705555
C#
mvcds/projeto-integrador-4semestre-2013
/projeto/PI/Assets/Scripts/general/ObjectSpawnerByOdd.cs
2.84375
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; public class ObjectSpawnerByOdd : MonoBehaviour { public bool testOdd = false; private bool oddTested = false; private static Dictionary<string, int> dicObj; public GameObject[] SpawnableObejcts; public float[...
cbf1f0d4759ef38c7b8ea616060a901d17fc8e14
C#
silky/Hadoken
/Hadoken.IO.Web/WebService.cs
2.515625
3
#region Using References using System; using System.Collections.Generic; using Hadoken.Core; using Hadoken.Core.Elements; #endregion namespace Hadoken.IO.Web { public class WebService { public WebService(string baseUrl) { _baseUrl = baseUrl; } private readonly s...
a25e7875f1a48b546ec547d58573817212c1a91f
C#
kousokujin/ComputerResourceBroadcaster
/ComputerResourceReciver/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Net.WebSockets; using System.Threading; namespace ComputerResourceReciver { class Program { static int port; static UdpCl...
6510ec781409c18d91da45b5c4237ffce977e098
C#
wysiwyggins/Thicket
/Prototype/Assets/Scripts/PieceManager.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //using UnityEngine.UI; using UnityEngine.Tilemaps; public class PieceManager : MonoBehaviour { public static PieceManager Instance; public static List<Piece> AllPieces = new List<Piece>(); public delegate void PieceAction(); publ...
b366127b411b02c8daaf0efb7e92a81bd3b0b421
C#
zhoulin1600/Hugo.Core.Api
/Hugo.Core.Common/Auth/AccessToken.cs
2.640625
3
using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; namespace Hugo.Core.Common.Auth { /// <summary> /// 访问令牌类 /// <para>NuGet:Install-Package IdentityModel</para> ...
9eab00777e2425fe1f49414520b3d8e42ac923fd
C#
korvblad/SN14
/labb7/labb7/Controllers/HomeController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace labb7.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index() { var list = GetList(); return View(list)...
1e60cb5da01a4d2510a222014dd176e855653fe9
C#
ralovich/quickroute-linux
/QuickRoute.UI/Forms/ColorRangeIntervalEditor.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using QuickRoute.BusinessEntities.Numeric; namespace QuickRoute.UI.Forms { public partial class ColorRangeIntervalEditor : Form { pri...
1c6946119120dc9e637bb84cf9538ac7656aec27
C#
TomasLopes1998/IIA_1
/ProjectIIA_P1/Assets/Scripts/MinMaxAlgorithm1_0.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using DeepCopyExtensions; public class MinMaxAlgorithm1_0 : MoveMaker { public EvaluationFunction evaluator; private UtilityFunction utilityfunc; public int depth = 0; private PlayerController MaxPlayer; p...
4edc4cdd53b9084db8df038ce7427fb52aa7ac0f
C#
TheXDS/Triton
/src/Bundles/Triton.Diagnostics/Middleware/TextJournal.cs
2.578125
3
using TheXDS.MCART.Types.Extensions; using TheXDS.Triton.Models.Base; using TheXDS.Triton.Services; using St = TheXDS.Triton.Diagnostics.Resources.Strings; namespace TheXDS.Triton.Diagnostics.Middleware; /// <summary> /// Clase abstracta que define un escritor de bitácora basado en entradas /// de texto. /// </summa...
367bb9b96b7eec9a959f7e44adf94cd525e06247
C#
vanderkorn/Vanderkorn.DbTree
/Tree/INode.cs
3.265625
3
using System; using System.Collections.Generic; using System.Text; namespace Tree { /// Интерфейс узла дерева /// </summary> public interface INode<T> { /// <summary> /// Родитель узла /// </summary> INode<T> Parent { get; set; } /// <summary> /// Уровен...
41a1707977e2fbde068a93187cd76abcf0c2ed5a
C#
jageradrienn/http-courses
/gui/AlexCsharpWpf/WpfErettsegiEgyszamjatek/WpfErettsegiEgyszamjatek/MainWindow.xaml.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; 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.Windo...
1ac138056aefc85d4093cf74996368ed5053f126
C#
AaronMadison29/Battleship
/BattleShipGame/Player.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace BattleShipGame { abstract class Player { public string name; public Board playerBoard = new Board(); public Board opponent...
f8088f23be69e7975de4079a9f2d7601f365a568
C#
9087/Saffiano
/Saffiano/Asset.cs
2.828125
3
using System; using System.Collections.Generic; using System.IO; using System.Reflection; namespace Saffiano { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] internal class FileFormatAttribute : Attribute { } public class Asset : Object { internal class FileForma...
df7fd1177762380d2d1439f117b470eaf51722b7
C#
avlasova/Nancy
/src/Nancy.Tests/Unit/NancyCookieFixture.cs
3.03125
3
namespace Nancy.Tests.Unit { using System; using System.Globalization; using Cookies; using Xunit; public class NancyCookieFixture { [Fact] public void Should_stringify_a_simple_name_value() { // Given var cookie = new NancyCookie("le...
65955616a2dc19532aca6ebbaf1add4f906dd354
C#
lumyslinski/battleships
/Battleships.Core/Ships/BaseShip.cs
3.15625
3
using System.Collections.Generic; namespace Battleships.Core.Ships { public abstract class BaseShip { public string Name { get; protected set; } public string NameSymbol { get; protected set; } public int Squares { get; protected set; } public int Life { get; protected set; } ...
275b8183d0d44806cc4da38bc770cedc13d2fa7c
C#
YuliaFeldman/Computer-Graphics
/Project 0/EX0/Assets/GameController.cs
3.0625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameController : MonoBehaviour { public static int FIELD_SIZE = 30; // Width and height of the game field public static float COLLISION_THRESHOLD = 1.5f; // Collision distance between food and player public GameOb...
ee3ef7347ac225b5543021c9c547215f417d3cce
C#
diogocavassani/BLVGestao
/BLVGestao/src/BLVGestao.Data/Mapping/ProdutoMap.cs
2.53125
3
using BLVGestao.Domain.Model; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Diofab.BLVGestao.Data.Mapping { class ProdutoMap : IEntityTypeConfiguration<Produto> { public void Configure(EntityTypeBuilder<Produto> builder) { bui...
e808a604afe465cac23b8ddc34a580f03d5f9eeb
C#
Natsumi-Okimoto/limit-TileMap
/Assets/Scripts/ConditionEffectManager.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ConditionEffectManager : MonoBehaviour { public static ConditionEffectManager instance; public List<ConditionEffect> conditionEffectsList = new List<ConditionEffect>(); void Awake() { if (instance == n...
7066fc62868dfbb81ff2f6199cbbc923dfa4447d
C#
randomName1235435/TestingDtoMappings
/TestingDtoMappings/Models/SampleBusinessClassMapper.g.cs
2.671875
3
using System.Collections.Generic; using TestingDtoMappings; namespace TestingDtoMappings { public static partial class SampleBusinessClassMapper { public static SampleBusinessClassCodeGenDto AdaptToCodeGenDto(this SampleBusinessClass p1) { return p1 == null ? null : new SampleBusine...
bb4b1b1e206c3a72e49c493a0dd16abe4ce34a7c
C#
shendongnian/download4
/code7/1214862-32320997-98635627-2.cs
2.671875
3
catch (AggregateException ex) when (ex.InnerException is DocumentClientException) { DocumentClientException dce = (DocumentClientException)ex.InnerException; switch ((int)dce.StatusCode) { case 429: Thread.Sleep(dce.RetryAfter); break; ...
00098038309f4f4946c60261a04cc631d0ff7716
C#
kriskniaz/pCode
/Optimization/Optimization.Tests/TestFunctions.cs
3.25
3
using System; namespace Net.Kniaz.Optimization { /// <summary> /// 3 dimensional quadratic function with the minimum /// at (1,-2,3) /// </summary> public class TestFunction: RealFunction { public override int Dimension { get{return 3;} } public override double GetVal(double[] x) { double x1,x...
89c8f4df16134c477c500ca8929fb69e5c1abf1b
C#
margostino/portal_cdm
/PortalAppWeb/Helpers/JTokenExtensions.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json.Linq; namespace CDM.Portal.PortalAppWeb.Helpers { public static class JTokenExtensions { public static string ReadAsString(this JToken root, string path) { JToken leaf = root....
a76e0d26daa8a575c4f4509871af3985c16b1c64
C#
richard-s-popov/broccoli
/new.broccoli/Logics/Interfaces/Account/IAccountsService.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BroccoliTrade.Domain; namespace BroccoliTrade.Logics.Interfaces.Account { /// <summary> /// Интерфейс для работы с сервисом счетов /// </summary> public interface IAccountsService : IDisposable { //...
c9677f7345cae49c6e36e9874f1a5bc5d70b6bce
C#
GoodProgrammerMB/restApi-SpaApp
/GP.Domain/Services/BookService.cs
2.65625
3
using GP.Domain.Assemblers; using GP.Domain.Contracts.DataAccess.Books; using GP.Domain.Contracts.DataAccess.Authors; using GP.Domain.Contracts.DataAccess.PublishingHouses; using GP.Domain.Contracts.Services; using GP.Domain.Models.Core.Books; using GP.Shared.Dto.Books; using GP.Shared.Utils; using System.Collections....
702d6ed912a28f222b0a777f05bfc42b905a4858
C#
sevginmustafa/CSharpFundamentals
/Lists/Exercise/09.PokemonDontGo/09.PokemonDontGo/Program.cs
3.703125
4
using System; using System.Linq; using System.Text; using System.Numerics; using System.Collections.Generic; namespace Exercise { class Program { static void Main(string[] args) { List<int> array = Console.ReadLine().Split().Select(int.Parse).ToList(); int temp = 0; ...
e80ceaf7469aaeec942370bd86c0af281b839ec9
C#
SyPham/TauThuyenViet
/TauThuyenViet/TagHelpers/MessageTagHelper.cs
2.890625
3
using Microsoft.AspNetCore.Razor.TagHelpers; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TauThuyenViet.TagHelpers { public class MessageTagHelper : TagHelper { public enum MessageType { info, success, ...
390f5f30e96dda4c0e5728b01a0c8ed5757094ea
C#
mertz1/GameOfLife
/Game Of Life/Models/GridModel.cs
2.96875
3
using Game_Of_Life.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Game_Of_Life.Models { public class GridModel { public GridModel() { Grid = new int[Rows][].Initialize(Rows, Columns); } public ...
8c7e29304b85032b296a30569bf71e30e8853b27
C#
marioluigi16/TodoListWinformsClient
/TodolistWinforms/WSManager.cs
3.0625
3
using Newtonsoft.Json; using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace TodolistWinforms { public class WSManager { public async Task<T> HTTPGet<T>(string uri) { try { using (var client = new HttpClient()) ...
53909bb7869cfda120ba1a0df1509608b054640f
C#
Liorbe1/Utils.NET
/src/IO/Streams/LimitedStream.cs
2.765625
3
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Types.BytesSize; namespace CS.Utils.IO.Streams { public class LimitedStream : WrapStream { public override bool CanSeek => false; public override bool CanWrite => false; public override long Length => Math.Min(base.Leng...
7e13e51e408261144b2c84d53fe6c01901603479
C#
xyecom/AMS
/XYECOM.Configuration/Ranking.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; using System.Xml; using XYECOM.Core.XML; namespace XYECOM.Configuration { /// <summary> /// Ranking.config ļ /// </summary> public class Ranking : BaseConfig { private int rankingTotal; private string timeUnits; ...
46693d29235a7771db5ba9b88dbf5397462fb0ee
C#
AidanR1999/WaltonHappyTravel
/Models/Country.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Walton_Happy_Travel.Models { /// <summary> /// The country of the acco...
d8be0ee84e940007bd1d921a6ef8c406b95ccde1
C#
TenzinBraun/Virtual-Builder
/HTCSide/Assets/Scripts/Input/InputManager.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputManager : MonoBehaviour { private static readonly string CLICKED_LEFT_TRIGGER_NAME = "TriggerLeft"; private static readonly string CLICKED_RIGHT_TRIGGER_NAME = "TriggerRight"; private RayCast rayCast; ...
51cd561f8225cd035235d1c6c507d2c473fb554c
C#
ME3Explorer/ME3Explorer
/Gammtek.Conduit.Core/Dynamic/Collections/DynamicKeyValuePair.cs
2.671875
3
using System.Collections.Generic; using System.Dynamic; namespace Gammtek.Conduit.Dynamic.Collections { internal sealed class DynamicKeyValuePair<TKey, TValue> : DynamicObject { private KeyValuePair<TKey, TValue> _kvp; internal DynamicKeyValuePair(KeyValuePair<TKey, TValue> item) { _kvp = item; } pub...
8985060c128097b565bcfac6245c3a3096cab66d
C#
nbombau/geneticalgorithms
/Genetics/Selection/IMixedSelection.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Genetics { /// <summary> /// Interfaz IMixedSelection /// </summary> /// <remarks> /// Define un metodo de seleccion de individuos que selecciona /// cierta cantidad con un metodo, y otr...
4d9e216d0dd3ecc1b600eb40e8182ba722d6326c
C#
Swaroop560/GrowelProject
/GrowelAPI/DataContext/AuthRepository.cs
3
3
using System.Threading.Tasks; using GMSAPI.Model; using GrowelAPI.DataContext; using Microsoft.EntityFrameworkCore; namespace GMSAPI.DataContext { /* This Auth Repo is Responsible for interacting with the EF to fetch the Data. */ public class AuthRepository { private readonly EmployeeDat...
9d2e365e20f509d1b59d2a17ec4b107d0f3a7170
C#
ITI-9-Month-Progrm/Blazor
/Day03/Task03/Pages/Lab02/UpdateTrainee.cs
2.6875
3
using Microsoft.AspNetCore.Components; using Model_Libraries; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Task03.Services; namespace Task03.Pages.Lab02 { public partial class UpdateTrainee { [Parameter] public int Trainee_Id { get; set...
e4fe9efdb4bdb5ac4825dd3f05273a7028d7b098
C#
jdaomilang/report-generator
/Demon.Word/Style.cs
2.75
3
using System; using System.Collections.Generic; using System.Xml.Linq; using s = Demon.Report.Style; namespace Demon.Word { internal class Styles : Part { private Dictionary<string, Style> _styles = new Dictionary<string, Style>(); public override string ContentType => "application/vnd.openxmlformats-officed...
5bd8610b21a8214f5a178f1ec515bdf8116df50d
C#
Azure-Samples/modern-data-warehouse-dataops
/e2e_samples/deployment_stamps/api/WebApi/Filters/ValidateDeviceFilter.cs
2.65625
3
using System.Net; using System.Net.Http; using WebApi.Models; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; using WebApi.Repositories; namespace WebApi.Filters { /// <summary> /// Validate if a device exists in tenant by using {tenantId} and {deviceId} route vaule. /// </summ...
318308adfadadc32e4c29703cec3a6023bc533d3
C#
royalkitsune/Priceall
/Priceall/Http/HttpUtilities.cs
2.796875
3
using System.Reflection; namespace Priceall.Http { /// <summary> /// Utilities for making HTTP requests. /// </summary> static class HttpUtilities { private static string _appVersion; /// <summary> /// The default User-Agent value for the app. /// </summary> ...
370a406b9f2d4071e0b5066e7d4a56d9a8ab1299
C#
mhartsuiker/LinkedListExample
/LinkedListExample/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinkedListExample { class Program { static void Main(string[] args) { LinkedList<string> linkedList = new LinkedList<string>(); for (int i =...
266d73e60b27bfc7d2f052399ad8383a12a0d019
C#
otac0n/SharpBooks
/SharpBooks/UI/HeaderRenderer.cs
2.53125
3
// Copyright © John Gietzen. All Rights Reserved. This source is subject to the MIT license. Please see license.md for more information. namespace SharpBooks.UI { using System; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; public enum HeaderItemState ...
36634e57d563a9e05660724a4666223bf74233ac
C#
Constantin1987/ENIGMA-Project
/Registration/CustomerDb.cs
2.515625
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.Data.SqlClient; namespace Registration { public partial class CustomerDb : Form {...
af6dfe0eb217d0f8f639cd2e10f74771d1c036bc
C#
thirusabari/CSharp-Basic-Concepts
/Keys In Dictionary with List/Keys In Dictionary with List/Program.cs
4.09375
4
using System; using System.Collections.Generic; namespace Keys_In_Dictionary_with_List { class Program { static void Main(string[] args) { Console.WriteLine("Print out the Keys in Dictionary using List"); Console.WriteLine(); Console.WriteLine("We use the Li...
daa90f2e8319a63efacc3980914975b8e7b43a7e
C#
rainrcn/AngleSharp
/src/AngleSharp/Dom/Css/Properties/Coordinate/CssMaxWidthProperty.cs
2.609375
3
namespace AngleSharp.Dom.Css { using AngleSharp.Css; using AngleSharp.Extensions; /// <summary> /// Information can be found on MDN: /// https://developer.mozilla.org/en-US/docs/Web/CSS/max-width /// Gets the specified max-width of the element. A percentage is /// calculated with respect t...
4c450f6d0387396ccb7d164992060bfeba35f882
C#
codeinpeace/Elasticity
/Elasticity/Domain/SchedulerJob.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Elasticity.Events; namespace Elasticity.Domain { public class SchedulerJob : AggregateRoot { public List<ISchedulerTask> Tasks { get; private set; } public SchedulerJob() { // Used to...
9d1da32338b962dba627bd9b7e6f323193fbe65a
C#
juanmapf97/SIFinalProject
/SIFinalProject/Domain/Compact.cs
2.640625
3
using System; using SIFinalProject.Domain; namespace SIFinalProject { public class Compact : Vehicle { #region Constructors public Compact(string model) : base(model, 2, 510) { } #endregion #region Private Properties private int _completeRental; #endregion #region Public Properties public...
ced298b0101737a3640a04b22e8e9d714b985bb6
C#
sakapon/Samples-2017
/Network/UdpSample/UdpMessenger/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Threading; namespace UdpMessenger { class Program { static void Main(string[] args) { Console.WriteLine("Local Addresses:"); foreach...
c80faf2d2b9b59da64cf649b0d9a59cc4c90412b
C#
vamaravilla/Orion
/SevenDays/SevenDays.DataAccess/UserDataAccess.cs
2.859375
3
using Microsoft.AspNetCore.JsonPatch; using Microsoft.Extensions.Configuration; using SevenDays.Entities; using SevenDays.Util; using System; using System.Linq; using System.Threading.Tasks; namespace SevenDays.DataAccess { public class UserDataAccess { private readonly IConfiguration Configuration; ...
73879c03a9f68813cd83010a9f36541141423da6
C#
bmishra12/SHIPTACenter
/Code/Extensions.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.ComponentModel; using Newtonsoft.Json; namespace UmbracoShipTac.Code { public static class Extensions { /// <summary> /// Descriptions the specified @enum. ...
fd8ecf180cc8a96f67353b9f1b7bb8f035fb15c7
C#
lusinekh/Contacts
/Send/ContactsApp/ContactsApp/DataAccess/DataAccess.cs
2.890625
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ContactsApp.DataAccess { public class DataAccess { private static ContactsEntities dbContext = new ContactsEntities(); public st...
d7297df1c523bc550c0da45aae296f04f4528be2
C#
marius-cismaru/Infonova-WMS
/02. Source code/Infonova/Infonova.ManagementWeb2/ArticleCategories.aspx.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Infonova.ManagementWeb2 { public partial class ArticleCategories : System.Web.UI.Page { protected void Page_Load(object sender, EventA...
adcfa690a770b817635fefbab43153c43489d6b3
C#
desdemonhu/Bad-Behavior
/Assets/Plugins/Pixel Crushers/LoveHate/Example/Scripts/NPC.cs
2.578125
3
using UnityEngine; using System.Collections; using System.Text; namespace PixelCrushers.LoveHate.Example { /// <summary> /// Basic NPC script for the example scene. Note that it uses the event system /// to handle IWitnessDeedEventHandler's OnWitnessDeed() method. /// </summary> public class NPC : Mover2D, IWit...
ac66f1670d2487eddc9b5d6d84be943d673b7e1e
C#
meutley/BicycleShop
/BicycleShop.Server/BicycleShop.Data/Repositories/RepairNoteRepository.cs
2.765625
3
using BicycleShop.Data.Contexts; using BicycleShop.Data.Models.Bike; using BicycleShop.Data.Repositories.Contracts; using System; using System.Collections.Generic; using System.Linq; namespace BicycleShop.Data.Repositories { public class RepairNoteRepository : IRepairNoteRepository { private readonly ...
d5a9992bce2ca4ae0e0957ced6a714b7f7bd6872
C#
sgtStark/ChessEngine
/ChessEngineLib/ChessPieces/NullPiece.cs
3.390625
3
namespace ChessEngineLib.ChessPieces { public class NullPiece : ChessPiece { public NullPiece(Board board) : base(board, PieceColor.Empty) { } public override bool IsLegalMove(Square origin, Square destination) { if (origin.Color == destination.C...
c30f1271768ff337f8603d97fb8d53780e30229a
C#
mikependon/dotnet
/AdvanceIntegration/DataProvider/DataProvider/Factories/StringFactory.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; namespace DataProvider.Factories { public static class StringFactory { public static IEnumerable<string> GetStrings() { var text = @"We believe that it's time to take real action to create a world that runs on green...
7fb97b7dd2dd4eb4b36bd4ccdc325ea00ce5115c
C#
cntimothy/lottery
/WindowsFormsApplication1/FileUtils.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace WindowsFormsApplication1 { class FileUtils { public static List<string> readFile(string path) { try { StreamReader sr = new StreamReader(path...
7a38df54a4a5221812aae6572ef050d84fc78ab0
C#
TonyStew/2DRogueLike
/Assets/Completed/Scripts/Bat.cs
2.734375
3
using UnityEngine; using System.Collections; namespace Completed { public class Bat : Enemy { //Overriding the AttemptMove function of the parent (Enemy) so that it moves every turn rather than every two. protected override void AttemptMove<T>(int xDir, int yDir) { //tellin...
9e3d97df62d9a5196b0a001cf082110a7b177e73
C#
b9chris/Brass9.Data
/Brass9.Data/DataHelper.cs
2.921875
3
using System; using System.Data; using System.Transactions; using System.Linq; using System.Text; namespace Brass9.Data { /// <summary> /// General Sql/Data helpers /// </summary> public static class DataHelper { /// <summary> /// Works around the fact that an object from a DB might be null, ...
51ab3892cbcd97c48bb2b5e71285554e175f2414
C#
haliphinx/leetcode
/18_fourSum/c#/4sum.cs
3.359375
3
public class Solution { public IList<IList<int>> FourSum(int[] nums, int target) { Array.Sort(nums); IList<IList<int>> result = new List<IList<int>>(); //1,1,1,2,2,2,3,3,3,4,4,4,5,6,7,8 15 for(int i = 0; i < nums.Length - 3; i++){ if(i - 1 >= 0 && nums[i] == nums[i - 1]) continue; ...
06f06425fadf32fa0acbfe25391a302ce5e54f00
C#
darioajr/BalancaApi
/BalancaApiService/BalancaController.cs
2.921875
3
using System; using System.IO.Ports; using System.Threading; using System.Web.Http; namespace BalancaApiService { public class BalancaController : ApiController { private int _timeout = int.Parse(System.Configuration.ConfigurationManager.AppSettings["timeout"].ToString()); // GET a...
f5b6a9b5180a84d4cfb2f6020fdd742892d35d61
C#
pogh/Code-2019.01-Service-Center-Web
/WebService/Models/Extensions/WebApplication/Address.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Company.WebService.Models.Extensions.WebApplication { public class Address { [Key] public int AddressId { get; set; } [StringLength(50)] public...
57100d7c3d00044e9af76a2fd05bebf962ea5685
C#
zsr2531/nodify
/Examples/Nodify.Calculator/OperationViewModel.cs
2.6875
3
using System.ComponentModel; using System.Linq; using System.Windows; namespace Nodify.Calculator { public class OperationViewModel : ObservableObject { public OperationViewModel() { Input.WhenAdded(x => { x.Operation = this; x.IsInput = ...
5a6ba09d49c8e0ccc2faf0eeb98d97ce57dff84d
C#
pedromonad/deumatch
/deu-match-rest/src/DotNetCoreAppExample.Domain/Empresas/Entities/Rating.cs
2.796875
3
using DotNetCoreAppExample.Domain.Core; using DotNetCoreAppExample.Domain.Perguntas.Entities; using DotNetCoreAppExample.Domain.Usuarios.Entities; using FluentValidation; using System; namespace DotNetCoreAppExample.Domain.Empresas.Entities { public class Rating : EntityBase<Rating> { public Rating(Gu...
8d4a67ccab3d08d3eeaa700d27e2590882c5ef9e
C#
magnusjerre/Whack-A-Shoot
/Assets/Scripts/ShotRendererPool.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShotRendererPool : MonoBehaviour { public ShotRenderer shotRendererPrefab; public int initalPoolCapacity = 10; private List<ShotRenderer> pool; void Start () { pool = new List<ShotRenderer>(); for (int i = 0; i < ini...
8e1e71fd94ce8115278958a3214d08e9f8c190c3
C#
ISAM5430-FA19/murugananthad3314_ISAM5430_HW
/HW2A/D2_8/Program.cs
3.453125
3
using static System.Console; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace D2_8 { class Program { static void Main(string[] args) { WriteLine("Enter the count of numbers: "); int count = int...
4fe8d37e1bdf1779076939e01a64152990f3999c
C#
okezieokpara/navigation
/Navigation/Mvc/SorterExtensions.cs
2.625
3
#if NET40Plus using System; using System.Web; using System.Web.Mvc; namespace Navigation { /// <summary> /// Represents support for HTML in a navigation application /// </summary> public static class SorterExtensions { /// <summary> /// Returns an anchor element (a element) with its href attribu...
6b600b842030b6ca39783bad7a377db2ad5daf4a
C#
gnutgnut/ResourceSyncSharp
/ResourceSyncSharp/Utilities/Func.cs
3.015625
3
using System; using System.Diagnostics.CodeAnalysis; using JetBrains.Annotations; namespace ResourceSyncSharp.Utilities { /// <summary> /// This just enables usage like: /// /// var myfunc = Func.Infer((o) => o.DoSomething()); /// /// i.e. infer the type of an anonymous delegate /// ...
21d9f1d26cd95fab6173cb88e7a902bdcc2ef399
C#
fionaeking/advent-of-code-2019
/Day12/Program.cs
3.109375
3
using System; using System.Collections.Generic; using System.IO; // Jupiter's Moons // --- Part 2 --- // Each axis changes independently of the other axes // Find period of oscillation for each axis // Then find Least Common Multiple of those 3 periods // This will be timestep where the state matches the first state...
675419be287d698d24d8be1fbbb4a95947b7e6ca
C#
SatyamsettiKumar/MyLibraryCore
/MyLibraryCore/Controllers/BooksController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using MyLibraryCore.Models; using MyLibraryCore.Repository; namespace MyLibraryCore.Controllers { public class BooksController : Controller ...
971c5a078531c6400cb0231874b97d3868d66a55
C#
nikolaspasov/C-Sharp-Fundamentals
/Exercise Data Types and Variables/SpiceMustFlow/Program.cs
3.1875
3
using System; using System.Net.WebSockets; namespace SpiceMustFlow { class Program { static void Main(string[] args) { int yield = int.Parse(Console.ReadLine()); int extracted = 0; int days = 0; while (yield >= 100) { ...
a4a7d6453113f4e835998a341cd4a5705dc4e11e
C#
xiaomeng2345/FiiiChain-POW
/Wallet/FiiiCoin.Wallet.Win/Converters/BoolsToBoolMultiConverter.cs
2.671875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace FiiiCoin.Wallet.Win.Converters { public class BoolsToBoolMultiConverter : IMultiValueConverter { public object Convert(ob...
e9dad912f56ab08a6b54922518edf7cb63e99587
C#
msotiroff/Softuni-learning
/C# Fundamentals Module/CSharp-OOP-Advanced/Previous instance/00.PastExams/RecyclingStation/RecyclingStation/RecyclingStation/Models/Strategies/RecyclableStrategy.cs
2.75
3
using RecyclingStation.Extensions.CustomAttributes; using RecyclingStation.WasteDisposal.Interfaces; namespace RecyclingStation.Models.Strategies { [Recyclable] public class RecyclableStrategy : IGarbageDisposalStrategy { public IProcessingData ProcessGarbage(IWaste garbage) { ...
9d1fe94b597781da2c98e6b3b02be61c29c95046
C#
Lukas3475/WPF
/Lab8/WpfApp1/WpfApp1/MainWindow.xaml.cs
2.625
3
using System; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Documents; using System.Windows.Input; using System.IO; using Microsoft.Win32; using System.Collections.Generic; namespace WpfApp1 { public partial class MainWindow :...
8f068a7b25b7fcc3572200c1b0a642a8a4315949
C#
genyman/core
/src/Helpers/ProcessRunner.cs
2.640625
3
using System; using System.Collections.Generic; using System.Diagnostics; using McMaster.Extensions.CommandLineUtils; namespace Genyman.Core.Helpers { public class ProcessRunner { static ProcessRunner _processRunner; readonly List<string> _arguments = new List<string>(); Func<string, bool> _receiveOutput; re...
aef9e1778940efb0da8d5588aa1c38c48efb1f6c
C#
santhoshkumarhere/Practice
/Practice/NonRepeatedSequence.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practice { class NonRepeatedSequence { public static void GetResult() { string search = "abccba"; char[] x = search.ToCharArray(); ...
e105b1e911db3e37237a56268005dfea3a08c44c
C#
niaiaiai/MyFramework
/src/MyRepositories/Repositories/IRepository.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace MyRepositories.Repositories { public interface IRepository<Entity> : IReadOnlyRepository<Entity> where Entity : class { Task InsertAsync(IEnumerable<Entity> entities); Task In...
c1f6d1cde9b830d239ea4244eab08a298b096c7a
C#
DanylZhang/CurriculumDesign
/CSharp/CSharp基础/函数/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 函数 { class Program { static void Main(string[] args) { string[] values = { "111", "222", "333" }; VFun(values); VFun("aaa", "bbb", "...
7bdf4c49a7c7d9cbb4ba4cbf7af26bb892263db3
C#
Vonski/AISDE_nr2
/AISDE_nr2/AISDE_nr2/Network.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace AISDE_nr2 { class Network { public int number_of_nodes; public int number_of_links; public List<Heap<Link>> links_from_node; public Lin...
3465f01d3d2d18ad17c5051eeac12f52ec394327
C#
laneald/undergrad-projects
/game-development/Homework3/Assets/Scripts/CameraMovement.cs
2.546875
3
/* hmwk3_ldickerson5_CameraMovement.cs Laneal Dickerson Account: ldickerson5 CSc 4821 Homework 3 Due date: 10/24/2019 Description: This script controls the movement of the camera following the player. The script attaches itself to the camera based on the p...
0db2a17ca058f42bc910bb8f49bc6046a89526f2
C#
JamesDawson/Corvus.Testing
/Solutions/Corvus.Testing.SpecFlow/Corvus/Testing/SpecFlow/TeardownExceptions.cs
2.625
3
// <copyright file="TeardownExceptions.cs" company="Endjin Limited"> // Copyright (c) Endjin Limited. All rights reserved. // </copyright> namespace Corvus.Testing.SpecFlow { using System; using System.Collections.Generic; using System.Threading.Tasks; using TechTalk.SpecFlow; /// <summary> /...
b905f0198196ac7f36aaf201bc6d3239d77740e4
C#
LuongPhuHoa/PhongNT-FPTU-Learning-Resources
/2021_Semester5_SUMMER/PRN211/Code Project/WindowsForm/TimerDemo/TimerDemo/Form1.cs
2.65625
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 TimerDemo { public partial class frmMain : Form { public frmMain() { ...
4e3563b6de76e3380c80c2f7e70d44ab5adc7744
C#
kgaughan1/C_Sharp
/Dev_University/Fundamentals/Challenges/CS-ASP_051-MegaChallengeWar/MegaChallengeWar/Default.aspx.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace MegaChallengeWar { public partial class Default : System.Web.UI.Page { Random random = new Random(); protected void Page_Load(object sender, Even...
16b8158221470513f0210d0bdbeaff7677f82f53
C#
Infernosaint/DeByCo2
/ContractStuff/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics.Contracts; namespace ContractStuff { class Program { static void Main(string[] args) { Bank bank1 = new Bank("SUPERBANK"); Custom...
40623226d370eff54d1b4b3b0a1b9dacae8b5f27
C#
SnowPea8072/Essentials
/Function.cs
3
3
using Newtonsoft.Json.Linq; using Newtonsoft.Json; using System.Text; using System.Linq; using System.IO; using System; namespace Essentials { public class Function { #region API方法补充 /// <summary> /// 格式化 JSON 字符串 /// </summary> /// <param name="str">需要格式化的字符串</param> ...
d26186e5a65ee45595d2dcadaccfa627ece3e77d
C#
kostadinSpiridonov/KTraining
/KTraining/KTraining.Service/TopicService.cs
2.765625
3
using KTreining.Model; using System; using System.Collections.Generic; using System.Linq; namespace KTraining.Service { public interface ITopicService { void Add(Topic model); ICollection<Topic> GetForTeacher(int teacherId); void Delete(int id); Topic GetById(int id); } ...
f25a6756cdc7692df678507023fc095100d2167b
C#
DIkshuj97/glitch-garden
/Glitch_Garden/Assets/Scripts/Vendor.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Vendor : MonoBehaviour { [SerializeField] float damage = 500f; [SerializeField] float speed=0f; private void Update() { if(GetComponent<Animator>().GetBool("Running")) { Move()...
820e5f5eebc29f6fdfbbee4111ef4debca5da1ce
C#
shirulot/CAC
/Assets/Script/GameProgram/Hand.cs
3.03125
3
using System.Collections.Generic; public class Hand { //通常抽卡数 int NormalDrawCount = 0; //额外抽卡数 int ExtDrawCount = 0; //因效果加入手牌张数 int AddCount = 0; //回收张数 int GetBackCount = 0; private List<Card> _list = new List<Card>(); // 通常抽牌 public void CardDraw(Card card) ...
1483770aac48170ec98d16c1fef6cc27d89ef681
C#
MeeLucky/Teon
/Tests_for_students/TestResult.xaml.cs
2.671875
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;...
d181ddf8fab6d0ce68d4c2d08c8f25b961db296c
C#
GuoMonth/WHPersonManager
/WPMPublicLib/HttpHelper/HttpHelper.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Data; using System.IO; using Newtonsoft.Json; namespace WPMPublicLib.HttpHelper { public class HttpHelper { private static string m_url; private static HttpManager m_httpManag...
97e28858e72431d980dd27a39e30d3c1b971d60c
C#
dotyso/ScreenInteraction
/ScreenPlayer/MediaService.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.ServiceModel.Web; namespace ScreenPlayer { [ServiceContract] public interface IMediaService { [OperationContract] bool Play(string content); [OperationCont...
6d0cdc488e71dc94f5754b1fdd1474a57c3c6089
C#
nicktockclock/coffeeanxiety
/Coffeeanxietygame/Assets/Assets/Scripts/Bulletpoolscript.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bulletpoolscript : MonoBehaviour { public static Bulletpoolscript bulletpoolinstance; [SerializeField] private GameObject pooledBullet; private bool notEnoughBulletsInPool = true; private List<GameObject>...
d9388605d472505ccf8da343913d950249438661
C#
thadhodges/BeginnerCs
/SumGenerator/Program.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SumGenerator { /* * Takes two numbers as input from the user to calculate the sum */ class Program { static void Main(string[] args) { do ...
5353dc92cd72f750de7db59a14c9eaad7fe679bc
C#
rongguohao/DotNetTest
/006-改善CSharp程序建议/100~109/建议106_为静态类添加静态构造函数/Program.cs
3.578125
4
using System; using System.IO; namespace 建议106_为静态类添加静态构造函数 { // 静态类可以拥有构造方法,这就是静态构造方法。静态构造方法与实例构造方法比较有几个自己的特点: // // 只被执行一次,且在第一次调用类成员之前被运行时执行。 // 代码无法调用它,不像实例构造方法使用new关键字就可以被执行。 // 没有访问标识符。 // 不能带任何参数。 // // 使用静态构造方法的好处是,可以初始化静态成员并捕获在这过程中发生的异常。而使用静态成员初始化器则不能在类型内部捕获...
d9cb3a22dd7314cc7e582c622539d79eda1134f0
C#
jpabeem/algorithms-and-ai
/Final_assignment/SteeringCS/entity/Obstacle.cs
2.640625
3
using SteeringCS.util.sprites; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SteeringCS.entity { public enum ObstacleShape { CIRCLE, RECTANGLE, SPRITE }; public enum ObstacleType { DEFAULT, COLLISI...
ffd168431b036f3f6fc3faf6e0bb19a0df5a6604
C#
rdcarp/reg-ex-appeal
/RegExAppeal.Domain/Solver.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace RegExAppeal.Domain { public class Solver { public delegate void GameBoardFormatChangedEventHandler(object sender, GameBoardFormatChangedEventArgs e); public event GameBoardForma...
9fe2dd80780e11590d41a35c566f8f74ea46e4fb
C#
FFRock96/Streak.NET
/src/Streak.Net.Api/Services/Raw/RawCommentServices.cs
2.65625
3
using System; using System.Web; using Streak.Net.Api.Models; namespace Streak.Net.Api.Services.Raw { public class RawCommentServices: RawServicesBase { internal RawCommentServices(string apiKey, string apiBaseUrl) : base(apiKey, apiBaseUrl){ } /// <summary> /// This call lets you crea...
51d0eff06996217fd38cd8fff87fd80c77adb4d4
C#
Diesel-V/redmineTasker
/RedmineTasker.DAL/RedmineModels/ProjectCategoriesClass.cs
2.59375
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml.Serialization; namespace RedmineTasker.DAL.RedmineModels { /// <summary> ////класс для серилизации категории таска /// </summary> public class IssueCategory { [XmlElement("id")] pub...