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
ccead624c62a65b224be1fb99c72514220dda614
C#
MernokElektronik/Booyco-BHU-Geofence-View
/Booyco HMI Utility/FileExplorer/FileEntry.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Booyco_HMI_Utility { class FileEntry : INotifyPropertyChanged { private uint _number; public uint Number {...
a063faa94d3d4b85b34370cbc5411b185defefab
C#
DanielMaya94/ejercicioEntrevista
/Interview/Pages/ResultsPage.cs
2.53125
3
using Interview.Utils; using NUnit.Framework; using OpenQA.Selenium; using SeleniumExtras.PageObjects; using System; using System.Collections.Generic; using System.Text; namespace Interview.Pages { class ResultsPage : Common, Interface { private IWebDriver driver; [FindsBy(How = How.XPath, Us...
fad9e339e2dc65cf09909cd6c9628c11e87877d0
C#
wertrain/binance-trader-cs
/BinanceTrader/BinanceTrader/Logging/Logger.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BinanceTrader.Logging { /// <summary> /// ログ管理 /// </summary> public class Logger { /// <summary> /// ログ情報 /// </summary> public class LogIn...
4994da6386a98a937edb46bbae12493886c38400
C#
KaimaChen/Grid
/Project/Assets/Scripts/Utils/UnionFind.cs
3.15625
3
using UnityEngine; using System; /// <summary> /// 并查集 /// </summary> public class UnionFind { const int c_reserveSize = 1000; //数组初始大小 const int c_addSize = 100; //每次数组改变大小时会增加的大小 int[] mParent; //用数组而不是List,是为了加快速度,因为List需要经常去加item来保证Index对的上 /// <summary> /// 指定容量构造 /// </summary> ///...
0e8ac61de09cdd01e0b5c63cc0db5a9c15060cd4
C#
ljbdelacruz/LivingWaterTest
/ClassLibraryRepository/Classes/Database/DatabaseTables/LivingWater/Products.cs
2.8125
3
using System; using System.Collections.Generic; namespace ClassLibraryRepository { public class Products : InformationDisplay { #region properties public int id { get; set; } public string productName { get; set; } public double productPrice { get; set; } public int numtype { get; set; } //integer to iden...
10f1aaa5fac7c369dcd11f08ae8311d811784bdb
C#
BilyanaBorislavova/Programming-Fundamentals-Extended
/Arrays and Methods - Exercises/17. Altitude/17. Altitude/Program.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _17.Altitude { class Program { static void Main(string[] args) { List<string> altitude = Console.ReadLine() .Split(new char[] { ' ' }, Strin...
0607893ff7e8644737ff5583c9067a7dcf301a67
C#
Z2HShawn/Biba_Reporter
/Assets/BIBA_REPORTER/Script/ScreenShot.cs
2.5625
3
using UnityEngine; using System.Collections; using System.IO; public class ScreenShot : MonoBehaviour { public Camera targetCamera; public Texture2D screenShot; public Rect rect; // Use this for initialization void Start () { //CaptureCamera(targetCamera,rect); } // Update is called once per frame voi...
ad4744cf69e49c658f386e49b39aaa3bef461769
C#
prasadbhosetti516/new-trainee
/delegate/del typoes/ConsoleApp1/ConsoleApp1/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { List<Student> lst = new List<Student> { new Student{Sid=1,Sname=...
bfd3eb3aa53c45f990974706a0910ba932937a70
C#
medeaohm/Telerik-Academy
/HQC/13-Refactoring/Rotating-Walk-in-Matrix/MatrixUtils.cs
3.5
4
namespace Rotating_Walk_in_Matrix { public class MatrixUtils { private const int DIRECTIONS_LENGHT = 8; private static readonly int[] DIRECTION_X = { 1, 1, 1, 0, -1, -1, -1, 0 }; private static readonly int[] DIRECTION_Y = { 1, 0, -1, -1, -1, 0, 1, 1 }; public static void GetNe...
935be1111dd3339984766349e5ae7f372c57e1ba
C#
floppp/Reversi
/Program.cs
3.125
3
using System; using System.Collections.Generic; namespace Reversi { /* Enumeraciones a utilizar en todo el 'namespace' */ public enum Jugadores { PERSONA = 1, CPU, ERROR }; public enum Color { BLANCO = 219, NEGRO = 176, VACIO = 000 }; /// <summary> /// Clase para inicial el juego, punto de entrad...
c78897118e42f30523cf07706c1b9293456116db
C#
mfdiaspinto/PrimaveraStoreServer-Demo
/PrimaveraStoreServer/Services/AuthenticationProvider.cs
2.53125
3
using System; using System.Globalization; using System.Net.Http; using System.Threading.Tasks; using IdentityModel.Client; namespace PrimaveraStoreServer.IntegrationSample { public class AuthenticationProvider { #region Members private string clientId; private string clientSecret; ...
32e179059e6c1fb3a0de37c9f2b7e69ef693533b
C#
eastsideweb/experimental
/pzo/PuzzleOracleV0/PuzzleOracleV0/OracleStatusLogger.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Text.RegularExpressions; using System.Diagnostics; namespace PuzzleOracleV0 { class OracleSubmissionLogger : IDisposable { const String META_PUZZLE_ID = "0"...
b86b8a937bb84f2294763475996ac6b19eb30fb7
C#
KenBonny/CrossingTheGenericsDivide
/KenBonny.CrossingTheGenericsDivide/CompositionWithFactoryGenericProcessor.cs
2.78125
3
using System; using System.ComponentModel.Design; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace KenBonny.CrossingTheGenericsDivide.CompositionWithFactory { internal static class CompositionWithFactoryGenericProcessor { public static void Process(IPolicy[] policies) ...
6fbb938a3210c36a424d30a912d4d9fafa240f97
C#
jtlai0921/2015-
/2015範例程式/ch05/For3/Form1.cs
2.625
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 For3 { public partial class Form1 : Form { public Form1() { ...
e31c92c87f25b675590c3f3d0e15f17a8204437a
C#
jeremiaslmf/EventosIO
/src/Eventos.IO.Infrastructure.Data/Repository/EventoRepository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using Dapper; using Eventos.IO.Domain.Models.Eventos; using Eventos.IO.Domain.Models.Eventos.Repository; using Eventos.IO.Infrastructure.Data.Context; using Microsoft.EntityFrameworkCore; namespace Eventos.IO.Infrastructure.Data.Repository { publi...
541c0cf69b8526d8eea0b495adc7be9c9c44128f
C#
kagurazakayashi/Taskbar-Meters
/TaskbarMemoryMeter/App.xaml.cs
2.828125
3
using System; using System.Windows; using Microsoft.VisualBasic.Devices; using TaskbarCore; namespace TaskbarMemoryMeter { public partial class App : Application { private ComputerInfo _computerInfo; private ulong _totalPhysicalMemory; protected override void OnStartup(StartupEventArgs e) { base.OnSta...
20dd81fac4748478deed64651e07644df770e9fa
C#
christiansj/RamblerAcademyAPI
/RamblerAcademyAPI/GraphQL/GraphQLTypes/SeasonType.cs
2.671875
3
using GraphQL.Types; using RamblerAcademyAPI.Contracts; using RamblerAcademyAPI.Models; namespace RamblerAcademyAPI.GraphQL.GraphQLTypes { public class SeasonType : ObjectGraphType<Season> { public SeasonType(ISemesterRepository semesterRepository) { Field(s => s.Id, type: typeof(I...
a9fc2a51cb105dcb3f13387ceae6c541752b5f4c
C#
bobby-dq/LeetCodeSolutions
/PascalsTriangle/Program.cs
3.5
4
using System; using System.Collections; using System.Collections.Generic; namespace PascalsTriangle { class Program { public IList<IList<int>> Generate(int numRows) { IList<IList<int>> pascalsTriangle = new List<IList<int>>(); if (numRows == 0) { ...
0adaf3943c3a6be4b268c2b10958259ab80c75fc
C#
yatagarasu25/SystemEx
/src/StringEx.cs
3.21875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace SystemEx { public static class StringEx { [Obsolete("Use IsNullOrEmpty instead")] public static bool null_(this string str) { return string.IsNullOrEmpty(str); } [Obsolete("Use IsN...
ec2b7602e7fc1c96f5a521fada151414826d20fb
C#
gaborremenyi/MoviesAPI
/MoviesAPI/Models/Rating.cs
2.96875
3
namespace MoviesAPI.Models { public class Rating { public int RatingId { get; set; } public int UserId { get; set; } public int MovieId { get; set; } public int Value { get; set; } public void Update(Rating rating) { this.Value = rating.Value; ...
71ac6a33e8aa341feee852752dbd931b252e13c5
C#
scummins78/MVC-blog-site
/Blog/ExceptionHandling/HandleApiException.cs
2.640625
3
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Filters; using NLog; namespace Blog.ExceptionHandling { public class HandleApiException : ExceptionFilterAttribute { private readonly Logger logger = LogManager.GetLogger("BlogApiErro...
d4a3e687d3fa47f780b06f0303ed60c0b2156d6e
C#
byvar/raymap
/Assets/Scripts/Libraries/LibGC/Texture/GcTextureFormatCodecIA4.cs
2.96875
3
namespace LibGC.Texture { /// <summary>IA4 (4 bits intensity / 4 bits alpha) pixel format.</summary> class GcTextureFormatCodecIA4 : GcTextureFormatCodec { public override int TileWidth { get { return 8; } } public override int TileHeight { g...
054c964335d95578240515cc14ebc03c712ae027
C#
zhenyaracheva/TelerikAcademy
/DSA/ExamPreparation/DSA2013/ShoppintCenter/Program.cs
3.203125
3
namespace Problem5___ShoppingCenter { using System; using System.Collections.Generic; using System.Text; using System.Linq; using Wintellect.PowerCollections; public class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); ...
91932fbec3fe862f7f472d7698ee8326f50ad85a
C#
lrfuai/csharp_BrazoRobot
/RobotTaTeTi/CapaFuncional/Brazo.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InterfacesComunicacion; using System.Threading; namespace CapaFuncional { public class Brazo { public SortedList<string, Articulacion> articulaciones { get; set; } private static InterfaceComunicacion ...
026ae1e503b027cce61bd5911e258efc942f61dd
C#
DarrellMozingo/SimplerArchitecture
/src/SimplerArchitecture.SlowTests/Builders/EmployeeBuilder.cs
2.75
3
using NHibernate; using SimplerArchitecture.Domain; namespace SimplerArchitecture.SlowTests.Builders { public class EmployeeBuilder { private readonly Employee _newEmployee = new Employee { FirstName = "default-first", LastName = "default-last" }; public Employee Build(ISession session) { session.Save(_ne...
84821272da00930f02cf5c64928c06b065fef94c
C#
Garciat/HttpTwo
/HttpTwo/Frames/SettingsFrame.cs
2.5625
3
using System; using System.Collections.Generic; namespace HttpTwo { public class SettingsFrame : Frame { public bool Ack { get; set; } // type=0x4 public override FrameType Type { get { return FrameType.Settings; } } public override byte Flags { ...
3c54fcdec1ead37b52b5e631cff53b5ef173215e
C#
obieda01/c-week4-pair-exercises
/m1-w4d4-vending-minicapstone/VendTest/TestClasses/VendMachine_Test.cs
2.515625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Vend.Classes; using System.Reflection; using System.IO; using System.Collections.Generic; namespace VendTest.TestClasses { [TestClass] public class VendMachine_Test { [TestMethod] public void VendMachine_Proper...
bb721443e709ef989bcf3001fa4e736793df5bd4
C#
menapop/CodeTest
/OnionArchetctureDemo/Service/UserService/UserServicec.cs
2.6875
3
using AutoMapper; using Data.Entities; using DTOS; using DTOS.Dto; using DTOS.UserDtos; using FoodSys.Service.Helper.Password; using Repo.Repository.UserReposiory; using Repo.UnitOfWork; using Service.Helpers.Token; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; names...
96ffd26e6aeb70b975d540b5b2c5d24da2ade067
C#
liupade40/StudyDemo
/Photo/Form1.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Photo { public partial class Form1 : Form { Bitmap my...
44a051da132f4aa16fadc42cb0a8e8ffd4708ff1
C#
pocketsfullofpasta/CVerySharp
/Day7/Task2.cs
3.640625
4
using System; using System.Collections.Generic; using System.Text; namespace Day7 { class Task2 { public static void PrintNameSurname(string name) { Console.WriteLine(name.Substring(0, 1).ToUpper() + name.Substring(1)); } public static void PrintNameSurname(string n...
02489970e93f8fd0468ec0b9a9e9cb8129de924e
C#
DenisOliveira1/exam_stefanini_2021
/Web Charge/Examples.Charge.Infra.Data/Repositories/PersonRepository.cs
2.59375
3
using Examples.Charge.Domain.Aggregates.PersonAggregate; using Examples.Charge.Domain.Aggregates.PersonAggregate.Interfaces; using Examples.Charge.Infra.Data.Context; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Examples.Charge.Infra...
e298589571dff5f8b18a6f21fca6591714d9896c
C#
Rashid-RR/BridgeportClaims
/Server/Tests/BridgeportClaims.Tests/DateTimeTests/DateTimeExtensionTests.cs
2.609375
3
using System; using BridgeportClaims.Common.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BridgeportClaims.Tests.DateTimeTests { [TestClass] public class DateTimeExtensionTests { [TestMethod] public void TestBothDateTimeExtensionsForExactParsing() { ...
93453e387427ca52c7ece273e9942f8c22453c39
C#
shendongnian/download4
/code5/839867-20714557-54119199-2.cs
2.96875
3
try { string[] names = new string[2]; string g = names[2]; } catch(Exception error) { MessageBox.Show(error.Message); }
cda4e230b906c1c4f8741e97bcc4e46aee811911
C#
RunningStudent/MyLearningCode_CSharp
/黑马视频代码/第十二天/登入界面封装成控件/UCLoginControl.cs
3.03125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace 登入界面封装成控件 { public partial class UCLoginControl : UserControl { public UCLoginControl() { ...
afe7c2a3ba4933fcf78e8e0f8bea2bdc7f393bfd
C#
lllife-csharp/skylab-tester
/reflection/Person.linq
3.1875
3
<Query Kind="Program"> <Namespace>System</Namespace> <Namespace>System.Linq</Namespace> </Query> class Person { public String Name {set;get;} public String Speak() { return String.Format("Hello there, my name is {0}", Name); } } void Main() { var filip = new Person {...
97bfa8a462dbd1fed4c4c5dc71642a7ed8199b1a
C#
bubdm/ZplDesigner
/RawPrinterUtilitiesLibrary/Label.cs
2.984375
3
using System; using System.Collections.Generic; using System.Text; namespace RawPrinterUtilitiesLibrary { public class Label { public string Title { get; set; } public string Subtitle { get; set; } public string Barcode { get; set; } public string ZplData { get; set; } ...
12f789e1c89a368d2fa26db318290a80bf1da058
C#
mutazrabi/SADADPOSDataUploadWinService
/OracleSQLHelper.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using Oracle.DataAccess.Client; namespace SADADPOSDataUploadWinService { public class OracleSQLHelper { public OracleSQLHelper() { // /...
b6ce216a1fb3aa9c263ccc53aa40f61b6d5e7434
C#
nlaurent9816/INSADesignPattern
/INSADesignPattern/Strategies/HelloStrategies/HelloStratA.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace INSADesignPattern.Strategies.HelloStrategies { class HelloStratA : INSADesignPattern.Strategies.IHelloStrategy { public bool RunStrategy(string name) { Cons...
b54be414004f0dd63459af81af37f48fccfd2b51
C#
davchezt/C-sharp-console-gui-framework
/ConsoleGUI/Controls/BreakPanel.cs
2.515625
3
using ConsoleGUI.Common; using ConsoleGUI.Data; using ConsoleGUI.Space; using ConsoleGUI.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleGUI.Controls { public class BreakPanel : Control, IDrawingContextListener { private readonly VerticalStackPanel _st...
4a90a3512443113265b7e80b8ee1b5957035e695
C#
afegomes/RPS
/RPS.Test/PlayerDataConverterTest.cs
3.078125
3
using System.Collections.Generic; using RPS.Game; using Xunit; namespace RPS.Test { public class PlayerDataConverterTest { private readonly PlayerDataConverter _converter; public PlayerDataConverterTest() { _converter = new PlayerDataConverter(); } [Fact] ...
144ed90803b38826646d4f46e406ff9b9c123c21
C#
ryslangg/Module-6-Task-4
/Module 6 Task 4/Entities/User.cs
3.59375
4
 using System.Collections.Generic; namespace Module_6_Task_4.Entities { public class User { public string Name; public Balance Balance; public List<Item> Items = new List<Item>(); public User(string name , double balance) { Name = name; Balance ...
eddd9f6b14d2473fb74b86de5cb1bac840760b4a
C#
irimescu-maria/Problem-Solving-in-Data-Structures-Algorithms-using-C-
/Chapter 4 Abstract Data Type & C# Collections/HashSetExample/HashSetExample/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HashSetExample { class Program { static void Main(string[] args) { //Create a HashTable HashSet<string> hashSet = new HashSet<string>(); ...
fb68f651425a4f3005f80e3eddd5a98041d77e24
C#
jimmychang94/Data-Structures-And-Algorithms
/DataStructures/LinkedLists/LinkedListUnitTest/UnitTest1.cs
3.484375
3
using System; using Xunit; using LinkedLists; using LinkedLists.Classes; namespace LinkedListUnitTest { public class UnitTest1 { /// <summary> /// This tests for whether the Add() method works. /// </summary> /// <param name="value">Takes in a value for a new node to be created<...
9b1f45daa61b6498fafa9a04d4ba05660ca1301c
C#
baileyathompson021/3200-OOD
/P3.cs
3.109375
3
/* * P3.cs * * Bailey Thompson * 28 October 2019 * Version 1 * * Class Overview: Driver class to demonstrate capabilities of arithS as well as descendant classes oscillateA and skipA * > initialize(AS/OS/SA) initializes each heterogeneous array with objects of each type, alternating between the defau...
e8b3a89c1efd38784d62becf95ad7d5eeb3fc3e7
C#
gmanolov/Programming-Basics
/06.DrawingWithLoops/11.DrawFortEXAM/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _11.DrawFortEXAM { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int columns = 2 * n; in...
16723cee3b7e42fafe7204458dd7d3d190164d63
C#
mda2015/Telerik-Academy
/High Quality Code/11.1. Unit-Testing/SchoolTests/SchoolTests.cs
3
3
namespace SchoolTests { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using StudentSystem; using StudentSystem.Exceptions; [TestClass] public class SchoolTests { [TestMethod] public void AddSchoolCourseTest() { School school = new School(...
b014cb3b3b163f5c7c664dc18b88f3c31d8f7de5
C#
intfloatbool/CryptoGamesTests
/Games/Dices/DiceTests.cs
2.96875
3
using EthWebPoker.Games; using EthWebPoker.Games.Dices; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CryptoGamesTests.Games.Dices { [TestClass] public class DiceTests { [TestMethod] publi...
340bd5306fde427bb6e45b88ff86f1f008fd22b0
C#
brocksamson/Evil
/Source/Evil/Engine/Dice.cs
3.234375
3
using System; namespace Evil.Engine { public class Dice : IDice { private readonly Func<int, int> _randomizer; public Dice(Func<int, int> randomizer) { _randomizer = randomizer; } public bool RollPercentage(decimal chancePercentage) { v...
6c2c7cc5a6a5fc5e558ad275daa683c8af92b8cc
C#
MacBono/GameC
/Engine/Interactions/OldManMysticQuest/FriendlyCacofonixStrategy.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game.Engine.Interactions.OldManMysticQuest { [Serializable] class FriendlyCacofonixStrategy : ICacofonixStrategy { public void ExecuteCacof(GameSession parentSession, bool ...
36cb0407a2844ef4ec67a7606dd0153e6d420fa3
C#
tsimbalar/PolyTest
/PolyTest/DefaultPolyTestRunner.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using PolyTest.Fluent; using PolyTest.Implementations.Fluent; namespace PolyTest { internal class DefaultPolyTestRunner : IPolyTestRunner { public ITestExecutionReport<TResult> Execute<T, TResult>(IEnumerable<ITestCase<T>> testCases, F...
239a5de269e8e3128a4cfe6f9ceae75765f1325b
C#
jspspike/KeyLogger
/KeyLogger/Program.cs
2.84375
3
using System; using System.Runtime.InteropServices; using System.Windows.Input; using System.Threading; using System.IO; using Amazon.DynamoDBv2; using Amazon.DynamoDBv2.DocumentModel; namespace PNY { class Program { [DllImport("kernel32.dll")] static extern IntPtr GetConsoleWindow(); ...
cda7e4558e0dca50885dccd56c1cdc5f6626f624
C#
jfversluis/FFImageLoading
/source/FFImageLoading.Common/Transformations/FFColorMatrix.cs
2.515625
3
using System; namespace FFImageLoading.Transformations { // http://docs.rainmeter.net/tips/colormatrix-guide public static class FFColorMatrix { public static float[][] GrayscaleColorMatrix = new float[][] { new [] { 0.33f, 0.33f, 0.33f, 0f, 0f }, new [] { 0.59f, 0.59f, 0.59f, 0f, 0f }, new [] { 0.11f, ...
21caac4553c9f361d218740385e6c9de12e4ae74
C#
Siwy160/1920TD
/Assets/Scripts/Game/TurretSpotsController.cs
2.765625
3
using System; using System.Collections.Generic; using UnityEngine; namespace Game { public class TurretSpotsController : MonoBehaviour { private List<TurretSpot> _spots = new List<TurretSpot>(); public void Initialize(SpotListener listener) { AddTurretsSpot(); f...
53a63268a414164b0e201c08b07b856cdec20c51
C#
CDulst/HighwayMadness
/Highway Madness/Assets/Scripts/EnemyController.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { //List of possible cars that could get displayed within enemy public List<GameObject> cars; //How fast will the car go public float speed; //Car that gets randomly chosen ...
846bb93808790f74b79a16c606c3d6b1a551498a
C#
xwj90/LeetCode
/bak2021/101.symmetric-tree.cs
3.328125
3
/* * @lc app=leetcode id=101 lang=csharp * * [101] Symmetric Tree */ // @lc code=start /** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNode(int x) { val = x; } * } */ public cl...
3f4b92a9fedf06a948d6735560ff43666087b2fe
C#
Influx-Davin/ring-engine
/Assets/Scripts/Achievements/Achievements.cs
2.78125
3
public static class Achievements { public static Achievement[] achievements = new Achievement[] { new Achievement("Welcome to Ring Engine!", "Bem vindo a Ring Engine!", "Started the game", "Iniciou o jogo"), new Achievement("Ah! One extra life!", "Ah! Uma vida extra!", "Collected 100 Rings", "...
126baaa72241bd13e3ef4c3bd09f577c7fbe7527
C#
CBJ-MD/learning_code
/C#/LeetCodePractice/Problems/52.cs
3.484375
3
namespace LeetCodePractice.Problems.Problem52 { public class Solution { public int TotalNQueens(int n) { return Method1(n); } #region Method1(DFS) private int Method1(int n) { int count = 0; Method1_DFS(0, n, new bool[n], new ...
b6d9fa2264cadaa916b5edb1ccab0691685e37b9
C#
ycc1107/LinqtoExcelDataRetrieve
/LinqtoExcelGroupby/GetExcelData.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LinqToExcel; namespace LinqtoExcelGroupby { class GetExcelDataBase<T> { private string _sheetName; private ExcelQueryFactory _excelFile; private List<T> _preloadedD...
859759a9a46e6985566e534d308e29357f2248c2
C#
joliebig/featurehouse_fstmerge_examples
/Process_Hacker/rev2147-2158/base-trunk-2147/ProcessHacker/Forms/PromptBox.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; namespace ProcessHacker { public partial class PromptBox : Form { private string _value; public static string LastValue; public string Value ...
cd421da55bbd2570549545e31a71eb7698ae5bd3
C#
Zethu5/Apollo
/Apollo/Models/Album.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Apollo.Models { public class Album { public int Id { get; set; } [Required] [StringLength(25, MinimumLength = 2, ErrorMessage = "Titl...
860c49de2a6310d394ce44864ef7df3897b3f7a4
C#
chakrabar/ArghyaC
/ArghyaC.Application/Processors/SimpleCodeRunner.cs
2.6875
3
using System; using System.IO; using System.Reflection; namespace ArghyaC.Application.Processors { public class SimpleCodeRunner { public T GetResult<T>(string assemblyPath, string fullyQualifiedClassName, string methodName, object[] methodParameters) { try { ...
ddacfdc0cfc39479137b58b60d71815164eafdb2
C#
jcbtmy/jcbtmywebsite
/backend/Services/CAHashService.cs
2.796875
3
using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MongoDB.Bson; using CAHashingApi.Models; namespace CAHashingApi.Services { public class CAHashService { private readonly IMongoCollection<CAHash> _caHashes; private r...
6c5f88c8f661a7ee435c3d0cb71c76fd928a5c21
C#
domarp6/Xero_Assignment_Pramod
/XeroAutomation/XeroAPPFramework/helpers.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.IO; namespace XeroAPPFramework { public class CompanyData { public string companyName; public string statusCode; public string serverName; public List<st...
4adb1ab46caeba36cc637ddf27177c6224026b41
C#
nikhilp2/SoftwareDesign
/App_Code/DataLayer.cs
2.578125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Web; /// <summary> /// Summary description for DataLayer /// </summary> public class DataLayer { public DataLayer() { // // TODO: Add constructor logic here // } ...
86f778ea5b72bdd1a8506a91243865e0cec915f0
C#
stackmanoj/chatapp
/ChatApp/Common/MySession.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.SessionState; namespace ChatApp.Common { public class MySession : IReadOnlySessionState { private MySession() { UserID = 0; Name = ""; ProfilePicture = "";...
d11588dac54634a3b925b8688ef64db2db7c3f88
C#
TodorVyagov/C-Sharp-Part-2
/4.Homework.NumeralSystems/4.NumeralSystems/06.ConvertBinaryToHexadecimal/ConvertBinaryToHexadecimal.cs
3.921875
4
//Write a program to convert binary numbers to hexadecimal numbers (directly). using System; namespace ConvertBinaryToHexadecimal { class ConvertBinaryToHexadecimal { static void Main() { Console.Write("This program will convert given binary number to hexadecimal.\nEnter binary num...
36b52ec16365c72e2b1d8d10e87a9c70715da1b2
C#
gigi81/sharpuv
/SharpUV.Echo/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Text; using System.Threading; using SharpUV; namespace SharpUV.Echo { class Program { static readonly IPEndPoint ServerEndPoint = new IPEndPoint(new IPAddress(new byte[] { 127, 0, 0, 1 }), 1...
17ad26a453845dd6e715bcb3f9292db36cbf985b
C#
ravengangrel/dungeoneye
/Game/Script/Actions/EndDialog.cs
2.53125
3
using System; using System.Collections.Generic; using System.Xml; using System.Text; namespace DungeonEye.Script.Actions { /// <summary> /// /// </summary> public class EndDialog : ActionBase { /// <summary> /// /// </summary> public EndDialog() { Name = Tag; } /// <summary> /// /// </...
39f37e15f423863612e6005f214f62413181b272
C#
bizmonger/ClipPaste
/Bizmonger/Bizmonger/Repository.cs
2.765625
3
using System.Linq; using DataAccessMediator; using Entities; namespace Bizmonger { public partial class Repository : IRepository { public Repository() { _messagebus.Subscribe(Messages.REQUEST_REPOSITORY, OnRequestRepository); _messagebus.Subscribe(Messages.REQUEST_SAVE_...
3e00a1d038433fd5602424b16b50f8107329d04b
C#
u8989332/Design-Patterns-Practices
/TemplateMethodPattern/Display/Program.cs
2.71875
3
using System; namespace Display { class Program { static void Main(string[] args) { AbstractDisplay d1 = new CharDisplay('T'); AbstractDisplay d2 = new StringDisplay("Hello, world!"); AbstractDisplay d3 = new StringDisplay("測試啦測試"); d1.Display()...
3fbdd8896e84cf33740bdcbb036c7a7ca35eec77
C#
rjanixz/lab04-irony
/Lab04/Program.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab04 { class Program { static void Main(string[] args) { Evaluator evaluator = new Evaluator(); Start start = evaluator.evaluate("20(10(5(20)))...
9da3c2a359246b9d604ec669194bd310d9ab4a8a
C#
radtek/ZilLion.Core.TaskManager
/ZilLion.Core.TaskManager/ZilLion.Core.Unities/ExtensionMethods/Common/TArray/System.Array/TArray.ForEach.cs
3.359375
3
using System; public static partial class Extensions { /// <summary> /// A T[] extension method that applies an operation to all items in this collection. /// </summary> /// <typeparam name="T">Generic type parameter.</typeparam> /// <param name="array">The array to act on.</param> //...
17c1095800dad81cc69fd4af6edc85e92f38b320
C#
TheKrystalShip/ScrubBot
/ScrubBot.Modules/Results/ErrorResult.cs
2.53125
3
using Discord; using Discord.Commands; namespace ScrubBot.Modules { public class ErrorResult : RuntimeResult // TODO: Add Color.Red as standard error embeds { public Embed Embed { get; set; } // Redirect all constructors to this one public ErrorResult(CommandError? error, string reaso...
20f1bb1dd5bc8c8b7c82cd3e48f78bc913e3a5d8
C#
kiloumap/Jeu_VassaleSpacial
/Jeu/Classes/Crew/Doctor.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Classes.Crew { /// <summary> /// Classe Docteur herite de Crew /// </summary> public class Doctor : Crew { /// <summary> /// On surcharge le nom /// ...
99f30f0120a8c158755e92ea051ed1bc2c298a1f
C#
shendongnian/download4
/code9/1693325-48540704-165847675-2.cs
3.625
4
public static bool IsBracketNestingValid(string input) { if (string.IsNullOrWhiteSpace(input)) { return true; // empty string is always nested correctly } const string openingBracket = "<:"; const string closingBracket = ":>"; if (input.Length < openingBracket.Length) { // perfo...
80cfcdc590be50376755b736151493a383a47f1a
C#
Azure/azure-service-bus
/samples/Management/Metrics/AccessServiceBusMetricsViaCode/Program.cs
2.703125
3
using System; using System.Linq; using Microsoft.Azure.Management.Monitor; using Microsoft.Azure.Management.Monitor.Models; using Microsoft.Rest.Azure.OData; using System.Threading.Tasks; using Microsoft.Rest.Azure.Authentication; using Newtonsoft.Json; namespace AccessServiceBusMetricsViaCode { class Program ...
d32669ca4294d25bfbbbcf786758b65169e9c029
C#
guyuefeng/GeneralFramework
/GF.Data/CommentData.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using GF.Data.Entity; namespace GF.Data { public class CommentData { private _DbHelper conn; public CommentData(_DbHelper c) { conn = c; } /// <summary...
899791b4a3a442abd800fd017d62aa5c2f14da6e
C#
wafeelka/Program-for-testing-students
/DataBase.cs
2.796875
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Text; namespace The_App_for_students.Class { class DataBase { MySqlConnection connection = new MySqlConnection("server = localhost; port=3306; " + ...
d5d795034e986d839fd2d689c9539ba04d8451e7
C#
comi999/Dont-Eat-The-Apple
/Assets/Scripts/DataStructures/Item.cs
2.78125
3
using UnityEngine; public class ItemStack { public int id; public int count; public ItemStack(int id, int count) { this.id = id; this.count = count; } public int GetWeight() { Item item = ItemDatabase.GetItem(id); if (item == null) return 0; ...
ab6368f29e51978cd2ebf0853402c7e78c89b70c
C#
K-Micheal/WeatherForecast
/WeatherForecastSwagger/Controllers/HomeController.cs
2.6875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using WeatherForecastSwagger.Models; namespace WeatherForecastSwagger...
b308890f1309020b9429d5a80fc89f05bb0487a4
C#
filipw/AttributeRouting
/src/AttributeRouting.Tests.Web/CultureAwareRouteHandler.cs
2.515625
3
using System.Globalization; using System.Linq; using System.Threading; using System.Web.Http.WebHost; using System.Web.Mvc; using System.Web.Routing; namespace AttributeRouting.Tests.Web { public class CultureAwareHandler { private const string CultureRouteParamName = "culture"; public stati...
ebe63310251a3b264917e9d60cd1ca4fb4832b88
C#
julianmosi7/GenericDelegates
/GenericDelegates/XUnitTestPersons/TestPersonRepositoryXUnit.cs
2.734375
3
using GenericDelegates; using GenericDelegates.Db; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit; using FluentAssertions; namespace XUnitTestPersons { public class TestPersonRepositoryXUnit { #region ----------------------------------------------------...
768002abd8ac11197df0d229e665cd7b5bb6e230
C#
trentstauff/Schedulator
/src/DataAccess/Repository.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Dapper; using Models; namespace DataAccess { public class Repository : IRepository { private readonly IConnectionFactory _connectionFactory; public Repository(IConnectionFactory connectionF...
91ac500521410e322029608c27313f351287549d
C#
AcelyaTutal07/ReCarProject
/Business/Concrete/CustomerManager.cs
2.703125
3
using Business.Abstract; using Business.Constants; using Core.Utilities.Results; using DataAccess.Abstract; using Entities.Concrete; using System; using System.Collections.Generic; using System.Text; namespace Business.Concrete { public class CustomerManager :ICustomerService { ICustomerDal _customers...
deada02d63c38ba375bc6d2191e38b25695d18be
C#
DigitalPlatform/dp2
/DigitalPlatform.Install/ClickOnceCleaner.cs
2.5625
3
using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DigitalPlatform.Install { // http://www.cnblogs.com/wf5360308/articles/1426158.html // 尚未测试验证过 public class ClickOnceCleaner { ...
5fa1ea7b88c6d3e67b8aecf7a0d86a9d2bfc809e
C#
noant/Lazurite
/Lazurite/LazuriteUI.Windows.Main/Statistics/Views/DiagramViewImplementation/LowGraphicsVisualHost.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Media; namespace LazuriteUI.Windows.Main.Statistics.Views.DiagramViewImplementation { public class LowGraphicsVisualHost : FrameworkElement { private VisualCollection children; public...
782d88884a48d09d1fac4fbd8be9c19b655e6a16
C#
melihorhan/MarsRover
/test/MarsRover.Test/RoverTest.cs
2.6875
3
using System; using System.Collections.Generic; using MarsRover.Application.Position; using MarsRover.Application.Rover; using MarsRover.Application.Surface; using MarsRover.Shared.Enums; using Moq; using NUnit.Framework; namespace MarsRover.Test { public class RoverTest : TestBase { private Mock<ISur...
3f91ccb9f40d988bc552f8eac7f6b30dc024b7b1
C#
s4nthiti/ProjectTuplaWebStore
/ContentService.API/Services/IImageService.cs
2.546875
3
using ContentService.API.Context; using ContentService.API.Entities; using ContentService.API.Helpers; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Task...
30f73d1177d9ef4ad976e772474da853c14b0590
C#
infnhack/AutoTyper
/IAutoTyper/FastInputManager.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Collections; using System.IO; using System.Xml; namespace WindowsFormsApplication1 { class FastInputManager { Dictionary<string, string> dict; public FastInputManager...
bcf0c83fc911691c854e0d9588a24278c1798c83
C#
psdfelix/MVC5HW
/作業客戶管理/Models/Attribute/電話號碼Attribute.cs
2.90625
3
using System; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; namespace 作業客戶管理.Models.Attribute { public class 電話號碼Attribute : DataTypeAttribute { public 電話號碼Attribute() : base(DataType.Text) { } public override bool IsValid(Object value) ...
1d89c2ba5f4147fe8c46ca01beadf9dae10b872b
C#
GrupoCursoXam/cursorepo
/GitXamarin1/GitXamarin1/GitXamarin1/ViewModels/RegisterViewModel.cs
2.765625
3
using GalaSoft.MvvmLight.Command; using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; using Xamarin.Forms; using GitXamarin1.Models; namespace GitXamarin1.ViewModels { class RegisterViewModel : BaseViewModel { #region Attributes private string email; ...
95ac0018c03644e3598467adb72457d8a91b5c4f
C#
wanghongbo/Algorithm
/Algorithm/剑指Offer/48.最长不含重复字符的子字符串.cs
3.640625
4
using System.Collections.Generic; namespace Algorithm.剑指Offer { public class LongestSubStringWithoutDuplication { static void Test() { string str = "arabcacfrx"; int count = Perform(str); } public static int Perform(string str) { int curLength = 0; ...
3169a31576e820a6b107ea09067006591e2957ee
C#
miniBIGboss2/GeekBrains
/LessonTwoHomework/Tasks/TaskSix.cs
3.765625
4
/* Написать программу подсчета количества «Хороших» чисел в диапазоне от 1 до 1 000 000 000. Хорошим называется число, которое делится на сумму своих цифр. Реализовать подсчет времени выполнения программы, используя структуру DateTime. */ using System; using System.Linq; namespace LessonTwoHomework.Tasks...
8f8a4fcf80f836a8f91f1dba978e375eceecab12
C#
Anarcroth/DDD-Aubg
/FB_sln/FlowerBusiness/PickList.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace FlowerBusiness.Domain { public class PickList : GenericStatus { public string id { get; set; } public List<Item> Items { get; set; } public Picker picker { get; set; } public Pick...
07e14c9f3fc8af401c51cfde7792730d912f7e6f
C#
tedzhu/Floria
/_current/Assets/Plugins/ArgumentHandler.cs
3.0625
3
/* A script that takes care of handling the arguments that may be passed in via command line on runtime. * It grabs the passed argument, stores them in an array, and then hands them off. * * Place this inside of the Plugins folder within the Assets folder. * * Currently, the way the monitor setup works, your bat...
02b627659627a8a1798494a49f253e2de5abbbfd
C#
MichelleMayambu/WebAppMvcWithAuthentication
/WebAppMvc/Dtos/CustomerDto.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using WebAppMvc.Models; namespace WebAppMvc.Dtos { public class CustomerDto { public int Id { get; set; } [Required(ErrorMessage = "please enter customer name")] ...
0d3fdfdcf94ef07fffd8ce7123df4c5a56196bec
C#
rajeshyalamarthi/C-Sharp
/Practice/12 sep 2018/ExceptionHandlingPractice/Program.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExceptionHandlingPractice.Example2_IFE_; using ExceptionHandlingPractice.Example3_AIOR_; namespace ExceptionHandlingPractice { class Program { public static void Main(string[] ar...
f23465d36cd117cc719d97001d98641ee7f6a20c
C#
OriginCodeAcademy/Cohort8
/Example Projects/linq-exercises/LinqExercises/Controllers/CustomersController.cs
2.640625
3
using LinqExercises.Infrastructure; using System; using System.Linq; using System.Web.Http; using System.Web.Http.Description; namespace LinqExercises.Controllers { public class CustomersController : ApiController { private NORTHWNDEntities _db; public CustomersController() { ...
2d09ac50de05397725f2af431dac627db9a6b488
C#
Asia292/MobileGames2
/CW/Assets/Scripts/Joystick.cs
2.921875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; // Moves the joystick and passes the vector data so player can move public class Joystick : MonoBehaviour, IDragHandler, IPointerUpHandler, IPointerDownHandler { private Image bgIm...
6728eb288b33de7285d324dd8ae05d174f5242e1
C#
whelshion/Timer
/Timer.Web.Core/Utils/HttpUtil.cs
2.875
3
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Timer.Web.Core.Utils { public class HttpUtil { /// <summary> /// 同步GET请求 /// </summary> /// <param name="url"></param> /// <param name="head...