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
75a4a7a80c0d0e557e5db5dd9963bdd007598b4b
C#
VenciNanov/TechModuleSeptember2017
/10.FilesExceptions-Homework/04.MaxSequenceOfEqualSums/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.MaxSequenceOfEqualSums { class Program { static void Main(string[] args) { List<int> numbers = File.ReadAllText("input.txt") ...
0e1379d18e74f93bf4181e82cbec3bdc206e401e
C#
Man-of-Manis/Witchs-Brew
/Assets/Scripts/Interactables/Items/KeyCube.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum KeyCubeColor { Red = 0, Orange = 1, Yellow = 2, Green = 3, Blue = 4, Purple = 5 }; public class KeyCube : MonoBehaviour, IItems { [SerializeField] private KeyCubeColor keyCubeType; private ChestKeyCubeSpawner cubeSpawn...
51a505327769732f0452767dcbcb8620a0577d2d
C#
robin-han/typescript-converter
/src/TypeScriptObject/Source/Array.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace TypeScript.CSharp { public class Array<T> : Object, IEnumerable<T> { #region Fields /// <summary> /// /// </summary> private List<T> _list; private object _f...
27440b6d252d8d5a1d07604a4c8719c543eaf204
C#
frostsergei/Multiplication_Division_Matrix
/ControlWork1/ControlWork1/MultiplicationPage.xaml.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace ControlWork1 { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class MultiplicationPage : ContentPage { public Multiplicat...
ff9235b6dd34dc804e3992c1c8c4f5b48d07c9a8
C#
Dacheng-Wang/ExcelMerge
/ExcelMerge.GUI/Commands/DiffCommand.cs
2.515625
3
using System.Collections.Generic; using System.IO; using ExcelMerge.GUI.Views; using ExcelMerge.GUI.ViewModels; namespace ExcelMerge.GUI.Commands { public class DiffCommand : ICommand { public static readonly List<string> DefaultEnabledExtensions = new List<string> { ".xls", ".xlsx...
bf64084b2cab3e801ae960f381c2d43e7c1acb7d
C#
Vulnerator/Vulnerator
/Model/Entity/DADMS_Network.cs
2.515625
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Vulnerator.Model.Entity { public class DADMS_Network : INotifyPropertyChanged { public event Pr...
fbdc9f21f7527aefbec211058d4b813c8d3a9813
C#
charantejg/GislenSoftware
/PubSubusingEvents/Program.cs
3.390625
3
using System; using System.Threading; using System.Threading.Tasks; public class Program { public static void Main() { // Creating Instance of Publisher Publisher youtube = new Publisher("Youtube.Com", 2000); Publisher facebook = new Publisher("Facebook.com", 1000); //Create ...
08393fb4edc39e99cc7cab4615e9db01c9e0a909
C#
shendongnian/download4
/code10/1882905-56259473-198244808-4.cs
2.671875
3
List<string> inputFileLines = null; try { inputFileLines = GetInputFileFormatted(mailFile); } catch (FileNotFoundException ex) { Console.WriteLine("File not found"); }
98c87176a761aa439a5b2f71971cc02eed0ec759
C#
TheOtherBanana/AWSProjects
/AmazonPriceUpdate/EmailUtils/Net/TemplateEmailSender.cs
2.765625
3
using EmailUtils.Templating; using EmailUtils.Xml; using System; using System.IO; using System.Net.Mail; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace EmailUtils.Net { public class TemplateEmailSender : ITemplateEmailSender { #region Fields private readonly ITemplateCompiler _te...
3fa53e737945c84760962f79c8e4395b464a671f
C#
Team-Artemis-TelerikAcademy/Movie-Hunter
/MovieHunter/MovieHunter.Importer/ImdbDownloader/ImdbDownloader.cs
2.953125
3
namespace MovieHunter.Importer.ImdbDownloader { using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using DeserializationModels; using Newtonsoft.Json; public class Downloader { private static ICollection<MovieModel> Movies ...
e2533bb0653a91913b795bf9903558020d827cd7
C#
darkl/Calculators
/src/Calculators/Algebra/Implementation/Generic/FractionExtensions.cs
2.765625
3
using System; using Calculators.Algebra.Abstract; namespace Calculators.Algebra { public static class FractionExtensions { public static Fraction<T> CreateFraction<T>(this IRing<T> ring, T numerator, ...
276c72e2783bb11250585de4fb457242fc65b5df
C#
Chris-MorrisUK/racoonMiddleware
/UserManager/UserStore.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using REDISConnector; namespace UserManager { public class UserStore { private static UserStore theUserStore; private static object theUserStoreLock = new object(); priv...
d33d80d6439c06b79963a5223b7e71ff7d8c9804
C#
Taegost/TexasHoldEm
/TexasHoldEm/Library/Player.cs
3.765625
4
using System; using System.Collections.Generic; using System.Text; namespace TexasHoldEm.Library { public class Player { public string Name { get; set; } public int Chips { get; set; } public List<Card> Hand { get; set; } = new List<Card>(); public Player(string name, int chip...
813f6fbe64e7cb20f7186dfd318e886e7ce5fb84
C#
ExtendRealityLtd/Zinnia.Unity
/Tests/Utility/Mock/UnityEventListenerMock.cs
2.765625
3
namespace Test.Zinnia.Utility.Mock { /// <summary> /// The UnityEventListenerMock creates a simple mechanism of registering a listener with a UnityEvent and checking if the event was emitted. /// </summary> public class UnityEventListenerMock { /// <summary> /// The state of...
b418dad61372023d2cb07058a62e6e0e0e9ab735
C#
riyadparvez/Non-Blocking-CSharp
/NonBlockingCSharp/NonBlockingCSharp/ConcurrentStack/ConcurrentStack.cs
3.3125
3
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Text; using System.Threading.Tasks; using NonBlockingCSharp.Utilities; namespace NonBlockingCSharp.ConcurrentStack { [Serializable] public class ConcurrentStack<T> { private Node<T> ...
b34d76072f0d430c5b2ea990c99cd6268c639613
C#
dalpendre/EI_SI
/Ficha2/Worksheet2-Solution/Exercise 2 - Client/Client.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace Exercise_2___Client { class Client { static void Main(string[] args) { #region VARIABLES int bufferS...
a8b5727d5dfc93d49dc488c6dabd5413b4152aec
C#
phalcr004/Bullet-Hell-Game-S1DCS
/Bullet-Hell-2D-Game/Assets/_Scripts/Enemy/EnemySpawning/AcceleratorEnemy.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(EnemyHealth))] public class AcceleratorEnemy : MonoBehaviour, IEnemy { // Acceleration and initial speed private float speed = 1f; private float acceleration = 15f; // Track enemy state and adjust ...
d7e7c6f4eb6ab1822bddac67334b835b2f579d22
C#
s-avdonin/Rochambeau
/Rochambeau_server/ServerProgram.cs
3.328125
3
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; namespace Rochambeau_server { public class AsynchIoServer { // keeps connected player's data class Player { public string name; public IPEndPoint endPoint; public byte turn; public Player() { } ...
01e3b4efc1c10b349df40919811ec1556d3f38ba
C#
Toby-TheBlock/PCB_Drawing_Tool
/PCB_Drawing_Tool/CanvasManager.cs
3.171875
3
using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Drawing; namespace PCB_Drawing_Tool { class CanvasManager { private static CanvasManager singleton = null; private Dictionary<CanvasObject, PictureBox> allCanvasObjects; private PictureBox selectedObject; private D...
7bb2f57c46727fd877ebab48ffe21704fac1dd06
C#
EnergeticApps/Energetic.PeoplePlacesAndBusinesses.ValueObjects
/People/PersonName.cs
2.984375
3
using Energetic.Text; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Text.Json.Serialization; using Energetic.ValueObjects; namespace Energetic.People.ValueObjects { //TODO: I think we can just use default JSON serialization for this...
d131ed71da85df12c5fabbfdfaf1d347775520ba
C#
arnel-sanchez/CinePlus
/CinePlus/DataAccess/HomeDataAccess.cs
2.65625
3
using CinePlus.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CinePlus.DataAccess { public class HomeDataAccess : IHomeRepository { private CinePlusDBContext _context; public HomeDataAcces...
765adf62dd63175815a1f1c249dc945a1e65bdc8
C#
smb123w64gb/MDL2MBCH
/MDL2MBCH/MDL2MBCH/IO/FileOutput.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace MDL2MBCH.IO { public class FileOutput { readonly List<byte> data = new List<byte>(); public enum Endianness { Little = 0, Big = 1 } public Endianness...
d15321137e4ff421a3ede1e3a03662962e16a151
C#
Zane6888/syncsoft
/soft/FileHelper.cs
2.875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; namespace syncsoft { static class FileHelper { private static MD5 md5 = MD5.Create(); public static String GetAbsolute(String relative) { ...
f6779c7ae46c8118d4d704d261236b3de6c32af9
C#
nike4613/GoosMods.3
/HatGoos/Readers/HatFileReader.cs
2.84375
3
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HatGoos.Readers { public sealed class HatFileReader : IHatfileReader { private readonly ZipArchive file; public HatFileRe...
eefc5f00e1eb381ff2d3c5969989b37406794a85
C#
chromesome/PPOP_ChallengeProject
/Assets/Scripts/Tiles/Tile.cs
2.9375
3
using System.Collections; using System.Collections.Generic; using PathFinding; using UnityEngine; public class Tile : MonoBehaviour, IAStarNode { // public variables public bool traversable; // private variables [SerializeField] string _tileType; [SerializeField] int _traverseCost; int _x; ...
3cb777f3f6b07f166a51c5cd623b71c35a77a8d6
C#
dalebarr/Cff.SaferTrader---Dev-Branch-1
/Cff.SaferTrader.Core/LikelyRepurchasesLine.cs
2.59375
3
using System; namespace Cff.SaferTrader.Core { [Serializable] public class LikelyRepurchasesLine { private readonly int customerid; private readonly int customerNumber; private readonly string customerName; private readonly string title; private readonly int age; ...
55789011d0032b831c65c37325a722636683d3f5
C#
withakay/ably-dotnet-authcallbackexample
/example/Program.cs
2.890625
3
using System; using System.Net; using System.Threading.Tasks; using IO.Ably; using IO.Ably.Realtime; using Newtonsoft.Json; namespace example { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); var options = new ClientOptions ...
156db0e12967321f1b4f7406f7213502599e00b2
C#
EliyaHammer/ROCKY-POOL-2.6-AND-UP
/RockyClock/Converters/DayOfWeekConverter.cs
3.171875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace RockyClock.Converters { class DayOfWeekConverter : IValueConverter { public object Convert(object value, Type targetType,...
d25e3f98762fbaf6063e5bdd8d5e7ec453fb1601
C#
AnnetteMur/Filters
/Filters.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.ComponentModel; using System.Globalization; namespace WindowsFormsApp1 { abstract class Filters { public int Clamp(int value, int min, int...
1c5ee713a8d0f43a632429eead20be9fb75c95a1
C#
RobaLinan/open4051
/Open4051/ToolBarWindow.cs
2.59375
3
using System; using System.Diagnostics; namespace Open4051 { public partial class ToolBarWindow : Gtk.Window { private string browser; private string kbdPosition = "middle"; public string KbdPositoin { get{ return kbdPosition; } set{ kbdPosition = value...
410545214f497a6444195c5c4bf3de3510bf1125
C#
shendongnian/download4
/first_version_download2/359226-30817294-92746104-2.cs
2.9375
3
public bool SendMessage(SerialPort port, string phoneNo, string message) { bool isSend = false; try { string recievedData = SendATCommand(port,"AT", 300, "No phone connected"); string command = "AT+CMGF=1" + char.ConvertFrom...
4e8a88712ffc9dd921258cc87d7ae2d212e331c9
C#
red-panda-web/CourseWorkSemest5
/WpfApp1/ChangeEmployee.xaml.cs
2.921875
3
using System; using System.Linq; using System.Windows; namespace WpfApp1 { public partial class ChangeEmployee : Window { int id; string conString; int idCurrentEmpl; public ChangeEmployee(string str, int empl_id) { InitializeComponent(); conStri...
951abe1a69f3d1a5b23e72c9b0b962e0ae932ffb
C#
manycore/harvester
/Harvester.Analysis/Processors/CoherencyProcessor.cs
2.515625
3
using Diagnostics.Tracing; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Harvester.Analysis { public class CoherencyProcessor : EventProcessor { /// <summary> /// Constructs a new processo...
65fe36b9b61183f11c9079a3632f6937f1bccda5
C#
mslitao/Leetcode
/Other.food-menu-ordering.cs
3.421875
3
using System; using System.Collections.Generic; /* Your task is to process the following menu of food items, and determine which combination of food items could be purchased for the receipt values below. The Menu: (I'll try to provide this in a hash or map data structure as an input) veggie sandwich: 6.85 extra veggi...
e9dff922e86c54ea328e8a601ae9a7ec2868f0e7
C#
shendongnian/download4
/code11/1908223-57341898-202829573-2.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; namespace ConsoleApplication1 { class Program { const string FILENAME = @"c:\temp\test.xml"; static void Main(string[] ar...
42ed1bf6626696b4850036070b955c430bde25d1
C#
morerokk/softwareontwerpeindscrum
/SoftwareOntwerpEindOpdrachtScrum/Scrum/ProxySprint.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoftwareOntwerpEindOpdrachtScrum.Scrum { public class ProxySprint : Sprint { private RealSprint _realSprint; public override string Name { get { return _realSprint.Name; ...
c517d76a6c8164ad82c4637d3a774e5415d4d97f
C#
TheGrandCoding/chat-program
/chat-program/chat-program/Server/CommandManager.cs
2.65625
3
using ChatProgram.Server.Commands; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace ChatProgram.Server { public class CommandManager { public List<CommandGroup> Commands; ...
59e0a2f8eac87eeb7abff5ddc72fe838c9fba3b8
C#
ITGlobal/CLI
/src/CLI.Terminal/Impl/Ansi.Generated.cs
2.609375
3
using System; namespace ITGlobal.CommandLine.Impl { partial class Ansi { public static AnsiAttributes ForegroundColorToAttributes(ConsoleColor? color) { switch (color) { case ConsoleColor.Black: return AnsiAttributes.ATTR_FG_BLACK; ...
b75e87fe6f27f8e8a6910f0a6c92658b4f4c3381
C#
shu-man-ski/ASP.NET
/Lab_7/Lab_7/Lab_7/Controllers/PhoneController.cs
2.71875
3
using System; using System.Linq; using System.Web.Mvc; namespace Lab_7.Controllers { public class PhoneController : Controller { Models.PersonContext context = new Models.PersonContext(); [HttpGet] public ActionResult Index() { return View("Index", context.Persons....
7e130f5ec1d5491355ab97d2235fec1dad0c5314
C#
spolinaa/intersection
/CalculatorLibrary/calculator.cs
3.546875
4
/* Library for calculating an intersection of a circle and a segment by Sokolova Polina */ using System; namespace geometry { public class Calculator { private static double sqr(int x) { return Math.Pow(x, 2); } public static bool intersection(int x0,...
f252a02e3af82535502d0e36dae27e5c8119c631
C#
ThatGuyRussell/Team-Alight
/Wolf Game/PlayerMovement.cs
2.546875
3
using UnityEngine; using UnitySampleAssets.CrossPlatformInput; namespace CompleteProject { public class PlayerMovement : MonoBehaviour { public float speed = 0.2f; // The speed that the player will move at. Vector3 movement; // The vector to store the direction of t...
44be77fc429d41e4061107eca2fcdfdb4eeafe0c
C#
stasadev/SimpleCiphers
/SimpleCiphers/Models/SloganCipher.cs
3.171875
3
using System.Linq; namespace SimpleCiphers.Models { public class SloganCipher : ICipher { public string Encrypt(string text, string key, string abc) => Crypt(text, key, abc, true); public string Decrypt(string text, string key, string abc) => Crypt(text, key, abc, false); public stri...
459b0ac676aea95c3d9ebd1ec1ffa03ed2e9ea45
C#
shendongnian/download4
/code1/108050-20373840-52879203-2.cs
2.890625
3
public static int getCheckedRadioButton(Control c) { Control.ControlCollection cc = c.Controls; for (int i = 0; i < cc.Count; i++) { RadioButton rb = cc[i] as RadioButton; if (rb.Checked) { return i; } } retu...
1a449444279bc036855c1fcac634051d3ced5f81
C#
pwflynn655/sharedclustering
/Models/EndogamyProber.cs
2.578125
3
using AncestryDnaClustering.ViewModels; using System; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; namespace AncestryDnaClustering.Models { internal class EndogamyProber { private readonly AncestryMatchesRetriever _matchesRetriever; public...
c9464d8852ea41adc5c6bd2d51558713d1079318
C#
Keydol/Lab1
/Program.cs
3.515625
4
using System; namespace Lab1 { class Program { delegate double function(double x); static double f1(double x) { return Math.Pow(x, 3) + 3 * Math.Pow(x, 2) - 24 * x + 1; } static double f2(double x) { return Math.Tan(1.2 * x) - 2 + 3 ...
dc72a16ecb8dcd242319a04bf965fdad7de01e38
C#
sgw-dev/neuromancer
/Neuromancer/Assets/Script/Controllers/HexTileController.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HexTileController : MonoBehaviour { public HexTile hexPrefab; [SerializeField] HexTile head; [SerializeField] int amountTiles; [SerializeField] float cellSize; float halfX; float halfY; Vector3[] ...
f053fedb70e83926e5285d5a844f39fa2b787ef2
C#
shendongnian/download4
/code8/1489755-40889456-132764062-2.cs
3.5625
4
public static void Main(string[] args) { string str = "Test1,Test2,Test3"; string test1 = MyFunction("Test1", "Test2", "Test3"); string test2 = MyFunction(str.Split(',')); } public static string MyFunction(params string[] parameters) { ...
a86faa2ce7a7302f29218a322e392edafa04bfe2
C#
MarkwardtMarcello/Asp.Net---AULA
/Aula1406_Views_Controllers/Aula1406_Views_Controllers/Controllers/CategoriasController.cs
2.71875
3
using Aula1406_Views_Controllers.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; namespace Aula1406_Views_Controllers.Controllers { public class CategoriasController : Controller { // GET: Categorias(carregamento da p...
a212ca2e6d676aa567e28426eafb540ac5769e4b
C#
Angel94Jim/Interaccion-Humano-Computadora-1220194
/Practicas HIC/Assets/Scrips/Inventory.cs
3.09375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Inventory : MonoBehaviour { static protected Inventory _instance; static public Inventory Instance { get {return _instance;}} public delegate void OnChange(); public OnChange onChange; public List<Item> ite...
31f7d034ae7e8b2205ff4e6a05d0941970b88700
C#
hj0807/HJ-Project
/Unity_Pattern/Assets/Scripts/Observer_Pattern/Ex2/WeatherData.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ObserverPattern.ex2 { public class WeatherData : ISubject { private List<IObserver> observerList; private float temperature; private float humidity; private float pressure; ...
1594e5b061c35261d959edf18f457720f2990078
C#
KSU-CIS300-Spring-2019/lab-assignment-22-tylertoad88
/Ksu.Cis300.TrieLibrary/TrieWithNoChildren.cs
3.578125
4
/* Filename: TrieWithNoChildren.cs * Author: Tyler Braddock */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ksu.Cis300.TrieLibrary { /// <summary> /// Public method TrieWithNoChildren /// </summary> public class TrieWit...
c4ed28e268a546aa4d5177fb24fce211ec1180a3
C#
JL-INK/LabsForKolos
/Lab1/Lab1/Tasks/Task3.cs
3.328125
3
using System; using System.Text.RegularExpressions; namespace Lab1.Tasks { class Task3 { public void Task() { var Program = new Program(); Console.Clear(); Console.WriteLine("Введите текст"); string text = Console.ReadLine(); if (!...
3c3913040eb2085a1280cd30f319c156fc688c54
C#
dobrosol/TechUniverseTestShop
/OnlineShop/Domain/Concrete/Cart.cs
3.4375
3
using System.Collections.Generic; using System.Linq; using Domain.Concrete.ProductEntities; namespace Domain.Concrete { public class Cart { List<CartLine> lines = new List<CartLine>(); public void AddItem(Product product, int quantity) { CartLine line = lines.Wh...
bbe06c9c2e487d226458d4b863eac957ff8b6c68
C#
PirateX0/MultipleThread
/信号/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 信号 { class Program { static void Main(string[] args) { //ManualResetEvent mre = new ManualResetEvent(false); ////构造函数fal...
a2ceddab8d20e0b80655b55b10773f2c80a3ff5a
C#
marekpraski/interProcessCommunication
/ICPEvents/IPCClient.cs
3.140625
3
using System; using System.Net; using System.Net.Sockets; using System.Text; namespace IPC { /// <summary> /// Represents the client side application. /// </summary> internal class IPCClient { private Socket clientSocket; private int port; internal IPCClient(int port) ...
68eb6b4835280f02cd4946ce4f2e5b353eb6e93b
C#
Ken884/education
/C#/quiz057/VOCALOID_DB/Dao.cs
2.90625
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DBAccess { class Dao { // 接続文字列 private const string ConnectStatement = "userid...
374e53046d548346df0c23882b91ba2f0e9a5b08
C#
RobolabGs2/computer_graphics_labs
/Lab04/Tools/PolygonsDrawing.cs
2.796875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace Lab04.Tools { class PolygonsDrawing : ITool { public Bitmap image => Properties.Res...
c409cf5e9263277f9192e72cb5dd1b2bc67a23b8
C#
jacobguin/Discord-Bot-CSharp
/Discord Bot/Discord Bot/Commands/SetPrefix.cs
2.8125
3
namespace Discord_Bot.Commands { using System; using System.Threading.Tasks; using Discord.Commands; public class SetPrefix : ModuleBase<SocketCommandContext> { [Command("setprefix")] [Summary("Changes the user prefix")] public async Task Sp(params string[] prefix) ...
17d2ac49a4d9ed358e65f675960c3de16e129279
C#
scbrady/lynicon
/Lynicon/Utility/TypeRegistry.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lynicon.Utility { /// <summary> /// A registry of handlers for different types /// </summary> /// <typeparam name="I">The type of a type handler</typeparam> /// <typeparam ...
dba11dca213354b265561b81ff0694386488fd5c
C#
aykuttasil/algorithms
/move-zeroes/Program.cs
3.796875
4
using System; using System.Collections.Generic; using System.Diagnostics; /* - Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Input: [0,1,0,3,12] Output: [1,3,12,0,0] Note: You must do this in-place witho...
5e5c284ec30b279b83643893f5a2e9876a8bb970
C#
lcy03406/Candle
/CandleLib/Hello.cs
3
3
using System; namespace CandleLib { public class Hello { string who; public Hello(string who) { this.who = who; } public string Say() { return string.Format("hello, {0}", who); } } }
73ff638cec7d04af05b763dced40eb6cdfa4029a
C#
shubhamsn/MagicHat
/Assets/Scripts/BlackHoleController.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* * * attach with BlackHole * make it more realistic * * */ public class BlackHoleController : MonoBehaviour { private float xVal, yVal; private Camera cam; private Vector3 targetWidth; [SerializeField] private float initia...
c2f01ec08acebfc3eaf0325419378b79b134016e
C#
Tajoreh/WarCraft-Tiger
/Code/UOM.Domain/Model/Dimensions/Dimension.cs
3.015625
3
using UOM.Domain.Model.Dimensions.Exceptions; namespace UOM.Domain.Model.Dimensions { public class Dimension { public string Title { get; private set; } public string AlternateTitle { get;private set; } public string Symbol { get;private set; } public Dimension(string title, ...
cdf9caab542368b04968f2f94135dd1231ddb6bc
C#
Toranyan/ToraLib
/Scripts/Input/CRaycastController.cs
2.640625
3
using UnityEngine; using System.Collections; using System; using System.Collections.Generic; namespace tora.input { /// <summary> /// Transforms clicks to raycasts /// </summary> public class CRaycastController : MonoBehaviour { [SerializeField] protected Camera m_raycastCamera; [SerializeField] prot...
da1bc91c2003a3aedac8b4710c5cd013c6e4adb6
C#
MonkSoul/Xamarin.Android.Bindings
/Xamarin.Android.ZXing.Android.Embedded/src/Xamarin.Android.ZXing.Android.Embedded/Additions/CameraThread.cs
2.671875
3
using Android.OS; using Java.Lang; namespace Com.Journeyapps.Barcodescanner.Camera { public class CameraThread : Object { private const string TAG = nameof(CameraThread); private static CameraThread instance; public static CameraThread GetInstance() { if (instance...
67dcbfa8f6d5c01999c9662e05ee629d9bdf8338
C#
Novonil/Leetcode
/Leetcode/BFS/SuroundedRegions.cs
3.40625
3
using System; using System.Collections.Generic; using System.Text; namespace Leetcode.BFS { class SuroundedRegions { public static void Solve(char[][] board) { if (board == null || board.Length == 0) return; int rows = board.Length; int cols = boa...
f506b576776c44f34d6241b6af213c444ace16b5
C#
Gcarvalhu/DesenvolvimentoWeb
/TskukarWeb/Repositorio/MarcasRepositorio.cs
2.78125
3
using System.Collections.Generic; using System.IO; using TskukarWeb.Models; namespace TskukarWeb.Repositorio { public class MarcasRepositorio { public List<MarcaModel> Listar(){ List<MarcaModel> listaDeMarcas = new List<MarcaModel>(); string[] linhas = File.ReadAllLines("Databas...
d688e0f0d1ca526732284a5fe1500ca2c4b6d492
C#
MilosSimic/snakeRoot
/XMLSerializer/ListValidator.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Schema; using System.IO; using System.Xml; using System.Xml.Linq; namespace XMLSerializer { public class ListValidator { public static bool validateXML(String filename) { try ...
06d432dff448bd5543e3bb0e494eea5113350fee
C#
uzbekdev1/DeepRL
/DeepQL/Gyms/AcrobotEnv.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using DeepQL.Environments; using DeepQL.Misc; using DeepQL.Spaces; using Neuro.Tensors; namespace DeepQL.Gyms { public class AcrobotEnv : Env { /** Acrobot is a 2-link pendulum with only the second joint actuated Initia...
8ecec5f79c4e7f2931dd1456e0e52a724bfc5c32
C#
JHPham687/MIS-3013
/Participations/Coin Toss/Program.cs
3.78125
4
using System; namespace Coin_Toss { class Program { const string Developer = "\n -Jo Pham"; static void Main(string[] args) { Console.WriteLine("Heads or Tails?"); string guess = Console.ReadLine(); Random rnd = new Random(); ...
911fe9ccfbe264191e5ceb440e6a0e6fe388b6fb
C#
rhk98/JustSaying.Examples.Orderprocessing
/full/OrderProcessor/OrderPlacementWithIntermittentDbError.cs
2.5625
3
using System; using JustSaying.Messaging; using Messages.Commands; namespace JustSaying.Examples.OrderProcessing.OrderProcessor { internal class OrderPlacementWithIntermittentDbError : OrderPlacement { private int _i; internal OrderPlacementWithIntermittentDbError(IMessagePublisher publisher)...
86dafce1ea7d4dc10405a5dc787b0f60237a755d
C#
gonzaloperezbarrios/Domain-Driven-Design
/Example.Infrastructure/Migrations/Configuration.cs
2.765625
3
namespace Example.Infrastructure.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<Example.Infrastructure.persistence.entityFramework.CarContext> { public Configura...
bb62300a454c97267f61e902678182bb0cb37c76
C#
lkucera94/BlueBadgeProject
/MilitaryBaseRater.Services/BaseRatingService.cs
2.609375
3
using MilitaryBaseRater.Data; using MilitaryBaseRater.Models.RatingModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MilitaryBaseRater.Services { public class BaseRatingService { private readonly Guid _userId; ...
a671a542a5b77a7dd26e40f69da953adf59dc4d3
C#
dalemorgan04/Mortgage-Site-with-API
/MortgageApi/Api/Entities/SearchRequest.cs
2.796875
3
using MortgageApi.Models.Enums; using Newtonsoft.Json; using System; using System.Linq; using System.Text; namespace MortgageApi.Api.Entities { public class SearchRequest { [JsonProperty("customer_id")] public Guid CustomerId { get; set; } [JsonProperty("property_value")] publ...
7ab7e94275a75f489e5047685bd48e8f9a2b12b3
C#
johnathaningle/Func
/Fs.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; namespace Testing { public static class Fs { public static string Open(string fname) { var assembly = Assembly.GetExecutingAssembly(); var file = ""; ...
8f7d6b5a641787a07bb57187613a92bf18c498f4
C#
rikusov/DataProcessing
/nba.stat_parse/GetStatic.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System.IO; using System.Threading.Tasks; namespace ParseStatic { enum TypeStage {Predseson=1,Season,AllStar,PlayOFF}//типы игр в индексе struct IndexoftheMatch//индекс матча на са...
3ad59f87132f4ab076baf84b22419e1923b23472
C#
yoshioka440/KingIsAlone
/Assets/Scripts/Bullet.cs
2.734375
3
using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { public int attack_power,block_power; public bool is_ground; [SerializeField]float destroy_wait_time; void Start(){ is_ground = false; } public int Damage(){ int damage; if (is_ground) { damage = block_power; Destro...
be6e7f948b22bc14b055760f51dfee571097cfe7
C#
Agobin/LearningCSharp
/Lesson02/Lesson02/Program.cs
3.65625
4
using System; namespace Lesson02 { class Program { static void Main(string[] args) { Rectangle rect = new Rectangle(); Rectangle s = new Rectangle { Length = 2.0, Width = 2.0 }; rect.Length = 20.0; rect.Width = 10.0; double area = re...
cf9651e459c0a254c6b5ca8c0e81bf729f4ccdc2
C#
Earthraid/TheVigilante
/TheVigilante/TheVigilante/Classes/CombatClass.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace TheVigilante.Classes { public class CombatClass { private bool run = false; private string input; private bool stillFighting = true; ...
a70a15215d7c6afc22ec6626c23d0929be02635c
C#
andrewlord607/Asteroids
/Asteroids/Assets/Scripts/AsteroidsUtils.cs
3.078125
3
using UnityEngine; namespace Utils { // Класс, содержащий вспомогательные методы static class AsteroidsUtils { // 4 вида границы экрана для GetWorldPositionOfBorder public enum Border { top, bottom, left, right } /// <summary> /// Получить случайный знак /// </summary> public static flo...
b2c8ebbf7f5215436f723751007ead9d94d483de
C#
ahsanikgb/ShakeelGitHubTripKaroApiV0b1
/TripkaroApiV0b1/Controllers/SpecialOffersController.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using TripkaroApiV0b1.Helpers; using TripkaroApi...
5b23cf670950beca699b4e97c66ad09fadef7e23
C#
SACHSTech/cpt-joshua
/CPT/MainWindow.xaml.cs
2.515625
3
using System; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace CPT { /** * Class to control the UI * @author Joshua Shuttleworth */ public partial class MainWindow : Window { ...
72ae4b16f80ec8833bb67fc68345920a86617838
C#
jtrindade/isel-ave-1516-2
/aulas/20160505/LINQ.cs
3.640625
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; public static class Linq { class Student { public int Number { get; set; } public string Name { get; set; } public bool HasQuit { get; set; } public int Grade { get; set; }...
13450308231eab18bdf0b5781e5148cdedfc346d
C#
robhogo/game-engine
/Contexts/Converters/CharacterLvlConverter.cs
2.609375
3
using RoBHo_GameEngine.Contexts.DataModels; using RoBHo_GameEngine.Models; using System; namespace RoBHo_GameEngine.Contexts.Converters { public class CharacterLvlConverter : IDataModelConverter<CharacterLvlDataModel, CharacterLvl, LvlType> { public CharacterLvl DataModelToModel(CharacterLvlDataModel...
a25cee1760fafe9fd4714883dfcef4e5caf76faa
C#
shendongnian/download4
/latest_version_download2/220445-47971713-163466760-4.cs
2.53125
3
private static ConditionalExpression ExpressionA(int num) { return Expression.Condition( Expression.Constant(num > 10), Expression.Constant("num is greater than 10"), Expression.Constant("num is sm...
d88a53eac30a004b78aa84f54c575851cfb33a4a
C#
shendongnian/download4
/code8/1369521-37062333-117446079-4.cs
2.59375
3
List<String> tableList = serviceMethod.getTableList(); DataTable dtAllType = new DataTable(); foreach (string table in tableList) { DataTable dtTemp = new DataTable(); myConnection.Open(); string query = string.Format("SELECT Type, Sum(Expense) AS TotalExpenses FROM [{0}] group b...
9a0e1cb7c864475bae66faef2254ed708bd217d4
C#
jerryrox/project-beats-framework
/Dependencies/InitWithDependencyAttribute.cs
2.8125
3
using System; using System.Linq; using System.Reflection; using System.Collections; using System.Collections.Generic; using PBFramework.Exceptions; namespace PBFramework.Dependencies { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] public class InitWithDependencyAttribute : Attribute { ...
aca5e6b22337fb450859aaa95ae459384fd1ffd3
C#
shendongnian/download4
/code4/627491-53177689-185291458-4.cs
3.078125
3
//Lower level - parts that work differently for sync/async version. //When isAsync is false there are no await operators and method is running synchronously. private static async Task Wait(bool isAsync, int milliseconds) { if (isAsync) { await Task.Delay(milliseconds); } else { System.Threading.Thre...
f1097476dd404924363b1c60193cad96bf588e39
C#
Nitudon/CloudAR_Pet
/Assets/CloudPetAR/CloudPet/Pet/PetDefine.cs
2.515625
3
using System; using CloudPet.Commons; using UnityEngine; namespace CloudPet.Pet { public struct PetInfo : IEquatable<PetInfo> { public string Name; public PetAvater Avater; public bool Equals(PetInfo other) { return string.Equals(Name, other.Name) && A...
3437d750f733ce14426442ab9326378826bb7b59
C#
DeltaTwozero/KingdomFight
/Kingdom_Fight/Assets/Script/EnemyManager.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyManager : MonoBehaviour { //Stats [SerializeField] int meleeDamage, rangedDamage, meleeHP, rangedHP, enemyMeleeCount, enemyMeleeCountMAX, enemyRangedCount, enemyRangedCountMAX; //Unit list [SerializeField...
e84afdb799228f3f06ef84e9662e55e60316da70
C#
harris-boyce/Phema.RabbitMQ
/src/Phema.RabbitMQ/Queues/Extensions/RabbitMQQueueBindingBuilderExtensions.cs
2.53125
3
namespace Phema.RabbitMQ { public static class RabbitMQQueueBindingBuilderExtensions { /// <summary> /// Declare exchange to exchange routing key /// </summary> public static IRabbitMQQueueBindingBuilder RoutedTo( this IRabbitMQQueueBindingBuilder builder, string routingKey) { builder.Declaration...
77d2b2ade3c101ae890695e12e1c980fe5f74547
C#
YULuoOo/ASimpleGame
/Scripts/Messenger.cs
2.828125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; internal static class Messenger { public static Dictionary<GameEvent, Delegate> mEventTable = new Dictionary<GameEvent, Delegate>(); private static bool OnAddListener(GameEvent eventType, Delegate handler) { ...
c817a84324e88732896667ee2f2e7b68173edd67
C#
bMedarski/SoftUni
/C#/C#Fundamentals/Advanced/Stacks and Queues - Lab/6.MathPotato/Program.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5.Hot_Potato { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var step = int.Parse(Console.ReadL...
718386b09eafc281ea422591eb34ac1de100c1ae
C#
shendongnian/download4
/code9/1529305-42930683-141342122-2.cs
2.625
3
using System.IO; using Xbim.Common.Geometry; using Xbim.Ifc; using Xbim.ModelGeometry.Scene; using Xbim.Common.XbimExtensions; namespace CreateWexBIM { class Program { static void Main(string[] args) { const string file = @"4walls1...
03d2f5196a366ab1b41241af63096301d5fd7163
C#
nisbus/propeller.framer
/nisbus.Propeller.Frames/H48CFrame.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Globalization; using nisbus.Propeller.Base; namespace nisbus.Propeller.Frames { /// <summary> /// A frame to manage the input from a H48C tri-axis accelerometer. ...
05fe2e987c8f9ada96f1ac64116b2c06a4e6cccd
C#
toxicgorilla/MondoAspNetMvcSample
/ViewModels/Accounts/ViewModels.cs
2.671875
3
namespace MondoAspNetMvcSample.ViewModels.Accounts { using System; using System.Collections.Generic; using MondoAspNetMvcSample.App_Classes; public class AccountViewModelBase : ViewModelBase { public AccountViewModelBase() { this.SiteSection = SiteSection.Accounts; ...
f60bdbb52e0c9d81046028a929ed1f86ed880a70
C#
AreTrash/MasterFromExcel
/Assets/MasterSample/Data/AaaaData.cs
2.53125
3
///////////////////////////////////////////////// //自動生成ファイルです!直接編集しないでください!// ///////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Master { public class AaaaData : ScriptableObject { public List<Aaaa> Data = ...
79b848a15666b40a48d94efa3976b603c74e157b
C#
jgomezmnm/LinqJoinLab
/LinqCycles/LoggingEnumerator.cs
3.109375
3
using System; using System.Collections; using System.Collections.Generic; namespace LinqCycles { public class LoggingEnumerator<T> : IEnumerator<T> { private readonly IEnumerator<T> _enumerator; private readonly Action<string> _log; public LoggingEnumerator(IEnumerator<T> enumerator, ...
3b5ad32040dbddc35a754c4189ae5bb3d40fab3c
C#
PedroMorenoTrujillo/tryDotNetProjectWithSqlServer
/Aplicacion/Cursos/Eliminar.cs
2.78125
3
using System; using System.Threading; using System.Threading.Tasks; using MediatR; using Persistencia; namespace Aplicacion.Cursos { public class Eliminar { public class Ejecuta : IRequest{ public int Id { get; set; } } public class Manejador : IRequestHandler<Ejecuta> ...
812b906c70dd33c76589d88f973f7b0c6c577a9a
C#
TheSteveIAm/AdventOfCode-2018
/AdventOfCode/Solutions/Day8.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace AdventOfCode { class Node { public int nodeId; public int childrenCount; public int metaDataCount; public List<Node> children; ...