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
5dfe70c870023040679644179332744d079987a2
C#
Anil1111/Programming-Fundamentals-2017
/07. OBJECTS AND CLASSES LAB AND EXCERCISE/06. Sales Report/6.Sales report.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Sale { public string Town { get; set; } public string Product { get; set; } public double Price { get; set; } public double Quantity { get; set; } public static Sale ReadSale...
f86c6ddd83bab1dba25ea04852997fa0d4c69570
C#
vlado-b/rx-playground
/WPF-Application/WpfApplication1/MainWindow.xaml.cs
2.734375
3
using Newtonsoft.Json; using System; using System.Net.Http; using System.Reactive; using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows.Controls; namespace WpfApplication1 { /// <summary> /// Interaction logic for MainWindow....
6298162e996cd7e7f314c81238976a6bcd8010d4
C#
SimonAi1801/csharp_samples_events_producerconsumer-template
/source/ProducerConsumer/ProducerConsumer.Wpf/MainWindow.xaml.cs
2.765625
3
using ProducerConsumer.Core; using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Windows; namespace ProducerConsumer.Wpf { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow { private ...
e5e14af0cd92f2038f894d73667db93f375fb614
C#
Suliac/TP-Jenkins
/Tests-Jenkins/CalculTest.cs
2.796875
3
using NUnit.Framework; using System; namespace TestsJenkins { /// <summary> /// Test class to test calcul function /// </summary> [TestFixture] public class CalculTest { /// <summary> /// Test method for Add function /// </summary> [Test] public void Tes...
92df337229bddbda9814e2b4bb242cd8d2fe73e5
C#
ianrkent/codesmellkata
/MessageChainsBonus/Customer.cs
2.65625
3
namespace MessageChainsBonus { public class Customer { public Customer(Address address) { this.Address = address; } public Address Address { get; private set; } } }
3e8a8924e3136c3fd548226d7dd617bbecde1c0a
C#
chaosifier/MultiGestureView
/Source/MultiGestureViewPlugin.Portable/MultiGestureView.cs
2.78125
3
using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; namespace MultiGestureViewPlugin { /// <summary> /// A ContentView with built-in gesture recognizers. /// </summary> public class MultiGestureView : ContentView { /// <summary> /// Enable vibrat...
ef04c21322804b16903bd46583c5c8a995ba09aa
C#
medeirosgabriel/csharp_basic
/Variable_Scope/Variable_Scope.cs
3.046875
3
using System; class Variable_Scope { static int num3 = 3; // Static to use in the static method static void Main() { int num1 = 1; Console.WriteLine(num1); Console.WriteLine(num3); test(); } static void test() { int num2 = 2; // Console.WriteLine(num1); Er...
1c3469a7e9efe7d163ea824d531036288855f409
C#
nicgalehouse/AODamageMeter
/AODamageMeter/FightEvents/Heal/MeGotHealth.cs
2.96875
3
using System; using System.Text.RegularExpressions; namespace AODamageMeter.FightEvents.Heal { // When someone heals you (via a nano, HoT, first aid, treatment kit, etc), a sourced event gets created with // the amount that you could've been healed for, if you were hurt enough, and an unsourced event gets cre...
ddd9929c5cc96967f62f5d42762ee8629deb7b3a
C#
viniciusmzo/URI
/1042/1042/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1042 { class Program { static void Main(string[] args) { string[] vet = Console.ReadLine().Split(' '); List<int> listaOrdenada = new List<int>...
92dc3011e37e846ccdec6d67936e52bb51168fa3
C#
jogibear9988/nugget
/src/Nugget.Server/EventArguments/DataReceivedEventArgs.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Nugget.Server { public class DataReceivedEventArgs : EventArgs { public IEnumerable<DataFragment> Fragments { get; set; } public DataReceivedEventArgs(IEnu...
1118d1ede835176d3310894fb9e8049d9036b417
C#
AndrMint/Builder
/Kursai/05-23PirmaPaskaita/05-23PirmaPaskaita/Modulis.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _05_23PirmaPaskaita { class Modulis { public string Pavadinimas { get; private set; } public int KredituSkaicius { get; private set; } public string Kodas { get...
91b19df072889d3e860a5fb057f58b0c1e7996b6
C#
colotu/xxShop
/Lib/CS/YSWL.Common/Mail/EmailConvert.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Net.Mail; using System.Globalization; namespace YSWL.Common.Mail { public static class EmailConvert { public static string ToDelimitedString(ICollection collection, string delimit...
b5ff7037e197189166aa8be1487c86eae8e108d1
C#
jhartwell/FSystem
/src/FSystem.Common/JsonFormat.cs
3.328125
3
using System; using System.Collections.Generic; using FSystem.Common.Interfaces; using Newtonsoft.Json; namespace FSystem.Common { /// <summary> /// Concrete implementation of <see cref="IFormat"/> /// </summary> public class JsonFormat : IFormat { /// <summary> /// Formats the giv...
cfbb9351fbc56061d486cf11912b187bec702477
C#
phil11971/OtherSorting
/CircleSort/Program.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CircleSorting { class Program { static void Main(string[] args) { int[] mas = new int[] { 9, 6, 10, 8, 43, 2, 6, 24, 6 }; Console.WriteLine("Sr...
e0033fb412cc603efdb84dcf4469b03068e37874
C#
FernandoMX13/POO-CSharp
/Serie/Ejercicio7/Program.cs
4.125
4
/* Creancion suma de dos numeros complejos mediante el uso de una clase de numero complejo. */ using System; namespace Ejercicio7 { class Program { //Esta funcion realiza la operacion de la suma de numeros complejos mediante sus atributos. static NumeroComplejo Sumar(NumeroComplejo nc1, Numer...
cf36a400129a3e4279ec773da359cd74bd6f9b62
C#
ilkera/InterviewHacker
/Array/MergeArrayIntoLarger.linq
3.125
3
<Query Kind="Program" /> void Main() { int[] small = {1, 4, 7}; int[] large = {2, 3, 8, 12, 14, 0, 0, 0, 0}; MergeArray(large, small, 4); large.Dump(); } public static void MergeArray(int[] large, int[] small, int largeEndIndex) { if (large.Length == largeEndIndex + 1 || small.Length + largeEndIndex > large....
db60616bb75f59f524971e92d8e621a3ca9355d3
C#
alexfrstnberg/CrashCourseAT
/Projects/Team1/Semeniuk/OpenCartSeleniumTests/SeleniumTests/DBWork.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; namespace SeleniumTests { class DBWork { private static readonly string _connectionString = @"Data Source=127.0.0.1;port=3309;username=admin;password=admin;...
00db93ffdbcc4a65520c10a68bea19e16ba492dc
C#
Hadea/IMO
/Serialisierung/Program.cs
3.421875
3
using System; using System.IO; using System.Xml.Serialization; namespace Serialisierung { class Program { static void Main() { // neuen leeren DataContainer erzeugen und RAM position merken. DataContainer data = new DataContainer(); // DataConta...
605eb11de026112e43efae1aa05ab9a698cf56a9
C#
Ameliorate/BuildStation-Client
/Buildstation_Client2/Buildstation_Client2/Class/NetworkSorters/FinishedHandler.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Buildstation_Client2.Class.NetworkSorters { class FinishedHandler : NetworkSorter { public FinishedHandler() { NetworkThread.RegisterSorter("Finished", this); ...
6e11c93263ebec1954a82010192e90395223d322
C#
Justin-Shi/EXCoreDemo
/EXCoreDemo.Core/MicrosoftGraph/MicrosoftGraphBase.cs
2.59375
3
using System; using EXCoreDemo.Core.Helper; namespace EXCoreDemo.Core.MicrosoftGraph { public abstract class MicrosoftGraphBase : UrlBase { protected const string MICROSOFT_GRAPH_RESOURCE_URI = "https://graph.microsoft.com/v1.0"; #region Fields private string accessToken; #end...
ea9bd2fde55ad5ee9d4b3e31db83d336763aff97
C#
houzhenhuang/DesignPattern
/SingletonPattern/SingletonSecond.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingletonPattern { public class SingletonSecond { private static object singletonSecond_lock = new object(); long lResult = 0; private SingletonSecond() ...
f7c62a31d5e2eb053771e4ac32596c4a8976079f
C#
HerculesDC/TimeMech
/Assets/Scripts/ITimeMech.cs
2.890625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface ITimeMech { void CheckLevelState();//doesn't yet support default implementation void Slow(); void Stop(); void Restore(); } [System.Serializable] //necessary to be able to expose in the inspector public st...
6e06a76805485a1825d265f0fada2a12ad6e4999
C#
TestBatch-125354/Siles-LoayzaAndres-Project1
/StoreTest/DBRepoTest.cs
2.875
3
using Microsoft.EntityFrameworkCore; using StoreDB; using StoreDB.Models; using Xunit; using System.Linq; using System.Collections.Generic; namespace StoreTest { public class DBRepoTest { private DBRepo repo; private Product testProduct = new Product() { Id = 1, ...
75eef92c95f0ab477dd078fb6b1e0b796f54f683
C#
NoeCalmness/CoreFrame
/Scripts/UI/PVE/ColliderTriggerListener.cs
2.765625
3
using System; using UnityEngine; public class ColliderTriggerListener : MonoBehaviour { #region static functions static public ColliderTriggerListener Get(GameObject go) { if(!go) { Logger.LogError("cannot add ColliderTriggerListener Component,the gameObject is null"); ...
bafb01f9511c448bd5f2baef284db268e74fa838
C#
rzaniboni/BethenyPieShopMvcCore
/BethanyPieShop/Models/PieRepository.cs
2.890625
3
using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; namespace BethanyPieShop.Models { public class PieRepository : IPieRepository { private readonly AppDbContext _context; public PieRepository (AppDbContext dbContext) { this._context = dbContext; } public...
717ff9d915dbb7be1d9aee43d977403d8d24a6dd
C#
hnjm/FFTriadBuddy
/sources/ImageHashDB.cs
2.546875
3
using Palit.TLSHSharp; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Xml; using CloudStorage; namespace FFTriadBuddy { public enum EImageHashType { None, Rule, Card, Cact...
1a8c639e1e5e41fdebf42f32503f513315425249
C#
sivze/BAMApp
/BAMApp/BAMApp/ViewModels/BaseViewModel.cs
3.109375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BAMApp.ViewModels { public abstract class BaseViewModel : INotifyPropertyChanged { /// <summary> /// Raised when a property on this object ...
48f01415bed64deb949da8d17aa8e57fde5c6cac
C#
PetrosSarantakos/Simple-Console-Chat-App
/IndividualProject_PetrosSarantakos/MessageManager.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IndividualProject_PetrosSarantakos.Models; namespace IndividualProject_PetrosSarantakos { public class MessageManager { public void SendMessage(string senderId) ...
1ec39dbee00367f3b1a342fa5b855f413c523fab
C#
joseph-turk/make-it-art-api-core
/Controllers/ArtworkController.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Hosting; using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats;...
e1e3ead07ae0ed26294e482f77cb68ac1730de0f
C#
umutdogand/DevRobot
/src/ViewCreator/Components/HtmlComponent/HTMLComponent.cs
2.765625
3
namespace ViewCreator.Components { using System; public abstract class HtmlComponent : Attribute, IHtmlComponent { public HtmlFeatureCollection Features { get; set; } public string Class { get { return GetFeature<String>(HtmlFeaturesFactory.ClassKey); } set...
47a6aae10777ba0df718d2d5fce3f149f4f92f68
C#
VolskyiI/C-sharp
/14/1-7/1-7/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1_7 { class Program { static void Main(string[] args) { string str = "3+i*4"; ComplexNumber obj1 = new ComplexNumber(1,2); Console....
21c3d2f7f5c5209edc0ee4627de64ca1e1a87c9b
C#
lachezarslavkovv/CSharp-OOP-Advanced
/03.Generics-Lab/03.GenericScale/StartUp.cs
2.84375
3
using System; public class StartUp { public static void Main() { Scale<int> scale = new Scale<int>(5, 6); Console.WriteLine(scale.GetHeavier()); Scale<string> stringScale = new Scale<string>("Str", "Str"); Console.WriteLine(stringScale.GetHeavier()); } }
d22d341c19f46d0ea6898050dfad013a57ba0b94
C#
shawnliang/Wammer-win-station
/Client/Libs/HTML2XHTML/SysUtil.cs
3.03125
3
#region using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Text; #endregion namespace Waveface.Util { public class SysUtil { // Convert a string from one charset to another charset publi...
b559b775d8e757b9ed0ce6416dd6f41ce9df9b3f
C#
mzweigert/Photon-In-Maze
/Assets/Common Scripts/Optional.cs
3.359375
3
using System; namespace PhotonInMaze.Common { public class Optional<T> { private static readonly Optional<T> EMPTY = new Optional<T>(); private T value; private Optional() { } private Optional(T arg) { if(arg == null) { throw new ArgumentNullException()...
ac1ce4a9bdab08b7f9e2555ba62f53aad3316b8d
C#
composer2/My-projects-and-homeworks-C-HTML-OOP-CSS
/OPP/OOP homeworks/Extension-Methods-Delegates-Lambda-LINQ-Homework/Extension-Methods-Delegates-Lambda-LINQ/DivisibleBy7And3/DivisibleBy7And3.cs
4.0625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DivisibleBy7And3 { class DivisibleBy7And3 { static void Main(string[] args) { //arr int var numbers = new int[100]; for (int i = 0; ...
5f3b93885a5a6784cf626e3c78abf2cf78389858
C#
GoldMineCloud/DI-sample
/WillSortForFood/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Autofac; using Autofac.Core; using Autofac.Features; using Autofac.Util; using Autofac.Builder; using LinqLib.Sort; using WillSortForFood.Evaluators; using WillSortForFood.Sorters; namespace WillSortForFood { public ...
d0db2d10da85a46f95add7a46c4aff6d54c18813
C#
shendongnian/download4
/code4/583821-13658454-32590314-6.cs
2.875
3
//your program class Program { static void Main(string[] args) { foreach (string s in Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, "*PlugIn.dll"))//getting plugins in base directory ending with PlugIn.dll { Assembly...
daf5bdec1b3f1a88535f6e0655930c76ba91b9e1
C#
shendongnian/download4
/code8/1480693-40877333-132715133-2.cs
3.09375
3
public string CipheredString(string userMessage) { string[] columnEncrypted = userMessage.Split(' '); string[] columnDecrypted = new string[6]; string DecryptedString = string.Empty; string DirtyDecrypt = string.Empty; columnDecrypted[0] = columnEn...
a3b26189a8e48ee91f6d0e8f594b783933f8a49c
C#
water102/Ribo-Downloader
/Ribo Downloader/Program.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Ribo_Downloader { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) ...
68a391db31f8d380bff251d83976d1f262d995f8
C#
DerrickYeb/VAT_Calculator
/VatCalculatorApi.DAL/Helpers/TestingDisplayResults.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; using VatCalculatorApi.DAL.Models; namespace VatCalculatorApi.DAL.Helpers { public static class TestingDisplayResults { public static decimal StandardAndFlatRateVatPayable(UserInputsModel inputsModel) { decimal tota...
fd29933be059d565b7e8c3d7c4426032b3099a97
C#
scrum-groep-i8ao3-1/sprint2
/s1-be-mo5/s1-be-mo5/5.14/Program.cs
3.71875
4
using System; class program { public static void Main() { Console.Write("Geef een Decimal: "); int DecimalNumber = int.Parse(Console.ReadLine()); int remainder; string result = string.Empty; while (DecimalNumber > 0) { remainder = DecimalNumber % 2; ...
e4be8380560a0535b8a2e5e5b3dc8f500f9c200f
C#
ironxing/CsharpCourse
/KT8/X/TestReadFile/TestReadFile/TestReadFile/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestReadFile { class Program { static void Main(string[] args) { string filename = @"C:\Users\Xing\Google Drive\My Documents\ORU\Termin 3\D...
ed48e46e7fe634f168a4fe54096aaef63adabea3
C#
danielhuggins/TyrSc2
/Tyr/StrategyAnalysis/CreeperLord.cs
2.59375
3
using SC2APIProtocol; using System.Collections.Generic; using SC2Sharp.Agents; namespace SC2Sharp.StrategyAnalysis { public class CreeperLord : Strategy { private static CreeperLord Singleton = new CreeperLord(); private Dictionary<ulong, int> LastExpansionHoverFrame = new Dictionary<ulong, i...
310fd8e86e9cfb3f2ee30c53f1b4f76ce6a0392e
C#
ananth039/Anantha-Kumar-.net-Practice-programs
/auto generrated id i textbox from database table/auto generrated id i textbox from database table/Employee Registration form.aspx.cs
2.65625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace auto_generrated_id_i_textbox_from_database_table { public partial class Employee_Registration_form : System....
159ba722236efeb79f4b5a96e824fd9d31938595
C#
MattisVainikainen/ProgHomeWork
/Övningar/IfSatser/Ovning6.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgHomeWork.Övningar.IfSatser { class Ovning6 { int totalPrice; public int TotalPrice(int prisPerEnhet, int enheter) { totalPrice = prisPerEnhet * ...
739bd9040baa3fd16cb4661ec7961bc51c060525
C#
Avi-Meshulam/MyStore
/MyStore/Converters/StringFormatConverter.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace MyStore.Converters { /// <summary> /// Formats a string using StringFormat property or "parameter" paramater /// </summary> /// <example...
11dda9aef9b005414634745dfe03286f1245840a
C#
msgsmg/msggittest
/csharpfiles/ReverseCStyleStringInPlace/Program.cs
3.890625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReverseCStyleStringInPlace { class Program { static void Main(string[] args) { Console.WriteLine("Enter a string"); string str = Console.ReadLin...
9672cf7743433bc9c6e5e87a88da15970dc44a4e
C#
ShreyTiwari/School-Manager
/SchoolManager/Members/Receptionist.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SchoolManager { public class Complaint : EventArgs { public DateTime ComplaintTime { get; set; } public string ComplaintRaised { get; set; } } public class Rec...
022a3599981d20f49847db85958b4b799f773563
C#
sakapon/AtCoder-Contests
/CSharp/Contests2020/ABC151/F.cs
3.109375
3
using System; using System.Linq; class F { static void Main() { var n = int.Parse(Console.ReadLine()); var p = new int[n].Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray()).Select(x => new V(x[0], x[1])).ToArray(); if (n == 2) { Console.WriteLine((p[1] - p[0]).Norm / 2); return; } ...
5c676dceda9b03839162eb2e1454c3903597f8c9
C#
shendongnian/download4
/first_version_download2/170184-12730444-30043009-2.cs
3.34375
3
using System.Linq; using System.Text.RegularExpressions; static class Program { static void Main(string[] aargs) { string value = "I have a dog and a cat."; Regex regex = new Regex("dog|cat"); var matchesList = (from Match m in regex.Matches(value) select m.Value)...
75cf63137af4cfe9045c54ea1692f80e88ec2e62
C#
nuryanto2121/RumahUmat
/RumahUmat/Repository/OptionDBRepo.cs
2.625
3
using RumahUmat; using RumahUmat.Models; using Dapper; using Microsoft.Extensions.Configuration; using Npgsql; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; namespace RumahUmat.Repository { public class OptionDBRepo : IRepository<OptionDB,int> ...
890faa47aee52bfe8dcb6d9a19b2ba439b6d92b9
C#
yaelschlotman/SodaMachine
/SodaMachine/SodaMachine/Coin.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MySodaMachine { public class Coin { private string CoinName; private int Quantity; private int Value; public Coin(string coinName, int quantity, int val...
6607d7b8f22674143ba2d14aed93a97503694849
C#
c-sharp-projects/Gideon-Personal-assistant
/Gideon/Weather.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Imaging; using System.Xml; using System.Xml.Linq; namespace Gideon { class Weather { const String URL = "http://api.openweathermap.org/data/2...
351ad6a505ff12617969766a5476fe6a3e2b3413
C#
PowerShell/vscode-powershell
/test/mocks/BinaryModule/TestSampleCmdletCommand.cs
2.828125
3
using System.Management.Automation; namespace BinaryModule { [Cmdlet(VerbsDiagnostic.Test, "SampleCmdlet")] [OutputType(typeof(FavoriteStuff))] public class TestSampleCmdletCommand : PSCmdlet { [Parameter( Position = 0, ValueFromPipeline = true, ValueFromPip...
0e59950a555acca7a6c3b8f4817a8bdc774c018e
C#
dmkovtun/SkyTrek
/SkyTrekVisual/GameItems/UserControls/NewAsteroid.xaml.cs
2.640625
3
using System; using System.Diagnostics; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Imaging; using SkyTrekVisual.Controls; namespace SkyTrekVisual.GameItems { /// <summary> /// Interaction logic for Asteriod.xaml /// </summary> public partial class NewAsteroid : UserContr...
c24060ab6cdb5b8c108cdb57ae4bca251118addb
C#
muchamad2/ElectroFisher
/Assets/Scripts/Level1/Fisher/SpawnFish.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpawnFish : MonoBehaviour { public GameObject[] spownpoint; public GameObject[] riverFishObject; public GameObject[] seaFishObject; void Start() { Spawn(); } void Spawn() { forea...
577b6cabe01e7f80fed230121fffdf2dc46ddf78
C#
SmileyfoxUnderrain/NN0
/NN0/ActivationFunctions/SoftSignFunction.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NN0.ActivationFunctions { public class SoftSignFunction : ILayerIndependentFunction { public double Function(double x) { var ret = x / (1 + Math.Abs(x)); ...
d8a7bbdec01aea764b6751f99d861880fd07ec6a
C#
aadjesus/Diversos
/Exemplos_Roger/System.Boolean/Methods/ToUInt16/ToUInt1600/Program.cs
3.15625
3
/// Author: Roger Villela /// Contact: Roger.Villela@live.com /// LinkedIn: http://br.linkedin.com/in/rogeralvesvillela /// Blog: http://rogervillelajournal.wordpress.com /// Products: Microsoft Visual Studio /Microsoft Visual C# /// Programming Language: C# /// /// UInt16 ToUInt16( IFormatProvider provider ) //...
61131bfa64d5f41561ca6d16e15297e56656cd5c
C#
rokn/EatGame
/EatMe/EatMe/Components/SpriteRenderer.cs
2.546875
3
using System; using EatMe.UnifiedClasses; using ECS; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace EatMe.Components { public class SpriteRenderer : Component, IDrawableComponent { public int DrawLayer { get; set; } public Texture2D Texture { get; set; } public Vector2 Origin...
320dc7422d21f4645b48ffc1cff6388fe1a32f28
C#
mdsoftware/m3d
/m3d/Faces3D.cs
2.984375
3
/*************************************************************************** This code is written by Denis Mitrofanov This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *********************...
6abcf9a2114264913bc433debb18a140943852f8
C#
ARigitano/AugmentedGymnasium
/Assets/Scripts/SceneScripts/Core/HealingZone.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// An area in which players can stay in to regain their life points over time. /// </summary> public class HealingZone : MonoBehaviour { /// <summary> /// The speed at which the players regain their life points. ...
36d2acae92942af81e32c51c739b10c6cf2d449d
C#
FeiYanLeung/Laboratory
/Laboratory.Migrator/Models/DbInitializer/SQLDbinitializer.cs
2.78125
3
using Laboratory.Migrator.Models.Entities; using System.Collections.Generic; using System.Data.Entity; namespace Laboratory.Migrator.Models.DbInitializer { public sealed class SQLDbinitializer : DropCreateDatabaseAlways<DataContext> { protected override void Seed(DataContext context) { ...
dff229fc0c70afa33437645675fd8c22acec11a0
C#
Razonatair/ScrambleForTheStars
/Classes/ThreadManager.cs
3.015625
3
//=================================================== // Copyright 2018 Dyllin Edward Reid Black // //=================================================== using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Threading; //This class will handle the creation and as...
fedb79c5cdcac1e736f6b85499d430dab575bba3
C#
priyaaank/XamarinMapsPoc
/Mappy.Common/Models/Atm.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Mappy { public class Atm : BankEntity { public string Brand { get; private set; } private const string SunCorpBrandName = "suncorp"; public Atm(long id, string brand, string name, long locationId, double latitude,...
d587d507d6c4c528cbe66243a755447fca3be958
C#
BigEggStudy/Coursera-Princeton-Algorithm
/c#/BigEgg.Algorithm/BigEgg.Algorithm/Sorts/SortHelper.cs
3.6875
4
using System; using System.Collections.Generic; namespace BigEgg.Algorithm.Sorts { internal static class SortHelper { /// <summary> /// Is v < w ? /// </summary> /// <returns><c>True</c> if v < w, otherwise <c>false</c>.</returns> public static bool Less(IComparable v, ...
f58eb0536d7417b7c3bcdd519811aea5d40ce9d5
C#
anshu777/etm-api
/ETM.Service/Services/StatusService.cs
2.5625
3
using ETM.Repository.Dto; using ETM.Repository.Models; using ETM.Service.Interfaces; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ETM.Service.Services { public class StatusService : IStatusService { ...
fdb9202c3a95e36adb26131cc7d5def43bbaf588
C#
arman-tech/AlphaVantageLib
/AlphaVantage.Common/Common/AttributeHelper.cs
3.046875
3
using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace AlphaVantage.Common { public static class AttributeHelper { public static TValue GetPropertyAttributeValue<T, TOut, TAttribute, TValue>( Expression<Func<T, TOut>> propertyExpression, ...
3d586761891739dc4c9dfa369ec7634f55d21253
C#
TorreyGarland/Highway1.Universal
/Highway1.Universal.UI/Interactivity/PasswordBindingBehavior.cs
2.703125
3
namespace Highway1.Universal.UI.Interactivity { using System.Diagnostics; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; /// <summary>Password binding behavior class.</summary> /// <seealso cref="Highway1.Universal.UI.Interactivity.BehaviorBase{Windows.UI.Xaml.Controls.PasswordBox}" /> ...
9bca78fde04d8a996d0c0873dc438b9bcc826b2e
C#
ALowski/hotelRMS
/src/rms/Hotels.Core/LoadPredictors/MovingAverageLoadPredictor.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using Hotels.Basic; namespace Hotels.Core.LoadPredictors { public sealed class MovingAverageLoadPredictor : ILoadPredictor { private double _priceTemp; private double[] _price; private int _priceDay=-1; private ...
b4fb43ee6193a303f2f004ad5519e61ca870d5a0
C#
azturner/Rock
/Rock.Slingshot.Model/PhoneNumberImport.cs
2.765625
3
namespace Rock.Slingshot.Model { /// <summary> /// /// </summary> [System.Diagnostics.DebuggerDisplay( "{Number}" )] public class PhoneNumberImport { /// <summary> /// Gets or sets the phone number. The number is stored without any string formatting. (i.e. (502) 555-1212 will b...
c331bf5392d4bfe84a8b1a88fe0805e4a10626d5
C#
zackimball/BulletJournalApp
/BulletData/BulletRecords/Note.cs
2.578125
3
using System; namespace BulletRecords { public class Note : iNote { public string RecordId { get; set; } public NoteType NoteType { get; set; } public string NoteBody { get; set; } public DateTime? CompleteDate { get; set; } public DateTime? DueDate { get; set; } ...
6e7435b0ce4668720fdcdf50004a68255347e348
C#
samhuang/Sparkline.Net
/SparkLib/Spark.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using SparkNet.TickProviders; namespace SparkNet { public class Spark { private static ITickProvider _tickProvider; public static ITickProvider TickProvider { get { return _tickProvider ?? (_tickProvider = ...
8cfbcb513ae6c4be6321d3ba6f5ebde9db9a53fe
C#
MrWT/WinoneCenter
/WinoneCenter/Controllers/EmployeeController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using WinoneCenter.Services; using WinoneCenter.Models; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace Winon...
c88d3f4cfc8213ca0333bc5d0a18699ae359e480
C#
meshudn/Software-Service-Engineering
/metadataclient/6/Task1-Template/TcpRequest.cs
3.0625
3
using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace SSE { public class TcpRequest { private TcpRequest() {} public static async Task<string> Do(IPAddress ip, int port, string message) { var client = new Tcp...
4eb733d259978c738ae744033838e6f2e02bf60f
C#
dallmeyer/lc
/ValidateBinarySearchTree/ValidateBinarySearchTree.cs
3.359375
3
/** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNode(int val=0, TreeNode left=null, TreeNode right=null) { * this.val = val; * this.left = left; * this.right = right; * ...
64ac46f487a69a592d418093a7b15e566863fce9
C#
mertbilgic/dotnetcore
/CourseApp/Controllers/CourseController.cs
2.78125
3
using System.Collections.Generic; using System.Linq; using CourseApp.Models; using CourseApp.ViewModels; using Microsoft.AspNetCore.Mvc; namespace CourseApp.Controllers { //localhost:5000/course public class CourseController:Controller { public ActionResult TestList(){ var list ...
b77869b2d266a7f117278b3e529641aae9d25c93
C#
doongjohn/Tower_Of_Ukani
/Assets/Devs/Yuchan/System/Random/ARandom.cs
2.9375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ARandom { public static int Dir => Random.Range(0,2) == 0 ? -1 : 1; public static Vector2 Dir2d => Random.insideUnitCircle; //0~100 %d의 확률로 True False를 반환. public static bool Get(int chance) => Random.Range(0,...
2287b7e1791a24188fb93f6f4ee6ff363bc9ed61
C#
hillaryneaves/Participations
/Classes3/Classes3/SecondWindow.xaml.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace Classes3...
c40eae24506edb8d2fbc16945c27f34f5176737b
C#
jkastner/JK_RecordSystemTest_4-18-2021
/RecordsLib/ClassLibrary1/RecordSet.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RecordsLib { public interface IRecordSet { IEnumerable<IRecord> ByGender(); IEnumerable<IRecord> ByBirthDate(); IEnumerable<IRecord> ByLastName(); IReadOnlyList<IRecord> Data { get; ...
3694991e9890265ab244d9056f6dc65ef310705b
C#
AndrewFakher/BookGeeks
/Book Store/Book Store/Details.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; namespace Book_Store { public partial class Details : Form { string pname; stri...
31700e3b6ac4343741b79b641e261ffe019e263d
C#
zoujingjing/Homework
/homework2/Shape.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; /*********************************一个类定义的时候**************************************/ //无或internal: 只能在当前项目中访问该类 //public:可以在任何地方访问该类 //private:不能在任何地方访问该类 //abstract或internal abstract:类只能在当前项目中访问,不能实例化,只能供继承之用 //public abstract...
7cf2803879520373c8e412eea824b44ba507bc24
C#
rafalrojek/BankProject
/Bank.Domain/Concrete/BankAccountIdentityDbContext.cs
2.53125
3
using System.Data.Entity; using Microsoft.AspNet.Identity.EntityFramework; using Bank.Domain.Entities; namespace Bank.Domain.Concrete { public class BankAccountIdentityDbContext: IdentityDbContext<BankAccount> { public BankAccountIdentityDbContext() : base("BankDb") { } static...
f689e20136cbfe0da30f08ba47b1e5d92e796bcf
C#
chrishanzlik/ZPLForge
/src/ZPLForge/Contracts/IQrCode.cs
2.609375
3
using ZPLForge.Common; namespace ZPLForge.Contracts { /// <summary> /// QR Code contract /// </summary> public interface IQrCode : ILabelContent { /// <summary> /// Gets or sets the qr code content. /// </summary> string Content { get; set; } /// <summary> ...
11901aac53a2a606751928d6fcaebc6a988696bc
C#
SergioPonomarev/XT-2018Q4
/Epam.Task3/Epam.Task3.MyString/MyString.cs
3.703125
4
using System; using System.Text; namespace Epam.Task3.MyString { public class MyString : IEquatable<MyString>, IComparable<MyString>, IComparable { public static readonly string Empty = string.Empty; private char[] chars; public MyString(char[] value) { this.chars...
e35ba146e69d244d200d627acfaf412d582a8ec6
C#
SytseOegema/MoodCap
/functions/MoodCap/ListImages.cs
2.5625
3
using Google.Cloud.Functions.Framework; using Google.Cloud.Storage.V1; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Primitives; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Threading.Tasks; namespace MoodCa...
2e0f3064c379b5fda5c61135783338405f7c7410
C#
kimduquan/xproject
/XCS/XOutput.cs
3.140625
3
using System.Collections.Generic; namespace XCS { public abstract class XOutput { public string XFirst { protected get; set; } protected Dictionary<string, string> XStrings { get; set; } public XOutput() { XFirst = ""; XStrings = new Dictionary<string, s...
b62d377bc3d52cd2dfe4e02437ca98a207b1f453
C#
DanWahlin/CSCourseCode
/Samples/CSProgramming/BaseClassLibrary/Threading/AsynchronousDelegates/UsingAThread.cs
2.578125
3
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Threading; namespace ThreadsAndDelegates { /// <summary> /// Summary description for Form1. /// </summary> public class UsingAThread : System.Windows.Fo...
a1652a6838a32746952e5034cb956139c2111521
C#
kennetms/Scripts
/ReviewPanelManager.cs
3.140625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// Class that handles keeping track of and displaying the review panel. /// </summary> public class ReviewPanelManager : MonoBehaviour { /// <summary> /// our array of objects that makes up the...
3eb73f91071da4e9c00d237caf1f7a8c0647aa55
C#
Teorist/TeoLib
/Models/Item.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using System.Xml.Serialization; namespace TeoLib.Models { [Serializable, DataContract(Name = "item")] public class Item : BaseModel, IEquatable<Item> { [XmlAttribute(AttributeName = "id")] ...
61ec61bbaefbf54a6294ded55f0832314626c611
C#
Netopya/COMP-442-Assignment-3
/COMP442-Assignment3/SymbolTables/ClassEntry.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace COMP442_Assignment3.SymbolTables { // An entry in a symbol table representing a class public class ClassEntry : Entry { SymbolTable child; public ClassEntry(string...
93c6b36906ae27fba27c9614866d1122e7f1a3a7
C#
DzIvanova/OOP
/OOP-Homework-1/3. PC Catalog/Computer.cs
3.46875
3
using System; namespace _3.PC_Catalog { class Computer { private string name; private Component ram; private Component motherboard; private Component processor; //private decimal pcPrice; public string Name { get {...
51b96b93ea57c5fac8a675610742f31ec0388b22
C#
bzaar/CRFSharp
/CRFSharpConsole/DecoderConsole.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using CRFSharpWrapper; using CRFSharp; using System.Threading.Tasks; using System.Collections.Concurrent; using System.Diagnostics; using AdvUtils; namespace CRFSharpConsole { class DecoderConsole { ...
508cfabcfafe03912ff09bb73519adb8ebf08d2d
C#
marianard/Locadora
/Locadora/Controllers/GeneroController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Locadora.Data; using Locadora.Models; namespace Locadora.Controllers { public class GeneroController...
a5992eb060b15222a97b3f6b0e030a49722e257d
C#
dimanngo/PoEAA
/C_Sharp/Framework.Tests/CustomerServices/GetCustomerByIdQuery.cs
2.796875
3
using System; using System.Collections.Generic; using Framework.Data_Manipulation; namespace Framework.Tests.CustomerServices { class GetCustomerByIdQuery : BaseQueryObject<Customer, GetCustomerByIdQuery.Criteria> { public class Criteria { public int CustomerId { get; set; } ...
9b13e0c61dbfaef376c9b476892d4b62f243b00d
C#
debop/NFramework
/src/NFramework.FusionCharts/Widgets/Attributes/WidgetFontAttribute.cs
3.109375
3
using System; using System.Drawing; using NSoft.NFramework.Tools; namespace NSoft.NFramework.FusionCharts.Widgets { /// <summary> /// Font Attributes. Widgets 에 있는 Chart중에는 IsBold, IsItalic, IsUnderline을 쓰는 것도 있지만, Is가 안 붙은 것도 있다. /// 그래서 구분을 위해 따로 정의하였다. /// </summary> /// <seealso cref="FontAtt...
14ca6f0643864e233b533bc2e145b3ec490ad1c8
C#
naps250/mal-api
/MalApi/Manga/MalMangaInfoFromUserLookup.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MalApi { public class MalMangaInfoFromUserLookup : IEquatable<MalMangaInfoFromUserLookup> { public int MangaId { get; private set; } public string Title { get; private set; } /// <summary> ...
ae2e6dede2fb1b47e415a4bde60a7b6484d613d5
C#
MellyMellyMelly/Poker
/Backend/Testing/Objects/Duplicate.cs
2.90625
3
namespace Base.Objects { public class PropertyCopier<TParent, TChild> where TParent : class where TChild : class { public static void Copy(TParent parent, TChild child) { var parentProperties = parent.GetType().GetProperties(); ...
a7af28f43f5115690935f9d3e1f2a3fa0922454f
C#
Wivor/Dyplom
/Untitled Strategy Game/Assets/Scripts/Game/Map/Grid.cs
2.671875
3
using System; using UnityEngine; public class Grid : MonoBehaviour { public Transform hexPrefab; private int _id = 0; private Vector3 _startPos; private float _hexWidth; private float _hexHeight; private float _offset; private int _gridWidth; private int _gridHeight; private cons...
a9447043dae38003721b80c434e73215cabd6728
C#
MohammedAzmat/Shatranj
/ShatranjCore/PieceSet.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShatranjCore { public class PieceSet { private PieceColor color; public List<Piece> Pieces; public PieceColor PieceSetColor { get { return color; } } p...
54e8814b6d3e0b112292f2d49969549c74818533
C#
worldkk1/321ACTION
/321ACTION/Home.cs
2.546875
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 _321ACTION { public partial class Home : Form { public Home() { ...