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
830f4d6baeb8a97e4ee1b4b1bda1563c4d7b084a
C#
Novak-Oksana/AndroidCalc
/XamarinCalculator/XamarinCalculator.Android/MainActivity.cs
2.515625
3
using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace XamarinCalculator.Droid { [Activity(Label = "XamarinCalculator.Android", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity ...
474b0dc8ce59b2614db55011f9631a7926b5e09f
C#
P-Beshkov/PS-Teamwork
/Test/Writer.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test { public class Writer { public static void WriteToFile(string text, string path) { using (StreamWriter writer = new StreamWriter(path)...
424847d8bd9d591146858d5bbab9a2103d5e89cc
C#
shendongnian/download4
/first_version_download2/171198-12825291-30302959-2.cs
2.625
3
var type1 = new Type1(); var type2 = new Type2(); ... var propMap = new List<Tuple<Expression<Func<Type1, object>>, Expression<Func<TradeStaticAttributesItemModel, object>>>> { new Tuple<Expression<Func<Type1, object>>, Expression<Func<Type2, object>>>(x => x.Prop1, x => x.Prop1), ...
590abfb4044e87f8259913310fb228d7f50bcb6b
C#
Qorpent/comdiv.oldcore
/Comdiv.Core/Application/WidgetPosition.cs
2.625
3
namespace Comdiv.Application { /// <summary> /// Стандартные позиции виджетов /// </summary> public enum WidgetPosition { /// <summary> /// Позиция нестандартная /// </summary> None, /// <summary> /// Панель управления ...
5eedbfa3be25f6ebf813aeeea8a23afbea38a3a1
C#
MauroAguirre/Estudio
/Taller de objetos/Obligatorio documentacion/Obligatorio taller objetos/Dominio/Nacional.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dominio { public class Nacional: Excursion { private int descuento; public int Descuento { get { return descuento;} set { descuento = value;} } ...
8d1272749935f2f8d1188ee8193b59b59f42d720
C#
coolcooldeath/oop
/laba 7 exception/laba 7 exception/Program.cs
2.984375
3
using System; using System.IO; using System.Reflection; using System.Diagnostics; using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; using System.Runtime.CompilerServices; using System.Text; namespace laba_7_exception { public static class Logger { public static voi...
16c6707fd072ccbf89e1da88e667e1fdc6e62b97
C#
yakubovych/StudentsAssessment
/test/enter.xaml.cs
2.6875
3
using System.Collections.ObjectModel; using System.Data.Entity; using System.Windows; namespace test { public partial class enter : Window { ObservableCollection<User> users; ApplicationContext db = new ApplicationContext(); public enter() { db.Users.Load(); ...
512c43e097d49cff4b6ee50ab4094526f8f60b77
C#
C41-233/FFF
/Project/FCommon/FBase/Time/DateTimeExtension.cs
2.75
3
using System; namespace FFF.Base.Time { public static class DateTimeExtension { public static readonly DateTime UtcStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); public static long ToTimeStamp(this DateTime dt) { var span = dt.Subtract(UtcStart); ...
56eee66739f8f7631592eddeb759ddb744b3d8dd
C#
tayduivn/SocialPayments
/SocialPayments.DomainServices/ValidationService.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NLog; using System.Text.RegularExpressions; namespace SocialPayments.DomainServices { public class ValidationService { private DomainServices.FormattingServices formattingServices = new FormattingServices(); ...
7a5996e9de366cbb800d7dc2d2f9d0485a4d3f13
C#
Rammun/Apollon
/Apollon/Ship.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Apollon { /// <summary> /// Оисывает корабль /// </summary> public class Ship { float height = Setting.Height; float fuel = Setting.Fuel; float ...
8c98e46ff11435713f349cf032844b3adc7a3bef
C#
shendongnian/download4
/code1/12658-59545576-212121075-4.cs
2.515625
3
private bool decimalSeparator = false; private void Control_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Decimal) decimalSeparator = true; } private void Control_KeyPress(object sender, KeyPressEventArgs e) { if (d...
6964cffe924a13d107c03393c59547a7a403abe5
C#
DmitriyGj/BasicProgramming2
/Documentation.csproj/Specifier.cs
3.125
3
using System; using System.Linq; using System.Reflection; namespace Documentation { public class Specifier<T> : ISpecifier { public string GetApiDescription() { return typeof(T).GetCustomAttributes()?.OfType<ApiDescriptionAttribute>().FirstOrDefault()?.Description; } ...
260b74aa8debfa6d0f983a54fe47646629e1eabe
C#
arkados/Moon.Sender
/Moon.Cdo/ServerCdoFactory.cs
2.515625
3
using System.Web; namespace Moon.Cdo { /// <summary> /// Pro vytváření objektů pomocí Server.CreateObject /// </summary> public class ServerCdoFactory :ICdoFactory { public virtual T Create<T>() { return (T)HttpContext.Current.Server.CreateObject(typeof(T).FullName);...
cf57f021bab5edcc5fc3c332de0dba0e58260ebd
C#
jinibyun/CodingLearn
/ConsoleAdoNet/ConsoleAdoNet/_07StoredProcOutput.cs
2.90625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Text; namespace ConsoleAdoNet { public class _07StoredProcOutput : BaseClass { public override void Test() { /* CREATE PROC uspSPwithOUTPUT @v_titl...
49382fd050536e4b337a949dbc663535bfe790ac
C#
switch-stuff/AES-Sharp
/Program.cs
2.921875
3
using System; using System.IO; using System.Linq; namespace AES_Sharp { class Program { static void Main(string[] args) { byte[] h(string Hex) { return Enumerable.Range(0, Hex.Length).Where(x => x % 2 == 0).Select(x => Convert.ToByte(Hex.Subs...
c5ed68cdd0a3d152aa5c307dc701e6935582fd06
C#
Fasjeit/DiscoNet
/DiscoNet.Tests/SymmetricTests.cs
2.78125
3
namespace DiscoNet.Tests { using System; using System.Linq; using System.Text; using DiscoNet.Noise; using StrobeNet.Extensions; using Xunit; public class SymmetricTests { [Fact] public void TestHash() { var input = Encoding.ASCII.GetBytes("hi, ho...
2f1b4a8fdc5a2454f7614d4f8c08d6afc4180c2a
C#
asafgunay/dotnet-core-kodluyoruz-2019-2
/console-uygulama-ornegi/ConsoleApp/Models/Bike.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp.Models { public class Bike : Vehicle { public Bike() { // bos constructor } public Bike(string brand, string modelName, double price, bool hasBasket) { Brand...
7f0cd35bd101d0417683e30207be11e7d1f4d99a
C#
shendongnian/download4
/code8/1359158-36822228-116485491-2.cs
2.734375
3
void _serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { int dataLength = _serialPort.BytesToRead; byte[] data = new byte[dataLength]; int nbrDataRead = _serialPort.Read(data, 0, dataLength); if (nbrDataRead == 0) ...
5b0d7a8667b212e6a0aef86e1f05a609c640a85c
C#
Mee7891/MyFirstCSWinApplication
/MathUtils.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyFirstCSWinApplication { static class MathUtils { public static void SimpleFactors(int n, bool repets, IPrinterEnumerable<int> printer) { List<int> factors...
0e46e406238527f2fd1a18f57aebb62b902108aa
C#
razvansdira/C-Sharp-For-Loop
/Exercise52.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Sharp_For_Loop { class Exercise52 { public static void Main() { int x, y, z, n; double sum = 0, tn, gpn; Console.W...
83e781aea6da2182b4e40eabefffea1db0cba3a2
C#
Luminisc/ConcurrentLogger
/AvaloniaMVVM/AvaloniaMVVM/Kernels/HistogramKernels.cs
2.828125
3
using ILGPU; namespace AvaloniaMVVM.Kernels { public class HistogramKernels { public static void StandardDeviation(Index index, ArrayView<double> result, ArrayView3D<short> input) { long sum = 0; var band = input.GetSliceView(index).AsLinearView(); for (int...
bf1b4638fb35d4bd848362e0864121843f3fb608
C#
TotalerBob/honeybadger
/honeybadgersOCR/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace honeybadgersOCR { class Program { static void Main(string[] args) { string imageFilePath = @"C:\Users\sabin\Desktop\honeybadger\coupon\1.PN...
61d8720aa2dde3078abb3f6312e68d0e4b45fe86
C#
PauloTessarolliJr/Calc
/Zero Funcoes/WindowsFormsApplication1/NewtonMod.cs
2.890625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using YAMP; namespace WindowsFormsApplication1 { class NewtonMod { private NumberStyles style; private CultureInfo culture; private Parser p; ...
1831599398fa799978514deffad95cd743ad9047
C#
OSUGameDev/Invaders
/GameCode/Invaders/Assets/Scripts/Spawner.cs
3.203125
3
using UnityEngine; public class Spawner : MonoBehaviour { [SerializeField] private GameObject[] enemies; // a list of types of enemies the spawner can spawn (e.g., astroid, alian1, alian2, etc.). [SerializeField] private int spawnRateMax; [SerializeField] private int spawnRateMin; [SerializeField] private...
f2c17449a36c4af660d1eb8c342b52f6b960c30a
C#
CliffordSix/2.5Platformer
/Assets/Behaviours/Triggers/Trigger.cs
2.546875
3
using UnityEngine; using UnityEngine.Events; using System.Collections; public abstract class Trigger : MonoBehaviour { public bool oneShot = false; public bool inverted = false; [SerializeField] UnityEvent onActivated; [SerializeField] UnityEvent onDeactivated; bool lastResult = false; ...
d892319d402767ec34c2305dc4d1f6e2b710cd88
C#
MinBek/SOS21GB
/Vecka1/InputOutput/Exercise02.cs
3.390625
3
using System; namespace Vecka1.InputOutput { static class Exercise02 { public static void Solution() { // Skriv ut Hej och ditt namn på separata rader. Console.WriteLine("2. Greeting - Separate lines"); Console.Write("Enter your name: "); string ...
10e381e353b679599abfaa81ff9ff83dcce5e00d
C#
Pbinh1101/.NetFramework-N1
/BasicWinForm/frmTimer.cs
2.734375
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 BasicWinForm { public partial class frmTimer : Form { public frmTimer() ...
57acbc0b37e1ece0e905194c9005bb9f72f68ef7
C#
AramisIT/Lamps
/WMS client/db/Workers/dbArchitector.cs
2.734375
3
using System.Data.SqlServerCe; namespace WMS_client.db { /// <summary> </summary> public static class dbArchitector { /// <summary> Maps</summary> public static void CreateMapTable() { using (SqlCeCommand query = dbWorker.NewQuery(@"CREATE TABLE Maps( Id big...
f9e59183fd227933fa6741e0aa53eaa262da9e08
C#
tddold/Telerik-Academy-Homeworks
/OOP/DefiningClassesPartTwoHomework/Attributes/VersionAttribute.cs
3.421875
3
namespace Attributes { using System; [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Method, AllowMultiple = false)] public class VersionAttribute : Attribute { public VersionAttribute(str...
2057cdeafd9a429aefe09ce314aa0684a9739f16
C#
Vyrdian/spaceway
/Assets/Scripts/Level Spawning/ObstaclePool.cs
2.78125
3
using System.Collections.Generic; using UnityEngine; public class ObstaclePool : MonoBehaviour { [SerializeField] private Obstacle[] _obstaclePrefabs = null; [SerializeField] private int _initialObstacles = 100; private Queue<Obstacle> _obstacles = new Queue<Obstacle>(); void Awake() => AddObstacle(...
b3548010b767b6b4bc2b49d3dc89a3974df2c450
C#
JayArrowz/ChatApp
/ChatApp/Program.cs
3.0625
3
using DotNetty.Buffers; using System; using System.Net; using System.Text; using System.Threading.Tasks; namespace ChatApp { public class Program { static async Task Main(string[] args) { await MainAsync(); } private static async Task MainAsync() { ...
987699d0687d101b3f4c511e3a6dadcac49f0a46
C#
bvsundeep/ProjectManager
/ProjectManager.Entity/Context/UnitOfWork.cs
2.546875
3
using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; namespace ProjectManager.Entity.Context { using ProjectManager.Entity.Data; using ProjectManager.Entity.Mapping; using ProjectManager.Entity.Interface; public class UnitOfWork : DbContext, IUnitOfWork { pub...
9505d7663edcd0ea19738f32fa41ba86a4deeeb7
C#
deryaunver/BasicProgramming
/Inheritance/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Inheritance { class Program { static void Main(string[] args) { Person[] people = new Person[3] { new Person { ...
f1688f8b22d4ea3d15afc901fa2b9fd83bfd3075
C#
pugking9/SquetBot
/SquetBot/Helpers/MusicHelper.cs
3
3
using System; using System.Threading.Tasks; using YoutubeExplode; using YoutubeExplode.Videos.Streams; namespace SquetBot.Helpers { // Track class to store track information public class Track { public string Title { get; set; } public string Url { get; set; } public string StreamU...
0cf365b32e3a414cbb442ab6167fbb360dea1f96
C#
edornd/lockstep-sample
/Assets/Simulation/Network/NetServer.cs
2.828125
3
using LiteNetLib; using LiteNetLib.Utils; using System; using System.Collections.Generic; namespace Game.Network { /// <summary> /// Wrapper around NetManager, inheriting from NetBase and implementing a simple network server. /// </summary> public class NetServer : NetBase { #region Private va...
493cae19ca57ef3885f44d167da8d8123ceec03a
C#
jjmv/EstudioC-
/Funciones/Funciones/functions.cs
3.453125
3
namespace Funciones { class functions { static void Main(string[] args) { double Base = 5, Altura = 7.5; double area = Rectangulo(Base, Altura); System.Console.WriteLine(area); System.Console.ReadKey(); }//Fin del metodo Main ...
5d37ed6e9857cac984b0f00c7350680c289e1ab6
C#
FernandoVelcic/tp2014-gdd-los-normalizadores
/src/FrbaHotel/Models/Reservas/Estadia.cs
2.546875
3
using MyActiveRecord; using System; using System.Collections.Generic; using System.Linq; using System.Text; using FrbaHotel.Models.Exceptions; namespace FrbaHotel.Models { public class Estadia : ActiveRecord { public override String table { get { return "estadias"; } } public Reserva reserva...
c64c2216fd0b247503c3987d8d613f765042a036
C#
baturayp/SpaceTow
/Assets/Scripts/SongInfo.cs
2.515625
3
using System.Collections.Generic; using System.Linq; using UnityEngine; [CreateAssetMenu(menuName = "Song Info")] public class SongInfo : ScriptableObject { [Header( "Set relevant song audio clip" )] public AudioClip song; [Header( "Set relevant song json" )] public TextAsset json; public string s...
ec0050080330c20a49974c59476d0c1f02aba578
C#
Gaharit/C-Sharp
/Chess/Chess/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chess { class Program { static void ChessTest(string position1, string position2) { Console.WriteLine("\nPossibility of this turn:\n"); ...
a2b17d951dbb63007f30a7ab293436aa96156bf6
C#
DrShushen/RBush
/RBush.SpeedTest/RBushSpeedTest.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // using System.Threading; using RBush; namespace RBush.SpeedTest { public class Item : ISpatialData { private readonly Envelope _envelope; public Item(double minX, double minY, double maxX, doub...
3409687e627aa650a1b9b698f5e4fdec1185aa83
C#
ThyWoof/VGAudio
/src/VGAudio/Utilities/BitWriter.cs
3.109375
3
using System; using System.Diagnostics; namespace VGAudio.Utilities { public class BitWriter { public byte[] Buffer { get; } public int LengthBits { get; } public int Position { get; set; } public int Remaining => LengthBits - Position; public BitWriter(byte[] buffer) ...
1d2e316feffeeb690ce1fcf06245855a48eefdcd
C#
sclshu3714/Framework-Electron-CSharp
/WinformServers/Controller/Services/TimeLineServicesr.cs
2.5625
3
using JpFramework.Tools; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Net; using System.Text; namespace JpFramework { /// <summary> /// 历史记录操作类 /// </summary> public class TimeLineServicesr { /// <summary> /// 查询所有 /// <...
8336c517c4908488e7973f768505710bd539f770
C#
karnalta/Features-Tasks
/Features-Tasks/SuperDecimal.cs
3.5
4
using System; using System.Text; namespace Features_Tasks { /// <summary> /// Decimal number allowing a maximum value of 4,294,967,296 with up to 4,294,967,296 decimals. /// </summary> public class SuperDecimal { private readonly UInt32[] _superDecimal; private readonly int _decima...
7cf200f48eaec6da2c7dd6908be9be9b36252d5d
C#
thirumoorthysivan/MGGP
/MGGP/BAL.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MGGP { public class BAL { private string[] _listOfStatements = new string[50]; private string[] _questions = new string[15]; private st...
8ed000f7d69b0ba41d7f5bee8b41425275abe26a
C#
Ricardocanul7/Snake-ConsoleGame
/Snake-ConsoleGame/Datos/ConexionSQLite.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SQLite; using Snake_ConsoleGame.Modelos; namespace Snake_ConsoleGame.Datos { class ConexionSQLite { private string DatabasePath; private string DatabaseTableNam...
70e4e9c9cd358de840ccd869749e8e4fe966bc27
C#
Janosch76/snippets
/src/Js.Snippets.CSharp/DateUtils/DateTimeExtensions.cs
3.90625
4
namespace Js.Snippets.CSharp.DateUtils { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; /// <summary> /// <see cref="TimeSpan"/> based extension methods /// </summary> public stati...
6b2496ff1be82c858c14ed237b01de9fc90df6c9
C#
devcrux/Border-Animation-in-Xamarin-Forms
/BorderAnimation/BorderAnimation/MainPage.xaml.cs
2.84375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace BorderAnimation { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent();...
5b40344b6d274394148f22fe985eb3e7792115c2
C#
capnmidnight/ideas
/website from 2008/seanmcbeth.com/App_Code/InstAfraidService.cs
2.703125
3
using System; using System.Collections; using System.Configuration; using System.IO; using System.Net; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = "http://www.seanmcbeth.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Inst...
eb6c45d09a626ad7ea2c69c433312168dace57a1
C#
damy90/Telerik-all
/OOP/Teamwork/screencast accord demo/Sources/Views/CaptureWindow.cs
2.71875
3
// Screencast Capture, free screen recorder // http://screencast-capture.googlecode.com // // Copyright © César Souza, 2012-2013 // cesarsouza at gmail.com // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the ...
36416aedee03e4e7127d711fce14abc082d67f27
C#
Eimriik/Unity-Demo
/Assets/Source/Runtime/Injection/Attributes.cs
2.546875
3
using System; using JetBrains.Annotations; using Zenject; namespace StudioEntropy.Injection { /// <summary> /// Used to decorate a "Constructor" method for use by Zenject when constructing Monobehaviours. /// </summary> [ MeansImplicitUse, AttributeUsage( AttributeTargets.Method ) ] publi...
2af97a093256a3e991ea65a35169eeabb5304cda
C#
JonathanCarey13/TextGame
/GameProject/Room.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using static GameProject.ProgramUI; namespace GameProject { public class Room { public string Splash { get; } public List<Item> Items { get; } ...
146a2020fe8e10b104ec3cf3e1823cc853a3dfed
C#
samhuynhle/csharp_classes_interface_OOP_course
/access_modifiers/Program.cs
3.84375
4
using System; namespace access_modifiers { class Program { public class Person { private DateTime _birthdate; // with private we can't access this field outside the Person class public void SetBirthdate(DateTime birthdate) { // implement log...
51c447c2e3b159b694659e3263fd08a7ad316370
C#
nguyenlinh3836/AP
/lab04/Faculty.cs
3.109375
3
using Microsoft.SqlServer.Server; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab04 { public class Faculty : Employee { private int hour; private string rank; public Faculty(int hour, string rank,int dep...
6605cd877754411db86f509f207e041850babc32
C#
Elitsa-Georgieva/SoftUni-CSharp_Fundamentals
/Associative_Arrays/06.Courses/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; namespace _06.Courses { class Program { static void Main(string[] args) { Dictionary<string, List<string>> studentsByCourse = new Dictionary<string, List<string>>(); while (true) { ...
15865e4bf6c9e67b46b24cb7b3188cbdbd258a27
C#
agglerithm/CJRPDF
/PdfCore/Utilities/PdfFileReader.cs
2.5625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CJRPDF.PdfCore.Utilities { public class PdfFileReader { public PdfFile Load(string fileName) { using (var strm = File.OpenRead(fileName)) ...
9268c2be24292cf4a42de0a2a140d92abada0e1d
C#
Fredj90/Commerical-v2
/fcomm/Metier/metier.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.OleDb; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace fcomm { class metier { public metier() { OpenDBConnexion1(); ...
643be3ab1cd385d9e4015ce2a571b6a3490b05a2
C#
Gao851021/TEMS
/API/temsAPI/temsAPI/Data/Managers/EquipmentLabelManager.cs
2.8125
3
using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using temsAPI.Contracts; using temsAPI.Data.Entities.EquipmentEntities; using temsAPI.Helpers.ReusableSnippets; using temsAPI.System_Files; namespace temsAPI.Data.Managers { public class Equipme...
ec2899f23c455d653681bde5d4bf75dcc4b05ef3
C#
penegiashok/Three-Muskeeters
/QuizBee/QuizBee/Controllers/QuizCategoryController.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using QuizBee.Models; namespace QuizBee.Controllers { public class QuizCategoryController : ApiController { static readonly ICategoryRepository repository = new CategoryRe...
40d0c73fcad660d8f8226c088bbf72735b5831cd
C#
pawan9489/ConcurrencyIn.Net
/ReactiveAppComposition/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Reactive.Linq; namespace ReactiveAppComposition { class Program { static void Main(string[] args) { // To test IObservables =...
ca70530531c755c0d9d840a04607d4dd4ec78c30
C#
DanielaPopova/TelerikAcademy_Homeworks
/C#2/08.TextFiles_HW/Problem06_SaveSortedNames/SaveSortedNames.cs
3.84375
4
using System; using System.Collections.Generic; using System.IO; class SaveSortedNames { static void Main() { try { List<string> names = new List<string>(); using (StreamReader readNames = new StreamReader("../../input.txt")) { string name = ...
5e8e0a9407ac8563978c7af80e72d29966a4bbce
C#
kubczas/EightQueensPuzzle
/Extenstions/IntegerExtension.cs
3.28125
3
namespace Extenstions { public static class IntegerExtension { public static bool IsWithin(this int value, int medium, int scope) { return value >= medium-scope && value <= medium+scope; } public static bool IsBetween(this int value, int min, int max) { ...
ac8f2368ebcfeb94aa649588ba821ae312c6fd8b
C#
Schnefalt/Head-First-Design-Patterns
/ch7-Adapter/InterfaceAndClass.cs
3.375
3
public interface IDuck { void Quack(); void Fly(); } public interface ITurkey { void Gobble(); void Fly(); } public class MallardDuck : IDuck { public void Fly() => System.Console.WriteLine("Flap, flap!"); public void Quack() => System.Console.WriteLine("Quack!"); } public class WildTurkey ...
dac184def5b9c55c4b3cb68a2bd406c2aa208306
C#
salahbedeiwi/CSharp-Course
/StructExample/StructExample/Program.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StructExample { //how to create your own type => struct //like when you create class type, string type, int type, //here i want to have struct type => my own //can s...
83caffe6a8d196a97c0802c8a11b1d9dd1fd4198
C#
PedroSilvaMorais/Consultorio
/WebAPI/WebAPI/DesafioBuiltCode/Models/Dados/Patient.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Data; using System.Data.SqlClient; using Dapper; namespace DesafioBuiltCode.Models.Dados { public class Patient { private string strConexao; public Patient() { ...
86ed46f53853d7b9c9eb873a08bfa68e8b5b0370
C#
Sammmte/Paps-StateMachines-Core
/Paps-StateMachines-Core/Assets/StateMachines Core/Extensions/EventDispatcherStateMachineExtensions.cs
2.71875
3
using System; namespace Paps.StateMachines.Extensions { public static class EventDispatcherStateMachineExtensions { public static void SubscribeEventHandlerTo<TState, TTrigger>(this IEventDispatcherStateMachine<TState, TTrigger> fsm, TState stateId, Func<IEvent, bool> method) { ...
478367395dab017e7f28b19c8fe44fc76c38c0e8
C#
trueouter/RepoDb
/RepoDb/RepoDb.Tests/RepoDb.UnitTests/QueryGroups/QueryGroupTestParseDynamicForNotBetweenOperation.cs
2.640625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using RepoDb.Enumerations; using RepoDb.Exceptions; namespace RepoDb.UnitTests { public partial class QueryGroupTest { // NotBetween [TestMethod] public void TestParseDynamicParseDynamicNotBetweenOperation() { // ...
65b96b2d8ccc8b7b4cb7d534a6d3da3321fb433e
C#
NwlSmith/PvP-Space-Shooter
/Assets/Scripts/Utilities/UI/AnnouncementController.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /* * Date created: 10/3/2018 * Creator: Nate Smith * * Description: The Controller for announcements ingame. * Controls the displayed text in each announcement and their movement into and out of screen. */ publi...
1f75170c3a19973df8cea7f2d171ea7310cb221a
C#
wxf1116/study
/WebApp002/WebApp002/Dao/StudentDao.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using MySql.Data.MySqlClient; using stud = WebApp002.Models.StudentModels; namespace WebApp002.Dao { public class StudentDao { string s = "server = localhost; database = test; user = root; password = 123456; charset =...
e9109c23eb739b06ef9ad079b532b24a2a2f26a2
C#
truongdothienhoang/test
/Controllers/ViewModels/PagedList.cs
2.515625
3
using System; namespace WebrootUI2.Web.Mvc.Controllers.ViewModels { public class PagedList { public int ItemCount { get; set; } public int PageCount { get { return (int)Math.Ceiling((double)this.ItemCount / this.PageSize); } ...
11ff748f4bf7cb7ad4f52358809260bc7778ee90
C#
oguzhankiyar/old-projects
/iTunesMusic/UniversalWindows/1.1.0.0/iTunesMusic/iTunesMusic/iTunesMusic.Shared/Parsings/AlbumParsing.cs
2.734375
3
using iTunesMusic.Entities; using System; using System.Collections.Generic; using System.Text; using iTunesMusic.Entities.EntityListItems; using Newtonsoft.Json.Linq; namespace iTunesMusic.Parsings { class AlbumParsing { public static List<AlbumListItem> ParseTopAlbums(string json) { ...
fb3b94679ba015722b3ebb68a67c2c130ddfdee8
C#
abhishekbhalani/Catel
/src/Catel.Core/Catel.Core.Shared/Data/EventArgs/AdvancedPropertyChangingEventArgs.cs
2.703125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AdvancedPropertyChangingEventArgs.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // ------------...
b151907297b1cd0ea099c17ffd70bf37a25a0d5e
C#
NASOKILA/SoftUni
/2.Prgramming fundamentals/kurs fundamental 2017/17.RegularExpressions/05.MatchNumbers/MatchNumbers.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _05.MatchNumbers { class MatchNumbers { static void Main(string[] args) { string input = Console.ReadLine(); ...
7f3996822394fd134d874b77db987779f803d058
C#
jdswift13/cowboy-cafe
/Data/AngryChicken.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; namespace CowboyCafe.Data { /// <summary> /// Class which represents Angry Chicken entree menu item /// </summary> public class AngryChicken : Entree { /// <summary> /// If dish should be served with bread ...
71eb1912887e90d62f145b0a89e893a89aded5da
C#
Golcio/Automatically-Switched-Network-Emulator
/Network Manager/AddNewEntryClient.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 Network_Manager { public partial class AddNewEntryClient : Form { NetworkManag...
50edc49003a58603cb5b01a2721e4a810c34814c
C#
cell-lang/download
/examples/chat-server/main.cs
3.03125
3
using System; using System.IO; using System.Linq; using CellLang; static class ChatServerMain { public static void Main(string[] args) { Generated.Logins logins = new Generated.Logins(); // Logging in a bunch of users logins.Execute("login(user_id: 0, name: \"emy\")"); logins.Execute("login(user_i...
5142a820886c91f530dcf2f7ac67fd2969e60d13
C#
talaku-Abraham/DesignPatternExamples
/Strategy/Heroes/SuperHeroes/Batman.cs
2.8125
3
namespace Strategy.SuperHeroes { public class Batman : IHero { public void Fight() { System.Console.WriteLine("Batman beating thugs with fancy gadgets"); } public void Taunt() { System.Console.WriteLine("I am Batman!"); } } }
dbc76edfad754545de95483c80435634e82d8c3d
C#
antsacc93/PreAcademyG---Week6
/ExceptionWeek6.Demo/Week6.AppComune/Entities/Vigile.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Week6.AppComune.Entities { public class Vigile { public string Matricola { get; set; } public string Nome { get; set; } public string Cognome { get; set; } ...
65d5b83699009408184091cd35d6548b74573502
C#
patrycjarychlik/notebook
/Memos/SQL/Data/Element.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace SQL.Data { public class Element { #region Zmienne /// <summary> /// Rekord dla tej klasy /// </summary> protected DataRow m...
ed3ee9fd1a9129bff93c642970e9b5e62aa7eb38
C#
AllanJone/jikan.net
/JikanDotNet/JikanDotNet.Test/AdvancedSearchTestClass.cs
2.671875
3
using System.Linq; using System.Threading.Tasks; using Xunit; namespace JikanDotNet.Tests { public class AdvancedSearchTestClass { private readonly IJikan jikan; public AdvancedSearchTestClass() { jikan = new Jikan(true); } [Theory] [InlineData("berserk")] [InlineData("danganronpa")] [InlineDat...
95582d60d75b58f9e628b6798b2b317153de22b1
C#
Lchaos/TimeTableProblem
/TimeTableProblem/CourseCollection.cs
2.5625
3
using System.Collections.Generic; using System.Linq; using System; using System.Collections; using System.Collections.Immutable; namespace TimeTableProblem { public class CourseCollection:List<Course> { public List<Course> Subjects; public List<DeterminedCourse> DeterminedCourses; public...
e46588124080551aaeaf79e0cb515f4ff8e88700
C#
CeSiumUA/TestTask
/TestTask/Controllers/PositionController.cs
2.640625
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using TestTask.Models; namespace TestTask.Controllers { [Route("api/[controller]")] [ApiController] public ...
93749d1fea5545c76d8532dd1113e0a2bd3a8242
C#
stjeong/DotNetSamples
/WinConsole/PEFormat/PEFormatSample/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using WindowsPE; #pragma warning disable IDE0051, CA1031 namespace PEFormatSample { class Program { static int Main(string[] args) { //// Is DLL managed...
2456d64063c0c6fc27525a0dc168a119548e83ce
C#
emehiel/Horizon
/src/Utilities/Complex.cs
3.078125
3
// Copyright (c) 2016 California Polytechnic State University // Authors: Morgan Yost (morgan.yost125@gmail.com) Eric A. Mehiel (emehiel@calpoly.edu) using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; namespace Utilities { [Serializable] //[ExcludeFromCodeCoverage] p...
6d2d9574f80a53597746a792f6ba100ed34ec872
C#
optimax/SimpleRazor
/SimpleRazor/Razor.cs
2.515625
3
using System.CodeDom.Compiler; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Web.Razor; using Microsoft.CSharp; namespace SimpleRazor { /// <summary> /// Provides access to the SimpleRazor engine. /// </summary> public static class Razo...
bdce192022d066741b0e4403e05ac7852124b529
C#
ahmedfathy74/Search-Engine
/third module/Finalmodule/Finalmodule/Models/algorithms.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Finalmodule.Models; namespace Finalmodule.Models { public class algorithms { public string soundexalgorithm(string stringdata) { string x = ""; x += stringdata[0]; List...
493fade25ff7b1d9da6fc1d6cf5dfa1dca60346f
C#
seanmobrien/CryptoKitties.Net.Api
/src/CryptoKitties.Net.Api/Api/Models/KittyBase.cs
2.515625
3
using System; using System.Runtime.Serialization; namespace CryptoKitties.Net.Api.Models { /// <summary> /// Base class shared by all kitties /// </summary> [DataContract] [KnownType(typeof(KittySummary))] [KnownType(typeof(Kitty))] [KnownType(typeof(RelatedKitty))] public class KittyBa...
e65b3b7e6a1c6190d61e6222854b5ebabd602599
C#
milchr/Sports-meeting
/SportsMeeting/Shared/Dto/PageResult.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SportsMeeting.Shared.Dto { public class PageResult<T> { public List<T> Items { get; set; } public int TotalPages { get; set; } public int ItemFrom { get; set; }...
ec926675455e03d9d0dca034f6425aee21f6396f
C#
uira-alberto/LanchesDemo
/Singleton/CookList.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using LanchesDemo.Models; using LanchesDemo.Util; namespace LanchesDemo.Singleton { public class CookList { public CookList() { items = new List<Cook>(); ItemsWaiting = ne...
b844e509842e0477c9ac2b961f0d24c95124c6b2
C#
Matheus1923/Miltec
/MiltecEstagio/MiltecEstagio/Controllers/TutorController.cs
2.703125
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using MiltecEstagio.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MiltecEstagio.Controllers { [Route("api/[controller]")] [ApiController] public class TutorController : Con...
b7775bc53c74c796983b0c133c902d2415a8fe23
C#
willardf/InfiniteCyborg
/InfiniteCyborg/Lights/FOVSolver.cs
2.90625
3
using InfCy.GameCore; using InfCy.Maths; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InfCy.Lights { class FOVSolver { public int X { get; private set; } public int Y { get; private set; } private float[]...
9e198d20f8779ce5ba589a91f84deee89cedc688
C#
xnlzg/LebiShop
/DB.shop/Bussiness/B_Lebi_Order.cs
2.5625
3
using System; using System.Data; using System.Collections.Generic; using System.Text.RegularExpressions; using LB.DataAccess; namespace DB.LebiShop { /// <summary> /// 业务逻辑类B_Lebi_Order 的摘要说明。 /// </summary> public partial class B_Lebi_Order { public B_Lebi_Order() {} #region 成员方法 /// <summary> /// 返回...
8348899a9d841a7eb5706b31107a140c24b9e017
C#
pavoldecky/docker-demo
/Demo 4/src/Database.cs
2.578125
3
using Microsoft.EntityFrameworkCore; public class DatabaseContext : DbContext { public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options) { this.Database.EnsureCreated(); } public DbSet<Product> Products { get; set; } } public class Product...
6117c8c2fa2698c1c59d0542cf54e24d07f2f2b2
C#
aceven24/ShipStation4Net
/ShipStation4Net/Filters/ProductsFilter.cs
2.578125
3
#region License /* * Copyright 2017 Brandon James * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
54744b216c92e42fd770b0e3e911d66ec35edc87
C#
MohamedSadat/R.Gear
/CHead.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RGear { public class CHead { public readonly string _EndTag = "</head>"; public readonly string _BeginTag = "<head>"; public readonly string _BeginStyle = "<style>"; publi...
be2774b84009535a1bd7e7b8199e5eadc863bd5c
C#
chadphanson/Cherwell_ChadHanson_CodeTest
/TriangleAPI/Controllers/TriangleController.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Drawing; namespace TriangleAPI.Controllers { [RoutePrefix("api/triangles")] public class TriangleController : ApiController { public Dictionary<string, i...
ccbc364368950bb93869caf6930a02e2e6944cfb
C#
pjtown/csharp-oauth
/OAuth/Core/OAuthParameter.cs
2.6875
3
// Copyright 2013 Peter Townsend // Licensed under the MIT License namespace OAuth.Core { public class OAuthParameter { private string name; private string value; public OAuthParameter(string name) { this.Name = name; } public string Name ...
7a81fc5f13c249194c8f86dd0ddea8b8d00d2dbb
C#
miRoox/Leetcode
/csharp/merge-two-sorted-lists/tests/ListUnitTest.cs
2.828125
3
using System; using Xunit; namespace MergeTwoSortedLists.Tests { public class ListUnitTest { [Fact] public void Test0() { Assert.Null(ListNode.Create()); } [Fact] public void Test1() { Assert.Equal(new ListNode(1), ListNode.Create...
388643f991b41256f20c57e85f5bd7ad98ebb6e0
C#
natsnudasoft/EgamiFlowScreensaver
/src/EgamiFlowScreensaver/IImageScaleService.cs
2.59375
3
// <copyright file="IImageScaleService.cs" company="natsnudasoft"> // Copyright (c) Adrian John Dunstan. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ht...
5273f849e3b52775265f9eca9d4ff48baf76ea5a
C#
antwit/CourseChecker_
/ConsoleApp1/ConsoleApp1/SiteReader/GetCourseUrlsFromIntegrata.cs
2.921875
3
using CourseChecker.Course; using HtmlAgilityPack; using NLog; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace CourseChecker.SiteReader { /// <summary> /// Sammelt alle URL's zu den Kursen auf der gegebenen Seite /// </summary> class GetCourseUrlsFromIntegrata ...
685153db26960e52db1759aa96e6928077e74428
C#
TVetrovsky/SudokuSolver
/SudokuSolver/MatrixConsolePrinter.cs
3.03125
3
/* * Created by SharpDevelop. * User: tomas * Date: 24.09.2017 * Time: 21:59 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Linq; namespace SudokuSolver { public static class MatrixConsolePrinter { public static void Print(Matrix m) { f...