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
8e484d76f9929052315e659f84172314940aac08
C#
sovr610/CustomScriptingLanguage
/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using NLua; namespace liveStreamOne { class Program { private Lua lua = new Lua(); static void Main(string[] args) { Program pgrm =...
e9a316b4db24ec08887266dd502195452d6a02ad
C#
gamecc666/ExperimentProject
/Process类使用/Program.cs
3.25
3
using System; using System.Collections; using System.Diagnostics; namespace Process类使用 { class Program { static void Main(string[] args) { Console.WriteLine("******************开始调用*******************"); string resstr= RunPy(); Console.WriteLine($"输出执行结果:{res...
9ea5ae7c152fd2c03eacd6da991d568274f8871e
C#
peter-job/head-first-design-patterns
/CommandMacro/Vendors/Hottub.cs
2.59375
3
using System; namespace RemoteControlWithPartyMode { public class Hottub { public void On() { Console.WriteLine("Hottub is heating to a steaming 104 degrees"); } public void Off() { Console.WriteLine("Hottub is cooling to 98 degrees"); } ...
fb83e3a079716fd37dacfe384d4f3ea1d69d1fae
C#
sas1981ec/.NET
/SEVENC/SevencWpf/Modelos/Usuario.cs
2.578125
3
using System; using System.IO; using System.Linq; using System.Windows.Media.Imaging; namespace SevencWpf.ServicioWcf { public partial class Usuario : ICloneable { public bool EstaChequeado { get; set; } public string ImagenEstado { get { return...
f49b0ffbf0983f0a999937d7259eed7fddc16304
C#
anhtuan161295/VisualStudioProjects
/TestDemo/TestDemo01/Controllers/UsersController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; using TestDemo01.Models; namespace TestDemo01.Controllers { public class UsersController : Controller { DataContext db = new DataContext(); // GET: Users ...
9b26d68460df83dccfaec3bb4a32061f5ada6a07
C#
shendongnian/download4
/code9/1618401-45484241-153123122-10.cs
3.171875
3
public class DifferentObject { public bool IsInErrorState { get; set; } } public class Alarm { //This is your "reference property" Func<DifferentObject, bool> ObjectHasError = (myDifferentObject => myDifferentObject.IsInErrorState); public void CheckThisOb...
0eda0e68fcdf3f7d90d4d0f797e985dc12fed8ec
C#
Wungiel/RD_Colonization
/RD_Colonization/Code/DDA/AiSettingsChromosome.cs
2.75
3
using GeneticSharp.Domain.Chromosomes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RD_Colonization.Code.DDA { class AiSettingsChromosome : ChromosomeBase { public AiSettingsChromosome(int AiSettingsLenght) : base(AiSetti...
267bb56285cbda25188b434d926dad4d099bf6d1
C#
murugank/testbill
/BillingApi/Service/BillingandDueDayObj/BillingandDueDayService.cs
2.671875
3
using AutoMapper; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BillingApi.Data; using BillingApi.Dtos.BillingandDueDayDtos; using BillingApi.Model; namespace BillingApi.Service.BillingandDueDayServiceObj { public class ...
53d3afdf2a9fb1e4995d985ccc1f3f9b09ef7509
C#
Hruza/2DShooter
/Assets/Scripts/Level/ActionCamera.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Camera component for following targets /// </summary> [RequireComponent(typeof(Camera))] public class ActionCamera : MonoBehaviour { public Bounds cameraBounds; private Camera cam; private Bounds viewBounds; ...
3197601133f36ecf9bf46611cc5193ab580f61e9
C#
BluewireTechnologies/Bluewire.Common.Console
/Bluewire.Common.Console/Hosting/EntryPointInvoker.cs
2.546875
3
using System; using System.Reflection; using System.Runtime.Serialization; using System.Threading.Tasks; namespace Bluewire.Common.Console.Hosting { /// <summary> /// Shim for running a console app without showing a window. /// </summary> public class EntryPointInvoker : MarshalByRefObject ...
357dad4502865cf04709055e8d2744a336b0e3e4
C#
gkalnytskyi/DataStructures
/DataStructures/UnrolledLinkedListNode.cs
3.53125
4
using System; using System.Collections.Generic; namespace DataStructures { internal sealed class UnrolledLinkedListNode<T> { internal UnrolledLinkedListNode<T> previous; internal UnrolledLinkedListNode<T> next; private readonly int _halfCapacity; private int _size; int...
8baeff057d34449ec122e680b8d571fb2d8fff33
C#
Ribosome2/LeetCodeTest
/TestInConsoleApp/剑指Offer/InvokeMethodWith_OUT_KeyWord.cs
3.171875
3
using System; using System.Reflection; namespace 剑指Offer { public class InvokeMethodWith_OUT_KeyWord { public InvokeMethodWith_OUT_KeyWord() { String str = "aa"; object[] parmsObj = new object[] { str }; var testObj = new Tes...
108f85f104e0d6c8113445f1cf82009a3ffd0180
C#
michael-kokorin/dsl-engine
/Src/Common/Common/Extensions/ExceptionExtensions.cs
3.109375
3
namespace Common.Extensions { using System; using Common.Properties; /// <summary> /// Provides extension methods for <see cref="Exception"/>. /// </summary> public static class ExceptionExtensions { /// <summary> /// Formats the specified exception for good readability of output. /// </summary> /...
b6385abb53b72b611b82b8047e22a63255c3eac2
C#
Newgot/Job
/Test/Test/Form1.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace Test { public partial class Form1 : Form { MySql...
e4bd31c66a04adf63522185901ce889a352a2d31
C#
ByteChkR/ext-pp
/ext_pp_base/IDefinitions.cs
3.25
3
namespace ext_pp_base { /// <summary> /// Contains the Values on what is Defined as a Variable when Processing the text /// </summary> public interface IDefinitions { /// <summary> /// Set an array of definitions to true /// </summary> /// <param name="keys">The keys...
138ed65b233b4a402b65923841457be9cde0975f
C#
Hemanadh7/GlitchGarden2D
/Assets/Scripts/Shooter.cs
2.609375
3
using UnityEngine; using System.Collections; public class Shooter : MonoBehaviour { //public Variables. public GameObject projectile,Gun,myObject; //private Variables. private AudioSource shotAudio; private Spawner myLaneSpawner; private Spawner[] Spawners; private GameObject projectileParent; private Anim...
8d98570a71a6c73802a106c22e822385c88123c0
C#
wang5858/highwayns
/hrdesktop/dispatch/HPSWeiqi/WuziqiRobot.cs
3.171875
3
using System; using System.Collections.Generic; using System.Text; namespace HPSWeiqi { public class WuziqiRobot { //定义数独保存数组 private int[][] data = new int[19][]; //所用棋子1:黑,2:白 private int qizhi = 0; /// <summary> /// 五子棋机器人 /// </summary> /// <...
ccbffaf593b94f3ec03a9c0dcfbfcbdd23c44189
C#
Mirai-Code/Console_Clock
/Program.cs
3.828125
4
using System; using System.Threading; namespace Clock { class Program { static void Main(string[] args) { Console.WriteLine("Please set up time: "); Console.WriteLine(""); int hours = Convert.ToInt32(Console.ReadLine()); int minutes...
55fd65b2fc90691a29750839875ee35c859cd9a5
C#
manhnam2952002/Lab3
/Ex2/Program.cs
2.84375
3
using System; namespace Ex2 { internal class Program { public static void Main(string[] args) { Employee employee = new Employee("Nam", "Nguyen", "Ha Noi", 5, 250); Console.WriteLine(employee.ToString()); Console.WriteLine(employee.CalculateTheBonus(2)); ...
deee241c659668442e5716b0300333b1065f9f66
C#
andymasteroffish/Deck-Com
/deck-com/Assets/scripts/store/StoreManager.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml; using System; using System.IO; public class StoreManager { public int money; private int curLevel, curAreaNum; private string xmlPath; public List<StoreCard> cards; private int getCostForLevel(int level){ if...
233509bd93c72cac46fe5a51765ada1b3da219b2
C#
JulijanasJezov/clust-dis
/Clustering.Tests/Clustering/Helpers/StandardisationTest.cs
2.765625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Clustering.App.Api.Algorithms; using System.Collections.Generic; namespace Clustering.Tests.Clustering { [TestClass] public class StandardisationTest { [TestMethod] public void TestStandardisation() { ...
a14248c1c8eb584344a348789ba2b769abc02690
C#
lurienanofab/data
/Data/Controllers/ApiDepartmentController.cs
2.5625
3
using Data.Controllers.Api; using LNF; using LNF.Impl.Repository.Data; using System.Linq; using System.Web.Http; namespace Data.Controllers { public class ApiDepartmentController : DataApiController { public ApiDepartmentController(IProvider provider) : base(provider) { } public DepartmentMod...
00a2626677d35a28916531ad27406cac026a485d
C#
LaetitiaCR/Dev_Laeti
/SourceCommunity/WinsFormsAppCRUD/WindowsFormsCouchesSophie/Couches/ClassLibraryPersistanceSQLServer/PersistanceContact.cs
2.796875
3
using ClassLibraryDomainePersistance; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibraryPersistanceSQLServer { public class PersitanceContact : IPersita...
28c40299adb4f31059fc7a05c7ad9b2732666514
C#
emehiel/Horizon
/src/HSFScheduler/Checker.cs
2.640625
3
// Copyright (c) 2016 California Polytechnic State University // Authors: Morgan Yost (morgan.yost125@gmail.com) Eric A. Mehiel (emehiel@calpoly.edu) using System; using System.Collections.Generic; using HSFSystem; using HSFUniverse; //using Logging; namespace HSFScheduler { public static class Checker { ...
87fb866a563f7349a4dbd2edf81c49709027d8f6
C#
SashoG/TelerikAcademy
/C#PartI/02.DataTypesAndVariables/Strings/Strings.cs
2.84375
3
using System; class Strings { static void Main() { string var1 = "Hello"; string var2 = "World"; object conc; conc = var1 + " " + var2; Console.WriteLine(conc); string var3 = (string)conc; Console.WriteLine(var3); } }
6ba01a74326fb90c0bd14fcadf5a87db6c663896
C#
nvisal1/Task-Manager
/RestFunctionalTests/FunctionalTests/UpdateTaskTests.cs
2.765625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using RestSDKLibrary; using RestSDKLibrary.Models; namespace RestFunctionalTests { /// <summary> /// This class contains test for updating a task /// </summary> [TestClass] public class UpdateTaskTests { /// <summary> /// Atte...
199f89a14957cc35697c45ff1a6787fa554602ee
C#
HenriqueCaires/ignorance
/Ignorance/Create.cs
2.90625
3
using System.Configuration; using Microsoft.Practices.Unity; using Microsoft.Practices.Unity.Configuration; namespace Ignorance { /// <summary> /// Me taking a swing at the factory pattern. I /// thought the consolidation might make all this /// Inversion of Control go down a bit smoother. /// ...
c1db7e6b1d283959c15ebf167d559d0c52bac64d
C#
alex-anderson156/WildstarSpellWorks
/WildstarSpellWorks/ViewModels/SpellDatabaseDataContext.cs
2.640625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Windows.Markup; using WildstarSpellWorks.Data.Models; namespace WildstarSpellWorks.ViewModels { public i...
fd63d71013dda992ddd9676f77931d62dfbe1473
C#
durgaprsd04/code_learn
/Algorithms/Algorithms-II/Undirected-Graphs/DepthFirstSearch.cs
3.578125
4
using System; namespace Undirected_Graphs { public class DepthFirstSearch { private Graph graph; public bool [] isVisited; public int[] edgeTo; public int [] connected; public DepthFirstSearch(Graph graph) { this.graph=graph; isVisited ...
a664de99f47b327421d721e275aabc3d87054440
C#
krzysztofprz/Hackerrank
/aVeryBigSum.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace longArraySum { class Program { static long aVeryBigSum(int n, long[] ar) { long[] firstArray = ar; firstArray = new long[n]; ...
454fad7b0d1b7c77f8f6a5ca96e711a99f078210
C#
lbuczko/ThreeSeven
/Assets/Scripts/GameServer.cs
2.921875
3
using UnityEngine; using System.Collections; using System; using System.Collections.Generic; public class GameServer : IGameServer { protected List<IGrid> _grids; public GameServer() { _grids = new List<IGrid>(); } public void Register(IGrid grid) { if(_grids.Contains(grid)) ...
50d2e169fe92470e75ab36ff5180758782cb1f3a
C#
PatrickMCQ/EjerciciosCSharpProgramacion1
/Tarea15_NumeroMenorQue100/Tarea15_NumeroMenorQue100/Program.cs
3.75
4
using System; namespace Tarea15_numeroMenorQue100 { class Program15 { static int potencia; static string entrada; static float i, suma, numero; static double datos; static void Main(string[] args) { i = 0; //Iterador del bucle while del método cuadr...
3f974d6bb00b73d756d74c19cffc9f8922a9068c
C#
nnikos123/ziggy-pro-editor-svn-to-git
/trunk/pro-upgrade-editor/Tools/Sanford.Multimedia.Midi/Sequencing/Sequence.cs
2.578125
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; namespace Sanford.Multimedia.Midi { /// <summary> /// Represents a collection of Tracks. /// </summary> public enum FileT...
f1ce1c1ded90c75697d9136899578ddf6d9937f9
C#
fernandolp98/AuctionGame_Administrador
/AuctionGame_Admin/ChildMainVirtualBidders.cs
2.78125
3
using System; using System.Windows.Forms; namespace AuctionGame_Admin { public partial class ChildMainVirtualBidders : Form { public ChildMainVirtualBidders() { InitializeComponent(); } private void ChildMainVirtualPlayers_Load(object sender, EventArgs e) {...
54fcb8893f9b3da4563c5a353c63ef50d3ce92ff
C#
VsIG-official/Study-Projects
/Unity/More_C#_Programming_and_Unity/1_week/Exercise4/Program.cs
3.453125
3
using System; using System.Collections.Generic; using ConsoleCards; namespace Exercise4 { class Program { static void Main(string[] args) { int top = 5; int bottom = 0; for (int i = bottom; i <= top; i++) { Console.WriteLine(i); } //problem 2 Deck deck = new Deck(); List<Card> hand ...
26898148be0c5f2d6a14c8d868311584194832ab
C#
foreverlearner/CSharpTestSolutions
/TaskTest/AsyncFlowTest/Program.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace AsyncFlowTest { class Program { static void Main(string[] args) { // Program will end before MainAsync() complete. //Main...
4029140dd00929d3a656559c9ae49fb58f0df43d
C#
EnableIrelandAT/Coimbra
/ProjectCoimbra.UWP/Project.Coimbra.Midi/DryWetMidiIntegration/NotePlaybackEventMetadata.cs
2.515625
3
// Licensed under the MIT License. namespace Coimbra.DryWetMidiIntegration { using System; using Melanchall.DryWetMidi.Devices; using Melanchall.DryWetMidi.Interaction; /// <summary> /// A class representing event metadata for note playback events. /// </summary> public sealed class NotePl...
c6a0b966c704f9a0ca5698906304d545a23644e8
C#
Jasmine79/orai-2019-11-28
/Form1.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace LatvanyossagokApplication { public partial cl...
c9a39925ef5c39247a0f51392b4c215f72c73723
C#
marcelovargas/ewave-livraria-pleno-II
/Livreria/LivreriaWeb/Controllers/API/InstituicoesController.cs
2.75
3
namespace LivreriaWeb.Controllers.API { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Entities; using Infrastructure.Config...
66a71ab4aac77eb622ecf613e4bf297abe64ef61
C#
jonas12/SD-LI61D-1112
/Recursos/Exemplos/LockThis/Locks/Program.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; // More information: http://www.albahari.com/threading/part2.aspx namespace Locks { class SomeClass { private int state = 0; private object mylock = new object(); Thread t =...
4397810a2293a2d030a56dbfb509077049147f41
C#
johanjonsson1/aoc
/AoC.2018/Day25.cs
3.078125
3
namespace AoC2018; /* --- Day 25: Four-Dimensional Adventure --- The reindeer's symptoms are getting worse, and neither you nor the white-bearded man have a solution. At least the reindeer has a warm place to rest: a small bed near where you're sitting. As you reach down, the reindeer looks up at you, accidentally ...
7e147ab4f670e4140995f3d118d1f8bd6db2f6d1
C#
froddo/Software-University-HomeWorks
/C# PART1 HOMEWORK/Loops/CalculateGCD/GCD.cs
4.0625
4
/*Write a program that calculates the greatest common divisor (GCD) of given two integers a and b. Use the Euclidean algorithm (find it in Internet). Examples: a b GCD(a, b) 3 2 1 60 40 20 5 -15 5 */ using System; using System.Collections.Generic; using System.Linq; using Syste...
9c7aca690d8e10bb544678e855e372391b68df7e
C#
calemcta104/BoxField
/BoxField/Screens/GameScreen.cs
3
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Security.Cryptography; namespace BoxField { public partial class GameScreen : UserCont...
48a772fcdb0ad9f36a67fc47fc337619bc50af83
C#
flagbug/AngleSharp
/src/AngleSharp/Css/Values/Shape.cs
3.453125
3
namespace AngleSharp.Css.Values { using AngleSharp.Dom.Css; /// <summary> /// Represents a CSS shape. /// https://developer.mozilla.org/en-US/docs/Web/CSS/shape /// </summary> public sealed class Shape { #region Fields readonly Length _top; readonly Length _right; ...
838982fc0f3ae4965e00d2d65fa8f7ce082d0c3a
C#
alex-held/AutoFixture
/Src/TestTypeFoundation/PropertyHolder.cs
2.75
3
using System.Reflection; namespace TestTypeFoundation { public class PropertyHolder<T> { public T Property { get; set; } public void SetProperty(T value) { this.Property = value; } public static PropertyInfo GetProperty() { return typeo...
930e58bdb53e98d55fa47186e383246c3e1046ab
C#
TonitBiba/Artificial-Intelligence
/ArtificialIntelligence/ItDFS.cs
3.40625
3
using System; using System.Collections.Generic; using System.Text; namespace ArtificialIntelligence { public class ItDFS { public int NQuens { get; set; } public int PlacedQuens { get; set; } public int[,] table { get; set; } public ItDFS(int NQuens, int[,] table) { ...
d4d9ac39f33396f71a0bb4aff79da3eebad0875e
C#
museystem31/DollyCircus
/Assets/Scripts/Timer.cs
2.828125
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Timer : MonoBehaviour { public int playtime = 0; int sec = 0; int min = 0; int addMinLabel = 0; [SerializeField] private Text displayTime; // Use this for initialization void Start() { Star...
bdcdbde68c80ce8b22a71921fa5c78cd83f8b32a
C#
k1n9bur93r/CordChrisis-Senior-Design
/rhythymGameUnity/Assets/Scripts/BeatLines.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BeatLines : MonoBehaviour { int beats = 100; int beat_length = 4; int track_width = 4; float line_width = 0.2f; List<GameObject> lines; // Start is called before the first frame update ...
1886d5b8334fcdab53ff933a9507f45f63093bda
C#
rezayas/CSRandomVariateLib
/CSRandomVariateLib/CSRandomVariateLib/Poisson.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; namespace RandomVariateLib { public class Poisson : RVG { private double _rate; // instantiation public Poisson(string name, double rate) : base(name) { _rate = rate; } ...
24b7d8388d85650bca11875d137c4fa8fd3785af
C#
kimyoungsun3/HellFireServer
/FreeNet/CConnector.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; namespace FreeNet { /// <summary> /// Endpoint정보를 받아서 서버에 접속한다. /// 접속하려는 서버 하나당 인스턴스 한개씩 생성하여 사용하면 된다. /// </summary> public class CConnector { public delegate void VOID_FUN_TOKEN...
23659412fa25d2966d58ccd383403ee7b2f880ed
C#
Vengi58/DistanceMonitoring
/DistanceMonitoring/DistanceMonitorTests/DistanceMonitorTest.cs
2.625
3
using DistanceMonitoring; using DistanceMonitoring.Controller; using DistanceMonitoring.Controller.Adapters; using DistanceMonitoring.Model; using DistanceMonitoring.View; using Moq; using NUnit.Framework; using System; using System.IO; using System.Text; using System.Text.Json; namespace DistanceMonitorTests { pu...
69860941bdcc31a4831772a782b5c0ce9cd2e9b9
C#
huangyc2016/Demo2019
/QuartzApp/LogHelper.cs
2.765625
3
using NLog; using NLog.Config; using NLog.Targets; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QuartzApp { public class LogHelper { public static readonly object _lockobj = new object(); /// <summary> /// 初始化日志 /// </summary>...
119204f78ea54be0d03aa06220c7408db619c379
C#
yaaawner/Lab1_core
/Lab1_core/Program.cs
3.28125
3
using System; using System.Numerics; namespace Lab1_core { struct DataItem { public Vector2 Vector { get; set; } public Complex Complex { get; set; } public DataItem(Vector2 vector, Complex complex) { Vector = vector; Complex = complex; } ...
005cb0117932945a1b7437aa6145e8ccdf64ab58
C#
godotto/advent-of-code-2020
/Day 4/Program.cs
3.21875
3
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; namespace Day_4 { class Program { static void Main(string[] args) { var splittedInput = System.IO.File.ReadAllText("input.txt").Split("\n\n"); Console.Wr...
5f762a56ee0bff65fe2833f0eacca3c85d7a8c93
C#
Tkwes/NPC-completo
/Assets/AI.cs
2.640625
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; using UnityEngine.AI; using Panda; namespace Panda.Examples.Shooter { public class AI : MonoBehaviour { public Transform player; public Transform bulletSpawn; public Slider healthBar; ...
b7c71323651e7604404f815b24beaed9f73e4dfb
C#
G0m0r0/Algorithms
/Cracking the code interview 6th edition/CheckIfStrIsPermutationOfAnother/Program.cs
3.9375
4
using System; using System.Collections.Generic; using System.Linq; namespace CheckIfStrIsPermutationOfAnother { class Program { static List<string> allPermutations = new List<string>(); static void Main() { //Check Permutation: Given two strings, write a method to decide if...
b638ed099bd113d9f0b0965e271daf5246390d67
C#
SocoStefan/Cinema
/FormLogin/FormLogin/FormListaBilete.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; namespace FormLogin { public partial class FormListaBilete : Form { FormAngajat for...
4181f1ac9eb8662b4c7363a89e58ffc1b18d1727
C#
Tattersson/digitrade-tattersson
/Taulukkoharjoitukset/Array 3/Array 3/Program.cs
3.609375
4
using System; namespace Array_3 { class Program { static void Main(string[] args) { //Assignment 1 int[] ArrayOfNumbers = new int[10]; intro(); Console.WriteLine("\nTask 1 - Array 3"); getArrayOfNumbers(ref ArrayOfNumbers, 0, 20); ...
08a6f0ba752c06c3ac307717aee6c41709e0132b
C#
Aevin1387/LocalChat
/LocalChat/Message.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LocalChat { public class Message { public String messageStr { get; set; } public User sndUser { get; set; } public DateTime time { get; set; } public static char[] setupPacket(String com...
baf5639ee1d42bcdb71381a4616572a681eb93f9
C#
WorldOfMogwais/WoMFramework
/WoMFramework/Game/Random/Dice.cs
3.34375
3
using System.Collections.Generic; using System.Linq; using WoMFramework.Game.Enums; namespace WoMFramework.Game.Random { public class Dice { private System.Random random; /// <summary> /// /// </summary> /// <param name="shift"></param> public Dice() {...
eca20f4ab35d1edfcc4c7f3aa2c66b6f7101f40d
C#
ClosedXML/ClosedXML
/ClosedXML.Examples/Columns/DeletingColumns.cs
2.984375
3
using System; using ClosedXML.Excel; namespace ClosedXML.Examples { public class DeletingColumns : IXLExample { #region Variables // Public // Private #endregion #region Properties // Public // Private // Override #endregion ...
c97108095f9eac6063c29e2e1bc35ea7f216e15b
C#
SneakBug8/mathbattle
/src/SearchingSystem/GameSearcher.cs
2.84375
3
using System.Collections.Generic; using mathbattle.utility; using mathbattle.config; namespace mathbattle.SearchingSystem { public class GameSearcher { public List<SearchingPlayer> SearchingPlayers = new List<SearchingPlayer>(); public List<SearchingParty> SearchingParties = new List<Searching...
ea334ea059a7ba9adccbc5ebe1f54dc9df70d7f2
C#
VitViBest/EpamLesson4Dz
/EpamLesson1Dz2/EpamLesson1Dz2/Program.cs
3.21875
3
using EpamLesson1Dz2.Abstracts; using System; using System.Collections.Generic; using System.Linq; using EpamLesson1Dz2.Models; namespace EpamLesson1Dz2 { class Program { static Reader<Person,ConsoleWriter> Creating() { Reader<Person, ConsoleWriter> reader; List<Person>...
b8227e13d7bd863cd56cf17a3add4f24c3d30498
C#
alvahdean/ASCOM.NETStandard
/Libraries/Drivers/ASCOM.Simulator.Shared/AltAz.cs
3.125
3
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace xASCOM.Simulator { internal class AltAz : IEquatable<AltAz> { private double _alt; private double _az; public static double NormalizeAltitude(double value) { ...
9cc9237de1400f328920e752638bec6c4ba0ae29
C#
Mateqo/Survival
/MateuszBartkowiakHomework2/Survival/Ammo.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MateuszBartkowiakHomework2 { // Klasa Ammo dziedzicząca po Item public class Ammo : Item { /// <summary> /// Przesłonięcie metody (dodan...
a38c895d1a432ebabafa2c71ea4a4fc74aef4615
C#
jkriddle/bitsie-shop
/Web/Src/NBitcoin/NBitcoin/KeyId.cs
2.703125
3
using NBitcoin.DataEncoders; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace NBitcoin { public class TxDestination { string _Dest; public TxDestination() { _Dest = "00"; } public TxDestination(byte[] v...
3a0a75859ddc4d14a3398de1a5f86e6e4a7bcf41
C#
kubzoey95/Projekt-WPA
/ConsoleApp2/Item.cs
2.609375
3
namespace ConsoleApp2 { public class Item { string description; public Item() { description = ""; } public Item(string str) { description = str; } public string GetDescription() { return description; ...
cb27cb0f68cccc33bdf00d74ecaff1465c8de800
C#
g-yonchev/Bullets
/Source/TexasHoldem.Logic/GameMechanics/InternalPlayer.cs
2.84375
3
namespace TexasHoldem.Logic.GameMechanics { using System.Collections.Generic; using TexasHoldem.Logic.Cards; using TexasHoldem.Logic.Players; internal class InternalPlayer : PlayerDecorator { public InternalPlayer(IPlayer player) : base(player) { this.Cards...
ed32105d749ae428c51c780d49249654157fb08c
C#
psp87/Chess
/src/Services/Chess.Services.Data/Models/Pieces/Contracts/IPiece.cs
2.546875
3
namespace Chess.Services.Data.Models.Pieces.Contracts { using System; using Chess.Common.Enums; public interface IPiece : ICloneable { string Name { get; } Color Color { get; } char Symbol { get; } Position Position { get; set; } bool IsFirstMove { get; set...
b9a6886c1b374ad3e4944ef6ef8449e633e88d63
C#
Jorjo77/InterfacesAndAbstraction
/InterfacesAndAbstraction/Program.cs
3.09375
3
using InterfacesAndAbstraction.Contracts; using System; namespace InterfacesAndAbstraction { class Program { static void Main(string[] args) { //Абстракция - да използваме само информацията която ни интересува в даден контекст и забравяме маловажната за дадения контекст; Обратното ...
fdd62828d06e92897d42bf9aa745b198f42ad97f
C#
OpenStreetMapSC/MergeAddressesAndBuildings
/MergeAddressesAndBuildings/SpatialUtilities.cs
3.1875
3
using System; using System.Collections.Generic; using System.Text; namespace MergeAddressesAndBuildings { public class SpatialUtilities { /// <summary> /// Compute distance between this coordinate and another point on the earth when /// the two points are close to each other (within ...
a3d45d73079795c0db88af5632783a4c7c563336
C#
dsplaisted/NuGetPackageExplorer
/PackageExplorer/Wpf/PublishUrlValidationRule.cs
2.859375
3
using System; using System.Globalization; using System.Windows.Controls; namespace PackageExplorer { public class PublishUrlValidationRule : ValidationRule { public override ValidationResult Validate(object value, CultureInfo cultureInfo) { var stringValue = (string) valu...
6119ad37d0a924d87cdd6139bacc334067a4428a
C#
tjlemoso/BezierToy
/BezierToy/Model/BezierCurve.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BezierToy { public class BezierCurve : INotifyPropertyChanged { pub...
103a9efbcc189dba12b76470a7ddb82bc6f33b33
C#
hazama-yuinyan/Expresso
/Expresso/Analysis/ClosureInspecter.cs
2.515625
3
using System; using System.Collections.Generic; using ICSharpCode.NRefactory.PatternMatching; namespace Expresso.Ast.Analysis { partial class TypeChecker { /// <summary> /// This class is responsible for marking captured identifier nodes. /// </summary> public class ClosureInspecter : IAst...
61af05024f1bf676e6e524f8c39475143e98f4cc
C#
doraparmac/Projekti
/SudokuWebSite/SudokuWebSite/SudokuWebSite/App_Code/Number.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// </summary> public class Number { private int num; //private class variables public Number() { num = 0; //initiate value to 0 } public int getNumber() { return num; //return ...
af2c8bd65e7dbf2418b8b09338449e243e5c88d8
C#
Tapirlo/FinsaForever
/FinsaWeb/Models/Core/RepositoryCorsiTest.cs
2.6875
3
using System; using System.Collections.Generic; using CorsiOnline.Models.Database; using System.Linq; namespace CorsiOnline.Models.Core { public class RepositoryCorsiTest:ICorsiRepository { private List<Corso> corsi; public RepositoryCorsiTest() { CreaCorsiAdMinchiam(); ...
57002f13276ea36fa6d5b1f982d15795ad2c211a
C#
shendongnian/download4
/code4/757187-18438849-45979755-8.cs
3.09375
3
public static class DataExtensions { public static string GetSafeString(this SqlDataReader reader, int colIndex) { if (!reader.IsDBNull(colIndex)) return reader[colIndex].ToString(); else return string.Empty; } }
28210b3364109b8513fa3fee0697809e4deccbcd
C#
stefism/Projects
/03 C# OOP-May-2019/EXAMS/11August2019-ViceCity-Daskal/ViceCity/Models/Players/Player.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; using ViceCity.Models.Guns.Contracts; using ViceCity.Models.Players.Contracts; using ViceCity.Repositories; using ViceCity.Repositories.Contracts; namespace ViceCity.Models.Players { public abstract class Player : IPlayer { private str...
ded9be8d564ee7c33d6803f5e3107ba49faf2b77
C#
pedro-filho-81/C-sharp
/LivroC#ComoProgramar/Capitulo3/Exercicios/DiaOuFimDeSemana/Program.cs
3.796875
4
using System; using static System.Console; namespace DiaOuFimDeSemana { class Program { /* 3.16 (Dia da semana / fim de semana) Escreva um aplicativo que peça ao usuário para inserir um número inteiro e exibe as palavras "dia útil" se a entrada for de 1 a 5 ou "fi...
3956d10cc22ef735db16966fbbdec40333ddb1d9
C#
j1rjacob/TMFftp
/TMF ftp/Services/BulkInsert.cs
2.65625
3
using System; using System.IO; using TMF_ftp.Imports; namespace TMF_ftp.Services { public class BulkInsert { public BulkInsert() { } public void Perform(string sourcePath) { try { Console.WriteLine("Process Bulk Insert."); ...
3fc716ceadf79f168234b09e392841a6e33b6078
C#
apivovarchik/SheetSetManager
/AcSmXml.cs
2.53125
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Xml; using System.ComponentModel; namespace SheetSetManager { //Source http://www.theswamp.org/index.php?topic=46497.0 public class AcSmXml : XmlDocument { static readonly byte[] encode = new byte[] { ...
f4fea4380829f3a9ca00e703694622b73dcb80f9
C#
lucashpacheco/Demmo-WhatsAppService
/Demmo-WhatsAppService/Service/Zenvia/ZenviaConfiguration.cs
2.578125
3
using System; using System.Collections.Generic; namespace Demmo_WhatsAppService.Service.Zenvia { public class ZenviaConfiguration : IZenviaConfiguration { /// <summary> /// Define o id do template de acordo com a campanha e fluxo. /// </summary> private readonly static Dictiona...
06dc0a5c79df44b6fb2366f2f7b167d9bc7ae388
C#
Anifuck/CurrencyRater
/CurrencyRater/Services/CurrencyRateGetter.cs
2.703125
3
using CurrencyRater.Enums; using CurrencyRater.Models; using CurrencyRater.Providers.HttpProvider; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using System.Threading.Tasks; namespace CurrencyRater.Services.CurrencyRateService { public class CurrencyRateGetter : ICurrencyRateGetter { ...
5a59c527152bf45ec3a3d2b4ab1d32b7169c9fa5
C#
jgowdy/ImageSharp
/src/ImageSharp.Drawing/Brushes/Brushes.cs
3.21875
3
// <copyright file="Brushes.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> namespace ImageSharp.Drawing.Brushes { using ImageSharp.PixelFormats; /// <summary> /// A collection of methods for crea...
ecd195ab6e4261e6ab358552266412db16c1173d
C#
jeffason1997/IPR
/IPR/Server/Session.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Security; using System.Net.Sockets; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; using Client; using Newtonsoft.Json; namespace IPR { p...
2af265bbf9fb5c61005df9e37b285446ab9e9984
C#
MoamenSoroor/DesignPatternsInCSharp
/DesignPatterns/Creational/SimpleFactoryPattern/SimpleFactoryPattern.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Environment; namespace Patterns.Creational.SimpleFactoryPattern { public class SimpleFactoryPattern { public static void Test() { var factory = new...
1407810b43f874c3e9af5032897aa1848192d21d
C#
maranmaran/ProductService
/Source/Common/Exceptions/FetchException.cs
2.5625
3
using System; namespace Common.Exceptions { public class FetchException : Exception { public FetchException(string entity, Exception ex = null) : base($"Failed to fetch {entity}. Something went wrong.", ex) { } } }
85ebba5a1b50dfe0af77c3c23b54ff59adb4a7cd
C#
alex-cavalleri/OpenVentilatorRegistry
/VentilatorRegistry.API/Repositories/VentilatorInMemoryRepository.cs
2.9375
3
using System.Collections.Generic; using System.Linq; using VentilatorRegistry.VentilatorAggregate; namespace VentilatorRegistry.API.Repositories { public class VentilatorInMemoryRepository : IVentilatorRepository { public IEnumerable<Ventilator> AllVentilators => _AllVentilators.AsEnumerable(); ...
01e13080ef8f7254f4fbfb94f81cf7c68aba96f0
C#
IndustrialNetworkandAutomation/Industrial-Interconnect-Demo-System
/animationDemo/animationDemo/DataFolder/uavData.cs
2.921875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace animationDemo.DataFolder { public class uavData : INotifyPropertyChanged { #region Fields public event PropertyChangedEventHandler Property...
2d1dd225edb18b31e7a5dc5afa293d2c923ea67c
C#
renatobiohazard/TADS2014
/2015.1/POO/Lista04/Ex02/Program.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ex02 { class Program { static void Main(string[] args) { IPessoa[] x = new IPessoa[5]; x[0] = new Aluno("A", DateTime.Parse("01...
099d755a2490d104f8912240e8cb867e62ffdb94
C#
jamesbrayton/SimpleCircuitBreaker
/SimpleCircuitBreaker.Tests/RetryExtensionsTests.cs
2.78125
3
// ----------------------------------------------------------------------------- // <copyright file="RetryExtensionsTests.cs" company="none"> // Copyright (c) 2016 Microsoft Public License. // </copyright> // <summary> // This file contains the RetryExtensionsTests class. // </summary> // ---------------------...
d5f90899fea3b596f33bf093a6f7895ec091c090
C#
EmmanuelLeguizamon/EjercicioVII
/EjercicioVII/Program.cs
2.59375
3
using System; namespace EjercicioVII { class Program { static void Main(string[] args) { Console.WriteLine("Bienvenido, ingresa tu nombre acá: "); string nombre = Console.ReadLine(); Console.WriteLine($"Hola {nombre}"); Console.ReadKey()...
6882acd6ab0071d8a95a80e5fead0375afd3f231
C#
duncanobunge/LinkedListDemo
/LinkedListDemo/Program.cs
4.375
4
// A program that removes Charcter values that are repeated more than 2 times in unsorted single linked list using System; namespace LinkedListDemo { class Program // the class declaration { Node head; // head of list /* Linked list Node*/ class Node { public cha...
ff5ae06d6f7502b03426f8421340ed447e0b7af5
C#
ITsvetkoFF/Kv-013
/DevelopGitHub/GitHubExtension/GitHubExtension.Security.WebApi/Mappers/UserMapper.cs
2.5625
3
using GitHubExtension.Security.DAL.Identity; using GitHubExtension.Security.WebApi.Models; namespace GitHubExtension.Security.WebApi.Mappers { public static class UserMapper { public static User ToUserEntity(this GitHubUserModel model) { var user = new User() { ...
18e9547ac9f53245d1804cff51bfb3fe79500cfb
C#
nicolaipischel/comprehensibilityChecker
/comprehensibilityChecker.Contracts/Dtos/ComprehensibilityIndexDto.cs
2.625
3
namespace comprehensibilityChecker.Contracts.Dtos { public class ComprehensibilityIndexDto { public ComprehensibilityIndexDto( double averageSentenceLength, double averageWordLength, int wordCount, double comprehensibility) { Averag...
3a3cb58eacca5f36797fcbda241f6437c52041e6
C#
UweGruenefeld/UnityNetworkModel
/client/unity/Assets/Scripts/NetworkModel/Model/Serializer.cs
2.6875
3
/** * * Serializer Script of Unity Network Model * * @file Serializer.cs * @author Uwe Gruenefeld, Tobias Lunte * @version 2020-05-05 * **/ using System; using UnityEngine; namespace UnityNetworkModel { /// <summary> /// Handles conversion between serializable and non-serializable types of Components ...
5d4a8a51d49d638e70d1d09a5510215619cca96b
C#
thangnn91/topcourse
/CMS.Topcourse/Topcourse.Utility/UrlUtils.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Topcourse.Utility { public class UrlUtils { private static String[] aEncode = "0|1|2|3|4|5|6|7|8|9|-".Split(new Char[] { '|' }); private static String[] aDecode = "a|b|c|d|e|f|g|h|i|j|k".Split(new ...
08860c5368dda2327a26fe7de59cf626a5c8f3ad
C#
openblack/bw2-tools
/src/app/chlextract/Program.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices; using System.Collections; namespace ScriptReader { class Program { public static int Main(string[] args) { if (args.Length < 2) ...
a3aa939dca26b1c75a0e6bef4a13fabb9f9a2731
C#
leon-joel/AtCoderCS
/ContestsNetCore/ABC173/D.cs
2.96875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Numerics; namespace ABC173.D { using static Util; using static Math; public class Solver : SolverBase { public void Run() { var N = ReadInt(); var AA = ReadIntArray(); A...
ccc80718b3f8d89f05a96e06515fbec1ce1f2bb3
C#
bharatmane/DesignPatterns
/DesignPatterns/CreationalPatterns/FactoryMethodPattern/EmployeeService/ContractEmployeeService.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterns.CreationalPatterns.FactoryMethodPattern.EmployeeService { public class ContractEmployeeService : BaseEmployeeService { public override EmployeeType GetEmployeeTy...