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
a7081ff279f5446088abdf6b4acc5c3b89ab21b7
C#
irah2008/Dynamics-365-Workflow-Tools
/msdyncrmWorkflowTools/msdyncrmWorkflowTools/Class/DateFunctions.cs
2.515625
3
using Microsoft.Crm.Sdk.Messages; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using Microsoft.Xrm.Sdk.Workflow; using System; using System.Activities; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace msdyn...
871bc748f5dfa89e0f46764464358951d5642dd4
C#
hvgmbdmg/LeetCodeSoluction
/CSharp/108. Convert Sorted Array to Binary Search Tree.cs
3.328125
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 TreeNode SortedArrayToBST(int[] nums) { return CreatBST( nums, nums.Length...
c4b9e5e1cb173a6109bce3fb37a109a38261fd7d
C#
Malsly/Supplement-to-the-system-of-books-for-the-library
/Library/DAL.Imp/Mappers/BookMapper.cs
2.84375
3
using DAL.Abs; using DTObjects; using Entities.Imp; using System; using System.Linq; namespace DAL.Imp.Mappers { public class BookMapper : IMapper<Book, BookDTO> { public GenericRepository<Book> repo; public BookMapper(GenericRepository<Book> repo) { this.repo = repo;...
b22971b94a084d1247197addab49b75913ea3578
C#
desolangel/code-test
/src/Shortenurl.Model/SqlDataAccess.cs
2.90625
3
using Microsoft.Extensions.Options; using shortenurl.model.Interfaces; using shortenurl.model.Settings; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace shorte...
2bc3b0eb11aaaea71d4eab9a5d67c6a98f3853ba
C#
MarianBecher/Blobed
/Assets/Scripts/Level/Trigger.cs
2.5625
3
using UnityEngine; using UnityEngine.Events; using System.Collections.Generic; using System; public abstract class Trigger : TilePrefab { public List<Triggerable> targets; public override void configure(TileSettings settings, LevelLoader loader) { foreach(int targetID in settings.triggerTargets)...
4786bb87d23859b7d3d5e257490efa4ca57f8fa0
C#
ChrisDoerr/CustomTitleBarWindow
/CustomWindow/MainWindow.xaml.cs
2.828125
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;...
f2e22f47324320f9cbc069ffdf9596fecdf805d2
C#
danehoff/cowboy-cafe
/PointOfSale/CoinControl.xaml.cs
2.6875
3
/* * Author: Dane Hoffman * Edited by: (If you are not the original author like the CowpokeChili class) * Class name: Coin Control * Purpose: Has all the controls for the coins. */ using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System....
3a0dc826d34add4235b43d133c7108037ca2085f
C#
AlexBrad1ey/CoBuilderSDK
/CoBuilder.Interfaces/Infrastructure/Config/PropertySetDefinition.cs
2.8125
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using CoBuilder.Service.Helpers; using CoBuilder.Service.Interfaces; namespace CoBuilder.Service.Infrastructure.Config { public class PropertySetDefinition : Definition, IPropertySetDefinition { pub...
2bca14e8dfaf805f9ae6699bbb2d41b33ecf8498
C#
emilia98/SoftwareUniversity
/Programming Basics/Programming Basics - C#/Exercises/06. Drawing with Loops/06. Drawing with Loops/RhombusOfStars/RhombusOfStars.cs
3.84375
4
using System; namespace RhombusOfStars { class RhombusOfStars { static void Main() { int n = int.Parse(Console.ReadLine()); int intervals; int stars; if (n == 1) { Console.WriteLine("*"); } els...
b44a42f6da9dd7646981fbf8ef73458d7f99634e
C#
solarwinds/OrionSDK
/Src/SwqlStudio/ObjectExplorer/DocumentationBuilder.cs
2.65625
3
using System; using System.Text; using System.Windows.Forms; using SwqlStudio.Metadata; namespace SwqlStudio { internal class DocumentationBuilder { public static Documentation Build(TreeNode node) { var data = node.Tag; var connectedNode = node as TreeNodeWithConnectio...
6ce2856d039580aea006a3c446f64407f71eca37
C#
tonto7973/xim
/src/Xim.Simulators.Api/Body(TObject).cs
2.546875
3
using System; using System.IO; using System.Linq; using System.Text; using System.Text.Json; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; using Microsoft.AspNetCore.Http; using Xim.Simulators.Api.Internal; namespace Xim.Simulators.Api { /// <summary> /// Repres...
d48de0fb918d2e1e179a80844c127bb69ad8db6d
C#
wilbennett/Wil.Library
/Wil.Reactive/ObservableEx.Stale.cs
2.515625
3
using System; using System.Linq; using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using Wil.Core.Interfaces; using Wil.Reactive.Interfaces; namespace Wil.Reactive { public static partial class ObservableEx ...
6142b10f525233f31ce9533964f40ace74caefb7
C#
Veivan/MorphApp
/AsmApp/Types/LexemaAsm.cs
2.6875
3
using System; using Schemas; using Schemas.BlockPlatform; namespace AsmApp.Types { /// <summary> /// Класс хранит одну лемму : /// обозначение части речи и значение. /// </summary> public class LexemaAsm : AssemblyBase { #region Privates private AssemblyBase srcAsm; // Сборка, из которой был сформирован ...
ccdc52d6835abbeb24cc3dcea886c7243be16c93
C#
shendongnian/download4
/latest_version_download2/3030-351799-140124583-2.cs
2.96875
3
public static void InsertAfter(this DataColumnCollection columns, DataColumn currentColumn, DataColumn newColumn) { if (!columns.Contains(currentColumn.ColumnName)) throw new ArgumentException(/** snip **/); columns.Add(newColumn); //add the ...
161fd785ee21b6344e9b1f9952b7b6455d0be07a
C#
aliardan/Bars
/QuickSort/QuickSort/Program.cs
3.265625
3
using System; using System.Linq; using Microsoft.FSharp.Collections; using QuickSortFSharpLib; namespace QuickSort { class Program { static void Main(string[] args) { Console.WriteLine("Введите элементы массива через пробел и нажмите Enter"); var inString = Console.Read...
a2cb7e1546b332d633cb3d69fe38fa36e4ea16e9
C#
Xnco/Data-Structures-and-Algorithms
/TitleProject/0226_翻转二叉树.cs
3.484375
3
using System; public class Class1 { public Class1() { } #region 226_翻转二叉树 /* 翻转一棵二叉树。 示例: 输入: 4 / \ 2 7 / \ / \ 1 3 6 9 输出: 4 / \ 7 2 / \ / \ 9 6 3 1 备注: 这个问题是受到 Max Howell 的 原问题 启发的 :...
eb6064bcd1e363a6e8196ae8121c617d1f955463
C#
michael-kokorin/dsl-engine
/Src/Common/Common/Extensions/StringExtensions.cs
3.34375
3
namespace Common.Extensions { using System; using System.Globalization; using System.IO; using System.Text; using JetBrains.Annotations; /// <summary> /// Provides extension methods for strings. /// </summary> public static class StringExtensions { /// <summary> /// Checks whether two string are eq...
0bc91d40a12a720126c8cb27327cc55e60970063
C#
montegava/rental
/Rental/src/Common.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using System.Windows.Forms; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.IO; u...
074b79befcf2c4374989f860cc3732cdbf622494
C#
Nethereum/Nethereum
/generators/Nethereum.Generators/ABI/GeneratorModel/ParameterABIModel.cs
2.5625
3
using System.Collections.Generic; using Nethereum.Generators.Model; namespace Nethereum.Generators.Core { public class ParameterABIModel : ParameterModel<ParameterABI> { public const string AnonymousInputParameterPrefix = "ParamValue"; public const string AnonymousOutputParameterPrefix = "Retu...
b60afe1e5c483f70374fc2ad568aa87af8ffda92
C#
kiki2702/reporter
/src/Reporter.DAL/GenericRepository.cs
2.859375
3
using Reporter.DAL.Entities.Contracts; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Reporter.DAL { public class GenericRepository<TEntity> : IGenericRepository<TEntity> where TEntity : class, IEntity, new() ...
d59ebea269e482839a7085d4daf53dd0ffcb4206
C#
shristoff/TelerikAcademy
/C#/PartI/2.Primitive-Data-Types-and-Variables/10.MarketingFirm/MarketingFirm.cs
3.484375
3
using System; class MarketingFirm { static void Main() { Console.WriteLine("Please enter in this order First name, Family name, age, gender (m/f), IDnumber and UniqueNumber (4 digits):\n"); string FirstName = Console.ReadLine(); string FamilyName = Console.ReadLine(); byte age ...
95a5c792436b201bef9fa50bf8b5fbce95ca5697
C#
Tochukz/MCSD_Study_Guide
/Chapter8/Chapter8/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chapter8 { using System.Threading; class Program { [ThreadStatic] static int count = 0; static void Main(string[] args) { ...
18050f0c3ac499805c18a0edc2bd724a94c73c00
C#
NikolaiLutsenko/diplomformasha
/DiplomaWork/Data/Models/CategoryConfiguration.cs
2.578125
3
using DiplomaWork.Data.Constants; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace DiplomaWork.Data.Models { public class CategoryConfiguration : IEntityTypeConfiguration<Category> { public void Configure(EntityTypeBuilder<Category> builder) ...
904812540da685f91b357e871a03cbf0fa7ff009
C#
kmanev073/wpfsudoku
/wpfsudokulib/Services/SudokuService.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using wpfsudokulib.Enums; namespace wpfsudokulib.Services { /// <summary> /// The main functionality of the sudoku game /// </summary> public class SudokuService { #region Pu...
fee5d40696271c23843cf81c956d1433b7bfa8ae
C#
longde123/maps
/Solution/Maps.Data.OpenStreetMap/OsmGeo.cs
3.1875
3
using System; using System.Collections.Generic; using Maps.Extensions; namespace Maps.Data.OpenStreetMap { /// <summary> /// Enum to describe the geometry type /// </summary> public enum OsmGeoType { Node = 0, Way = 1, Relation = 2, } /// <summary> /// Base clas...
0cfb113cee046a7f955f81aead8bbc9a8c825cf0
C#
harley333/common-dataAccess
/Common.DataAccess/Mapper.cs
3.234375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Common.DataAccess { /// <summary> /// This class contains helper methods for mapping properties from one type to another. /// </summary> /// <remarks> /// Remodeling data can be a ver...
abb7deea119a8aecd2a70a6c3ba1112e2d32750a
C#
adamyWA/ApiDemo
/Format.cs
2.96875
3
using System; namespace Enom { public static class Format { public static string Input(Parameters parameters) { string _queryString = ""; char[] _end = { Convert.ToChar("&") }; foreach (Parameter p in parameters) { _queryString ...
355da04afc208ea26f4bcfdc1a9546f2310f6099
C#
mdamyanova/SoftUni-CSharp-Web-Development
/02.Advanced C#/Homework/05.Regular Expressions/04.ExtractEmails/ExtractEmails.cs
3.0625
3
//Write a program to extract all email addresses from a given text. //The text comes at the only input line. Print the emails on the console, //each at a separate line. Emails are considered to be in format <user>@<host>, where: //• <user> is a sequence of letters and digits, where '.', '-' and '_' can appear //bet...
3eea9050bf0efdd58a5fcbce8878e7460629712c
C#
Rezivel/FlymeArena
/Assets/MainMenu/Scripts/AttachmentBase58.cs
3
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Numerics; using System.Linq; using System; public class AttachmentBase58{ static string alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; public static string DecimalToHex(BigInteger dec) {...
d88ccdeaa92d940631b835035f41657910ffd339
C#
lewisliang82/MemPowered
/MemPowered/Publisher.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Enyim.Caching.Memcached; namespace MemPowered { public static class Publisher { static List<Action<MemcachedNode>> registrants = new List<Action<MemcachedNode>>(); public static void Regist...
def89da77d2820c11e7be2e700602f18fc64bca7
C#
vscheffer/SqlQueryBuilder
/src/Peerislands.SqlQueryBuilder.Core/Query/Clauses/WhereClause.cs
2.828125
3
using Peerislands.SqlQueryBuilder.Core.Enums; using System; using System.Collections.Generic; using System.Text; namespace Peerislands.SqlQueryBuilder.Core.Entities.Clauses { public struct WhereClause { private string m_FieldName; private QueryComparison m_ComparisonOperator; private o...
7e7fd86bcba68d97d17b26797960f1846b447e8f
C#
andonovskakristina/Vizuelno-Programiranje
/AV07/Hangman/Hangman/ArrayWordSelector.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hangman { class ArrayWordSelector : IWordSelector { private readonly string[] words = { "Argentina", "Aust...
8aa843e20ea87eecbbe289efeeb375cab9f71ae8
C#
Jeffry38/Stealers-Collection
/[corclub]Govnofile/Mystery Stealer + Panel/mystery stealer source(1)/MailRy.Linq/DelegateComparer.cs
2.625
3
using NoiseMe.Drags.App.Models.Delegates; using System; using System.Collections.Generic; namespace MailRy.Linq { internal class DelegateComparer<TSource, TKey> : IComparer<TSource> where TKey : IComparable<TKey> { private Func<TSource, TKey> m_Getter; public DelegateComparer(Func<TSource, TKey> getter) { ...
441c5fe889fbc62d0cbdd68735cc3adaa23c352e
C#
MatviiSuslenko/unity-important
/railway-builder-demo/BezierPoint.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteAlways] public class BezierPoint : MonoBehaviour { public Transform current; public Transform left; public Transform right; private Vector3 leftOldPos; private Vector3 rightOldPos; private float compareCon...
475510bc008d040f344c256e5027fedd2d13c76f
C#
lpixley1/DnD
/DnD/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace DnD { class Program { static void Main(string[] args) { DiceRoll.chooser(); CharacterSheet.start(); ...
4664d70e715f8c2b900af171b30ee3458c093c67
C#
robertocarlostf/btest
/Bertoni.Domain/AlbumService.cs
2.8125
3
using Bertoni.Data.Abstraction; using Bertoni.Data.Entitites; using Bertoni.Domain.Abstraction; using Bertoni.Domain.BusinessObjects; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bertoni.Domain { public class AlbumService : IService<...
9dc0f3ce7d09929ed0afd756cd87c89774ebb765
C#
PUPA42/Pattern
/Pattern/Visitor/Computer.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pattern.Visitor { class Computer : IComputerPart { private IComputerPart[] m_computerParts; public Computer(IComputerPart[] computerParts) { m_compu...
f45976c33eea59afabef10c027e0a135016b9e2f
C#
DreamRunnerMoshi/LeetCode
/LeetCode.Solutions/_39CombinationSum.cs
3.421875
3
using System; using System.Collections.Generic; using System.Text; namespace LeetCode.Solutions { public class _39CombinationSum { public IList<IList<int>> CombinationSum(int[] candidates, int target) { List<IList<int>> ans = new List<IList<int>>(); FindCombination(ca...
2c73141564cf6916e5a0a6609eea45c9ff3c3b85
C#
green-fox-academy/Albert-Bach
/Homework/DoableHomework/DoableHomework/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DoableHomework { class Program { static void Main(string[] args) { string tree1 = "mapple, red, 10,male"; string tree2 = "birch,gre...
1f470b86b27c19dee6f61fa2d91a14d08ce20052
C#
modmoto/HeroShoote
/Assets/Scripts/Player/FollowObject.cs
2.703125
3
using UnityEngine; namespace Player { public class FollowObject : MonoBehaviour { public Transform objectToFollow; public float smoothSpeed = 0.125f; void LateUpdate() { var positionOfFollowingObject = objectToFollow.position; var currentPosition = tra...
23070811f682383808b663e512cea5262ebadee4
C#
ozgend/definder
/DeFinderLib/Models/SearchModel.cs
2.5625
3
using denolk.DeFinder.Services; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading; using System.Threading.Tasks; namespace denolk.DeFinder.Models { [Serializable] internal class Se...
d135506d6e7dbc480b7dedc0ae74318fa1b49813
C#
petargg/UserApi.Consumer
/UserApi.Consumer/UserClient.cs
2.921875
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace UserApi.Consumer { public class UsersClient { private HttpClient client; public UsersClient() { client = new HttpClient(...
5fc66a0e200dc77e3313db5db8319fccc0773690
C#
wowowoxuan/buildserver
/project#4/681proj4/repo/repository.cs
2.515625
3
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //repository.cs:Repository Server for proj#4 // //Author:Chai,Weiheng,wchai01@syr.edu ...
ae821f424aa057ea956237ba7c89cac633f183f2
C#
zengxiding/Weick.Learn.Solution
/Redis/RedisHelper/Wdj.Redis.HelperTest/HashTest.cs
2.5625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using Wdj.Redis.Helper; using Wdj.Redis.HelperTest.Model; using System.Collections.Generic; namespace Wdj.Redis.HelperTest { /// <summary> /// Redis常用Hash数据类型 操作方法测试 /// </summary> [TestClass] public cl...
e09ef6e75bcc2f4eae3482e968787f49c35b9ac1
C#
sebastian-dev/SharpDX
/Source/SharpDX.Direct2D1/SvgDocument.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SharpDX.Direct2D1 { public partial class SvgDocument { /// <summary> /// Finds an svg element by id /// </summary> /// <param name="id">Id to lookup for</param> /// <returns>...
32565cb242f46450bb78a8aafae2b33933e9c14d
C#
eternal1025/Demo
/QuantBox.Demo/Helper/TimeHelper.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuantBox.Demo.Helper { public enum EnumTradingTime { TradingTime_0915_1515, // 金融 TradingTime_0900_1515, // 金融 TradingTime_0900_1500, // 商品 TradingTi...
167c3b944c66401fce76f31ebe0643929617366d
C#
apiad/SciSharp
/Source/SciSharp/Numerics/DifferentialFunctions.cs
3.03125
3
using System; using System.Collections.Generic; namespace SciSharp.Numerics { //TODO : Step Size Control // Implementar Step Size Control. // IDEA: Usar un delegate para computar el siguiente step. //TODO : Chequear si OperateOnNew == true // Modificar los métodos en consecuencia. //TODO: C...
4c1085cdbdf98d858ef566e583d1b1dd626e2a32
C#
rogeralexandre/visconde-de-sabugosa
/EFCore_LogSQL/EFCore_LogSQL/AppDBContext.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; using EFCore_LogSQL.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; namespace EFCore_LogSQL { public class AppDBContext : DbContext { public DbSet<Autor> Autores { get; set; } public DbSet<Livro...
ec78f286f8d1a2879c28836759e78da86de68a17
C#
IT-rolling-out/IRO
/src/Storage/IRO.Storage/DefaultStorages/BaseStorage.cs
2.578125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using IRO.Storage.Data; using IRO.Storage.Exceptions; using NeoSmart.AsyncLock; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace IRO.Storage.DefaultStorages { /// <summary> //...
9dc0abcd0d5e21bddf05e4343dc37a6bc4847ca7
C#
xy19xiaoyu/TG
/Cpic.Demo/ParseXml/CnIndexExtract.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Text.RegularExpressions; namespace ParseXml { public class CnIndexExtract { //获得专利文献申请号 public String getApplyNo(XDocument xRoot) { String...
26139067669ce4c5bf960b6c81f0e8d6937c5f75
C#
kieranajp/scm-simulator-2017
/Assets/Scripts/PlayerLevel/CharacterSpawner.cs
2.78125
3
using Player; using UnityEngine; namespace PlayerLevel { public class CharacterSpawner : MonoBehaviour { public Transform[] SpawningPoints; public GameObject[] Characters; private int _numberOfPlayers; private void Start() { _numberOfPlayers = FindObjectOfT...
4d4ba835d20e06a28bd6db6a63089bc4a6ed126a
C#
769634216/Tomb
/tomb/Assets/Ancient Modular Tombs/Scripts/Controller/Other/Move.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public enum MoveType { Once, Loop, PingPong } public enum PositionType { World, Local } public class Move : MonoBehaviour { public Vector3 startPosition;//开始的位置 public Vector3 endPos...
34b64acc205af525a6da66f6b8452c4b94169248
C#
andymasteroffish/Deck-Com
/deck-com/Assets/scripts/monobehaviors/UnitManager.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; using System.Xml; using System.IO; public class UnitManager : MonoBehaviour { public static UnitManager instance = null; //public TextAsset xmlText; //private XmlDocument fullXML; [System.NonSerialized] public Xm...
462cfeee8233aac705b6f68c598ee5ac5aae1072
C#
AronThomasMiller/UnitTests
/Task/JsonPersonsWriter.cs
3.25
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task { public class JsonPersonsWriter : IPersonWriter { public void AddPeople(List<Person> people) { string Json = "[{'FirstName': 'T...
92e24c4a7e52f21761db1a95ed98a429284043db
C#
muzudho/Kifuwarabe_Igo_Unity_Think
/Kifuwarabe_Unity/source/n850_print___/n850_500_boardViewImpl.cs
2.578125
3
using Grayscale.Kifuwarabe_Igo_Unity_Think.n190_board___; namespace Grayscale.Kifuwarabe_Igo_Unity_Think.n850_print___ { public class BoardViewImpl { /// <summary> /// /// </summary> /// <param name="pBoard"></param> public static void PrintBoard(Board boar...
be08dbea1765f4e464809696816f8b40434fafcb
C#
HexaLopata-T/DandLRemake
/DandLRemake/Program.cs
3.09375
3
using DandLRemake.Items; using System; namespace DandLRemake { class Program { public static void Main() { GameController controller = new GameController(); controller.Start(controller.GenerateRandomEnemy()); while(true) { contro...
95cca9d6229269956a701a2e813ee2cb9a5baec9
C#
9045857/Academits
/OOPTasks/Graph/graph.cs
3.546875
4
using System; using System.Collections.Generic; namespace Graph { class Graph { private int[,] graph; public Graph(int[,] graph) { if (graph.GetLength(0) != graph.GetLength(1)) { throw new ArgumentException("ОШИБКА: конструктору графа передана н...
47001021449c537063307d423adb5da21745e9f2
C#
TaniaAAAAAAA/System-Programing
/DZ_MAIL____/Had.xaml.cs
2.671875
3
using MailKit; using MailKit.Net.Imap; using MimeKit; using System.Collections.ObjectModel; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace DZ_MAIL____ { /// <summary> /// Interaction logic for Had.xaml /// </summary> public partial class H...
70e890dda3fb8c2ebd405670ec60a0a74c5f61b9
C#
jchadwick/sim-stock-market
/src/TraderBot/Program.cs
2.703125
3
using System; using System.Collections.Generic; using System.Threading; using Microsoft.Extensions.Configuration; using Serilog; using Serilog.Events; using SimStockMarket.Extensions.RabbitMQ; namespace SimStockMarket.TraderBot { class Program { static void Main(string[] args) { va...
0d1856a70a84fe9480ad00951c2b6180af10033b
C#
lammichael/EnvCrypt.Core
/src/console/EnvCrypt.Console/GenerateKey/GenerateKeyVerbOptions.cs
2.984375
3
using System; using CommandLine; using EnvCrypt.Core.EncryptionAlgo; namespace EnvCrypt.Console.GenerateKey { [Verb("GenerateKey", HelpText = "Generates a new key for encryption & decryption.")] class GenerateKeyVerbOptions //: VerbOptionsBase { /// <summary> /// String is used here instea...
219c02de253dd616fbedb2c3e5b461ab251c923d
C#
matthewkimber/EmmLabsRemote
/src/app/EmmLabs.Remote.Core/Communication/SerialCommunicationChannel.cs
3
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO.Ports; using System.Threading.Tasks; namespace EmmLabs.Remote.Core { public class SerialCommunicationChannel : ICommunicationChannel, IDisposable { public SerialPort Port { get; private set; } public Ser...
b902ef1b4ea8078de158d9bb73d1bebdaea8c0e4
C#
caboingua99sn/QuanLyKhachSan
/DAL/PhongDAL.cs
2.609375
3
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; using Entyti; namespace DAL { public class PhongDAL { dbQLKhachSanDataContext db = new dbQLKhachSanDataContext(); public List<ePhong> getallphong() ...
5e1a36aa64b3bbbf6d0445e7f48a00525bddab4f
C#
consolelogreece/game-hub
/GameHub.Web/Services/Games/Common/GamePlayerGetter.cs
2.59375
3
using GameHub.Games.BoardGames.Common; public class GamePlayerGetter<T> where T : GamePlayer { private IGamePlayerGetter<T> _game; public GamePlayerGetter(IGamePlayerGetter<T> game) { _game = game; } public T Get(string playerId) { lock(_game) { return ...
399ff89f7db84a416e7a33eceaebe0bf3d959417
C#
lkogan/HelloWorldAPIProject
/HelloWorldAPI/Services/SaveRepository.cs
2.71875
3
using HelloWorldAPI.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace HelloWorldAPI.Services { public interface IRepository<T> where T : DataObject { bool Save(T entity); } public class DatabaseRepository :...
a31c8a8343bcfb57dc9b6c2b100f0a22900a5641
C#
Crampers/Raunstrup
/RaunstrupERP/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Xml; namespace RaunstrupERP { class Program { static void Main(string[] args) { /* UNCOMMENT THIS PART OF T...
4f355a329b8682623f96db3f8885c433615803b6
C#
fasteddys/ZemberekDotNet
/ZemberekDotNet.Tokenization.Tests/TurkishTokenizerTest.cs
3
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using ZemberekDotNet.Core.Logging; namespace ZemberekDotNet.Tokenization.Tests { [TestClass] public class TurkishTokenizerTest { private void MatchToken( ...
5e9d64030045140953550cf8a922e93df785e8bd
C#
seriousdave42/cSharp-ninjasInSpace
/Models/RayGun.cs
3.015625
3
using NinjasInSpace.Interfaces; namespace NinjasInSpace.Models { public class RayGun : Equipment, IEquipable { public int StrengthBonus; public RayGun(string name, int str) : base(name) { StrengthBonus = str; Desc = $"This increases a character's strength by {st...
fea077cc25e66311d74479271b90f7c7d9f35307
C#
woshihuo12/LearnWPF
/src/11/mumu_SliderDemo/mumu_SliderDemo/DoubleConverter.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; namespace mumu_SliderDemo { public class DoubleConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ...
239b4c7008990d56acb04bc73fd299c97d9ea010
C#
s16944/cw3
/cw3/DAL/EfDbService.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using cw3.Models; using System.Data.SqlClient; using Castle.Core.Internal; using Microsoft.EntityFrameworkCore; namespace cw3.DAL { public class EfDbService : ITransactionalDbService { private readonly StudiesDbContext _dbContext; ...
bfbb2a95fabf1048d538b24c497cd23aee725bef
C#
Steven0709/ConsoleAppES
/Program.cs
3.40625
3
using System; namespace semana3_estructuras_de_control { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Black; menu(); } static void menu() { int repetir_menu; Console.Backgrou...
e9ffb91a46cac0f5a6519e2fb5e9f8f7df9c209d
C#
wesenu/CSharp-Fundamentals-3
/C# OOP Basics/06Polymorphism/Exercise/03WildFarm/Cat.cs
3.546875
4
using System; using System.Linq; public class Cat : Feline { private string[] eatableFood = new string[] { "Vegetable", "Meat" }; public Cat(string name, double weight, string region, string breed) : base(name, weight, region, breed) { this.Breed = breed; } public override void A...
2833eed3202e4069dbcd52af1069477cdedbf691
C#
abedirhan/Pati
/Pati/Repository/BasketRepository.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Pati.Models; using Pati.Services; namespace Pati.Repository { public class BasketRepository:IBasket { private DB_Context db; public BasketRepository(DB_Context _db) { db ...
cdc0fbeec31c07a9b7853377bf019b736442e0a3
C#
meselgroth/websockets-sandbox
/server/Startup.cs
2.640625
3
using System; using System.Net.WebSockets; using System.Text; using System.Threading; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; namespace server { public class Startup { public Startup(IConfiguration configuration) { ...
e828b9d143f43914fd16f45a347d91d30cbf8239
C#
Gnutz/uni
/semester4/SWD/week 5.2 Factories/Factory Example (WeighingSystem)/WeighingSystem.Application/Program.cs
2.65625
3
using WeighingSystem.Factories; namespace WeighingSystem.Application { class Program { static void Main(string[] args) { // Create two different weighing systems. Not that they ONLY differ in the kind of factory used. var nettoWeighingSystem = new WeightControl(new Nett...
2dbdd3e9d0fd33244b116e4499dae13589fafa49
C#
MichaelMladenow/XML-Generator
/SOC-Generator/Generators/ClassModels/xmlModels/Row.cs
3.078125
3
namespace SOC_Generator.Generators.ClassModels.xmlModels { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /// <summary> /// Class representing a question row in XML format /// </summary> public class Row : Tag...
6226d8b74a541627178ada094282e658bb0afabc
C#
will-bei/UART-8051-demo
/8051 Control GUI/Desktop Code/8051 Control GUI/8051 Control GUI/Form1.cs
3.140625
3
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; using System.IO.Ports; //Author: William Bei //Published: October 15, 2016 Saturday // //Created with Microsoft Visual Studio 2015 name...
6fc3f52266fc2bca301b0e36c051c21a8dc662f0
C#
barneayoav/BasicMemoryGame
/GameUI/GameSlot.cs
2.625
3
using System.Windows.Forms; namespace GameUI { internal class GameSlot : Button { private readonly GameLogic.Point r_Point; public GameSlot(int i_RowIndex, int i_ColumnIndex) { r_Point = new GameLogic.Point(i_RowIndex, i_ColumnIndex); } public GameLogic.Po...
96750df45b62ffdc2948505e3b890439c72f531e
C#
AzureDay/2017-WebSite
/TeamSpark.AzureDay.WebSite.App/Service/LanguageService.cs
2.765625
3
using System.Collections.Generic; using System.Linq; using TeamSpark.AzureDay.WebSite.App.Entity; namespace TeamSpark.AzureDay.WebSite.App.Service { public sealed class LanguageService { private readonly List<Language> _languages = new List<Language> { new Language {Id = 1, Title = Localization.App.Service.L...
265aaea40fd417774183dee311a9670082ae3223
C#
federicoangeloni/univaqSmartReminder
/Login.aspx.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; public partial class Login : System.Web.UI.Page { private string encrypt...
1f0dd6c741f67284ed5022443797d91b75408c91
C#
dvkudr/SampleCalculator
/CalculatorV2/BusinessLogic/Calculator.cs
3.1875
3
using System; using CalculatorV2.Interfaces; namespace CalculatorV2.BusinessLogic { public class Calculator : ICalculator { private readonly int _result; private readonly IAdder _adder; private readonly ISubstractor _substractor; private readonly ISignReverter _signReverter; ...
4a5476ca5c32048f9902c20c21533ca96a753373
C#
Minami83/KPLDrawing
/DrawingApp/Shapes/Line.cs
2.921875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DrawingApp.Shapes { public class Line : DrawingObject { public Point startPoint { get; set; } public Point endPoint { get; set; } public L...
bc383f6daf7db0187ef4a02a327bb7497ef78095
C#
kyulee2/Algorithm
/SwapAdjacentInLRString/t1.cs
3.421875
3
/* In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or replacing one occurrence of "RX" with "XR". Given the starting string start and the ending string end, return True if and only if there exists a sequence of moves to transf...
b527a7f79b72d8ab413a0a545bbcb4fd986f936d
C#
KevinRecuerda/Contest
/BattleDev/BattleDev.March18.Tests/Ex5.Tests.cs
3.015625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; namespace BattleDev.March18.Ex5.Tests { [TestFixture] public class ProgramTest { [TestCase(@" 4 0 2 6 1 2 0 8 9 6 8 0 3 1 9 3 0", @" 9")] [TestCase(@" 8 0 61 81 26 95 80 27 90 61 0 36 23 26 13 63 51 8...
da2bb35fd7a07eedf8ee52bab4d4a85d835f46de
C#
Gilmardealcantara/IntegrationTestsApi
/Api/Data/User.cs
2.53125
3
using FluentValidation; namespace Api.Data { public class User { public int Id { get; set; } public string Name { get; set; } public string GitUserName { get; set; } } public class UserValidator : AbstractValidator<User> { public UserValidator() { ...
c178befd09c87c17b4bff6d5b078074f673bfa2a
C#
Dochko/SoftUni
/ProgrammingBasicsCourse/Operatiors And Expressions/08.Expressions/Expressions.cs
3.859375
4
using System; class Expressions { static void Main() { int r = (150 - 20) / 2 + 5; // r = 70 //Expression for calculating a circle area double surface = Math.PI * r * r; //Expression for calculating a circle perimeter double perimeter = 2 * Math.PI * r; int a...
9428712a338c4a8cd6838f53dbbf15a5fc44eb47
C#
paulpjryan/Sudoku
/SudokuGraphics/GameOverWindow.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Drawing; using System.IO; namespace SudokuGraphics { public class GameOverWindow : Form { int hours; int minutes; int seconds; Button buttonQuit; Button buttonNG;...
77bec49b1841941f21b1a596d4612c1b55ed6026
C#
WickedFlame/RubberStamp
/src/RubberStamp.UnitTest/Conditions/CustomPropertyConditionTests.cs
2.671875
3
using RubberStamp.Conditions; using NUnit.Framework; namespace RubberStamp.UnitTest.Conditions { [TestFixture] public class CustomPropertyConditionTests { [Test] public void RubberStamp_Conditions_CustomPropertyCondition_String_Valid_Test() { var condition = new CustomP...
640c41e3d4e3b0acb96a982bc0f6a710daddd5d2
C#
JingChao94/WatermarkGenerator
/WatermarkGenerator/WaterMarkGenerator.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WatermarkGenera...
5521ae738df6ecc314048f10d94b061b613df1c0
C#
krso92/horrorclimatechange
/HorrorClimateChange/Assets/Sisus/Power Inspector/Code/Drawers/Interfaces/IUnityObjectDrawer.cs
2.515625
3
using System; namespace Sisus { /// <summary> /// Interface implemented by drawer representing UnityEngine.Objects other than GameObjects. /// This includes Components, ScriptableObjects and assets. /// /// NOTE: Not implemented by ObjectReferenceDrawer, which only represents a *reference* to an /// Un...
2521fa9ffc8c365dbc0d86d112409061b6f10a3a
C#
Alain-es/Routing
/Routing/App_Code/Helpers/EncryptionHelper.cs
2.6875
3
using System; using System.IO; using System.Security.Cryptography; using System.Text; using Umbraco.Core.Logging; namespace Routing.Helpers { public class EncryptionHelper { private static byte[] salt = Encoding.ASCII.GetBytes(@"%rtal/Z_2kd*1s$(/_ªkdl¨Ñña4y9iue"); private static string keyPad...
9be44c9bb3a591990aabf4f6030c1a11be72b178
C#
MarcalMontserrat/code-challenge-5
/TrainReservation/TrainReservation/Seat.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrainReservation { public class Seat { public string Coach { get; set; } public string Seat_Number { get; set; } public string booking_reference { get; set; }...
2d5bb948b97f0eb8f73c812192ea424aa908591d
C#
robrecht-scheepers/media-center
/MediaCenter/MediaCenter/Helpers/SerializationHelper.cs
2.984375
3
using System.IO; using System.Runtime.Serialization.Json; using System.Text; namespace MediaCenter.Helpers { public class SerializationHelper { public static T Deserialize<T>(string jsonString) { T obj = default(T); using (MemoryStream stream = new MemoryStream(Encoding...
a27255e739a61c77a9a81199c9a9ae78e4c1bd6d
C#
juszi28/school_works
/C#/EVA-2.ZH/zh_winform/zh_i7p4uq/zh_i7p4uq/Model/GameModel.cs
2.609375
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using zh_i7p4uq.Persistence; namespace zh_i7p4uq.Model { class GameModel { private IPersistence dataAccess; private int[,] map; private int castleHP; pri...
f5b74d11815950dd6082e89939bf4d0d4b2cc2c5
C#
hse-programming-CSharp2020-2021/207ShulminPavel
/Module 4/Sem 6/CW/Task 2/Program.cs
3.703125
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Task_2 { interface IVocal { void DoSound(); } public abstract class Animal : IVocal { static int id = 1; public abstract void DoSound(); public int Id { get; set...
1630d229cd37ba724de59bd6b9d0b5a8c7358fee
C#
Nemoom/FestoCubeExplorer
/Festo Rubik‘s Cube Explorer/UserLogin.cs
2.96875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace Festo_Rubik_s_Cube_Explorer { public static class UserLogin { private static bool _isLoggedIn = false; private stat...
391aea46228854c96b587b8049684a3fbc75e4d1
C#
dlampa/ProjectEulerSolutions
/ProjectEulerProblems/Solutions/Problem7.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectEulerSolutions.Solutions { public static class Problem7 { /* By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13...
7f49fda311d009f1407df107cd37d8cf52e1fe88
C#
Praetox/Tools
/pImgDB_v0,0,6,6/pImgDB/fBitmap.cs
2.78125
3
using System; using System.Drawing; using System.Drawing.Imaging; namespace pImgDB { public unsafe class fBitmap { public struct pixData { public byte a; public byte b; public byte g; public byte r; public pixData(byte...
1cc66b7af010f28b2580c82ddbd8961e337be6a9
C#
Bullsized/Assignments-Fundamentals-Normal
/10 - 12 Data Types and Var/2017-06-03/15 Balanced Brackets/15 Balanced Brackets.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _15_Balanced_Brackets { class Program { static void Main(string[] args) { int rotation = int.Parse(Console.ReadLine()); int countOpen = 0; ...
e13775ba2d4d595ef2bca58fdef6ff9f7b050cee
C#
StockSharp/StockSharp
/Messages/IComplexIdMessage.cs
2.515625
3
namespace StockSharp.Messages; /// <summary> /// The interface describing an message with <see cref="Id"/> property. /// </summary> public interface IComplexIdMessage { /// <summary> /// ID. /// </summary> long? Id { get; } /// <summary> /// ID (as string, if electronic board does not use numeric ID representa...
ecb000665c50ce0adaaf9eedb4f64eb778fec298
C#
iensenfirippu/stalkr
/Visual Studio/StalkrAdmin/StalkrAdmin/Form1.cs
2.59375
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 MySql.Data.MySqlClient; namespace StalkrAdmin { public partial class Form1 : Form { ...