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
58fab0573b2739e1b9455c1d50e948f101d8f22f
C#
Business-model-canvas/c4sharp
/src/C4Sharp/Extensions/ResourceMethods.cs
2.890625
3
using System; using System.IO; using System.Reflection; using C4Sharp.Models.Plantuml; namespace C4Sharp.Extensions { /// <summary> /// Methods to manipulate resource /// </summary> internal static class ResourceMethods { /// <summary> /// Get Stream from plantuml.jar file /...
e5c734c09384488205d446e7068144ddf1edbed0
C#
histefanov/SoftUni-CSharp-Fundamentals-Problems
/Arrays - Lab/02.Print_Nums_In_Reverse/Program.cs
3.546875
4
using System; using System.Linq; namespace _02.Print_Nums_In_Reverse { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] nums = new int[n]; for (int i = n - 1; i > -1; i--) { nums[i] =...
e834e5f6235d722ed942568fbebb262369960917
C#
DigDugFTW/CSharpTaskManager
/CSharpTaskManager/ProcessObject.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.ComponentModel; using System.Windows.Forms; namespace System.Diagnostics { public class ProcessObject : Component { public string ProcessName { set;...
a49abe13f0f17730c3938c1101589bbd8b319684
C#
menma1969/projetodecadencia
/projeto/WindowsFormsApplication1/WindowsFormsApplication1/DAO/vefcadastroDAO.cs
2.703125
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WindowsFormsApplication1.Model; namespace WindowsFormsApplication1.DAO { class vefcadastroDAO {//começa aqui ********************************************** ...
60ba0f9ed0d2a02db563b4fcbbfc26e9371ef366
C#
mnkvsoft/ArgValidation
/ArgValidation/Argument.cs
3.515625
4
using System; namespace ArgValidation { /// <summary> /// The main class for the library. /// All necessary extensions are implemented for it to check the argument and control the validation flow /// </summary> public struct Argument<T> { /// <summary> /// Argument name ...
350b3b9414159ac04eacc5013c95ed507ddee912
C#
Sunlighter/SimpleForth
/SimpleForth/MemoryBlock.cs
2.609375
3
using System; using System.Runtime.InteropServices; namespace SimpleForth { public enum MemoryBlockSecurity { ReadOnly, ReadWrite, ExecuteRead, ExecuteReadWrite } public class MemoryBlock : IDisposable { private IntPtr location; private UIntPtr s...
bccf9145dfc5cd5d6c7c9342da72f2437fe72592
C#
antoinusitos/SystemicProto
/Assets/Scripts/Nature.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // THIS CLASS MUST BE PUT ON NATURE OBJECT THAT CAN REACT TO ELEMENTS public class Nature : MonoBehaviour { public SystemicMaterial[] owningMaterials = null; public ElementSize size; private List<SystemicElement> currentActing...
aad425d2ad9c6ee836eb4050824a68effe5db8aa
C#
YHZX2013/exchange_diff
/mscorlib/System/Collections/Generic/RandomizedStringEqualityComparer.cs
2.78125
3
using System; using System.Security; namespace System.Collections.Generic { internal sealed class RandomizedStringEqualityComparer : IEqualityComparer<string>, IEqualityComparer, IWellKnownStringEqualityComparer { public RandomizedStringEqualityComparer() { this._entropy = HashHelpers.GetEntropy(); ...
91ab26d5b7acc4c01bf9610864e32fcbce493b4a
C#
Demetrak/Chapter2
/Console6/Program.cs
3.109375
3
using System; class Program { static void Main() { // 6.Декларирайте променлива isMale от тип bool и присвоете стойност на последната в зависимост от вашия пол. bool isMale = true; Console.WriteLine(isMale ? "woman" : "male"); } }
f37aa7136ca67875893b6e560be25acbb0eec373
C#
terezijacosic/Colloquiums
/Projekt/provjeraKorisnik.cs
2.796875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Projekt { public class provjeraKorisnik { public provjeraKorisnik() { } ...
61e597eadfe8f823cd6e116aaaee98e0cadbce9f
C#
shendongnian/download4
/latest_version_download2/171626-35578199-111563793-2.cs
2.65625
3
private bool _willDrag = false; private bool control_MouseUp(object sender, MouseEventArgs e) { // disable dragging if we release the mouse button _willDrag = false; } private bool control_DoubleClick(object sender, EventArgs e) { // disable dragging also if we double-click ...
c11b25c635e66b1977a21efc74a21cfd72b37f4f
C#
Trontor/Aluna-Milk
/IPT Milk Company UI/frm_AddEmployee.cs
2.53125
3
using MetroFramework.Forms; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace IPT_Milk_Company_UI { public partial class frm_AddEmployee : MetroForm { public ...
491f79855bf90f1ba4939d8a50cec91ea7e6c108
C#
AlexDoronin89/oop
/WalkGame/Render.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WalkGame { class Render { Players Players; Inventory Inventory; public Render(Inventory inventory) { Inventory = inventory; ...
627ce308a7fd8dfa2438219a3bde0658a6ece883
C#
Kabashimi/CellularAutomaton
/CA/Form1.cs
2.890625
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 CA { public partial class Form1 : Form { Engine engine; public Form1(...
94e5dc4b9039df9613744958ae6ab610802e986a
C#
tinhhayho/wpf-VISA-driver
/usb_hid/model/DiDoModel.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace usb_hid.model { public class DiDoModel { public DiDoModel(Brush di0, Brush di1, Brush di2, Brush di3, Brush...
bcb425d4576279f3a95a80c6314c67c51f319b1b
C#
santuparsi/dotnet_core_
/Module1/C#/HandsOn/HandsOnConditionalStatements/Demo1.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HandsOnConditionalStatements { class Demo1 { static void Main() { int no = 12; if (no % 2 == 0) { Console.WriteLine(...
91fe056a7475459fa7fdfa122ca386c1312364ad
C#
dzejsien/Tasks
/Tasks.Console/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using static System.Console; namespace Tasks.ConsoleApp { class Program { // ex 1 - simple task - UI is responsive but not work when change UI (one task)...
d87bee6f6184857414855eef039eb81e91510427
C#
ariessanchezsulit/ggj2016
/GGJ2016/GGJ2016/Assets/Common/Scripts/Fsm/ConcreteFsmState.cs
2.6875
3
using System; using System.Collections.Generic; namespace Common.Fsm { /** * A concrete implementation of an FSM state. */ class ConcreteFsmState : FsmState { private readonly string name; private readonly Fsm owner; private readonly Dictionary<string, FsmState> transitionMap; private readonly List...
6027db35643555fdbdadda8ef274c66f756a92fd
C#
SolopovDmitriy/ListWokersTemplateSortProgramsFile
/ConsoleApp3/Program.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Company { class Program { static Worker CreateRandomWorker(Random rnd) { string name; string surname; str...
51688c3b7c2ca4c551179752e21958455373e768
C#
CarlosZC/juegoPaises
/BasicosCSharp/Cuadrado.cs
3.59375
4
using System; using System.Collections.Generic; using System.Text; namespace BasicosCSharp { public class Cuadrado { private double _lado; public double lado { get => _lado; set { if (value >= 0) _lado = value; ...
f975fc591892cc4f74cbf469f5e6c388e6dec5b2
C#
jackv24/D-d-d-Dungeons
/Assets/Scripts/Characters/Player/PlayerControl.cs
2.9375
3
using UnityEngine; using System.Collections; //Handles inputs for the player, to be passed to PlayerMove public class PlayerControl : MonoBehaviour { //Reference to the player movement script on this gameobject private CharacterMove playerMove; //Ensures that keyboard inputs are only accepted on key down...
6b04aac54c480e776fbb12b31cca9d263447c8f5
C#
MikkoRantakallio/bank-utilities
/bank-utilities/bank-utilities/VirtualBarCode.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; namespace Ekoodi.Utilities.Bank { //--------- // New exception for virtual bar code creation //--------- public class InvalidVirtualBarCodeException : Exception { public InvalidVirtualBarCodeException() { } ...
d58bb383e5df495585c17e1e080de0aded40b985
C#
zzczzc004/FluentZpl
/src/FluentZpl/Common/Extensions/KeyValueListExtensions.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ZplLabels.Common.Extensions { public static class KeyValueListExtensions { public static bool Exists<T>(this IList<KeyValuePair<string,T>> lst, string key) { return lst.Where(kv => kv.Key...
c022f516ce4e9eb5beef2edc217f6d6043c27406
C#
plotnikvk/NewWpfCalc
/NewCalculator/NewCalculator/MainWindow.xaml.cs
2.78125
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;...
4c04d17affe7d8ec4c18118b8230c9f1de702d19
C#
KimTree122/SQLhelper
/ORMsample/SQLAccess/DataAccess.cs
2.953125
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace ORMsample { public class DataAccess { private static string mConnectStr = string.Empty; private static System.Data.SqlClient.SqlConnection mSqlConnect...
41abc07f8213d9dab032230e67c8407380b5f132
C#
NikitaOchin/MAC_Ochinskiy
/MAC_DLL/MAC_My_Definitions/MaTableOfData.cs
2.78125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using CI = System.Globalization.CultureInfo; namespace MAC_DLL.MAC_My_Definitions { public class MyTableOfData : MyTable { public string Table_in_File { get; } ...
ecc35f3858fb45778e564fac20a95cb7b5475e52
C#
vitorCamargo/who-am-i
/Client/Client/Program.cs
2.984375
3
using System; using System.Net.Sockets; using System.Net; using System.Text; namespace Client { class Program { private static readonly Socket ClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); private static int PORT; static void Main(string[] a...
700a1f8a7625539060ea385b734d76fb369417bf
C#
ga-explorer/GMac
/GeometricAlgebraSymbolicsLib/GeometricAlgebraSymbolicsLib/Applications/GAPoT/GaPoTSymVector.cs
2.640625
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using GeometricAlgebraSymbolicsLib.Cas.Mathematica; using GeometricAlgebraSymbolicsLib.Cas.Mathematica.ExprFactory; using TextComposerLib.Text; using Wolfram.NETLink; namespace Geo...
3dd458497b228d426a20c8d28fe3c112f5d9aa7c
C#
shendongnian/download4
/code9/1585640-44236560-148127086-6.cs
3.203125
3
public static Func<T[], T> CreateLambda<T>(int num) { var parameter = Expression.Parameter(typeof(T[]), "p"); // We sum all the parameters together Expression sum = Expression.ArrayIndex(parameter, Expression.Constant(0)); for (int i = 1; i < num; i++) { ...
f154da24f912cf2c722214812acadcc266cba490
C#
NathanMQuam/C-Sharp-GregsList-Api
/Controllers/HousesController.cs
3.015625
3
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using gregslist_api.Models; using gregslist_api.db; namespace gregslist_api.Controllers { [ApiController] [Route("api/[controller]")] public class HousesController : ControllerBase { [HttpGet] public ActionResult<IEnumerable<Hous...
1019b9eda9897b0fc5f20acab56ee32316d12f72
C#
khaledosman/TVControl
/KinectControl/KinectControl/UI/HandCursor.cs
2.6875
3
using Microsoft.Kinect; using KinectControl.Common; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace KinectControl.UI { class HandCursor { private Texture2D texture; private Kinect kinect; public Vector2 position{ge...
4a2c82ad62d4478426726e6766a9f21581da0d7a
C#
mads-mikkel/S1
/Opg6B_Comparison/HouseBuyProgram.cs
3.515625
4
using System; namespace Opg6B_Comparison_2_Huskøb { class HouseBuyProgram { static void Main(string[] args) { Console.WriteLine("Vekommen til Huskøb programmet."); Console.WriteLine("Indtast din månedsløn i hele kr.:"); string monthlySalaryInput...
37ba32e33239b841ff3ad016269e6ba489c3bb13
C#
kisslaci98/elsovalodicsharpprojekt
/Dolgozat2/Dolgozat2/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dolgozat2 { class Program { static void Main(string[] args) { Random rnd = new Random(); Console.Write("Hány szavas legyen a mondat? "); ...
690e6d4cd0b4427cbdb8983315e5e6cabba0ab02
C#
Octavic/SpaceRPG
/SpaceRPG/Assets/CombatScripts/Ships/EngineFlameManager.cs
2.78125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="EngineFlameManager.cs"> // Copyright (c) Yifei Xu . All rights reserved. // </copyright> // -------------------------------------------------------------------------------...
bb40e2e29288a80013ecf1ec7120d13f7f28881d
C#
viktornikolov038/C-Sharp-Advanced-2019
/05.Manual String Processing/Demo 1/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Demo_1 { public class Program { public static void Main() { //var a = "This is Text text"; //var b = "This is another text"; //var p...
861d770ca7f2f64a82bc171f5d69323722777b91
C#
Bajena/Miner
/Miner/GameLogic/Components/AnimationComponent.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Miner.GameLogic.Objects; using Miner.Helpers; namespace Miner.GameLogic.Components { /// <summary> /// Strona, w którą skierowana jest postać /// </summ...
73eaaaec14762b67c269d2bce189d3261962e761
C#
Dalton-Baird/ProjectPiBoy
/ProjectPiBoy.SDLApp/Input/ITouchListener.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectPiBoy.SDLApp.Input { /// <summary> /// An interface for a touch listener /// </summary> public interface ITouchListener { /// <summary> /// Called wh...
65bc85d09a56afbe487f69f92489211093dee538
C#
Nikita-Zubanov/KnowledgeBaseConsole
/KnowledgeBaseConsole/RuleBase.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace KnowledgeBaseConsole { class RuleBase { //private IList<Rule> ruleList; private IList<Rule> ruleTree; //public IList<Rule> RuleList { get { return this.ruleList; } } public I...
2ed55463753ed55534d2ec0a0833b2f5c1fecceb
C#
Lucas18379/CG
/Filtros.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Drawing.Imaging; using System.IO; namespace ProcessamentoImagens { class Filtros { private double pi = Math.PI; public Filtros() { } double cos(double x) { ...
e185a0df2eefb168cff90e8fc98529fea74c403c
C#
igorcsaraiva/Desafio
/Desafio.Domain/Validation/ValidatePersonalNotesService.cs
2.65625
3
using Desafio.Domain.Domain; using Desafio.Domain.Interfaces; using System.Collections.Generic; namespace Desafio.Domain.Validation { public class ValidatePersonalNotesService : IValidatePersonalNotes { private readonly IPersonalNotesRepository _personalNotesRepository; public ValidatePersona...
fbf18163ceb65abfbffcf7f969033b889f5f844d
C#
231021083dap/Orangular
/OrangularAPI/Repositories/categories/CategoryRepository.cs
3.109375
3
using Microsoft.EntityFrameworkCore; using OrangularAPI.Database; using OrangularAPI.Database.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace OrangularAPI.Repositories.CategoryRepository { public class CategoryRepository : ICategoryRepository ...
4e122ed408ce33ebb34d38afd0ca72d0fbd23bb5
C#
Shael08/Android_Morse_App
/WebsocketServer/WebsocketServer/Server.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperWebSocket; using SuperSocket.SocketBase; using System.Net; using System.Net.Sockets; using System.Data.SQLite; using System.IO; namespace WebsocketServer { class Server { private WebSocketServer appServer;...
2549f7be60cbad1d138084e415f7987ea95d96e9
C#
Novacta/analytics
/src/Novacta.Analytics.CodeExamples/CategoricalEncodeExample1.cs
2.78125
3
using Novacta.Documentation.CodeExamples; using System; using System.Globalization; using System.IO; namespace Novacta.Analytics.CodeExamples { public class CategoricalEncodeExample1 : ICodeExample { public void Main() { // Create a data stream. const int numberOfInstan...
5d2c437ecbe7c2add0eb6b4e340b947318e62bf4
C#
Freelancee/DataAnalytics
/DAnalytics.DA/Report/CustomReport.cs
2.53125
3
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; namespace DAnalytics.DA.Report { public class CustomReport { static object _locker = new object(); public static DataSet GetBoreholeReport(int BoreHoleID, DateTime? FromDate, DateTime? ToDate) ...
abac0af3a94085d200ebc01870cad7538b1026fd
C#
GeorgeSaldanaBacalla/SoapPet
/ProyectoDSDEvaluacion/RestServices/Persistencia/ClienteDAO.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.SqlClient; using RestServices.Dominio; using MySql.Data.MySqlClient; namespace RestServices.Persistencia { public class ClienteDAO { public Cliente Crear(Cliente clienteACrear) { ...
d3bad475447ae47aa245910226f5277fbfcdf21c
C#
MertYumer/CSharp-Fundamentals-January-2019
/C# OOP - February 2019/08. Workshop/MuOnline/Repositories/HeroRepository.cs
3.109375
3
namespace MuOnline.Repositories { using System; using System.Collections.Generic; using System.Linq; using Contracts; using Models.Heroes.HeroContracts; public class HeroRepository : IRepository<IHero> { private readonly List<IHero> heroes; public HeroRepository() ...
ed55a78c52223aa6dadddc8dbdbc95fe17d7721a
C#
ericsantos27/Curso_CSharp_1
/Seção_6_Aula_73_Modificador_Out/ClassOut.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; namespace Seção_6_Aula_73_Modificador_Out { class ClassOut { public static void Triple(int orign, out int result) { result = orign * 3; } } }
8752f7cc7eea9a972f091b02aa148daaaa8e41b3
C#
JesseLiberty/PickerDemo
/VieweModelBase.cs
2.8125
3
using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; namespace PickerDemo { public class ViewModelBase : INotifyPropertyChanged { private bool _showStatusMessage = false; public bool ShowStatusMessage { get => _showStatusMess...
fb0c91158a12fe71ab4e0740728e57102675fee6
C#
shendongnian/download4
/first_version_download2/311655-25757227-73183508-2.cs
2.734375
3
interface IMaterializable { void OnMaterialized(); } class SomeEntity : IMaterializable, IValidatableObject { public int Status { get; set; } int OriginalStatus; public void OnMaterialized() { OriginalStatus = Status; } public IEnum...
ed21347fb6c0f31a355f94a2294a3007c2e81fb4
C#
turky-9/poorlexer
/YuPoorLexer/YuParseCombi/PerserFactory.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace YuParseCombi { /// <summary> /// パーサを表わす関数をデリゲートとして定義しておく /// </summary> /// <param name="ctx"></param> /// <returns></returns> public delegate IYu...
6200c799662e47af8c5ec3c3eb6a72e52316d127
C#
bseddam/WebApiCenubBroyler
/WebApiCenubBroyler/DBControl/DBUsers.cs
2.6875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using WebApiCenubBroyler.Models; namespace WebApiCenubBroyler.DBControl { public class DBUsers { public static SqlConnection SqlConn { get { return new SqlConnection(...
d54836ce5d8cde8cbdba161f5604243b5e929d4f
C#
rkhapov/simple3d
/objects/Weapons/FireBall.cs
2.5625
3
using System; using System.Numerics; using musics; using objects.Monsters; using objects.Monsters.Algorithms; using simple3d; using simple3d.Drawing; using simple3d.Levels; using simple3d.Sounds; namespace objects.Weapons { public class FireBall : Bullet { private enum FireBallState { ...
04c90ed7f65f5150ff5fe6f9c8656307c6f3c9fb
C#
katiejoyy/GGJ2021
/GGJ2021/Assets/Scripts/TravelToPoint.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TravelToPoint : MonoBehaviour { public float firstDuration = 0.5f; public float scaleBackDuration = 0; private Vector3 startPosition; public Vector3 endPosition = new Vector3(1, 1, 1); public Vector3 extraMo...
0592a3a8e582e7aa43b0c473b209cea481f05d18
C#
bubdm/Cinchoo
/src/ChoWeakReference.cs
2.984375
3
namespace Cinchoo.Core { #region NameSpaces using System; using System.Linq; using System.Text; using System.Collections.Generic; using System.Runtime.Serialization; using System.Xml.Serialization; #endregion NameSpaces public class ChoWeakReference : ChoWeakReference<object> ...
c0e35938653e01867140df5122c5b3327d7a78db
C#
KimHeeRyeong/FishingAlien
/Alien Fishing/Assets/Scripts/Bait/MoveBait.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class MoveBait : MonoBehaviour { private Animator anim; public Transform camTransform; public float walkSpeed = 1.0f; public float turnSpeed = 400.0f; private Vector3 moveDirection = Vector3...
44b5c9911723f03620b1208210032fb6d0a56dbd
C#
Vladdjuga/Web_Games_Store_Locus
/Web_Games_Store_Locus/Controllers/TagController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Web_Games_Store_Locus.Models; using Web_Games_Store_Locus.Models.Dto; using Web_Games_Store_Locus.Models.Entities; using Web_Games_Store_Locus.Models.R...
c7bef457d6d3b8ecd15e9698c85b0d49c241f361
C#
19900623/X
/XCode/Model/EntityDeferredQueue.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using NewLife.Model; using XCode.DataAccessLayer; namespace XCode.Model { /// <summary>实体动作</summary> public enum EntityActions { /// <summary>保存</summary> Save = 0, /// <summary>插入</summary> Insert = 1, ...
206c910cb563229a6eac519af82687dcecd34274
C#
mono/coreclr
/tests/src/CoreMangLib/cti/system/text/decoder/decoderreset.cs
2.84375
3
using System; using System.Text; /// <summary> /// Reset /// </summary> public class DecoderReset { #region Public Methods public bool RunTests() { bool retVal = true; TestLibrary.TestFramework.LogInformation("[Positive]"); retVal = PosTest1() && retVal; retVal = PosTest2()...
0fc97928c4bc67baf8024ca2da85f44ff3d31c0e
C#
chrisalexander/GCHQ.2015
/GridShadingPuzzle/DomainModel/GridReference.cs
2.90625
3
namespace GridShadingPuzzle.DomainModel { /// <summary> /// Represents a reference to a cell in the grid. /// </summary> public class GridReference { /// <summary> /// Creates a new grid reference. /// </summary> /// <param name="rowIndex">The row index.</param> ...
bf0b081202b11f31552e075223c6d7e5db102239
C#
zongu/MotoForm
/MotoForm.Persistent/SqlLiteMaintainRepository.cs
2.75
3
 namespace MotoForm.Persistent { using System; using System.Collections.Generic; using System.Data.SQLite; using System.IO; using System.Linq; using System.Reflection; using Dapper; using MotoForm.Domain.Model; using MotoForm.Domain.Repository; public class SqlLiteMaintainRepos...
b752031959310d9e7e915a0b48da426a134b7e48
C#
Yevano/Neo
/src/main/Runtime/NeoNumber.cs
3.234375
3
using System; namespace Neo.Runtime { public abstract class NeoNumber : NeoValue { public static object ParseNumber(string s) { try { var n = Reify(double.Parse(s)); if (n.IsInt) { return n.CheckInt().Value; } else if (n.IsFlo...
400e8582f7776fea34b2f119a969a8c565b95bbe
C#
lisajkilgore/GoldBadgeChallenges
/Challenge_03/Outings.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Challenge_03 { public enum EventType {Golf, Bowling, AmusementPark, Concert } public class Outings { public EventType TypeOfEvent { get; set; } public int PeopleA...
f152408c6a3f89d0782834dd5967a9bb7600cb18
C#
MMieszko/Mvf
/Mvf.Core/Extensions/TypeExtensions.cs
2.953125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mvf.Core.Extensions { public static class TypeExtensions { public static object GetDefaultValue(this Type type) { return type.I...
fffd6498d1f4494cd856a8b39bb0504bb4964580
C#
sertunc/WindowsServiceWithTopshelfInNetCore
/WindowsServiceWithTopshelfInNetCore/MyService.cs
2.8125
3
using System; using System.IO; namespace WindowsServiceWithTopshelfInNetCore { public class MyService { public void Dispose() { } public bool Start() { var text = $"{DateTime.Now.ToString("yyyy-MM-dd HH: mm: ss")}, Testing write." + Environment.NewLine; ...
0e6ee1426738ae07c2bec8f658f6d38bbaa79afc
C#
Matey-Nikolov/Chapter-13-Nakov
/HTMLDocument.cs
3.28125
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Project { class HTMLDocument { public string Document() { // 16 // string text = Console.ReadLine(); string cap = " "; ...
bcd5e0f3f1a9386f93449d19575c75f300a07de9
C#
Inuyasha-Monster/CarManager
/CarManager.Core/Config/MemcachedCacheElementCollection.cs
2.734375
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CarManager.Core.Config { [ConfigurationCollection(typeof(MemcachedCacheElement))] public class MemcachedCacheElementCollection : ConfigurationElementCollect...
b9474f6d049f4555492f856776e0c4ee06824cd0
C#
OrchardSkills/OrchardSkills.OrchardCore.Blazor
/BlazingOrchard/Framework/BlazingOrchard.DisplayManagement/Services/CombinedResult.cs
2.515625
3
using System.Collections.Generic; using System.Threading.Tasks; using BlazingOrchard.DisplayManagement.Models; namespace BlazingOrchard.DisplayManagement.Services { public class CombinedResult : IDisplayResult { private readonly IEnumerable<IDisplayResult> _results; public CombinedResult(param...
2d88961de7a0c9c0aef79b49c81eb5e666ae1a7a
C#
hkaur008/GeoClusion
/MapAPI/Services/SQLDataAcessService.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Dapper; using System.Configuration; using System.Data.SqlClient; using System.Data; using MySql.Data.MySqlClient; using Microsoft.Extensions.Logging; namespace MapAPI.Services { public class SQLDataAcessService ...
0866225da4c3425b8290e82c94febe9e1e2edc8c
C#
Leonardocasilva/StoreService
/Repository/UserRepository.cs
3.03125
3
using System.Collections.Generic; using System.Linq; using StoreService.Context; using StoreService.Models; namespace StoreService.Repository { public class UserRepository : IUser { private readonly UsersDbContext _ctx; public UserRepository(UsersDbContext ctx) { _ctx = ct...
e0c03940705829a4c610cd866ff5b6f42b4af4a9
C#
kubarozycki/review-me
/review-me/to-review/dogs-registry/Methods.cs
3.09375
3
using System.IO; namespace review_me.to_review.dogs_registry { //separation of concerns -> single responsibility public class Methods { public int AddIntegers(int x, int y) => x + y; public string ReadDogsData() { //brak try catch dla operacji IO string tex...
ae191b1e5af2bafdf74a3eb79d7d5aff44971826
C#
Rwz-7/udemy-course
/ConsoleApp1/ConsoleApp1/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static int meineGlobaleVariable = 15; static int testVariable = 10; const double pi = 3.14159; static void Main(string[]...
f55c94831da24ae9fb8541f25d7792bd9a8620bf
C#
0x53A/Swashbuckle.AspNetCore.Examples
/src/Swashbuckle.AspNetCore.Examples/AppendAuthorizeToSummaryOperationFilter.cs
2.6875
3
using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace Swashbuckle.AspNetCore.Examples { public class AppendAuthorizeToSummaryOperationFilter...
da6c00792880367a7b2b7525ddb3c6ba86321393
C#
robin1315/Programowanie_Wspolbiezne
/PW_2_2/PW_2_2/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace PW_2_2 { class Program { private static int wielkoscTab = 100000; private static int[] tab; static void Main(...
019e9ab1e4486d0340adab85fe34f4ce23327cdb
C#
chernandeza/T1SJ9AM
/InfoPersonas/InfoPersonas.cs
2.578125
3
using LibreriaPrincipal; using System; namespace InfoPersonas { class InfoPersonas { static void Main(string[] args) { PersonaFisica perF = new PersonaFisica(); PersonaJuridica perJ = new PersonaJuridica(); perF.Identificacion = "1-1000-2000"; pe...
1759d52e318dcfda24c47674a7b6f9261d361d27
C#
Pheedbak/curly-octo-winner
/EventSourcing/ArrivalEvent.cs
2.734375
3
using System; namespace EventSourcing { public class ArrivalEvent: Event { public Port Port { get; } public Ship Ship { get; } public ArrivalEvent(DateTime occured, Ship ship, Port port) : base(occured) { this.Ship = ship; this.Port = port; } ...
cfedb612eec9ede70bd6ac034c1ec9b546ec7df6
C#
senai-desenvolvimento/carfel.checkpoint-manha
/Repositorios/DepoimentoRepositorioSerializacao.cs
2.984375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using Senai.Carfel.Checkpoint.Interfaces; using Senai.Carfel.Checkpoint.Models; namespace Senai.Carfel.Checkpoint.Repositorios { public class DepoimentoRepositorioSerializacao :...
76820780e0003987208e1d80a1472a5ead639994
C#
svsamipillai/look-ma-no-servers-dotnet
/PreTalkSurvey/TwilioRequestValidator.cs
2.640625
3
using System; using System.Collections.Specialized; using System.Linq; using System.Security.Cryptography; using System.Text; using Amazon.Lambda.APIGatewayEvents; namespace PreTalkSurvey { /// <summary> /// Validates requests coming from Twlio. /// </summary> public static class TwilioRequestValidato...
59d6c7f594ed66122d5e587b8d954e1ee69f6642
C#
AlexSchechter/EstateAgent
/Alex.Common/InputChecker.cs
3.34375
3
using System; namespace Alex.Common { public class InputChecker { public static int AskCheckAndReAskForIntegerInput(string screenPromt) { string userInput = ""; int correctInput = 0; while (!Int32.TryParse(userInput, out correctInput)) { ...
221980700878d42caa10bfc112190301d85bfcf3
C#
bonsai-rx/bonsai
/Bonsai.Dsp/Extrema.cs
2.734375
3
using System; using System.Linq; using System.Reactive.Linq; using OpenCV.Net; using System.ComponentModel; namespace Bonsai.Dsp { /// <summary> /// Represents an operator that finds the global minimum and maximum of each /// array in the sequence. /// </summary> [Combinator] [WorkflowElementC...
3f075a02176c2a4f4163bf442b43236c38e956a3
C#
irvingHerrera/PatternDesign
/Pattern/Facade/Program.cs
2.640625
3
using Facade.Credit; using Facade.sppedChange; using Facade.sppedChange.Contract; using System; namespace Facade { class Program { static void Main(string[] args) { IAcelerador acelerador = new Acelerador(); IEmbrague embrague = new Embrague(); IPalancaCambi...
f13461a0e7786ad704cfbaae6decfc988974f827
C#
Joeoc2001/AlgebraSystem
/AlgebraSystem.Test/Libs/EqualityLibs.cs
3.28125
3
using Algebra; using System; using System.Collections.Generic; using System.Text; namespace Libs { static class EqualityLibs { public enum EqualityType { AEqualsB, AEqualsBObj, ADoubleEqualsB, ANotEqualsB, AHashEqualsB, AC...
f154612ba7ef7076f9d99985344a6e587e5e67dc
C#
imrbpro/Scraping
/ScrapWeb/Default.aspx.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ScrapWeb { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { HtmlAgilityPack.HtmlWeb web ...
653e01fb905296b27166035dd417baba2c259e78
C#
wataru-ito/UnityFramework
/Assets/Plugins/Editor/DefineSymbolEditor/DefineSymbolStatus.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; using UnityEditor; namespace DefineSymbolEditor { /// <summary> /// 編集用のデータ /// </summary> class DefineSymbolStatus { public class Toggle { public readonly DefineSymbolContext.Toggle context; public bool enabled; public Toggle(Defin...
c48cb253c07ac592e1490f5ad5e64bd7a557c9ed
C#
adhikari-chayan/data-structures-and-basic-programming
/Coding Patterns/Kevin/RobotReturnToOrigin/RobotReturnToOrigin/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RobotReturnToOrigin { class Program { static void Main(string[] args) { var input = "LL"; var result = Judge(input); Console.WriteLi...
e810fc852bf03cc9525483ad90b890cbd04f6a22
C#
praeclarum/winforms
/src/System.Windows.Forms/src/System/Windows/Forms/ComponentModel/COM2Interop/Int32CAMarshaler.cs
2.515625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.Runtime.InteropServices; using Syst...
8894629892acd9ec690a60f4e84234ad3f1fb468
C#
chandusekhar/thesis
/Common/DMT.Common/Rest/Router/HandlerBundle.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DMT.Common.Rest.Router { class HandlerBundle { private Dictionary<HttpMethod, IRouteHandler> handlers; public HandlerBundle() { handlers = new Dict...
f6dd76dfcc1f4503fa6afdcd4ba3830691b4cd7d
C#
BoulderLeaf/Elementia
/UnityClient/Assets/Terra/SerializedData/World/TerraWorldChunk.cs
2.84375
3
using System; using System.Collections.Generic; using Terra.Services; namespace Terra.SerializedData.World { public class TerraDataPoint : GridDataPoint<TerraPoint> { public TerraDataPoint() { } public TerraDataPoint(TerraPoint data, TerraVector vector) : base(data...
c28bfac4cbb5abede511fdcc617c0ded0b7fde90
C#
mcneel/rhino-developer-samples
/cpp/SampleSharedXform/SampleSharedXformOwner/Interop/SmpleArrayXform.cs
2.734375
3
using System; using Rhino.Geometry; namespace SampleSharedXformOwner.Interop { /// <summary> /// Represents a wrapper to an unmanaged "array" (list) of ON_Xform instances. /// </summary> internal class SmpleArrayXform : IDisposable { internal IntPtr m_ptr; // ON_SimpleArray<ON_Xform> /// <summary> ...
eb975e7896de07375113e5042af5c40458453428
C#
josueyeray/TallerXamarinFormsTlpInnova
/Step 3/WeatherApp/WeatherApp/WeatherApp/Services/WeatherService/WeatherService.cs
2.984375
3
namespace WeatherApp.Services.WeatherService { using System.Net.Http; using System.Threading.Tasks; using WeatherApp.Model; /// <summary> /// Contract implementation for weather API service /// </summary> public class WeatherService : IWeatherService { private read...
effb7b5954e351244b4816fac37d019ea494aa7c
C#
asOldEye/CardCollective-game
/CardCollectiveEnvironment/Supervisor.cs
2.765625
3
using System; using System.Collections.Generic; using AuxiliaryLibrary; using System.Threading.Tasks; namespace CardCollectiveServerSide { public class Supervisor { TimeSpan retentionAwait; List<Pair<Player, DateTime>> retentionPlayers = new List<Pair<Player, DateTime>>(); List<Player>...
8ae5f19c28c452f36987a39882ae5f6b1c9dad2e
C#
gunnarsireus/RenewReact
/ServerLibrary/Model/IssueMaterial.cs
2.546875
3
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using ServerLibrary.Utils; namespace ServerLibrary.Model { [Table("issuematerials")] public class IssueMaterial : Validatable { public const int ISSUEMATERIAL_ANY = 0; // Databa...
64cf3a09467e0fc3c114507c29a3ac466ca0b314
C#
HVBingham/SweepstakesProject
/SweepStakes/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sweepstakes { class Program { static void Main(string[] args) { Factory factoryManager = new Factory(); UserInterface.AskQuestion("Pl...
d464cece6c7efc9ad60088aa58014d8b121b1268
C#
LakshayGoel1/Projects
/ExtentReports/extentreports-master/dotnet/RelevantCodes.ExtentReports/RelevantCodes.ExtentReports/Model/SystemProperties.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; namespace RelevantCodes.ExtentReports.Model { public class SystemProperties { public void setSystemInfo(Dictionary<String, String> info) { //if (this.info.Count() > 0) //info.Concat(this.info); ...
c6d3a46840c2d7eeb7466ac9e842e2c2266b55c4
C#
keenBinaries/TetrisUnity
/Assets/Scripts/StateMachine/Context/StateMachine.cs
2.765625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public enum State { None = 0, MainMenu, GamePlay } public class StateMachine : MonoBehaviour { private const State _initialState = State.MainMenu; private Dictionary<State, StateEntity> _...
757067ff86185d53bee80f25dc07911fdf52ffaf
C#
yomayy/MyBrrrowser
/MyBrrrrowser/Models/DbContext.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace MyBrrrrowser.Models { class DbContext { private string conn_str; private SqlConnection conn;...
cc887aacbfd619606ab3c541575ec3bb9700649d
C#
shanzm/ASP.NET-MVC
/018Topshelf/Program.cs
2.875
3
using Topshelf; namespace _018Topshelf { class Program { #region 说明 /// 使用Topshelf创建windows服务 /// 0. 官方文档:http://docs.topshelf-project.com/en/latest/configuration/quickstart.html /// 1. 创建控制台项目 /// 2. nuget:Install-Package Topshelf /// 3. 安装服务:管理员运行命令行,转到编辑的exe...
99e5c5baa7e13f9143e76f7c98eafae15a1a920c
C#
momo333/CSharp
/OOP/Extension-Methods-Delegates-Lambda-LINQ/AgeRange/Student.cs
3.609375
4
using System; using System.Text; namespace AgeRange { public class Student { private string firstName; private string secondName; private int age; public Student (string firstName, string secondName) { this.FirstName = firstName; this.SecondName...
ba96ce3c19406d71ed08528a9a4bd0f18171ff87
C#
Bvaptsarov/Homework
/16.NamingIdentifiers/NamingIdentifiers/MainClass.cs
3.484375
3
using System; using System.Linq; namespace NamingIdentifiers { enum Gender { Male, Female }; class MainClass { public void CreateHuman(int age) { Human instanceOfHuman = new Human(); instanceOfHuman.Age = age; if (age % 2 == 0) ...
b80d30f474d9b045e8c939ec96f4ba430d0343e0
C#
max-haventon/aoc-2019
/Test/Common/LayerTest.cs
3.09375
3
using NUnit.Framework; using Common; namespace Test.Common { public class LayerTest { [SetUp] public void Setup() { } [Test] public void Count() { Layer layer = new Layer(new int[] { 1, 2, 3, 1 }, 2, 2); Assert.AreEqual(2, ...
5dcf1d45452985b65d52572bc55fe3d920fb3be3
C#
KurokiYukari/3rd-Youmu-Controller
/Assets/youmu/Scripts/ActionManager.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// ActionManager 类,用于控制 Character 的具体行为。 /// 该类应该是一个抽象类,针对每一个不同行为模式的 Character(比如 Player 和不同的 AI)派生出不同的行为逻辑。 /// 该类应该与 CharacterController 所在的 GameObject 同层。 /// </summary> public class ActionManager : MonoBehaviour { pr...