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
d8ed99c99e2428a8a21ede9fd95761bc4a7498b7
C#
danielagustbjornsson/TechnicalRadiation
/TechnicalRadiation.Repositories/Implementations/NewsitemRepository.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TechnicalRadiation.Models.Dtos; using TechnicalRadiation.Models.Entities; using TechnicalRadiation.Models.InputModels; using TechnicalRadiation.Repositories.Contexts; using TechnicalRadiation.Repos...
35b4380ea3cf1091877f432d3d1c4c031d09ef7b
C#
MrChrisHammond/SimpleAccountLocker
/SimpleAccountLocker/IDialog.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SimpleAccountLocker { public interface IDialog { object DataContext { get; set; } bool? DialogResult { get; set; } object Content { get; s...
79a6a79d4fd60169a5f263f500f96c64c48eee14
C#
codnjs/TeaBagMaker
/TeaBagMaker/Form1.cs
2.6875
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 TeaBagMaker { public partial class Form1 : Form { string[] List = new ...
23602a00873a81bba05c2b5bfb1c8f34e4685dc1
C#
kbuchin/ruler
/unity/Assets/Scripts/Util/Geometry/Graph/Edge.cs
3.3125
3
namespace Util.Geometry.Graph { using System; using UnityEngine; /// <summary> /// Simple edge class for graphs embedded in the plane, /// meaning the edge is defined between two vertices which are mapped to points. /// The edge carries a weight, which by default is equal to its length. //...
462da12c86be2d2a41325bc574ab6ca0e511f216
C#
shendongnian/download4
/first_version_download2/486845-44002425-145499568-4.cs
2.609375
3
public Action GetSkills() { var skills = "Android App, Android"; // Data from DB var model = new ViewModel { Skills = skills.Split(',').ToList(), } return View(model); }
3e45426970b4280564db9c86f8728d0781ce7fda
C#
NIP3/DefensiveProgramming
/PKW.Contracts/VotingSummary.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace PKW.Contracts { /// <summary> /// Wyniki Głosowania /// </summary> [DataContract] public class VotingSummary : IEquatable<VotingSummary>...
4cd5c1b6e217ac2f5a44e76e13f45b17a961475b
C#
wnvko/TelerikAcademy
/CSharp/PartOne/06. Loops/RandomizeTheNumbers/RandomizeTheNumbers.cs
3.90625
4
namespace RandomizeTheNumbers { using System; using System.Collections.Generic; public class RandomizeTheNumbers { private static Random random = new Random(); public static void Main(string[] args) { Console.Write("Enter n: "); int numbers = int.Parse(...
97d1e10362f748e293d12bcf5a1b9bd93a669886
C#
Mongit/ccnet-web
/web/web/Pages/BaseController.cs
2.53125
3
using Microsoft.AspNetCore.Mvc; using System; using System.Net.Http; using System.Threading.Tasks; using web.Pages.Models; namespace web.Pages { public class BaseController: Controller { private IApiProxy Proxy { get; set; } public BaseController(IApiProxy proxy) { this.Pr...
6b7b9d2f35b85779427346514bc51e459a21e854
C#
GeorgiLambov/SoftwareUniversity
/01.C# Projects/5.Conditional Statements/10.BeerTime/BeerTime.cs
4.25
4
using System; //A beer time is after 1:00 PM and before 3:00 AM. Write a program that enters a time in format “hh:mm tt” (an hour in range [01...12], a minute in range [00…59] and AM / PM designator) and prints “beer time” or “non-beer time” according to the definition above or “invalid time” if the time cannot be par...
f308dc3ece53c2b0bbccf60bb3dab43d71beae52
C#
hezide/SpaceInvaders
/A19 Ex01 HeziDebby 203796701 GalNahum 312535644/Objects/Barriers.cs
2.5625
3
using Infrastructure.ObjectModel; using Infrastructure.ObjectModel.Screens; using Microsoft.Xna.Framework; namespace A19_Ex01_HeziDebby_203796701_GalNahum_312535644.Objects { public class Barriers : SpritesCollection<Barrier> { private const int k_NumberOfBarriers = 4; private Vector2 m_Barrie...
e7bb65275aa30a077623f2b53a7823a2e223437d
C#
MarinaRybalko/Magic-Phrase-Searcher
/PMLab/PhraseSearcher.cs
3.453125
3
using System.Collections.Generic; using System.Linq; using System.Text; namespace PMLab { public class PhraseSearcher { private readonly int _allowedFrequency; public PhraseSearcher(int allowedFrequency) { _allowedFrequency = allowedFrequency; } public str...
bf0da99829668dc12d2a3180957fc452b5f8e493
C#
IzaiasIgnacio/GamesDotNet
/Games/Models/Validacao/ValidacaoGameService.cs
2.65625
3
using Games.Models.Entity; using Games.Models.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Games.Models.Validacao { public static class ValidacaoGameService { public static ValidacaoGameMessage Validar(GameDataView game) { ValidacaoG...
fd8a40034b557e13d37142ac03e3de7094cf2dc1
C#
GurkanTepe/LeisureCoding
/src/LeisureCoding.Queries/ContentManager.cs
2.625
3
using System.Collections.Generic; using LeisureCoding.Domain.Interfaces; using LeisureCoding.Domain.Models; using LeisureCoding.Interfaces; namespace LeisureCoding.Queries { public class ContentManager:IContentService { private readonly IContent content; public ContentManager(IContent conten...
5321d89dbc2d6758ac46d844efd2ecd69aeb69f5
C#
TerribleDev/jsnlog
/JSNLog/Infrastructure/XmlHelpers.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using JSNLog.Exceptions; using System.Text.RegularExpressions; using System.Web.Configuration; namespace JSNLog.Infrastructure { public class XmlHelpers { /// <summary> /// A method that pro...
64d45da4539e9df0bfababeda02e3535a0691706
C#
tr0llhoehle/room-of-requirements
/KinectAdapter/KinectFaceTracker/MovingAverage.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KinectFaceTracker { public class MovingAverage { private List<FaceData> buffer = new List<FaceData>(); private ulong maxBuffer = 10; private ulong updatePeriode...
820e13d57833fde6d96ef4cf1e8cf1c7b14e8855
C#
drygwelski2020/Get_Rhythm
/Band.cs
2.671875
3
using System; using System.Collections.Generic; namespace Get_Rhythm { class Band { public int Id { get; set; } public string Name { get; set; } public string CountryOfOrigin { get; set; } public int NumberOfMembers { get; set; } public string Website { get; set; } ...
b0dc7a752ef2db30af9871f19b6c55ae4fc396fb
C#
MeGaDeTH91/SoftUni
/C# Fundamentals/C# OOP Advanced/11.UnitTesting/Ex/P03_Iterator/ListIterator.cs
4.09375
4
namespace P03_Iterator { using System; using System.Collections.Generic; using System.Linq; public class ListIterator { List<string> elements; private string currentPrint; private int Count => this.elements.Count; private int Index; public ListIterator(p...
c09955f016f1102424d43c5050b80bada630e57b
C#
Azerothian/Netc
/Netc.Sock/SocketServer.cs
2.765625
3
using Netc.Tcp; using Netc.Util; using ProtoBuf; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Netc.Sock { public class SocketServer<T> { Dictionary<TcpClient, Guid> _clientKeys; Dictionary<string, List<Action<Guid, T[]>>> _actions; TcpServe...
0693d7697b5342df61a050e4375bbfd49657111b
C#
macavalon/Utilities
/wifiWatcher/wifiWatcher/Program.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace wifiWatcher { class Program { static void Main(string[] args) { ConnectionChanger connections = new ConnectionChanger(); ...
9e683c848ac17a0204d44623b4a1f9adde36b6d4
C#
shendongnian/download4
/code11/1894180-56727292-200228982-2.cs
3.09375
3
Rectangle screenBounds = Screen.GetBounds(System.Drawing.Point.Empty); using (Bitmap bitmap = new Bitmap(screenBounds.Width, screenBounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)) { using (Graphics g = Graphics.FromImage(bitmap)) { g.Copy...
2c65be1762f2cddcc2b8ccb4571ddcec925fa580
C#
Eliador/VSRenamingAssistance
/RenamingAssistance.Core/CodeAnalysis/NamespaceChangesProcessor.cs
2.625
3
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace RenamingAssistance.Core.CodeAnalysis { public class NamespaceChangesProcessor { public async Task<Solution...
5464aa74bc22bce2970a6dbb9d6d1efd463a85b7
C#
harvPrentiss/Code-Foo-2012-Project
/ConnectFourth/ConnectFourth/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConnectFourth { public class Program { GameBoard _board; Player _player; AI _computer; string _activePlayer; bool _playing; static void Main(string[] args) {...
b80afc47fa39bac83d00c89272ec2235b4f5c2a9
C#
anhtran102/TT
/Tieptuyen/MyGridAggregateFunction.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Tieptuyen.Common { class MyGridAggregateFunction { string aggregateName; public string AggregateName { get { return aggregateName; } set { aggregateName = value; } ...
0bae68c850a99dfbc56bde1e39954c313adfe51c
C#
ttgxdinger/Random
/SwizzContact/SwizzContact/Sqlmanager.cs
2.75
3
namespace SwizzContact { using System; using System.Collections.Generic; using System.Data; using System.Data.SqlServerCe; using SwizzContact.Properties; public class Sqlmanager { private readonly SqlCeConnection _connection; public Sqlmanager(string path) { _conne...
18f75209d6bfb64ae3ad35277da56bda37bb0cc1
C#
netvoxlab/ownradio
/Server.TrackDownloader/ownTrackDownloader/DownloadEngine.cs
2.609375
3
using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace ownTrackDownloader { public class DownloadEngine { public async void Start(ILogger logger) { GlobalSettings.ReadFro...
0c3aa5f484b9953303f42ba96625e4a53227411a
C#
bepu/bepuphysics2
/DemoContentLoader/MeshIO.cs
3.234375
3
using System.IO; using System.Numerics; using System.Runtime.CompilerServices; namespace DemoContentLoader { public class MeshIO { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ReadVector3(BinaryReader reader, out Vector3 v) { v = new Vector3(reader....
698ddc4c40022c2a703676f095e0f0fe0e5e40d9
C#
LukeStanislaus/SailingUWP
/SailingUWP/BoatsRacing.cs
3.03125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SailingUWP { public class BoatsRacing { public string name { get; set; } public string boatName { get; set; } public int boatNumber { get; set;...
e74edc6dee93068ace5e5adf5bfdd2b7361b7626
C#
grammophone/Grammophone.Vectors
/SparseVector.cs
2.921875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace Grammophone.Vectors { /// <summary> /// A vector which is efficient for sparse entries. /// </summary> /// <remarks> /// Designed to be open-ended, there i...
3958be5e24cc92eee84393f4cf24f6c8583796b6
C#
VarunKrishna03/BallGame
/Assets/BallCollision.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BallCollision : MonoBehaviour { public Material[] wallMat; Renderer rend; public Text displayText; // Start is called before the first frame update void Start() { rend = Ge...
1d3b560ef9ba125c6c1d9fef40cfc31d303ace73
C#
brunohesilva/WebMvc
/PontoDigital/Repositorios/DepoimentoRepositorio.cs
2.921875
3
using System; using System.Collections.Generic; using System.IO; using PontoDigital.Models; namespace PontoDigital.Repositorios { public class DepoimentoRepositorio : BaseRepositorio { public static uint CONT = 0; private const string PATH = "Database/Depoimento.csv"; private const stri...
d7aeb68e9c207e2eaec078dac8313fe4a2ac9dea
C#
Brylex/c-wzorce-projektowe-steven-john-metsker
/lib/Carousel2/DoorState.cs
3.140625
3
using System; namespace Carousel2 { /// <summary> /// Przeksztacona wersja klasy z pierwotnej przestrzeni nazw Carousel. /// W tym przypadku obiekt drzwi jest przekazywany midzy stanami, /// podczas gdy poprzednio wszystkie stany odwoyway si do konkretnego /// obiektu drzwi. /// </summary> public abstract cla...
a0bfcf1beef8001418b8883a1ee8eb1e74582ceb
C#
mufalmeva/airplain
/LoginForm.cs
2.859375
3
using System; using System.Data.SqlClient; using System.Windows.Forms; namespace AirPlane { public partial class LoginForm : Form { ParentForm parent = new ParentForm(); public SqlConnection myConnection = new SqlConnection(@"Data Source=HACKERMAN;Initial Catalog=MyDataBase;Integrated Security...
d2114cbe0196bb61fc43573662984b696ca3baca
C#
Alice-Scholze/OngAnimal
/ONG/Services/ProductService.cs
3.125
3
using ONG.Domain; using ONG.Repository; using System; using System.Collections.Generic; namespace ONG.Services { public class ProductService { private ProdutoRepositorio productRepository; public ProductService() { productRepository = new ProdutoRepositorio(); } ...
ca00e8a2e54f60779db93f942d8c3e8a4ac0fac8
C#
thetrcode/CsharpGiris
/Arrays/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Arrays { class Program { static void Main(string[] args) { string student1 = "Özcan"; string student2 = "Leo"; string student3 = "An...
0c2f6d8b92432b6d57bad6200f5f49fcfb3225d3
C#
teachmeskills-dotnet/TMS-DotNet02-Antonova
/src/DiscountCouponQuest.BLL/Services/QuestService.cs
2.640625
3
using AutoMapper; using DiscountCouponQuest.BLL.Interfaces; using DiscountCouponQuest.BLL.Models; using DiscountCouponQuest.Common.Interfaces; using DiscountCouponQuest.DAL.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; nam...
b2de5183f35bca6d839804b55f35e5152accb93a
C#
lousaibiao/AkkaDotnetTest
/Lesson3/Actors/ConsoleValidatorActor.cs
2.59375
3
using Akka.Actor; namespace Lesson3.Actors { public class ConsoleValidatorActor : UntypedActor { private readonly IActorRef writer; public ConsoleValidatorActor(IActorRef writer) { this.writer = writer; } protected override void OnReceive(object message) ...
1e479b1cee3c17c85627413443fcbf1eb1d2d73f
C#
adriandeveloper13/PSSC-HybridProject
/UniversityLocal/University.Generic/Proportion.cs
3.28125
3
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Text; using System.Threading.Tasks; namespace University.Generic { public class Proportion { private int _numerator; private int _denominator; public decimal Fraction {...
067639433d042b13c18dbcf40e6a1204d7e7ceb5
C#
ManjinderSingh816/Quality_Video_Rental_Store_Auckland
/Quality_Video_Rental_Store_Auckland/DatabaseLogics.cs
2.65625
3
using System.Data; using System.Data.SqlClient; namespace Quality_Video_Rental_Store_Auckland { public class DatabaseLogics { public string connString = "Data Source=DESKTOP-LTQK306;Initial Catalog=Quality_Video_Rental_Store_Auckland;Integrated Security=True"; public SqlConnection sq...
51054d267b43b80b4e9002c178e4b066a38d5d38
C#
sntnmjones/CsharpPluralsightGradebook
/src/GradeBook/Program.cs
2.609375
3
using System; using System.Collections.Generic; namespace GradeBook { class Program { static void Main(string[] args) { var gradebook = new Book(new List<double>() {1.1, 2.0, 3.0, 4.0}, "The gradebook"); gradebook.PrintStatistics(); } } }
e375d56cb95e9a255a4124a98779a8620290864c
C#
Alcobiaa/ClinicaVeterinariaDesktop
/ProjetoFinal/Forms/FormEditarDono.cs
2.953125
3
using Biblioteca; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Text.RegularExpressions; using System.Windows.Forms; namespace ProjetoFinal.Forms { public partial class FormEditarDono : Form { priva...
ff4c2476707e8822ae61351288450a130f1614c4
C#
qinxgit/SudokuSolver
/UnitTestProject/SudokuSolverUnitTest.cs
2.859375
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestProject { [TestClass] public class SudokuSolverUnitTest { [TestMethod] public void TestMethod1() { int[,] problem = null; string[] x = new s...
091e4b28610c1c194ee067c349f4f092859b4fd4
C#
xeonye/Justin
/Samples/WPF/Justin.WPF.Samples/ShellWindow.xaml.cs
2.796875
3
using System; using System.Windows; namespace Justin.WPF.Samples { /// <summary> /// Interaction logic for ShellWindow.xaml /// </summary> public partial class ShellWindow { public ShellWindow() { InitializeComponent(); Closed += (sender, args) => ...
aed600bc54162a9490afd0e4fd28160c362670df
C#
anturalabs/vacation-lia
/AnturaSemester/AnturaSemester/Data/UsersContext.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using AnturaSemester.Models; using System.Globalization; namespace AnturaSemester.Data { public class UsersContext : DbContext { public UsersContext(DbContextOptions<U...
4a2c25202d7417e294bec0b80aac9cc4682fcc4e
C#
alekseyaz/CSNaturalMouseMotion
/CSNaturalMouseMotion.Tests/FlowUtilTest.cs
2.859375
3
using Zaac.CSNaturalMouseMotion.Util; using NUnit.Framework; using System; using System.Linq; namespace Zaac.CSNaturalMouseMotion.Tests { [TestFixture] public class FlowUtilTest { private const double SMALL_DELTA = 10e-6; [Test] public virtual void TestStretchFlow_3to9() ...
3f70bc61528154855520cf732d72c99095de2cd6
C#
Grax32/JustAnExpression
/DEV/JustAnExpression/ExpressionExtensions.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace JustAnExpression { public static class ExpressionExtensions { public static Expression<Func<TOut>> Pipe<TPipe, TOut>(this Expression<Func<TPipe>> expression1, Expres...
805e54725cd74e899e4025a661cd586e70e6f9c8
C#
sharpyr/Texting
/Texting/Src/Slicing.cs
3.078125
3
using System.Text.RegularExpressions; namespace Texting { public static class Slicing { public static string Slice(this string tx, int lo) => lo >= 0 ? tx.Substring(lo, tx.Length - lo) : tx.Substring(tx.Length + lo, -lo); public static string Slice(this string tx, int lo, int len) => tx.Substrin...
6a2bcf8960163d72d9c14a150bcbfd1a91985e59
C#
varichs/CsharpDesignPatterns
/23种设计模式/FirstLast.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _23种设计模式 { /// <summary> /// 名字-姓氏模式 /// </summary> public class FirstLast:Namer { public FirstLast(string name) { int i = name.Trim().IndexOf("...
47c13aeadebd9ac405b86bde588e553eada607dc
C#
k-rush/congenial-octo-lamp
/Tree/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tree { class Program { static void Main(string[] args) { } private class MinHeap<T> { HeapNode<T> Head; pr...
d29877a6a6f59de56cc3beae4a2525e698872a31
C#
StephanJansky/vi2FileWatcher
/vi2FileWatcher/FileWatched.cs
3.0625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace vi2FileWatcher { public class FileWatched { private string strFileName = ""; private string strFilePath = ""; private string strFullname = ""; ...
ba95567072ae7582b2bf7542583746ea7790552a
C#
intille/mitessoftware
/stable/MITesSRC/AXML/AnnotatedRecord.cs
2.890625
3
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace AXML { public class AnnotatedRecord { private ArrayList labels; private int start_hour; private int start_minute; private int start_second; private double ...
9249e1a73541d5719ae58a65cf1736a61d7fed89
C#
hamletSolanoD/Anatomy-Game
/Assets/Scripts/CodigosGenerales/CambiarDeColorMaterial.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CambiarDeColorMaterial : MonoBehaviour { public Vector3[] Colores; public float DiferenciaDeCambioSegundos = 0.2f; public float CantidadDeCambios = 40; public Material Material; // Start is called before...
97fd50daa2118ea998404a90f94f0b66cbcb1dad
C#
kostadinterziyski92/Software-University
/01. Programming Fundamentals/02.MethodsDefiningAndCallingMethodsExercise/02MinMethod/MinMethod.cs
3.734375
4
using System; namespace _02.MinMethod { class MinMethod { static void Main() { var a = int.Parse(Console.ReadLine()); var b = int.Parse(Console.ReadLine()); var c = int.Parse(Console.ReadLine()); var result = GetMin(GetMin(a, b), c); ...
43369e394ea9bd14556e7fecfe6f5513959b0593
C#
Mohot416/2D_Defending_Shooter_Game
/Assets/BarrierStatusController.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy { private int num; public int Num { get { return num; } set { num = value; } } private int atk; public int Atk { get { return atk; } set { atk = value; } } ...
4e4862b24685029065be1b20bec6067a89196114
C#
shyam-menon/Skinet
/Infrastructure/Services/TokenService.cs
2.8125
3
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; using Core.Entities.Identity; using Core.Interfaces; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; namespace Infrastructure.Services { public cla...
b5d9701bff64eab7048bb3e5b23a40da20d60429
C#
lefty-son/crossGunner
/Assets/_Script/Manager/ObjectHelper.cs
2.875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectHelper : MonoBehaviour { public static ObjectHelper instance; public ObjectSetting[] _object; public Color leftColor, rightColor, playerColor; public Left _left; public Right _right; private ...
651088f30fad1a64d2f31e6185e937e9aa1534cd
C#
amy432/algorithm008-class01
/Week_07/208.实现Trie.cs
3.765625
4
using System; using System.Collections.Generic; using System.Linq; namespace LeetCode_208 { class Program { static void Main(string[] args) { Trie trie = new Trie(); trie.Insert("apple"); Console.WriteLine(trie.Search("apple")); Console.WriteLin...
2ed3effbc5e7deae974dcc805d91bd92a627ec67
C#
aboosamah94/zara
/zara-demo-unity/Assets/Zara/Player/WetnessController.cs
2.65625
3
using System; using System.Linq; using ZaraEngine.Inventory; using ZaraEngine.StateManaging; namespace ZaraEngine.Player { public class WetnessController : IAcceptsStateChange { public const float HotTemperature = 30; // C (and higher) public const float NormalTemperature = 20; // C (and ...
83af5e7161326aa71f11602736aa01253347f72b
C#
papiliond/MovieDb
/MovieDbTests1/Controllers/MoviesControllerTests.cs
2.578125
3
using MovieDb.Controllers; using Microsoft.VisualStudio.TestTools.UnitTesting; using MovieDb.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MovieDb.Controllers.Tests { [TestClass()] public class MoviesControllerTests { ...
b27db15949d536fdaa871abe57d9341da5d2db71
C#
Multiplixe/tronar.multiplixe
/multiplixe.comum/adduo.helper/extensionmethods/DateTimeExtensionMethod.cs
2.984375
3
using System; using System.Runtime.CompilerServices; namespace adduo.helper.extensionmethods { public static class DateTimeExtensionMethod { public static DateTime AjustNow(this DateTime dt, int hoursAjust = 4) { return dt.AddHours(hoursAjust); } public static stri...
66017ca5e18c605ed108d946374de6a3c3b42490
C#
IUMDPI/IUMediaHelperApps
/Packager.Test/Extensions/StringExtensionTests.cs
3.0625
3
using System; using System.Collections.Generic; using NUnit.Framework; using Packager.Extensions; namespace Packager.Test.Extensions { [TestFixture] public class StringExtensionTests { [TestCase(@"testing """, @"testing \""")] public void NormalizeForCommandLineShouldEscapeQuotesCorrectly(...
ca24823cdd40cdd4077fa841fe40c27c569c48cb
C#
PelleRemus/Facultate
/Anul2Sem1/Met. Avansate de Prog/#Laborator/Examen1/Examen1/A.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Examen1 { public class A { public int[] v; public int n; public A() { n = 0; v = new int[n]; } public void add...
fefc8eb16e1b3d1bba43b7897ce12ffe7226e8a9
C#
wareismymind/Guards.Types
/wimm.Guards.Types.Tests/DefinedTests.cs
2.84375
3
using System; using Xunit; namespace wimm.Guards.Types.Tests { public class DefinedTests { [Fact] public void Construct_ValueUndefined_Throws() { Assert.Throws<ArgumentOutOfRangeException>(() => { Defined<TestValues> _ = (TestValues)int.MaxValue;...
4de00d17b3c06ead2382c26bde9003afe529da5d
C#
Gabriel-Bur/DevelopersChallenge2
/src/Xayah.Data/Repositories/Repository.cs
2.96875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Threading.Tasks; using Xayah.Data.Interfaces; namespace Xayah.Data.Repositories { public class Repository<T> : IRepository<T> where T : class { protected readonly SqlServerContext context; protect...
3356609aa5a5908b2863697c18ec8291719c991a
C#
dyshess/HomeWork03
/Homework_Theme_05/IdentifyProgression.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Example_005 { class IdentifyProgression { /// <summary> /// Проверка на наличие прогрессии в массиве чисел /// </summary> /// <param name="...
8eb07c3963a6b9149e51223db221134b9de76f30
C#
JoyfulReaper/CSharpExamples
/Advanced C#/AnonymouseTypes.cs
3.609375
4
using System; class Program { public static void Main() { var Person = new { Name = "Sam", Age = 33 }; // Anonymous Type int age = 23; var Person2 = new { Name = "Sally", age, age.ToString().Length }; // Property name is inferred Console.WriteLine($"Name: {Person2.Name} Age: {P...
f978817cca63d3434d5160b272f2611423775a57
C#
jkulcsar/az-204-resources
/cli-test/Question.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; namespace AzureCliTest { public class Question { public string Prompt { get; set; } public IEnumerable<string> Answer { get; set; } public bool CheckAnswer(string response) { var responseParts = resp...
594565126eb4f19c531cb3e81bf8f61fd97bf503
C#
JLohmusP/Strings_Arrays
/DontPanic/Program.cs
2.875
3
using System; namespace DontPanic { class Program { static void Main(string[] args) { //asenda kõik 'o' tähed lauses "Don't Panic" nulliga //asendab kõik 'a' tähed neljaga string panic = "Don't Panic"; panic = panic.Replace('o', '0'); ...
e9bea11e5cfeeee9a1f9a1b45df014840eefc0a2
C#
arvidl02-edu/Programmering1
/Samlingar(13)/Form1.cs
2.953125
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 Samlingar_13_ { public partial class Form1 : Form { public Form1() { ...
d7b94158d853da370828fa9242706cbfcf57d53a
C#
lishuaiyong/car8
/4程序代码/Cne_MyOql4/MyOql/dbo/dbo_Insert.cs
2.875
3
using System; using System.Collections; using System.Collections.Generic; using MyCmn; using System.Linq; using System.Web; namespace MyOql { /// <summary> /// /// </summary> public static partial class dboRule { /// <summary> /// 三种Model,1.实体类, 2. Dictionary&lt;string,object&gt...
54a23653df4de0ace57ca307b10ae6a794397db7
C#
JhoanRodriguez/holbertonschool-csharp
/0x03-csharp-hashset_stack_queue_linkedlist/0-unique_add/0-unique_add.cs
3.203125
3
using System; using System.Collections.Generic; class List { public static int Sum(List<int> myList) { HashSet<int> setList = new HashSet<int>(myList); int total = 0; foreach (int j in setList) total += j; return total; } }
b60fc5427b8876e618389654be0d205f7bc19a9c
C#
broomandan/advertising
/PM.Adevertisement.Access/Advertiser.cs
2.765625
3
using PM.Adevertisement.Access.Helpers; namespace PM.Adevertisement.Access { public class Advertiser : IDesrializeFromText<Advertiser> { public string Name { get; set; } public Advertiser DeserializeFromText(string line, char delimeter) { var fields = line.Split(delimeter)...
ace4d77408ef7cb5d105dbbaa1af789f5e7ee1ed
C#
Geta/EPi.Extensions
/src/Geta.EPi.Extensions/StringExtensions.cs
2.921875
3
using System; using EPiServer.Core.Html; using Geta.EPi.Extensions.Helpers; using Geta.Net.Extensions; namespace Geta.EPi.Extensions { /// <summary> /// String extensions. /// </summary> public static class StringExtensions { /// <summary> /// Strip all HTML elements from a...
f9b7773f41ebd44c1bd3886d42f3fd9bc4a850c0
C#
jaeseonglee/3-1-Csharp
/week11/20165153/Number1/Form1.cs
2.953125
3
/* 실습 1번 작성일 : 2020.06.02 ~ 06.05 작성자 : 20165153 이재성 프로그램 설명 : (1) 선택한 메뉴 항목을 폼제목표시줄로 출력 (2) 데이터 메뉴 자료입력 “자료입력” 폼을 모달창으로 실행 ‘리스트박스에 저장’ 버튼 클릭 - 텍스트박스로 입력된 데이터를 ‘MenuStripApp’폼에 있는 리스트 박스에 추가 ‘종료’ 버튼 클릭 - 폼 종료 MouseClick 이벤트 - 각각의 텍스트 박스를 마우스로 클릭...
bd35a26d112f5c4f759ba92e4c6fe49e1657d027
C#
morbitz/RazorEx
/RazorEx/ConfigAgent.cs
2.5625
3
using System; using System.Collections.Generic; using System.Windows.Forms; using System.Xml; using System.Xml.Linq; using Assistant; namespace RazorEx { public class ConfigAgent : Agent { protected readonly List<ConfigItem> items = new List<ConfigItem>(); private ListBox listBox; publ...
3caeef7929b6afafa80a6312942ca407ef92df22
C#
pericia/Pericia.Storage
/Pericia.Storage.InMemory/InMemoryStorage.cs
2.515625
3
using System.Collections.Generic; namespace Pericia.Storage.InMemory { public class InMemoryStorage : BaseFileStorage<InMemoryStorageContainer, FileStorageOptions> { private Dictionary<string, IFileStorageContainer> containers = new Dictionary<string, IFileStorageContainer>(); public InMemory...
971fe5188176318853d8301e9e0c42918c459d49
C#
DobosP/y2_s1
/map/Interpreter2.0/model/VarExpresion.cs
2.765625
3
using System; using DataStructure; namespace models { public class VarExpresion : Expression { String id; public VarExpresion(String _id){ id = _id; } public override int eval(MyIntDict<String, int> tab) { try { return tab.get(id); ...
3ecff07f2098b1dd68848ee31393a9049db41079
C#
hackywacky33/Leetcode
/Pattern/FindAndReplacePattern.cs
3.28125
3
// https://leetcode.com/problems/find-and-replace-pattern/solution/ // medium:890 public class Solution { public IList<string> FindAndReplacePattern(string[] words, string pattern) { List<string> result = new List<string>(); for(int i=0; i < words.Length; i++) { Dictionary<char...
b3cd8d3c4d37536472cdf94f551fd8e95ffbf39d
C#
carevon/02-Enterprise-Application
/01.Fiap.HelloWorld/01.Fiap.HelloWorld.UI/Program.cs
2.890625
3
using _01.Fiap.HelloWorld.UI.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Fiap.HelloWorld.UI { class Program { static void Main(string[] args) { //Instanciar Pessoa Fisica Pessoa...
bd6db0b5dac4aa4690bd241d5d73269f8c097a94
C#
RobertHajbok/Facultate
/Fractal/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace TestImageCreation { class Program { static void Main(string[] args) { /* EscapeTimeFractal p = new EscapeTimeFractal(300, 300); p.MinX = -...
c9c5200c685a169c69c0899dca8cf3deb3e8fb48
C#
techienickb/hap
/HAP/Core/HAP.Web.Config/adDomains.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace HAP.Web.Configuration { public class adDomains : Dictionary<string, adDomain> { private XmlDocument doc; private XmlNode node; public adDomains(ref XmlDocument doc) : base(...
3ad5c2f4659376bba51847578fd920c48b63fca3
C#
ppedvAG/WPF_STG_22012019
/GoogleBooksAPIDataClientMitTemplates/GoogleBooksAPIDataClientMitTemplates/MainWindow.xaml.cs
2.78125
3
using Newtonsoft.Json; using System; using System.Collections.ObjectModel; using System.Linq; using System.Net; using System.Text; using System.Windows; namespace GoogleBooksAPIDataClientMitTemplates { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWind...
9233a179b988de3b78112aedd96e015dc6dc6043
C#
ted10401/DataManager
/Assets/DatabaseTool/GenerateScripts/WeaponDatabase.cs
2.8125
3
using UnityEngine; using System.Collections.Generic; namespace TEDTool.Database { public class WeaponData { public string Key; public string Name; public int[] Atk; public string[] Rarity; } public class WeaponDatabase : IDatabase { public const uint TYPE_ID = 3; public const string DATA_PATH = "CsvR...
d67d6f3bfc089bc1b92b3600d90c001f597514e0
C#
juliabarboza/characterEditor
/PROJECT3/Character.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace PROJECT3 { class Character { string firstname; string lastname; string race; string cLass; int age; int strength; ...
a7b0af515c5e701b00a075599ca39028e2d0ffda
C#
Gigiguru/JAMK-IT-OLIO
/Tehtavat/L08T2/Program.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Product { public string Name { get; set; } public double Price { get; set; } public Product() { } public Product(string nam...
9f19a16792df5cef98a3afad446404d618c3a4ae
C#
MarkSvetlakov/MarkSvetlakovCodeValue
/Backgammon/Backgammon/Player.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Backgammon { public class Player { public string Name { get; private set; } public string Color { get; set; } public bool IsMyTurn { get; private se...
4553244c2bbc406f4f344983268eea5f6c8206f8
C#
KanchanaThiliniAbeyrathna/Image-Processor
/ImageProcessor/Filter.cs
3.28125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace ImageProcessor { class Filter { public Bitmap grayScale(Bitmap bitmap) { ...
3bf7943895a2d825992aabfd90fbea7a31902cbd
C#
mkbiltek/Our-Project
/AllInOne.Legal.Repositories.BackEnd/HearingRepositoryImpl.cs
2.515625
3
#region Header /***************************************************************************************************** * Description : This file represents a repository implementation for <see cref="Hearing"/> entity. * *--------------------------------------------------------------------------------------------------...
39e5183f0e143417b1ff1d8d10cad6e1e69e5768
C#
bastamon/Csharp-from-the-start-to-the-master
/源代码/22/11/Test11/Test11/Form1.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Test11 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } pri...
6de0e7a9148878498d4c0b54d7d6469e5715e420
C#
xin2015/Xin
/Xin/Xin/Extensions/EnumerableExtension.cs
2.96875
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using Modules.FastReflection; namespace Xin.Extensions { /// <summary> /// Enumerable扩展类 /// </summary> public static class EnumerableExtension { /// <summary> /// 将实体类集合转...
14f33f2822a2b40ebeda8c4c5f58c27c91e85d99
C#
Sneghka/TestProject
/v5.03/CWC.AutoTests/Tests/CRUD/BaseDataCrudTests/BagTypeCrudTests.cs
2.71875
3
using Cwc.BaseData; using CWC.AutoTests.Model; using CWC.AutoTests.ObjectBuilder; using System; using System.Data; using System.Linq; using Xunit; namespace CWC.AutoTests.Tests.CRUD.BaseDataCrudTests { [Collection("MyCollection")] public class BagTypeCrudTests : IDisposable { string defaultNumber;...
8e4619a5ad5bd6c7151c3b1cfa1dbcbad42a1893
C#
aliakseis/quartz-plus
/Service/LineCheckerSrv/Scripting/ScriptingException.cs
2.6875
3
using System; using System.Runtime.Serialization; using System.Security.Permissions; namespace LineCheckerSrv.Scripting { /// <summary> /// Implements custom exception thrown if were errors during script scenario execution /// </summary> [Serializable] public sealed class ScriptingException : Exce...
ed96954c3d90be03359214ce3c7587a04dfed287
C#
phonegi/network
/ip-scheme/CompareSchemes/Program.cs
3.03125
3
using System; using System.Text; using System.Collections.Generic; using System.IO; using IpScheme; namespace CompareSchemes { class Program { static void Main(string[] args) { if (args.Length < 2) return; if (!File.Exists(args[0])) return; if (!File.Exists(args[1])) re...
24c4f3d4ef2163961661f9e5d6a58efe39cb8ad9
C#
alexandrius007/FtpServer
/src/FubarDev.FtpServer.Abstractions/Features/IFtpDataConnectionFeature.cs
2.53125
3
// <copyright file="IFtpDataConnectionFeature.cs" company="Fubar Development Junker"> // Copyright (c) Fubar Development Junker. All rights reserved. // </copyright> using System; using System.Net; using System.Threading; using System.Threading.Tasks; namespace FubarDev.FtpServer.Features { /// <summary> /// ...
023e08f3b1da8f6c7e9152c0386177746caad50c
C#
smallqi/Glops
/Xiaoxiaole/Assets/Scripts/LevelMoves.cs
2.75
3
using UnityEngine; using System.Collections; /// <summary> /// 在规定步数内得到相应分数的关卡 /// </summary> public class LevelMoves : Level { public int totalStepNum; public int targetScore; private int currentStepLeft; // Use this for initialization void Start () { currentStepLeft = totalStepNum; ...
48ace3b281ed33191c7cebf2cf42fb735f42fa94
C#
nguijoel/Skybrud.Social.Vimeo
/src/Skybrud.Social.Vimeo/Models/Channels/VimeoChannel.cs
2.71875
3
using System; using System.Linq; using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Essentials.Time; using Skybrud.Social.Vimeo.Models.Pictures; using Skybrud.Social.Vimeo.Models.Users; namespace Skybrud.Social.Vimeo.Models.Channels { /// <summary> /// Class describing a ...
b8dca1207b790f0b1e32295daff4efbb8b5e6e9c
C#
jacobsoo/0x434F4445
/0x434F4445/MorseCode.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0x434F4445 { class MorseCode{ private Char[] Letters = new Char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', ...
44e98b4e35d81634062f91a5db2b8f32245147d1
C#
ExianVII/Last-Standing
/Assets/Scripts/CharacterScripts/HeroScripts/Player.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { [System.Serializable] public class PlayerStats { public int health = 100; } [SerializeField] private float fallBoundary = -14; [SerializeField] private float jumpBoundar...
4b146c42a89cce7fae455c31f164fac906c9c30a
C#
dosjos/SpaceDestroyer
/SpaceDestroyer/Backgrounds/AnimatedExplosion.cs
2.796875
3
using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace SpaceDestroyer.Backgrounds { public class AnimatedExplosion { private readonly float Depth; private readonly float Scale; private readonly int Speed; private reado...
a2ab28d1c6829e1e19c7ae9b36e1af68c9cbaa4f
C#
eporsche/userdialogs
/src/Acr.UserDialogs.Wpf/InputDialog.xaml.cs
2.625
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;...
e74fa5b2400ffb0038cae89ef45fc40f0b0f8f50
C#
dabooz/elm-fullstack
/implement/PersistentProcess/PersistentProcess.Common/ElmJsonStructure.cs
2.546875
3
using System.Collections.Generic; using System.Collections.Immutable; namespace Kalmit.ElmJsonStructure { public class Maybe<JustT> { [Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public IReadOnlyList<object> Nothing; [Newtonsoft...