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
092273eac72e31b2b06cd17eb2e422b172f15624
C#
Q1143316492/GoodsMS
/GoodsMS/GoodsMS/GoodsW/GoodsW/Dbhelper.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; namespace GoodsW { public class DBhelper { public enum RESULT { SUCCESS }; static string defaultConStr = @"server=.;database=GoodsMS;integrated security=tru...
fc1095ba0dffbf5c2eb47f11199e5d5644012920
C#
Jon-Morley/Big-Red-Button
/QAction_ClassLibrary/Class Library/Protocol/Matrix/MatrixPort.cs
2.75
3
namespace Skyline.DataMiner.Library.Protocol.Matrix { /// <summary> /// Represents a matrix input or output port. /// </summary> public abstract class MatrixPort { private readonly int index; // zero-based index. /// <summary> /// Initializes a new instance of the <see cref="MatrixPort"/> class. /// </su...
26504c56bc20200f302c82b2aba669ea9e3cf490
C#
Jef-DS/vbaspnetmvc
/taghelper01/ViewModels/ReisViewModel.cs
2.703125
3
using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace taghelper01.ViewModels { public class ReisViewModel { private List<Bestemming> bestemmingen = new List<Bestemming> { ...
a9114b1bc7cd4f192e2d2f1be8feb984dae6ed22
C#
PlumpMath/DesignPatterns-49
/EduCare.DesignPatterns.Composite.RealWorld/Models/Employee.cs
2.8125
3
using System.Collections.Generic; using System.Collections.ObjectModel; namespace EduCare.DesignPatterns.Composite.RealWorld.Models { public class Employee { public Employee() { Employees = new ObservableCollection<Employee>(); } public int Id { get; set; } ...
300a67ed36fadc55df6eb5fda51684ca2d31ad5a
C#
imsanju/WindowsForm
/CRM-Final/ProductForm/ProductAddForm.cs
2.546875
3
using System; using System.Drawing; using System.IO; using System.Windows.Forms; using CRM_Final.Business.Data; using CRM_Final.Business.Models; namespace CRM_Final.ProductForm { public partial class ProductAddForm : Form { private Product newProduct; public ProductAddForm() { ...
0723d12f4870d41d6a7d3dfd535ea24a75cbf269
C#
SergioMelaraJunior/Exercicios_De_Lista
/Exercicios De Lista/Program.cs
3.71875
4
using System; using System.Globalization; using System.Collections.Generic; namespace Exercicios_De_Lista { class Program { static void Main(string[] args) { Console.Write("Quantos funcionários serão registrados? "); int n = int.Parse(Console.ReadLine()); List<Empregad...
c1ade750aca371a274c7cbc21ed97e0838947b0a
C#
AngataHristov/Data-Structures
/LinearDataStructuresLists/ReversedList/EntryPoint.cs
2.828125
3
namespace ReversedList { using System; public class EntryPoint { public static void Main() { MyReversedList<int> list = new MyReversedList<int>(); for (int i = 0; i < 20; i++) { list.Add(i); } } } }
25a2711345d358da9917100199b5c7f163f618f2
C#
ume05rw/Xb.App.Job
/Xb.App.Job.STD1.3/Xb/App/Job/Dumper.cs
2.640625
3
using System; using System.Collections.Generic; using System.Threading; namespace Xb.App { public partial class Job { /// <summary> /// Dump output class of Resource / Job information /// リソース情報/ジョブ情報のダンプ出力クラス /// </summary> public sealed class Dumper : IDisposable ...
b2cd6697d96ddfb0b3a67eff54882ef95eb2ab1c
C#
sddhttxd/SDDH_Main
/SDDH.Utility/Log/LocalTxtLog.cs
3
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SDDH.Utility.Log { public class LocalTxtLog { private static StreamWriter streamWriter; //写文件 public static void WriteLog(string message) { ...
d2c11c5006eb20c491224dad4764cf6096633c60
C#
Project-3-Data-Application/Project-3-Data-Application
/appdesign/appdesign/appdesign/Grafiek parkeergarages.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; using Npgsql; namespace appdesign { public partial class Grafiek_parkeergarages : Form { ...
f48d6a8c3521dbf812693104e03b4a9fc363cb59
C#
xuewenjie/HexMapLearning
/Assets/Scripts/HexMetrics.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //六边形的外径和内径,以及他对应的六个邻居 public static class HexMetrics { //外径 public const float outerRadius = 10f; //内径为外径*0.866025404f,为什么是0.866025404f参考教程推导 public const float innerRadius = outerRadius * 0.866025404f; p...
55bca7099442199a28dac2c18746db2b4854d17c
C#
quager/WPFColorPickerDialog
/ColorPickerDialog/Field.cs
2.71875
3
using System.Windows; using System.Windows.Media; namespace ColorPickerDialog { public abstract class Field : Bindable { private Point _pickerCenterPosition; private ImageSource _image; public bool IsMoving { get; private set; } protected bool NeedUpdatePickerPosition = true;...
b9dee948aa200ea3b8da1d49e308b7ec8ffe68cc
C#
Aodai/ChromaticCanvas
/ChromaticCanvas/ChromaticCanvas.ApplicationLogic.Tests/Services/EventServiceTests.cs
2.5625
3
using ChromaticCanvas.ApplicationLogic.Abstractions; using ChromaticCanvas.ApplicationLogic.DataModel; using ChromaticCanvas.ApplicationLogic.Exceptions; using ChromaticCanvas.ApplicationLogic.Services; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; namespace ChromaticCanvas.ApplicationL...
8a5172b1a65123dc2cc99e24a0d2a8ccdfa0c897
C#
NesterovSergey/XT-2018Q4
/Epam.Task11-12/Epam.UsersAndAwards.DAL.SQL/FakeUserSqlDao.cs
2.734375
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Text; using Epam.Users.DAL.Interface; using Epam.Users.Entities; namespace Epam.UsersAndAwards.DAL.SQL { public class FakeUserSqlDao : IUserDao { private string connectionString; publi...
159cd24e7459f1334cb589522f437e1e29bbb0ac
C#
ShineLife/LeetcodeSolutions
/algorithm/111 Minimum Depth of Binary Tree/111.cs
3.3125
3
/** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNode(int x) { val = x; } * } */ public class Solution { public int MinDepth(TreeNode root) { if(root == null) ret...
b3fd966520272e6dc47f949676b17bc1478a7822
C#
MauroRC/Neoris_Labs
/Lab02_POO/WebApplication/Ejercicio3.aspx.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Lab02_POO { public partial class Ejercicio3 : System.Web.UI.Page { //constantes static int INTENTOS = 5, MIN = 1, MAX = 50; // v...
d1d87b9c19b2a08ae08607d753201b8e3e06e8a7
C#
OleksandrPetryk/Perspectiva
/Урок 19. Ajax в JQuery/Examples/AJAX_Basics_JavaScript/Samples/002_Ajax()/HandlerData.ashx.cs
2.90625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Web; using System.Web.Script.Serialization; namespace AJAX_Basics_JavaScript { public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { ...
9a27dccf9db3970cf66d9221ad2cfd495f09cfbb
C#
AceBurton/NPlus1DaysOfMvvmCross
/N-26-Fraggle/Rock.Core/ViewModels/FirstViewModel.cs
2.90625
3
using System.Windows.Input; using Cirrious.CrossCore.Converters; using Cirrious.MvvmCross.ViewModels; namespace Rock.Core.ViewModels { public class LengthValueConverter : MvxValueConverter<string, int> { protected override int Convert(string value, System.Type targetType, object parameter, Sys...
d01130e4c75079c507fdf89d0a01060380831826
C#
courtenayparserr/BSheet
/Plaid.Net/Data/Contracts/MfaResponseConverter.cs
2.890625
3
namespace Plaid.Net.Contracts { using System; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; /// <summary> /// Converter for JSON.net to convert a <see cref="MfaResponse"/> to/from json. /// </summary> internal class MfaResponseConverter : JsonConverter { ...
7d91bedeb3972e813332be6ed16f01504bca208a
C#
still-adam-k/readable-tests
/ReadableTests/ReadableTests/CalculatorTests.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentAssertions; using Xunit; using Xunit.Extensions; namespace ReadableTests { public class CalculatorTests { [Theory] [InlineData("2", 2)] [InlineData("2+7", 9)]...
ba4fd702703d8d0378db1bdc15db6d8ad39818f1
C#
tchaos/qizmt
/Extensions/QueryAnalyzer/RDBMS_DBCORE_RegressionTests/DbFunctions_MOD.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using RDBMS_DBCORE; using MySpace.DataMining.DistributedObjects; namespace RDBMS_DBCORE_RegressionTests { public partial class Program { public static void DbFunctions_MOD() { DbFunct...
2cb9192810be8d8086207174fdf94991fb298a2b
C#
ville-arola/programming-tasks
/international-reference-number/Program.cs
3.3125
3
using System; using System.Collections.Generic; namespace international_reference_number { public class Program { static void Main(string[] args) { Console.WriteLine("Programming tasks - international referencenumber\n"); Console.Write("Tarkasta viitenumero (1)\nLuo vii...
1163c0cda03a09a8382019433ccc4e697c86ad1b
C#
umbraco/Umbraco-CMS
/src/Umbraco.Core/Deploy/IContextCache.cs
2.8125
3
namespace Umbraco.Cms.Core.Deploy; /// <summary> /// Represents a context cache used by Deploy operations. /// </summary> public interface IContextCache { /// <summary> /// Creates the item on the context cache using the specified <paramref name="key" />. /// </summary> /// <typeparam name="T">The type...
da380d5e3b7808258f8d8a52fbcf99cd0c39b29b
C#
langsamu/GraphEngine
/GraphEngine/Expressions/TypeBinary.cs
2.515625
3
// MIT License, Copyright 2020 Samu Lang namespace GraphEngine { using System; using System.Diagnostics; using static Vocabulary; using Linq = System.Linq.Expressions; public class TypeBinary : Expression { [DebuggerStepThrough] public TypeBinary(NodeWithGraph node) ...
3aa0035f8adc792f00577877ac95f007355e67e8
C#
uoy-research/DED
/SecondLife/Actor/Backup1/Utils/Reads/ReadDrama.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using log4net; using log4net.Config; using System.Xml; using DED.Director; using System.Xml.Serialization; namespace DED.Utils.Reads { class ReadDrama: Read { private static readonly ILog log = LogManager.GetLogger(typeof(ReadDrama)); ...
f62b51e44e526ba6913f28a58bd476f1772d09b4
C#
tsgcpp/DependencyInjectionSample-Unity
/Assets/Scripts/Logger/AwakeInitializedLogger.cs
2.71875
3
using System; using UnityEngine; /// <summary> /// Awake後のみ使用可能なLogger(ExecutionOrder検証用) /// </summary> public class AwakeInitializedLogger : MonoBehaviour, ILogger { private Action<string> _loggerAction = null; void Awake() { _loggerAction = message => Debug.Log(message); } ...
7ee79d8ec015a06aa885c7f16bf72e6dcb3839da
C#
Acemond/PopNTouch
/PopnTouchi2/PopnTouchi2/Model/Melody.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PopnTouchi2 { /// <summary> /// Represents a set of notes. /// </summary> public class Melody { /// <summary> /// Property. /// List of notes defining the Melody. /// </s...
b9511b16beb21247605f763e855361c754b91685
C#
pedrorzanotti/space-chill
/Assets/Scripts/GameManager.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Manages the game state, the UI elements and the player. public class GameManager : MonoBehaviour { GameState gameState; [SerializeField] GameObject titleScreenCanvas; [SerializeField] GameObject HUDCanvas; [SerializeField...
b1dc64515b1dc253fae5217f54a68ade096b10f2
C#
vpenades/SharpGLTF
/src/SharpGLTF.Toolkit/Materials/MaterialValue.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; namespace SharpGLTF.Materials { [System.Diagnostics.DebuggerDisplay("{ToString(),nq}")] public readonly partial struct MaterialValue : IEquatable<MaterialValue> ...
57f174e0af69d7883393aad4c4a3b102b4f25b17
C#
ravarador/AhcmsApp
/AutomatedHumanContactMonitorySystemApp/Repositories/PlaceRepository.cs
2.625
3
using AutomatedHumanContactMonitorySystemApp.IRepositories; using AutomatedHumanContactMonitorySystemApp.Models.ContextModels; using AutomatedHumanContactMonitorySystemApp.Properties; using Newtonsoft.Json; using RestSharp; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespac...
48248449eda9d5d999bc3b5f2339f2724cd09448
C#
taherkheli/AdventOfCode2019
/Day10/AsteroidDetectionTest/GridTest.cs
3.078125
3
using AsteroidDetection; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.IO; using System.Linq; namespace AsteroidDetectionTest { [TestClass] public class GridTest { [TestMethod] public void GetLineOfSightTestA() { List<string> lines = new List...
8a1c3e9ee7a63361d649741c298fcac52490c58f
C#
JeffRichardson1150/SDCSharpFundamentals
/04_Loops/Loops.cs
3.921875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04_Loops { class Loops { static void Main(string[] args) { // While Loop int total = 1; while (total != 10) { ...
6992ba201973a7781ad43da37be65eab25f4599d
C#
george-vasilchenko/unity-visitor
/Assets/Src/Runtime/After/Characters/Mage.cs
2.53125
3
using Assets.Src.Runtime.After.Visitors; using Assets.Src.Runtime.Common; using UnityEngine; namespace Assets.Src.Runtime.After.Characters { public class Mage : CharacterBase { private readonly ICharacterVisitor<StatsDistribution> statsDistributionVisitor = new StatsDistributionVisitor(); priv...
36b784002902b4197f7fa140a1f5d07d561967a9
C#
mrdkprj/sqlm
/Utility/BindingList/SortableBindingList.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace MasudaManager.Utility { public class SortableBindingList<T> : BindingList<T>, IList<T> { ISynchronizeInvoke _syncObject; Action<ListChangedEventArgs> _listChanged; SortComparer<T> ...
75feb596c169586af0a66248b59f86c21c983dc6
C#
shivaconceptsolution/Csharp13-03-new
/SemaphoreExample.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace ConsoleApp2 { class SemaphoreExample { static Semaphore obj = new Semaphore(1, 5); static void Main(string[] args) { ...
78aa53659653d3fb2eee1ca1173b50115513a4a8
C#
chickenstick/Arowana
/Arowana.Test/TestObjectBuilder.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arowana; namespace Arowana.Test { public static class TestObjectBuilder { public static Credential GetCredential1() { Credential cred1 = new Credential(); ...
2b049d817bd1836141bdd6debcbd4d3b1240b177
C#
StephanSchue/NFC
/Assets/Scripts/RandomPrefabController.cs
2.65625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class RandomPrefabController : MonoBehaviour { public RandomPrefabChooser[] chooser; public bool autoRandomize = true; public int minPlacedCount = 1; public int maxPlacedCount = 3; private int curPlacedCount = 0...
85a217e293e1e17d378c46f80a82618aad19a672
C#
LathaNair/OnlineClothingStore
/OnlineClothingStore/Customer.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OnlineClothingStore { public class Customer { #region CustomerEnum public enum TypeofCard { ...
88bdae7a8a07cc41ca6118ff5470040391edc2f7
C#
Orfac/ProgrammingLabs
/DictionaryLib/Net/SocketWrappers/ClientSocket.cs
3.296875
3
using System; using System.Net.Sockets; using System.Text; namespace DictionaryLib.Net.SocketWrappers { /// <summary> /// Client for information exchange between server and client /// Can be created both from client and server side /// </summary> public class ClientSocket { private str...
71cab4ae9a103036132a6e52b45264d5a63bf1c6
C#
malain/candle
/Package/Dsl/Code/Services/CandleNotifier.cs
2.78125
3
using System; namespace DSLFactory.Candle.SystemModel { /// <summary> /// /// </summary> class CandleNotifier : ICandleNotifier { #region ICandleNotifier Members /// <summary> /// Occurs when [the candle options changed]. /// </summary> public...
89712e4c70e0da0ea6dff5c2e5d0bee1ec772ad6
C#
Chessboxer/HelloWorld
/HelloWorld/Survey.cs
3.671875
4
using System; using System.Collections.Generic; using System.Text; namespace HelloWorld { class Survey { public void RunSurvey() { Console.Write("Please Enter Your Name : "); var name = Console.ReadLine(); if(name == "") { Console...
082445d0c7b1ab99cddbc3139c702b25f8d82bba
C#
KeyserDSoze/DesignPatterns
/DesignPatterns/Creational/Builder/RealBuilder.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterns.Creational.Builder { public class RealBuilder : DesignPattern, IDesignPattern { public static RealBuilder Instance { get { ...
2b62a15cb4f7e63c0642f70b04d0580b7a00383d
C#
jhocamolu/LAB-NOM
/NominaBackend/ApiV3/Dominio/TipoDocumentos/Comandos/Crear/CrearTipoDocumentoHandler.cs
2.5625
3
using ApiV3.Infraestructura.DbContexto; using ApiV3.Infraestructura.Enumerador; using ApiV3.Infraestructura.Resultados; using ApiV3.Infraestructura.Utilidades; using ApiV3.Models; using MediatR; using System; using System.Threading; using System.Threading.Tasks; /// <summary> /// Clase encargada de crear el tipoDocum...
027e3cc11b898cc8138b0433249c36ff8a2f85d5
C#
stinkyBootsLLC/ColorSwitch
/Assets/Scripts/FollowPlayer.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // How to make a COLOR SWITCH Replica in Unity (Livestream Tutorial) public class FollowPlayer : MonoBehaviour { // this script will make the camera follow the player object // only in the UP direction // when player falls down then ...
01ff9b992390b12c0adfdeb42f679d935ce2e0db
C#
Sjord/ScoutsOffline
/ScoutsOffline/Sol/GetMembersWorker.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace ScoutsOffline.Sol { public class GetMembersWorker : BackgroundWorker { private ScoutsOnLine sol; public GetMembersWorker(ScoutsOnLine sol) { ...
8c0f6a835fdc006fd70689813c8d50eb141610ba
C#
windygu/CCSys
/LasMargaritasDL/ProducerDL.cs
2.515625
3
using LasMargaritas.Models; using System.Data.SqlClient; using System.Data; using System.Collections.Generic; using System.Reflection; using System.Linq; using System.IO; namespace LasMargaritas.DL { public class ProducerDL { public string ConnectionString { get; set; } public Produc...
58d7546201ea329a2e06a6efebf265845c1bcf95
C#
cdunham927/TheLeftovers
/Assets/AttackableObstacle.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AttackableObstacle : MonoBehaviour { public int health; public float particleLastTime = 1f; public Transform stoneParticle; private void Start() { if(stoneParticle == null) { De...
7dfa0d8bd88fe493afa3a4ba4db77dde25d05d9a
C#
MikhailApsalikov/AndreyOdintsov
/Entities/TestDataInitializer.cs
2.5625
3
namespace Entities { using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using Common.Enums; public class TestDataInitializer : DropCreateDatabaseIfModelChanges<AccountsDbContext> { protected override void Seed(AccountsDbContext context) { InitializeTestAccounts(...
bed3957e4a28a058d2db4489eed23164e15becea
C#
NLJYINSIST/RoundRpg
/luaClient/Assets/Client/Scripts/AssetSupport/GameObjectPool/GameObjectPoolManager.cs
2.515625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; /// <summary> /// 对象池管理器 /// </summary> public class GameObjectPoolManager : MonoBehaviour { public delegate void OnGetGameObjectAsyncDone(string path, GameObject obj); /// <summary> /// 从原始资源预先实例化出的对象,放在tranCache下面,使用的时候直接从...
dc70630517c1e5001e57c3813e4808a6c1470ca2
C#
Refaelbenmoyal/Newscomoany
/NewsTeam.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp16 { internal abstract class NewsTeam { protected string _story; internal abstract void CreateStory(); internal string GetStory() ...
c879204948537407f52870df7081f79566c682de
C#
ozgeKrt/CSharpTrials
/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ob_stringDizi { class Program { static void Main(string[] args) { string yazi = "Mer!habalar"; //string nesnelerinin tutulduğu kara...
576a79ab9fc2b070b06e4f204569f31c4045c91c
C#
shendongnian/download4
/code7/1259577-33681392-104000191-2.cs
3.46875
3
public void addAtLocation(int location, String element) { String[] newMyArray = new string[myArray.Length + 1]; for (int oldIndex = 0, newIndex = 0; oldIndex <= myArray.Length - 1; oldIndex++, newIndex++) { if (newIndex == location) { ne...
e3e551566efe349f84f1d8b5f5dd909048e40013
C#
NTorres67/IntroToOOP
/IntroToOOP/Cat.cs
4.0625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IntroToOOP { class Cat // Class = noun; create new class for each item eg. dog { // I need STATES //fields - almost always private private string name; ...
fc0c772580bf145f1c2ca45d4dc9e02cf40cdfe0
C#
amnelson240p/CIS174ClassProj
/SpeedMap/SpeedMap/App_Code/ReportDB.cs
2.625
3
using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.ComponentModel; using System.Collections.Generic; using System.Linq; using System.Web; namespace SpeedMap.App_Code { [DataObject(true)] public static class ReportDB { private static List<DisplayR...
bcce2bbfda8420814df73fced3e2eb52921c7401
C#
dsantarelli/HackerRank
/csharp/staircase.cs
3.8125
4
using System.Linq; using System; class Solution { static void staircase(int n) { for (int j = n - 1; j >= 0; j--) { var spaces = Enumerable.Range(0, j).Aggregate("", (a,b) => a + " "); var stairs = Enumerable.Range(0, n - j).Aggregate("", (a, b) => a + "#"); var output = spaces + stairs...
ae3bb9e6de04d365a7ec85822d807022670ad2cc
C#
mletov/TriangleType
/TriangleTypeDetectorTests/TriangleTypeDetectorTests.cs
2.609375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using TriangleTypeDetector; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TriangleTypeDetector.Tests { [TestClass()] public class TriangleTypeDetectorTests { [TestMet...
d0c6d6f1a06873333859b9b2b3037c14da34d04c
C#
spacestarorderedgames/unity_heretic_bsp
/Assets/Scripts/Types/BspHeader.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; namespace BspTools.v38.Types { public class BspHeader { public class DirectoryEntry { public string Name { get; private set; } public int Offset { get; private set; } public int Length { get;...
0b6baea16a0b2fc482f94f3e7def1accc8f2910c
C#
DanAndreiChiriac/Paint.Net4
/PaintDotNet.Base (PaintDotNet.Base.dll)/PaintDotNet/Diagnostics/FloatIsClampedValidator.cs
3.1875
3
namespace PaintDotNet.Diagnostics { using PaintDotNet; using System; public sealed class FloatIsClampedValidator : IValidator<float> { private float maxValue; private float minValue; public FloatIsClampedValidator(float minValue, float maxValue) { ...
885cc0f84630e882ef6d9dbb2e490b551ea2b4ca
C#
ctrlfreak453/rpgClone
/Assets/Scripts/Entitiy.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Entitiy : MonoBehaviour { int currentHealth; int maxHealth; SpriteRenderer spriteRenderer; bool isInvincible; float durationInvincibility; private void Awake() { currentHealth = max...
2737983488f23277aabdb265c015deb5c17b70f4
C#
stambi4a/AdvancedOOP
/AdvancedOOP/Theme03.Iterators And Comparators/Exercises/Problem 05.Comparing Objects/Program.cs
4.03125
4
namespace Problem_05.Comparing_Objects { using System; using System.Collections.Generic; using System.Linq; public class Program { private static void Main(string[] args) { var listPeople = new List<Person>(); while (true) { var l...
3fbb50961fde217e3f3a47368394bf3d0b924e71
C#
martindzejky/udpit
/Source/Fragment/FragmentType.cs
2.53125
3
namespace Udpit { /// <summary> /// Type of fragment. /// </summary> internal enum FragmentType { /// <summary> /// Initialize handshake. /// </summary> Prepare = 0, /// <summary> /// Confirm handshake. /// </summary> Prepared = 1, /// <summary> /// Keep send...
da42a5174a69af33eda53051240bee31a477a740
C#
pzlatarov/yeelight-sharp
/Pzlatarov.Yeelight/YeelightFactory.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace Pzlatarov.Yeelight { public class YeelightFactory { public static Yeelight BuildYeelight(string properties) { string id ...
1ea4a46ca3dc9f2cc511d0b2cbcef8c34196d7b7
C#
Bent-Herrmann/neuron
/neuron/Neuron/BinaryMapControl.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using DotNumerics.LinearAlgebra; namespace Neuron { public class BinaryMapControl : PictureBox { public BinaryMapContro...
bc7b5b59812ef6c5acd919f3d24c8f0e07d5aef5
C#
KristinaKosko/TAT_LAB
/Task1_1/Task1_1/List.cs
3.953125
4
using System; using System.Collections.Generic; namespace Task1_1 { public static class List { public static List<int> ListInitialize(int numberOfElements) { var list = new List<int>(); for (var i = 0; i < numberOfElements; i++) { list.Add(i); } return list; } public static void AddElem...
334a6fd0f6d5482c3f68d00c2d7048e94d5bb7f5
C#
johnaman01/Comic-book-gallery-model
/src/ComicBookGalleryModel/Models/Series.cs
2.671875
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ComicBookGalleryModel.Models { public class Series { //nav property must be initialized via Series constructor public Series() { ComicBooks = new List<ComicBookArtist>(); } ...
c9b4c87d595e2da1552b71f8e1642ec719a5857e
C#
smithc57973/CIS497_Runthrough
/CIS497_Runthrough/Assets/Scripts/PlayerControl.cs
2.78125
3
/* * Chris Smith * Assignment 2 * Allows the player to control the player object. */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerControl : MonoBehaviour { public float speed; public float turnSpeed; private float horizontalInput; private float for...
93ed20bdc183e800d28080ddcb2972032af5505d
C#
highwaychurch/web
/Shared/Exceptions/ExceptionExtensions.cs
3.203125
3
using System; using System.Collections.Generic; public static class ExceptionExtensions { public static string ToExceptionStackSummaryString(this Exception exception, string joiner = null) { if (exception == null) return "no extra error information is available"; var ex = exception; ...
d7133848c16ab3032818a7acc984eeea589bd5d5
C#
ccullotta/PostCardAppV2
/PostCardAppV2/Models/Sheets.cs
2.96875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace PostCardAppV2.Models { public class Sheets { public int ID { get; set; } [MaxLength(10)] private string _name; [Required] ...
b9396594b39a7e75520e2f3ec3c7a7361d29a74b
C#
mTonkov/TelerikAcademyCourses-
/High Quality Code/HQPC_12.Refactoring/MatrixTests/TestMatrix.cs
2.953125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using WalkingInMatrix; namespace MatrixTests { [TestClass] public class TestMatrix { [TestMethod] public void TestChangeDirectionTopLeftDiagonal() { int dx = 1; int dy = 1; Matrix....
ece2019726dbce85590d621ac83c758bed1019f8
C#
Else-jpg/Assignments
/DA205A(Malmo)/Assignment2/Assignment2/AnimalFiles/CategoryFiles/MammalFiles/Deer.cs
3.3125
3
using Assignment2.Enums; namespace Assignment2.AnimalFiles { public class Deer : Mammal { public string HornSets { get; set; } public Deer(int id, string numberOfTeeth, string hornSets) : base(id, numberOfTeeth) { HornSets = hornSets; } /// <sum...
359da9211653e9a5c3f2614ca23ed6f68a8a5361
C#
vsarunov/LiveJourney
/Client/Controllers/HomeController.cs
2.578125
3
namespace Client.Controllers { using Client.Models; using Client.Services; using DataAccess.Repository; using Infrastructure.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; public class ...
c3538a0c341c7b1a020204280a7d09d9b964810c
C#
Rtimee/My-Templates
/Enum/SoldierManager.cs
3.140625
3
using UnityEngine; public class SoldierManager : MonoBehaviour { #region Variables // Saldırı için seçilmiş olan asker tipi. private SoldierTypes _selectedSoldiersType; // Tüm askerlerin bulunduğu dizi. private Soldier[] _soldiers; #endregion #region MonoBehaviour Callbacks private...
08c405ea06cdc6aa09f404495012dc15631713a6
C#
jasongorman/Readability
/Codemanship.Readability/CamelPascalCaseParser.cs
3.015625
3
using System; using System.Linq; using System.Text.RegularExpressions; namespace Codemanship.Readability { public class CamelPascalCaseParser : IParser { public string[] Parse(string source) { if (source.ToCharArray().All(Char.IsNumber)) return new string[]{source}; ...
616b65bba095de863f45a8df2f7119848fcd96eb
C#
bluecrypt47/WebBanTraSua
/WebBanTraSua/Code/SessionHelper.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebBanTraSua.Code { public class SessionHelper { // Tạo session khi đăng nhập public static void setSession(TaiKhoanSession session) { // Gán tài khoản hiện tại và biế...
1074b0eac646fc1267a6cf8f9c161d066573d505
C#
k-boyle/Project-Euler
/1-9/_5_Smallest/Program.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; namespace _5_Smallest { class Program { static void Main(string[] args) { var divisors = Enumerable.Range(2, 19); Console.WriteLine(Enumerable.Range(20, int.MaxValue - 20).First(i => IsDivisable(i, divisors))); ...
88c2e0b2597a7a21e9995467da0df975fd4e21c9
C#
jonesvg/GuessingGame
/GuessingGame_Jones/Views/QuestionWindow.xaml.cs
2.65625
3
using GuessingGame_Jones.ViewModels; using System.Windows; namespace GuessingGame_Jones.Views { /// <summary> /// Interaction logic for QuestionWindow.xaml - Esta tela comanda todas as mensagens de verificação de nome e caracteristica do animal. /// </summary> public partial class QuestionWindow : Win...
7849ea378aae08f1968f6721c9c7de1fef99f04b
C#
mohabouje/Polyhedrus
/Polyhedrus.Ui/Components/FlatToggleButton.xaml.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Documents; using System.Windows...
efa06e3fcc305a3d56404b0f98d39cb6b7fbc16a
C#
shendongnian/download4
/first_version_download2/48323-24243742-67377178-1.cs
2.90625
3
private static void deleteEmptySubFolders(string ffd, bool deleteIfFileSizeZero=false) { DirectoryInfo di = new DirectoryInfo(ffd); foreach (DirectoryInfo diSon in di.GetDirectories("*", SearchOption.TopDirectoryOnly)) { FileInfo[] fis = diSon.GetFiles("*.*", SearchOption...
ee8042f95d53d259697ae1f14ad5576cd868fe20
C#
JacKhinFai/MaxMana
/MaxMana/MaxMana/Tools/Armour/BronzeArmour.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MaxMana.Tools.Armour { public class BronzeArmour : Item { public BronzeArmour() { this.Name = "Bronze Armour"; this.UID = 8; this.Type = ItemType.Armour; ...
d60ec2a682f1b3547dab7625312ac40bcd9d8960
C#
sajid-Aust/CSE-3.2-Project-ASP.NET_MVC
/MyApp.DB/ContactRepo.cs
2.828125
3
using MyApp.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyApp.DB { public class ContactRepo { public Boolean AddContact(String email, String message) { using (var context = new MobileBazaarDBEn...
e6d37d47721b10f6372b78ab6b892f100023ca5d
C#
31114/OopLesson03
/Chapter6/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chapter6 { class Program { static void Main(string[] args) { //var numbers = new List<int> //{ 17, 38, 26, 50, 37, 15, 62, 37, ...
5755abdfa32a278346d79adf69247f00133e9ab4
C#
Daoting/dt
/Infras/Dt.Cells.Data/Data/BubbleDataLabel.cs
2.765625
3
#region 文件描述 /****************************************************************************** * 创建: Daoting * 摘要: * 日志: 2014-07-02 创建 ******************************************************************************/ #endregion #region 引用命名 using System; using System.Text; #endregion namespace Dt.Cells.Data { /// <s...
a3ca5c2c34147e25d00002a425864f5b787353b3
C#
smontalvo05/CSharpApplications
/stevemontalvo_CE04/stevemontalvo_CE04/ValidateUserInput.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace stevemontalvo_CE04 { class ValidateUserInput { public static float MileageOfCar (string message = "Please enter the mileage of your car:") { float ...
5b52834f0ded0816eb39a03effcef981fc95865b
C#
am1752/StudyOmok
/OMOK/CPP-Server-And-CSharp.Net-Client-Network-Gomoku-Game-master (3) (3) (1)/Client/MultiPlayForm.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.Threading; namespace Client { public partia...
d672495525c62f6dfdd6318c8919055763334935
C#
Yordan432/Programming-Fundamentals-
/List-Excercise-IntesiveGroup/IncreasingSubsequen/IncreasingSubsequen.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; class IncreasingSubsequen { static void Main() { List<int> numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); List<int> lenght = new List<int>(); List<int> prev = new List<int>(); List<int> longe...
76053e8b4b086aa7919150cb65d51ad9c3be427f
C#
rafaelraah/StaticFactoryMethodProject
/StaticFactoryMethodProject/StaticFactoryMethodProject/GeradorIntAleatorio.cs
3.3125
3
using System; namespace StaticFactoryMethodProject { public class GeradorIntAleatorio { int min; int max; const int VALOR_MINIMO = 0; const int VALOR_MAXIMO = int.MaxValue; private GeradorIntAleatorio(int min, int max) { this.min = Math.Min(min, ma...
68b771f200eca57190eacf47e665a0dc18006713
C#
Mortion/Uses
/EasyShop/BusinessObjects/Product.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessObjects { public class Product { public int Id { get; set; } public string Beschrijving { get; set; } public decimal Prijs { get; set; } public...
4b403f474aaf2538d7faea39b7badad44e8c461b
C#
molokovskikh/Retail
/Retail.Common/Repository/IProductRepository.cs
2.546875
3
using Retail.Models; using System.Collections.Generic; namespace Retail.Repository { public interface IProductRepository : IRepository<Product> { /// <summary> /// Поиск товара(ов) по тексту/штрихкоду /// </summary> /// <param name="text">Текст с частью наименования или штрих-к...
36aa07fe19b5c598d9a3cfad3edd923692700b02
C#
piedoom/TumblrSharp
/src/TumblrSharp/StringMethodParameter.cs
3.1875
3
using System; using System.Net.Http; using System.Text; namespace DontPanic.TumblrSharp { internal class StringMethodParameter : IMethodParameter { private readonly string name; private readonly string value; public StringMethodParameter(string name, long value) : this(name, value.ToString()) { } p...
4881ac91be5879fb5e0e26e1e34d261766e2766f
C#
shendongnian/download4
/code5/962989-24375499-67899775-2.cs
3.265625
3
public class NewChemicalFormula: ChemicalFormula { public void Method() { Console.WriteLine("{0}", ChemicalFormula.GetType()); // Compile error Console.WriteLine("{0}", this.ChemicalFormula.GetType()); // Effectively same as above, compile error ...
a31aed5950a357685557236d98587785585e2e7a
C#
robsondesenvolvimento/robsonalves-net-br-api
/RobsonDev.Data/Repositories/UserRepository.cs
2.78125
3
using Microsoft.EntityFrameworkCore; using RobsonDev.Authentication.Models; using RobsonDev.Data.Context; using RobsonDev.Services; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RobsonDev.Data.Repositories { public class UserRepositor...
fda05bb61f69e87a98949e573b8c8dd025089cb0
C#
mizanurcse18/VMS
/PS.Service/VehicleStatusService.cs
2.59375
3
using System; using System.Collections.Generic; using PS.Data.Infrastructure; using PS.Data.Repository; using PS.Model.Models; namespace PS.Service { public interface IVehicleStatusService { bool Save(VehicleStatu VehicleStatu); bool Update(VehicleStatu entity); bool Delete(String id)...
482211b62d0aa0b274fb17233c79b463c707f1f4
C#
Therlys/tp1
/Assets/Scripts/Play/State/Common/DrinkState.cs
2.78125
3
using System.Collections; using UnityEngine; namespace Game { //Author: Jérémie Bertrand public class DrinkState : BaseState { private readonly Animal animal; private const string STATE_TAG = "Drinking..."; public override void Enter() { #if UNITY_EDITOR animal...
0b2f2c289b862500677406a56e6b74f1087b8d6d
C#
WhiteWaterCoder/DockerCliWrapper
/DockerCliWrapper/Docker/Interfaces/ISearchable.cs
2.640625
3
using System.Collections.Generic; using System.Threading.Tasks; namespace DockerCliWrapper.Docker.Interfaces { /// <summary> /// Defines an entity which can be search for. /// </summary> /// <typeparam name="TResult">The type of result object returned.</typeparam> public interface ISearchable<TRes...
c57b522934c3df2ae36692aff770437a83c34b29
C#
asWorks/SteinbachCommonTools
/libSendOutlookMail/OutlookMail.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Tools.Outlook; using Microsoft.Office.Interop.Outlook; using Office = Microsoft.Office.Core; using System.Runtime.InteropServices; using Microsoft.Office.Interop.Word; namespace asOutlookMail { public e...
7afd19fc7e1977276525e7ca10f8ec8cd74910d6
C#
phamhoangbl/EmailGetter
/EmailGetter.Core/Data/Repository/ContactFormRepository.cs
2.65625
3
using EmailGetter.Core.Data.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EmailGetter.Core.Data.Repository { public class ContactFormRepository : IContactFormRepository { private EmailGetterContext db = null; ...
6b1f7b1838c31de0ad4dfcb502f48769f86bdcd8
C#
BlazejSkoczylas/Codeforces
/LearnFromMath.cs
3.578125
4
using System; using System.Numerics; namespace WatermelonC { class Program { private static bool isComposite (int n) { if (n != 2 && n != 5 && n != 3 && n != 11 && n != 7 && n != 13) { if (n < 121) { if (n %...
103db3d6b9f94c454eb13932eaa267afc2637bbf
C#
kulhajs/Game
/Test/Test/Explosion.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Fra...
3d6912a2bb7ec34b3b270b2e2821d29bc18f962c
C#
YousefAlyouswf/ProjectChoco
/ProjectChoco/Services.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ProjectChoco { class Services { /** * Creates a new empty Services object */ public Services() { List<Service> serviceList = ne...
4d8ff76f5502b675af97b514f3b9f767eab0bda8
C#
gustavomirandag/VerySimpleEatingApplesGame
/GameApp/Form1.cs
2.703125
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 GameApp { public partial class form1 : Form { public form1() { ...