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
72af7d2206d1777ef75d7386103f833fdd600ea8
C#
sakowiczm/SignalR.Experiments
/SignalR.2Console.WithBaseClass/Client/Program.cs
2.609375
3
using System; using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Client; using Microsoft.Owin.Cors; using Microsoft.Owin.Hosting; using Newtonsoft.Json.Linq; using Owin; namespace Client { class Program { static void Main(string[] args) { var hubConnection = new HubConn...
9ac4f4c8cf1de49ee76f147cc0e0fb4727ae2000
C#
CristianoRC/GeradorDeLetreiros
/GeradorDeLetreiros/Atualizacoes.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace GeradorDeLetreiros { internal static class Atualizacoes { private static string EfetuarRequisicaoServidor() ...
7f98318248c6c047c0e648b0d364f32809359e98
C#
Albeoris/Memoria
/Assembly-CSharp/Memoria/Battle/Calculator/BattleCaster.cs
2.53125
3
using System; using FF9; using Memoria.Data; namespace Memoria { public sealed class BattleCaster : BattleUnit { private readonly CalcContext _context; public BattleCaster(BTL_DATA data, CalcContext context) : base(data) { _context = context; } ...
d5b18ad905eb6ecdd51c271d9076068f850daa11
C#
makazeu/leetcode-solutions
/csharp/1557.MinimumNumberOfVerticesToReachAllNodes.cs
3.03125
3
public class Solution { public IList<int> FindSmallestSetOfVertices(int n, IList<IList<int>> edges) { var result = new List<int>(); var map = new int[n]; foreach (var edge in edges) { map[edge[1]]++; } for (var i = 0; i < n; i++) { if ...
5238265d9aa0714ace3940ac23bfba62a805dab5
C#
stormcroe/GamesProgramming2016
/Spike13/Spells/Spells/SpellBook.cs
3.765625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spells { /// <summary> /// The Spellbook is a wizards companion, it stores many spells that a wizard cannot remembeer on his/her own. /// </summary> class SpellBook { /// <s...
8362bd5d87d9cc3607811b3ee5f4aff5d9524f9c
C#
Anupam-/mvc-fluent-jquery-plugin-controls
/src/MVCControl.JQuery.Plugins/MVCControl.JQuery.Plugins.FlexiGrid/Model/FlexGridData.cs
2.921875
3
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using System.Reflection; namespace MVCControl.JQuery.Plugins.FlexiGrid.Model { /// <summary> /// Class that represents the actual data requried for the FlexiGrid. /// </summary> ...
ab29432073b3c53cb407eb13c49e194fd1816384
C#
rugitter/FranchiseManagement
/Assignment2/Controllers/FranchiseeController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Assignment2.Data; using Assignment2.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using System.Web; using ...
11b3fec9b6d14281518f779b61f710dc75669856
C#
abilgaiyan/elazystore
/Libraries/Grand.Services/Common/IAddressService.cs
2.578125
3
using Grand.Core.Domain.Common; namespace Grand.Services.Common { /// <summary> /// Address service interface /// </summary> public partial interface IAddressService { /// <summary> /// Gets total number of addresses by country identifier /// </summary> /// <param...
677948175142d41d0818687802061b9421f60087
C#
BrightZN/TellDontAskKata
/TellDontAskKata/UseCases/OrderCreationUseCase.cs
3.046875
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using TellDontAskKata.Domain; using TellDontAskKata.Repositories; namespace TellDontAskKata.UseCases { public class OrderCreationUseCase { private readonly IOrderRepository _orderRepository; private readonly IProduct...
9cd4e0f4b9d66cf6a1b58fa7ddb7c0e89af494de
C#
niallthefirst/CSharpTests
/CSharpTests/Static.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpTests { class Static { private static int staticMember; public Static() { _memberVar = 20; } public static int StaticMember ...
b33ed749861c22762be1c336e7f68fd4d2b9f794
C#
Helco/advent-of-code-2020
/aoc.test/TestDay12.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using aoc.day12; using NUnit.Framework; using Action = aoc.day12.Action; namespace aoc.test { class TestDay12 { [Test] public void Example1() { var ship0 = Sh...
5ae636ea7fe56fcbb955d9773de3fc7fc005eaf5
C#
jbfrye/LearningProject
/HackerRank/SherlockAndValidString.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LearningProject.HackerRank { class SherlockAndValidString { static string isValid(string s) { if (s.Length <= 1) return "YES"; ...
fb22c7103deaa3b7f09c64b87135c7a7e27ba574
C#
shauna2020w/MovieShop
/MovieShop/Infrastructure/Repositories/MovieRepository.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ApplicationCore.Entities; using ApplicationCore.RepositoryInterfaces; using Infrastructure.Data; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Repositories { public class Movie...
dedbf3ecfd6454a8d2f0d5b6bb587b5c7ef1310d
C#
Codinablack/Tibia
/src/Tibia.Communications.Channels/LocalChannel.cs
2.703125
3
using Tibia.Data; namespace Tibia.Communications.Channels { public class LocalChannel : PublicChannel { /// <summary> /// Gets or sets the name. /// </summary> /// <value> /// The name. /// </value> /// <inheritdoc /> public override stri...
822a10557b76eb0562191bd59e27c4667b422ee8
C#
rehlani/decidinator
/SimpleRules/Templating/IRuleCondition.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace SimpleRules.Templating { /// <summary> /// Provides and example ruleCondition /// </summary> /// <typeparam name="TFact">Fact to assert the condition against</typeparam> public interface IRuleCondition<TFact> { ...
53c02173cbff1053161957d20eeefae29ddd5371
C#
DawidIzydor/AdventOfCode2019
/HelpingLibrary/LineHelper.cs
3.390625
3
namespace HelpingLibrary { public static class LineHelper { public static bool Intersects(this Line thisLine, Line line) { return line.StartPoint.X != line.EndPoint.X && IsBetween(thisLine.StartPoint.X, line.StartPoint.X, line.EndPoint.X) ...
f80e3bf46679cc5d221b88b882cc6c472d7c861b
C#
Selman-EE/rainbow-lori
/src/Application/Service/BusinessLogic/BlockingService.cs
2.53125
3
using Application.Common; using Application.Model.Request; using Application.Service.Interfaces; using Domain.Entities; using Domain.Persistence; using Microsoft.EntityFrameworkCore; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Application.Service.BusinessLogic { ...
019221d906c1d2d9283e0f43d7b6cf564d2154c4
C#
sues-lee/MaterialManage4.0
/MaterialManage/MaterialManage/InfoSearch/Form_Search.cs
2.53125
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 CrystalDecisions.CrystalReports.Engine; namespace MaterialManage.InfoSearch { public partial class Form_Search : Form { ...
3f3c4389d0c5105aefb905fea5783c6b728e14f8
C#
llenroc/LeetCode-12
/LeetCode/Algorithms/IntersectionTwoLinkedLists.cs
3.59375
4
using LeetCode.Utils; using System; using System.Collections.Generic; using System.IO; using System.Xml.Serialization; namespace LeetCode.Algorithms { public class IntersectionTwoLinkedLists { /* LeetCode #160. Intersection of Two Linked Lists * Write a program to find the node at which the i...
e0a369c11b4b6a2f455defc984f067c1567e120e
C#
samlatavares/estacio-projeto-implementacao-oo
/ListaCompras/Command/PedidoEditarCommand.cs
2.53125
3
using ListaCompras.Repositório; using ListaCompras.ViewModel; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace ListaCompras.Command { public class PedidoEditarCommand : EditarCommand<PedidoViewModel> { private TRABPROJIMPLOOEntiti...
4b04b690865ef5e906f0370ed57920a1b45459d4
C#
Svante-J/Primtal
/Primtal/Program.cs
3.734375
4
using System; namespace Primtal { internal class Program { private static void Main(string[] args) { bool runProgram = true; bool isNotPrime = false; while (runProgram) { var success = UserInput(...
24067f0248fd7a6106543162ae51d0636dffce3f
C#
DiogoSa98/FreyaMath4GameDev
/Assets/BouncingLaser.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BouncingLaser : MonoBehaviour { [SerializeField] [Range(0, 10)] int bounceCount; private void OnDrawGizmos() { void DrawRay(Vector3 p, Vector3 dir) => Handles.DrawAAPolyLine(p, p + dir); ...
2c358247d19396f79be29f19a1a0079bef3c3eea
C#
rodcorporation/tbneo-erp
/tbneo-api/src/TbNeo.Application/Commands/ProjetoEditarCommand.cs
2.875
3
using FluentValidation; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using TbNeo.Domain.Core; namespace TbNeo.Application.Commands { public class ProjetoEditarCommand : Command { public int IdProjeto { get; private set; } public string Nome { get; private set; } ...
8a4f1f769ab4cf47983bd60328f96bf872fe40ba
C#
felisito1999/News-Felix-App-Backend
/NewsApp/NewsApp.Library/Services/RegistrationService.cs
2.546875
3
using Dapper; using NewsApp.Library.Contracts; using NewsApp.Library.Models; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NewsApp.Library.Services { public class RegistrationService : IDataService<RegistrationModel...
a37c963efc2ca06a2663240082610169d9823394
C#
microsoft/EmbeddedSocial-Service
/code/Server/Common/Managers/NotificationsManager.cs
2.640625
3
// <copyright file="NotificationsManager.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace SocialPlus.Server.Managers { using System; using System.Collections.Generic; using System.Threading.Tasks; using SocialPlus.Models; using SocialPlus.Server....
77e729ad3419fd15e10acd387aec0a736fa0f955
C#
jsmale/dotPlumbing
/src/app/Plumbing.Core/Extensions/DateHelpers.cs
3.46875
3
using System; namespace Plumbing.Extensions { public static class DateHelpers { public static DateTime? FromYearMonthDay(int year, int month, int day) { if (month > 12 || month < 1 || day > 31 || day < 1) return null; try { return...
981c06e276be34bcff39b37491b3edddbe67d378
C#
lucasnauberth28/Roman_Projeto
/Backend-roman/senai_roman_webApi/senai_roman_webApi/Repositories/TemaRepository.cs
3.03125
3
using Microsoft.EntityFrameworkCore; using senai_roman_webApi.Contexts; using senai_roman_webApi.Domains; using senai_roman_webApi.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace senai_roman_webApi.Repositories { public class TemaRepository : ...
50937f3c5d89140dedd2d0fdb1e204437282c8dd
C#
ChristofSchmid/Canon-SDK
/EDSDKLib-1.1.2/EDSDKLib/API/Base/CanonAPI.cs
2.609375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Threading; using EOSDigital.SDK; using Size = EOSDigital.SDK.Size; namespace EOSDigital.API { /// <summary> /// Handles camera connections /// </summary> public class Can...
6a903c3ee99ac1b2a7b3f24434bb7d514f00b88b
C#
littletelx360/FxTest
/Game1/Droplet.cs
2.65625
3
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game1 { class Droplet { Vector2 position; float time; public Droplet() { time = 1000; } public void Reset() { position = new...
f566266494730deb5b2f48d3500e77581a60b776
C#
TheBuzzSaw/KellySharp
/KellySharp/Sqlite/PropertyHandlers/UInt64Handler.cs
2.65625
3
namespace KellySharp.Sqlite { class UInt64Handler : ITypeHandler<ulong> { public string DataType => TypeHandler.Integer; public void BindProperty(SqliteStatement statement, int index, ulong value) { var n = unchecked((long)value); statement.BindInt64(ind...
5a55cd2bec57f17016eb1db8bfefeea0447c419e
C#
atilka19/IDP-Back-End
/IDP Back-End/Repository/Implementation/ChatRepository.cs
3.03125
3
using IDP_Back_End.Models; using IDP_Back_End.Repository.Interface; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace IDP_Back_End.Repository.Implementation { public class ChatRepository : IChatRepository { p...
a21e33c4600df17be7e8b9d4a1cc62b0ef0dbd84
C#
DVLKinoMan/Refactored-LeetCode-Problems-Solutions
/DVL_LeetCode_Problems_Solutions/DVL_LC_Problems.Tests/Plus One.cs
2.90625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics; using static DVL_LeetCode_Problems_Solutions.Domain.ProblemSolver; namespace DVL_LC_Problems.Tests { /// <summary> /// Summary description for Plus_One /// </summary> [TestClass] public class PlusOne { public...
9bbbf9733cf17a117aa28ae056b9acc3ad7a7782
C#
tralezab/Barotrauma
/Barotrauma/BarotraumaClient/Source/GUI/GUIScrollBar.cs
2.5625
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; namespace Barotrauma { public class GUIScrollBar : GUIComponent { public static GUIScrollBar draggingBar; private bool isHorizontal; private GUIFrame frame; private GUIButton bar; pri...
0970a153fff279dfbdc8348c7b4a2fc534d57fc2
C#
craiggoddenpayne/WebPageStuff
/RecordTimeResourceInterceptor.cs
2.65625
3
using System; using System.IO; using System.Net; using Awesomium.Core; namespace WebManipulation { public class RecordTimeResourceInterceptor : IResourceInterceptor { public Action<ResourceTimingResult> RecordTimeOfResourceOccured; public bool OnFilterNavigation(NavigationRequest r...
126326bb1d70045e683abe666f2e1736b10ab74d
C#
AlexeyUmka/StoryGenerator
/StoryGenerator/Hero.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StoryGenerator { public class Hero { private int health; private int food; private int energy; private int mind; #region Proporties publ...
514419dceab0b0dd8787697279ab3428b0878f98
C#
mrabiii/pp2
/week1/ConsoleApp10/ConsoleApp10/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string a = Console.ReadLine(); ...
7b4f9166ce1a5107f080e45d43cb5a2424db6e5f
C#
Emil760/Game
/SurvivalGT/Items/Weapon.cs
2.6875
3
using SurvivalGT.Interfacies; using SurvivalGT.Models; namespace SurvivalGT.Items { abstract class Weapon : Item { protected short min_damage; protected short max_damage; protected short action_points; public Weapon() { } public Weapon(ItemTag tag, st...
5c2b02a46faaada3fb3adcfdffd5cc2a5f6412a9
C#
nichromatic/TFG
/ProceduralTFG/Assets/ProceduralGrammarGraph/ObjectDataContainer.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using ObjectModel; namespace ProceduralGenerator { public class ObjectDataContainer : MonoBehaviour { //public ProceduralObjectNode nodeData; public ObjectData nodeData; public void LoadNodeData(ProceduralO...
f1d1f8e33181d7923bb69594baa551f31cf42aef
C#
magnumzhang/MVCSample3
/MVCSample3/Lib/ObjectToJSon.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Reflection; namespace MVCSample3.Lib { public class ObjectToJSon { public static string GenerateJSon(object classObject) { Type ObjectType = classObject.GetType(); Propert...
66efae4eaad3fb69d7ce1ab625ce0698a771509e
C#
nrandell/openvinoopencvsharp
/OpenVinoOpenCvSharp/Util/TypeHelper.cs
2.84375
3
using System; using System.Runtime.InteropServices; #pragma warning disable 1591 namespace OpenCvSharp.Util { /// <summary> /// /// </summary> public static class TypeHelper { #if LANG_JP /// <summary> /// ポインタから構造体にキャストを試みる /// </summary> /// <typeparam name="T"></typeparam> //...
e7c8914b98e04bb431314e45cae8ea6688b40f39
C#
stescobedo92/GolangAssistant
/GolangAssistant/Tools/FileManager.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using GolangAssistant.StaticValues; namespace GolangAssistant.Tools { public class FileManager { public static async Task CreateDefaultProject() { string defaultPath = ...
d7c62fe67e328bf29d5e32ce5079c2f118655acf
C#
hugoMartinezGarcia/CSharp
/Tipos de datos básicos/Entregables. Semana2/59a.cs
3.734375
4
/* Crea un menú donde el usuario podrá escoger la opción 0, 1, 2 o 3 y se le * mostará la opción escogida usando "switch" * Hugo Martínez */ using System; class Ejercicio_59a { static void Main() { byte opcion; Console.WriteLine("1. Jugar"); Console.WriteLine("2. Car...
c4035f8dc2f2f1e8a95acbb9c84784af6a535a58
C#
raqwell98/tp2_apps_graphiques
/Services/ValidateurCourriel.cs
2.859375
3
using System.Globalization; using System.Text.RegularExpressions; using System.Windows.Controls; namespace Services { public class ValidateurCourriel : ValidationRule { public override ValidationResult Validate(object value, CultureInfo cultureInfo) { string email = value.ToString(...
f2ab56b4191081298f3f314fca9ecf0fc8ed0fe4
C#
guptag/MetroNews
/src/NewsExtractor/BingSearchUtility.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml.Linq; namespace NewsExtractor { //http://api.bing.net/xml.aspx?AppId=F969214916187B3AA3E23ABDF56A2C276CDDC86E&Query=Obama%20takes%20re-election%20campaign%20to%20Coast&Sources=Image&Ver...
659316fa08d0c535535d03da0011dcca930c3576
C#
HansonGZ/HashkeyRepo
/HashKey/Form1.cs
2.75
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; namespace HashKey { public partial class Form1 : Form { public Form1() { InitializeComponent(); ...
9ddc36345d15c266d4c93887f9172566c260df7a
C#
spiderlili/UnityCertPrep
/Assets/Scripts/Properties/PropertiesManager.cs
2.96875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestProperty { PropertiesManager mg = new PropertiesManager(); public void Test() { //mg.Speed = 5f; //error due to read only property } } public class PropertiesManager : MonoBehaviour ...
92f560437481b6e554bc77f14e1db11db0bc9565
C#
shendongnian/download4
/code9/1628801-45903615-154859999-2.cs
2.953125
3
private bool UserNameOrPasswordExists(string userName, string password) { using (SqlConnection conn = new SqlConnection("your connection string")) { conn.Open(); var query = "Select * from LOGINFORM where USERNAME='@USERNAME' or PASSWORD='@PASSWORD...
74b3e5619581aba7552b4235786e49578f197967
C#
sybasketball/WebTemplate
/Sunny.Framework/CommonUtility/IO/FileTools.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Collections; using System.Data; using System.Web; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Web.UI; using CommonUtility.Utility; namespace CommonUtility.IO { /// <summary> /// ...
9d50c15230615be33cbd286ff588b47b0a137951
C#
eduardovegar/porty-portfolio
/Services/PortfolioItemService.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using porty.Data; using porty.Models; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Identity; namespace porty.Services { public class PortfolioItemService : IPortfolioItemService { private readon...
40a50c07cb910e691d08ef269a48f761f41a58be
C#
taisandog/buffalobro
/SourceCode/其他工具源码/Buffalo.WebControls/MyTipText/TipItemInfo.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.ComponentModel; namespace MyTipText { /// <summary> /// Ϣ /// </summary> [TypeConverter(typeof(ExpandableObjectConverter)), Serializable] public class TipItemInfo { privat...
494d03d17cdf4b7452da9c3d7ea7e1184f3dccfc
C#
corentindargent/Project
/BIQUETTE/Projects/Enviroments_dev_log/ConsoleApplicationLabo2/ConsoleApplicationLabo2/Program.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplicationLabo2 { class Program { static void Main(string[] args) { PrivateContact p1 = new PrivateContact("Williams", "Serena", 0475123678, "Serana...
0447044889ce5ea2cad351cbe78627e839f119f0
C#
jacksonh/manos
/src/Manos.IO/Manos.IO.Managed/TimerWatcher.cs
2.546875
3
using System; using System.Threading; namespace Manos.IO.Managed { class TimerWatcher : Watcher, ITimerWatcher { private Action cb; private Timer timer; private TimeSpan after; private int invocationConcurrency; public TimerWatcher (Context context, Action callback, TimeSpan after, TimeSpan repeat) : b...
ac47d4d58797b70ef85cca2d94bcc4eb69ba2d05
C#
shihangnk/LearningAzure
/LearningDotNet/AzureCosmosDB1/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using AzureCosmosDB1.Entities; using Microsoft.Azure; // Namespace for CloudConfigurationManager using Microsoft.Azure.Storage; // Namespace for StorageAccounts using Microsoft.Az...
bc0c6888ea65f6015cb6838b9b2e27a64e7ba684
C#
tienduy-nguyen/wpf-learning
/WPFUnit/Learning/ListViewFilter.xaml.cs
2.796875
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;...
0e53e157f80d21d07a1568c17eacc857f73e6fb4
C#
strebbor/AutoComplete
/DataSources/SQLDataSource.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Data.SqlClient; using System.Windows.Forms; using System.Data; using IDComplete.Interfaces; namespace IDComplete.DataSources { public class SqlDataSource :...
067766e13b5591b6cd6f39bd7067c56f1c1c19aa
C#
wmwilcox/PocoGenerator
/PocoGenerator.Tests/ValueGenerators/Compound/FunctionValueGeneratorTest.cs
2.796875
3
using NUnit.Framework; using PocoGenerator.Tests.TestPocos; using System; using System.Collections.Generic; namespace PocoGenerator.Tests.ValueGenerators.Compound { [TestFixture] public class FunctionValueGeneratorTest { [Test] public void TestFunctionValueGenerator_UsingGenerator() { ...
4e7d4cf3b81af5cb55599270dec2aad8dedadc91
C#
Corbono2/Banana-Clone
/Debugger/Assets/0_src/Josh/WaveManager.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WaveManager : MonoBehaviour { public GameObject enemy; // Get enemy prefab to spawn public float cooldown = 3f; // Cooldown time between spawns public Transform[] spawnPoints; // An array of the spawn points ...
388f336903b3a397a17903a9c1b378edbe360f83
C#
emaldonadogamedev/RepoSimulator
/Assets/Scripts/VCS/Changes/RotationChange.cs
2.59375
3
using UnityEngine; namespace Assets.Scripts.VCS.Changes { public class RotationChange : ValueChange { public ChangeType changeType => ChangeType.Rotation; public float OldValue { get; } public float NewValue { get; protected set; } public RotationChange(float oldRotation, flo...
8aad0bb7740a8aed499361385fe5159f38af09d6
C#
310217001/manager
/Model/ViewModels/API/Lastweek.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; namespace Pi.PiManager.Model.ViewModels.API { public class Lastweek { /// <summary> /// 星期一 /// </summary> public DateTime Mon { get; set; } /// <summary> /// 星期二 /// </summary> p...
f084278480a48bdca02b555d1943a5183b434e8b
C#
Ex-Soft/test
/c#/test/DI/Core/ProducerResolverBlueprint/ConditionalServiceResolver.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; namespace TestTypeFromStringConfiguration { public class ConditionalServiceResolver<TKey, TCompareObject, TService> { private readonly IEnumerable<ServiceResolutionContext<TKey, TService>> _serviceContexts; private readonly Fun...
ec3dac29cbded11a13733c5660a27561bd52d77b
C#
sanjeev3094/DesignPatternsRepo
/DesignPatterns/3_Decorator/CondimentDecorator.cs
3.03125
3
using DesignPatterns.Decorator.Component; using System; namespace DesignPatterns.Decorator { public abstract class CondimentDecorator : Beverage { protected Beverage Beverage { get; } protected double Price { get; } protected string CondimentDescription { get; } protected Cond...
358ed0559e7b383869cb4954ca7a1efe3486a16e
C#
Hristo-R/SoftUni-CSharpFundamentals-2016
/2.CSharp-OOP-Basics/Homework.04.InheritanceAndAbstraction/01.HumanStudentAndWorker/Worker.cs
4.125
4
namespace _01.HumanStudentAndWorker { using System; public class Worker : Human { private const int WorkDaysPerWeek = 5; private decimal weekSalary; private double workHoursPerDay; public Worker(string firstName, string lastName, decimal weekSalary, double workHoursPerDay)...
dff9d299bed10aede5c12500e34ef0576b22d27f
C#
AndyFaust/PishPosh
/PishPosh.Tests/Extensions.cs
3.109375
3
using System.Collections.Generic; using System.Linq; namespace PishPosh.Tests { internal static class Extensions { public static IEnumerable<List<T>> Permute<T>(this IEnumerable<T> sequence) { if (sequence == null) { yield break; } ...
95984eab879ecdc89b5db01da8bfb07900cc1911
C#
danielpoputea/DAW
/WebApplication1/WebApplication1/Controllers/RoomsController.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace WebApplication1.Controllers { public class RoomsController : Controller { public static List<Models.Room> rooms = new List<Models....
27080e2deaf7756471be92795fdb98839b8fcd31
C#
lunacys/ATC-8
/ATC-8/Cpu/RegisterContainer.cs
3.265625
3
using System; using System.Collections; using System.Collections.Generic; namespace ATC8.Cpu { public class RegisterContainer : IEnumerable<KeyValuePair<RegisterName, Register>> { private readonly Dictionary<RegisterName, Register> _registers; public Register this[string name] { ...
b1b404f9b348c4f64dae405bde26291088714d09
C#
Dimaematveev/Tests
/Tests/GroupTests.cs
2.859375
3
using Classes; using FakeItEasy; using Interface; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tests { [TestClass] public class GroupTests { [TestMethod] pub...
f957c6bbcf201cae00b76d0b009c309a86217231
C#
IT-Labs/Blazor
/BlazorApp/BlazorApp.Shared/Entities/Movie.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using Core.Shared; using Newtonsoft.Json; namespace BlazorApp.Shared.Entities { public class Movie : DeletableEntity { public string Title { get; set; } public DateTime? Relea...
d30be25ae68c76b6610639458047d5fe50be8f88
C#
Uintra/Uintra
/src/Uintra/Infrastructure/Helpers/HtmlHelper.cs
2.5625
3
using Uintra.Infrastructure.Extensions; namespace Uintra.Infrastructure.Helpers { public class HtmlHelper { public static string CreateLink(string title, string url, bool openInNewTab = false) { var link = $"<a href=\"{url}\" target=\"{(openInNewTab ? "_blank " : "_self")}\">{title...
241d79c44d5925e94585fd2440c4cf3394498ece
C#
hmandiv321/BattleShipApp
/ConsoleUI/Program.cs
3.5
4
using BattleShipLibrary; using BattleShipLibrary.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleUI { class Program { static void Main(string[] args) { WelcomeMessage(); Player...
19fb612bb762397091ca2ce4deb008c718b72693
C#
Argestongaris/Swarm
/SavePeople/NewFolder1/Objects.cs
3.046875
3
using System; public class ItList { private Int32 ID; private String Name; public ItList(Int32 id, String name) { this.ID = id; this.Name = name; } } public class FlagList { private int ID; private Boolean DoneFlag; private Boolean DoFlag; private String Mes;...
2ba27229bc654f2941146562c32456045f4ca39c
C#
iilnurfailovich/Tasks
/PalindromeCheck/PalindromeCheck/Program.cs
3.703125
4
using System; using System.Collections.Generic; namespace PalindromeCheck { public static class Program { public static void Main(string[] args) { switch (args[0]) { case("PalindromeCheckWithoutSymbol"): PalindromeCheckWithoutSymbol...
f9decd90cbba868836be566d1c76974f621d5780
C#
ClearMeasureLabs/Battleship
/src/Battleship.GameController/Contracts/Position.cs
3.171875
3
using System; using System.Collections.Generic; namespace Battleship.GameController.Contracts { public class Position : IEquatable<Position> { public Coordinate Coordinate; public PositionStatus Status { get; set; } public Ship ShipAtThisPosition { get; set; } public Position(...
88cb8ad0d9167b04ead6e5ebb96b4afc5c65cea9
C#
mcanb7/VYSProje
/VeritabaniOdev1/VeritabaniOdev1/filmEkle.cs
2.53125
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 VeritabaniOdev1 { public partial class filmEkle : Form { public ...
87fd2339d922ca846f898c0f1b65b33686802299
C#
shendongnian/download4
/first_version_download2/203250-15634850-38081978-2.cs
2.8125
3
private void UserNameInput_Leave(object sender, EventArgs e) { if (sender.GetType() != typeof(TextBox)) { return; } TextBox tBox = (TextBox)sender; //pop up a warning when user name input is invalid if (!UserNameRE.IsMat...
ba5182aafaa4e2c4276583474ab0853a1f35bf96
C#
bbdsoftware/questions-competition
/example-question/csharp/solutions/aggregate-2.cs
2.734375
3
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpressions...
281828fb97918ae793dd605600dde77cb671b23c
C#
P-Beshkov/Academy
/C# Part2/07. TextFiles/12. RemoveListedWords/RemoveListedWords.cs
3.40625
3
//12. Write a program that removes from a text file all words listed in //given another text file. Handle all possible exceptions in your methods. using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; class RemoveListedWords { static void Main() { Stre...
b09f8ccd049e636f93eb0982b2600338b947db8e
C#
fabriciovd/Console-Input-Output
/03.CompanyData/CompanyData.cs
3.890625
4
/*A company has name, address, phone number, fax number, web site and manager. * The manager has first name, last name, age and a phone number. * Write a program that reads the information about a company and its manager and prints them on the console. */ using System; class CompanyData { static ...
b88568dc22bf9e313066cf4832cc660e7565d7fd
C#
EPAM-External-Trainee/Task_03
/Task/FileWork/Models/StreamWorker.cs
2.78125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; using Task.Enums; using Task.Figures.Interfaces; using Task.FileWork.Interfaces; using Task.MyParsers.Interfaces; using Task.MyParsers.Models; namespace Task.FileWork.Models { /// <summary> /// Class for...
698f02fe923df4a359b8cac8eda52f7db678a69d
C#
xhyangxianjun/-_-_YX1812001
/ZZ.Serial/YXDZ.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; using System.Threading; namespace ZZ.Serial { public class YXDZ { private static YXDZ uniqueInstance; private YXDZ() { } public static YXDZ get...
edbfd77b47a75389a798c6a184b0ce1af1305ad5
C#
younest/Infrastructure
/Interface.Infrastructure/Persistence/DataPaging.cs
2.71875
3
 using System; using System.Collections.Generic; using Common.Logging; namespace Interface.Infrastructure.Persistence { public class DataPaging { private int _pages; private int _records; private int _pageSize { get; set; } public int Pages { get ...
158865202e55cf3355895863e2976dd80c59e16b
C#
rmros/swagger
/csharp/src/main/csharp/IO/Swagger/Model/CloudFile.cs
2.515625
3
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace IO.Swagger.Model { /// <summary> /// ...
98b5de1a4b3eccdc604a4184cc518c72bc16f40e
C#
musickgm/Productivity-Analysis
/Productivity Analysis/Assets/Scripts/TimelineUISection.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; /// <summary> /// Class for each section of the timeline - handles hover over behaviour /// </summary> public class TimelineUISection : MonoBehaviour, IPointerEnterHandler, IPointerExit...
7e729c36cba1381cc58f0afa0854836de8d41af9
C#
furkangokalp04/MarsRoverWithUnitTest
/MarsRover/Program.cs
3.203125
3
using MarsRover.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MarsRover { class Program { static void Main(string[] args) { Plateau plateau = new Plateau(5, 5); Position position = ne...
5125065f8c23c584a61890adb3b5ff77cca2e789
C#
Sievaxx/LSDRevamped
/LSDR/Assets/Scripts/Torii/Binding/DataBinding.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace Torii.Binding { /// <summary> /// A class to store a data binding between values of type T. /// </summary> /// <typeparam name...
79100d69dd63946f55a896dcbb3561f7acdf803d
C#
svejdo1/ShadowApi
/Src/Barbar.ShadowApi.Core/Packer.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Json; using System.Security.Cryptography; using System.Text; namespace Barbar.ShadowApi.GitHub { public static class Packer { public static void Pack(string sourceFolder, string targetFolder,...
93b8359048a20d4e143fa07987f8b5b14e05e6fd
C#
Elilgo324/flight_map
/Src/Models/Employee.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Xml; namespace Ajax_Minimal.Models { public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public int Salary { get; set; } ...
b9198480f174eade8b6126427f28fd577abd58aa
C#
shendongnian/download4
/code9/1598502-44711204-150011839-2.cs
3.609375
4
public void checkComment(Comment comment) { //Check if the comment is valid if (comment != null) { //Do whatever you want to do with your comment for example print to console Console.WriteLine(String.Format("Comment: {0}", comment.Text)...
8ad6abe24a5d7d4ddc8e85168d51df469b60dffd
C#
assassinLX/GitFishTank
/AndroidTV/Assets/Script/NetWork/NetUtility.cs
2.5625
3
using UnityEngine; using System.Collections; using System.Net; using System.Net.Sockets; using System.Collections.Generic; using System; using System.IO; //实时消息处理委托 public delegate void NetEventHandler(string msg); public class NetUtility { //单例 public static readonly NetUtility Instance = new NetUtility(); ...
e996f1f1848ca2e36f2ae505e11cebdad3e51378
C#
gabrielacholakova/SoftwareUniversity
/Programming Fundamentals/OperationsCalculationsExercise/04. Tailoring Workshop/Program.cs
3.65625
4
using System; namespace _04._Tailoring_Workshop { class Program { static void Main(string[] args) { double countOfTables = double.Parse(Console.ReadLine()); double lenghtOfTheTables = double.Parse(Console.ReadLine()); double widthOfTables = double.Parse(Cons...
04e2d3d9825505a736ad422eb83dd58796038b7f
C#
NicholasIbarra/Datastructures
/Algorithms/Practice/New Practice/AddStrings.cs
3.9375
4
using System; using System.Collections.Generic; using System.Text; namespace Datastructure.Algorithms.Practice { /* Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string. You must solve the problem without using any built-in library for handling...
a9f2f5c9b94b2bf5f14f9f505349b0cedc8aaead
C#
yueyi2013/zhy
/Common/CompressionUtil.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Compression; using System.IO; namespace ZHY.Common { public class CompressionUtil { public static string Compress(string str,string encode) { //因输入的字符串不是Base64所以转换为Base64,因为HTTP如...
85377a7c2a4571cf4c8299d2d329b2d4c4431278
C#
2SANAL/Swabhav-Repo
/CSharp/OOP/TicTacToeSolution/TicTacToeConsole/Program.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using TicTacToeLib; namespace TicTacToeConsole { class Program { static void Main(string[] args) { Case2(); //Case1(); } private static voi...
b50d606cc00f2f7934be7f67b05a6bf9c4b70e82
C#
fabestine1/MyThing
/Fontys-Courses-master/PCS2/Week2/project_2.4/project_2.4-c/Form1.cs
2.78125
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 project_2._4_c { public partial class Form1 : Form { private BankAccount ba =...
cfdbec04e6434f2cf17e5c1be36b905fd2e29cc5
C#
russeva/Databases-Advanced-Entity-Framework
/06. EF - CodeFirst - Exercise/02. SaleDatabase/SalesDatabase/SalesDbContext.cs
2.5625
3
namespace SalesDatabase { using System; using Microsoft.EntityFrameworkCore; using SalesDatabase.Data.Models; using SalesDatabase.Data.Models.Configuration; public class SalesDbContext : DbContext { public SalesDbContext() {} public SalesDbContext(DbContextOptions...
22b7cb88b198d2adc74892fff885a5cb9fa2b949
C#
BalticAmadeus/AdventOfCode2017
/day3/edvinas/advent3_1.cs
3.296875
3
using System; using System.Numerics; using System.Collections.Generic; namespace myApp { class advent3_1 { static void Main(string[] args) { int iInput = 312051; int xCurrent = 0; int yCurrent = 0; int iMovement = 1; int iSpeed = 1; ...
638f00bbb1857e9c0f64c35fc40fbce36699910e
C#
MalloryEaton/MythicalEscape
/Mythical Escape/Assets/My Stuff/Scripts/SwitchPuzzle.cs
2.546875
3
using UnityEngine; using System.Collections; public class SwitchPuzzle : MonoBehaviour { public GameObject switch1; public GameObject switch2; public GameObject switch3; public GameObject switch4; public GameObject switch5; public GameObject switch1CorrectPos; public GameObject switch2Co...
835e105459723615a88666fe3118d4de15035242
C#
isiah18/Battleship
/BattleShip_Start/BattleShip.UI/GameSetup.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BattleShip.BLL.GameLogic; using BattleShip.BLL.Models; using BattleShip.BLL.Requests; using BattleShip.BLL.Responses; using BattleShip.BLL.Ships; using System.Media; namespace BattleShip.UI { ...
bd943f68dbe23e83749a241ca7d3cdef48167e53
C#
toddcoder/Kagami
/Kagami.Library/Parsers/Expressions/EmptyValueParser.cs
2.53125
3
using Kagami.Library.Nodes.Symbols; using Core.Monads; using static Core.Monads.MonadFunctions; namespace Kagami.Library.Parsers.Expressions { public class EmptyValueParser : SymbolParser { public EmptyValueParser(ExpressionBuilder builder) : base(builder) { } public override string Pattern => "^ /(|s|) /('{}'...
d9d3b51c9439088383a9c8bd9e581fea9c429bcf
C#
weichengzhou/SHS
/Models/ShsDbContext.cs
2.765625
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using SHS.Models.Entities; namespace SHS.Models { /// <summary> /// Customize DbContext define the structure of database. /// </summary> public class ShsDbContext : DbContext { /// <summary> ...
998a8b9b44f516a5fb5170babb40baab1851a895
C#
ConnorParrish/DrifterGame
/Assets/Resources/Scripts/UI/ClockUpdater.cs
2.890625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using AC.TimeOfDaySystemFree; using UnityEngine.UI; using System; /// <summary> /// simple compenent to update the clock with the right time using the Time of Day Manager /// </summary> public class ClockUpdater : MonoBehaviour { Time...