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
f232b49aad2803df40f9d4f33b36c7ded5a215c3
C#
PyjterPL/Przychodnia
/Przychodnia/OddzialySpecjalizacje_formy/Oddzialy_Specjalizacje.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Przychodnia.Obiekty_Bazy; using MySql.Data.MySqlClient; using System.Windows.Forms; namespace Przychodnia.OddzialySpecjalizacje_formy { ///<summary> /// Klasa opakowująca. Zawiera Lekarza wraz...
5c29144f5261a7f974233502e0acdf8fe23cfc2b
C#
shendongnian/download4
/code3/470569-10698338-24681502-2.cs
2.78125
3
isChecked = radioButton1.Checked; } private void radioButton1_Click(object sender, EventArgs e) { if (radioButton1.Checked && !isChecked) radioButton1.Checked = false; else { radioButton1.Checked = true; ...
2f299314744d61c9f867970a6c18d67496f9334a
C#
esdalmaijer/2020_Lund_Utrecht_wm_collab_online
/memory_collaboration_game/Assets/Scripts/EndOfExperiment.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EndOfExperiment : MonoBehaviour { [SerializeField] string prolificCompletionCode; [SerializeField] float waitUntilRedirectSeconds = 5.0f; [SerializeField] TextMesh thankYouText; // Variables. private bool i...
cd75eef95648d64e22324e818e530919ee9e102e
C#
tedztar/School-Projects
/TIMERAPP/Form1.cs
3.03125
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 TIMERAPP { public partial class Form1 : Form { public Form1() { ...
2fb971cfb9427fa292194958985459fc488c501c
C#
HardToGetAnName/-
/设计模式/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 设计模式 { class Program { static void Main(string[] args) { float price = 10f; CheckOut checkOut = new CheckOut(); checkOut.SetAttr(new...
ed465f26e1982281f05ecdcbeec69b66380e1b73
C#
keelyzglenn/Cabrador
/Tests/DogTest.cs
2.8125
3
using Xunit; using System.Collections.Generic; using System; using System.Data; using System.Data.SqlClient; namespace Cabrador { public class DogTest : IDisposable { public DogTest() { DBConfiguration.ConnectionString = "Data Source=(localdb)\\mssqllocaldb;Initial Catalog=cabrador...
a44e53db1634b90620658b885cfb20dc224b6b7e
C#
tmk907/NextPlayer
/NextPlayerDataLayer/Model/Song.cs
2.515625
3
using System; namespace NextPlayerDataLayer.Model { public class SongData { public int SongId { get; set; } public string Filename { get; set; } public ulong FileSize { get; set; } public string Path { get; set; } public uint Bitrate { get; set; } publi...
a29cb8d543851bcb74c704f245197741e7a64c1a
C#
ScreeM92/Software-University
/Level #2/OOP/Teamwork/Telerik-Academy-Repo-master/Homeworks/CSharp/OOP/05.OOPPrinciples/E02 - BankAccounts/Mortgage.cs
3.21875
3
using System; class Mortgage : Account { public Mortgage(Customer customer, decimal balance, float interestRate) : base(customer, balance, interestRate) { } public override decimal CalculateInterestAmount(int numberOfMonths) { bool isAnyInterest = true; int divider = 1; if (this....
ecfb4ac66a46beda4c60f222599cf3ca65a3230e
C#
deepnetworkgmbh/joseki
/src/backend/joseki.be/webapp/Models/InfrastructureComponentSummary.cs
2.703125
3
using System; namespace webapp.Models { /// <summary> /// Summarizes a single infrastructure unit stats: score, trends, name. /// </summary> public class InfrastructureComponentSummary { /// <summary> /// The generation date of the Summary. /// </summary> public Dat...
f2eac1c12a7ff3b68ea7cdddaa71788ee8f532e5
C#
tudodetalhado/varios
/Kinect-Studio-Sample-master/Microsoft.Xbox.Tools.Shared/TimelineSelectionVisual.cs
2.53125
3
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved. using Sy...
1d03680229f242f4b7908d4cd8bc8631bb401ce6
C#
cohero/ComposeBuilderDotNet
/ComposeBuilderDotNet/Builders/ComposeBuilder.cs
2.828125
3
using System; using System.Collections.Generic; using ComposeBuilderDotNet.Builders.Base; using ComposeBuilderDotNet.Model; namespace ComposeBuilderDotNet.Builders { public class ComposeBuilder : BuilderBase<ComposeBuilder, Compose> { public ComposeBuilder WithVersion(string version) { ...
8e0d07d38422735105a94f274c533afdd73421c6
C#
priyadharshinisugavanam/OnlineJewellaryShoppingProject
/OnlineJewelShopping/OnlineJewelShopping/UserDetails.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; namespace OnlineJewelShopping { public class UserDetails : UserClass { //List for Storing user in...
d31e2720c444df3c818cacde2229b3db7d26b8d4
C#
cvetina97/MultidimensionalArrays
/Zadacha41/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zadacha41 { class Program { static void Main(string[] args) { int product = 1; int productForAll = 1; int[,] matrix = { { -3, 8, 1 ...
1ef6515641e07b531558bee3da3b3975b0fd4f02
C#
bubdm/FluentArgs
/source/FluentArgs/Description/GivenCommand.cs
2.5625
3
namespace FluentArgs.Description { using System.Collections.Generic; using System.Collections.Immutable; internal class GivenCommand { public GivenCommand(Name name, IEnumerable<GivenCommandBranch> branches) { Name = name; Branches = branches.ToImmutab...
d78236b6d06c71950eced891522d70159f1601b3
C#
Krivda/gUmMY
/Sharp.Xmpp-master/Extensions/XEP-0045/History.cs
2.6875
3
using System; using System.Xml; using Sharp.Xmpp.Core; namespace Sharp.Xmpp.Extensions { /// <summary> /// Implements the message history request object as described in XEP-0045. /// </summary> public class History : Presence { private const string rootTag = "presence", xTag = ...
c08390312b4af24aa8caa213d3d449a4456e1fdf
C#
efieleke/Utils
/Rand/ThreadSafeRandom.cs
3.375
3
using System; using System.Threading; namespace Sayer.Rand { /// <summary> /// Random number generator that is thread-safe. /// </summary> public static class ThreadSafeRandom { /// <summary> /// Returns a Random instance specific to the current thread. It must not be ac...
6c105caaeac7f9dbb78790b6abfd98a99fd77a62
C#
limitzero/MonacoServiceBus
/src/Extensibility/Modelling/Monaco.Modelling/BusinessModel/Internals/BusinessProcessModel.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using Monaco.Modelling.BusinessModel.Elements; namespace Monaco.Modelling.BusinessModel.Internals { // idea came from : http://www.ibm.com/developerworks/rational/library/09/modelingwithsoaml-1/ /// <summary> /// Abstract class that models at a bri...
392e53270c3226157edfce1e26b698afaa8f9c57
C#
Skinify/DDTank-3.0
/Game.Base/Events/server/GameServerEvent.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Game.Base.Events { /// <summary> /// This class holds all possible server events. /// Only constants defined here! /// </summary> public class GameServerEvent : RoadEvent { /// <summary> ...
8d95058a3a03ee6d9e295dea04793d32eba7c650
C#
Oguzhanhidir/ReCapProject
/DataAccess/Concrete/InMemory/InMemoryCarDal.cs
3.015625
3
using DataAccess.Abstract; using Entities.Concrete; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DataAccess.Concrete.InMemory { public class InMemoryCarDal: ICarDal { List<Car> _cars; public InMemoryCarDal() { _cars = new Li...
d51fd8a3556c9748ffab06f7f15cfccbcb341b09
C#
ninamarkoff/Telerik
/C# Part 1/Lecture_3_Operators_Expressions_Statements/Problem_10_BitInPositionP/BitInPositionP.cs
3.921875
4
using System; public class BitInPositionP { public static void Main() { /* Problem 10, Lecture 3: * Write a boolean expression that returns if the bit at position p (counting from 0) * in a given integer number v has value of 1. Example: v=5; p=1 -> false. */ int...
2326e3ca37d154c0f5fe89466cf11300b690abf3
C#
SkelletonX/GFramework
/GFramework.Network/Packets/BitPacket.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GFramework.Network.Packets { using Bases; using Factories; public class BitPacket : BasePacket { public override byte[] Data { get; set; } public int Offset { ...
8f16515fd24b2f3646435039d394c16f10696ad6
C#
withsalt/LiveServer
/src/Harmonic/Networking/Amf/Serialization/Amf3/Vector.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Harmonic.Networking.Amf.Serialization.Amf3 { public class Vector<T> : List<T>, IEquatable<List<T>> { private List<T> _data = new List<T>(); public bool IsFixedSize { get; set; } = false; pu...
389743a36130d0b43335f6dd67249d421a0fed2c
C#
dahopkin/Tetris
/TetrisTest_PieceRotate/TimedEffect.cs
3.75
4
/* * The TimedEffect class starts and keeps track of a time span, so that a class using it can do * something over a certain period of time. When the time has expired, the effect stops. * It can be reset, then started again, if the user/client class wants to use one for the whole program. * It needs a number (for...
c45be2245c130d7e94c96268ef78eb46ac508b47
C#
Daankovski/Mythe
/Assets/_Scripts/Text/TutorialText.cs
2.53125
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class TutorialText : MonoBehaviour { //These are the text colliders [SerializeField]private GameObject textbox; [SerializeField]private GameObject walkTextInit; [SerializeField]private GameObje...
b98940f48339fafeb407cf7b766ff47a6490cbe0
C#
bucsan/WebDDD2019
/Applications/Aplicacoes/AppProduto.cs
2.5625
3
using Applications.Interface; using Domain.Entidades; using Domain.Interfaces.Produtos; using System; using System.Collections.Generic; using System.Text; namespace Applications.Aplicacoes { public class AppProduto : InterfaceAppProduto { InterfaceProduto _InterfaceProduto; public AppProduto...
aa7e7bea9ca49071bb959976acfd502869ec50df
C#
MSDbooks/XML
/XMLReader/Models/Repository/Repository.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace XMLReader.Models.Repository { public class Repository : IRepository, IDisposable { private String strConnection; private SqlConnection con...
fbcde57cede6724e7d840346c41ab09312f58f3a
C#
atosorigin/javascriptWorkshop
/src/JavaScript.Workshop/JavaScript.Workshop/Areas/KnockoutJS/Controllers/CascadingDropdownController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using AttributeRouting; namespace JavaScript.Workshop.Areas.KnockoutJS.Controllers { [RouteArea("KnockoutJS")] public class CascadingDropdownController : Controller { // ...
f0be3bcfb31fe07d84a95be45b7138a69b148368
C#
yono-ms/GenericMvvm
/GenericMvvm/GenericMvvm.Android/TextInputViewBind.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using System.Reflection; using Android.Views.InputMethods; using Android.Text; namespace GenericMvvm.Droi...
ca5c038ba9b92f0b3837a0844df736a58e6f8fc7
C#
n-matsu/TestRX
/WindowsFormsApplication1/Form1.cs
2.59375
3
using System; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Windows.Forms; using System.Reactive; using System.Reactive.Linq; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { Initial...
6df302f71f4ae4571781965018cbd91b0771489a
C#
Wiladams/LeImposter
/JavaScript/JBoolean.cs
3.171875
3
namespace JavaScript { public class JBoolean : JObject { public bool val; public JBoolean(bool value) { this.val = value; } public JBoolean(double value) { if (value == 0 || value == -0 || value == double....
42d16c8cbfd20c49962d457f9c0a1f9324cace4f
C#
nixondanielj/thelocator
/LocatorTesting/SmokeTests.cs
2.78125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using DependencyLocator; namespace LocatorTesting { [TestClass] public class SmokeTests { [TestMethod] public void FactoryCreatesILocator() { var locator = LocatorFactory.GetLocator(); Assert....
ab22158ac7707de8565adb0e2efce988e5800f04
C#
bryanrtboy/AudioProcedural
/Assets/ProceduralAudioTools/Scripts/Metronome.cs
2.765625
3
//Bryan Leister - Jan 2017 using System.Collections; using UnityEngine; // The code example shows how to implement a metronome that procedurally generates the click sounds via the OnAudioFilterRead callback. // While the game is paused or the suspended, this time will not be updated and sounds playing will be paused....
689bf16467b46328671640c06259294b275938e6
C#
EddieGarmon/uScoober
/Core/uScoober.Threading/Shared/uScoober/Threading/TaskContinuationManager.cs
2.8125
3
using uScoober.DataStructures; namespace uScoober.Threading { internal static class TaskContinuationManager { private static readonly Ring __continuationRecords = new Ring(); internal static void ContinueFrom(Task task) { // NB: This method will always and only be called from Task...
0ef47ac6cd958130ccf69e9e79ed1ad9128df73c
C#
Zelgunn/DactyleaFluwid
/Scripts/SmartFluwid/InterpoLagrange2D.cs
2.671875
3
using UnityEngine; using System; using System.Collections.Generic; public class InterpoLagrange2D { private double[] m_xValues; private double[] m_yValues; private double[][] m_zValues; private Polynome2D m_polynome2D; public InterpoLagrange2D(double[] xValues, double[] yValues, double[][] zValu...
4092dc61f63a9e8f6be10c6751fcb0b2898f826b
C#
NightOwl888/J2N
/src/J2N/Numerics/DotNetNumber.FloatingPointHexNumberBuffer.cs
2.65625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace J2N.Numerics { internal static partial class DotNetNumber { // As a shortcut to working out how to convert a floating point hex number to a binary represen...
620b6579a0e362462ad30c5278ce849ac61be028
C#
desdo09/myprojects
/BE/Order.cs
2.9375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BE { public enum Hashgacha { NotKosher, Kosher, Mehadrin, Badatz }; [AttributeUsage(AttributeTargets.Property)] public class Order: Attribute { ...
35477020397d1503ca4fbae0cca30c2e8ac20f61
C#
nikolaydimov83/OOP_Homeworks
/02Homework/01Point3D/01Point3D/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _01Point3D { class Program { static void Main(string[] args) { Point3D.StartingPoint.X = 1; Point3D firstPoint = new Point3D(2, 2, 2); Point3D seco...
8e596a6098aa96b2c3ce337f72a0730d2f4b9aa4
C#
girald02/IOSv1-C-Sharp
/IOSv1/UpdateCCL.cs
2.515625
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 IOSv1 { public partial class updateCCL_frm : Form { public updateCCL_frm() ...
63aa0c530bf422ceb6c8d5fc1d3e15513ebd25f6
C#
shendongnian/download4
/code1/162382-3006115-6210811-2.cs
3.265625
3
static StringBuilder CreateCSV<T>( IEnumerable<T> data ) { StringBuilder builder = new StringBuilder(); var properties = typeof( T ).GetProperties(); foreach ( var prop in properties ) { builder.Append( prop.Name ).Append( ", " ); } builder.Remove( builder.Le...
c5052a972087eed2ba8d7ae90a557897f406398f
C#
thiagodacosta85/SintaxeElogicaCsharp
/SaidaConcatenada/Program.cs
3.203125
3
using System; using System.Globalization; namespace saidaconcatenada { class Program { static void Main(string[] args) { int idade = 35; double salario = 5000.0; string nome = "Thiago"; char sexo = 'M'; CultureInfo CI = CultureInfo.I...
66da7b1a154e2463d3a5b3915689850e9f688084
C#
msmaldi/SpecificationPattern
/samples/SpecificationOnEF7.Cmd/Program.cs
3
3
using Msmaldi.SpecificationPattern; using SpecificationOnEF7.Cmd.Data; using SpecificationOnEF7.Cmd.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SpecificationOnEF7.Cmd { public class Program { public void Main(string[] args) { v...
23ba9940799d69402050acb3a64635dd19ab3746
C#
BrightLight/YouShouldSpellcheck.Analyzer
/demo/SpellcheckerDemo/Class1.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace SpellcheckerDemo { /// <summary> /// This is a smple test. /// </summary> public class Class1 { [Display...
94faa463fbd3c411cb359c27cc55da88fccde399
C#
dantitner/tmssystem
/LayersDAL/Repositories/UserRepository.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LayersDAL.Entities; using LayersDAL.Interfaces; using LayersDAL.EF; using System.Data.Entity; namespace LayersDAL.Repositories { public class UserRepository : IRepository<User> { pr...
46870f2a213d29c036d39fe0b159e9201f1712bf
C#
valenc3x/CodingLessons
/LeetCode/MockInterviews/C#/SingleNumber.cs
3.21875
3
using System; using System.Collections; namespace LeetCode { class SingleNumber { static void Main(string[] args) { int[] nums = new int[]{ 43, 43, 43, 16, 16, 16, 45, ...
5590e66180739303251b4c2f30142c8b23911746
C#
Layangi/Android-Application---Xamarin.Forms
/EnterpriseApp.Net/DataRetriever.cs
2.703125
3
using EnterpriseApp.Data; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Xml.Linq; namespace EnterpriseApp.Net { public class DataRetriever { //public Posts BindingContext { get; private set; } public User BindingContext...
9daad485929a83d487a919bfd44e34b67e5a56fc
C#
nagelalexgit/NCTSYS-Project
/NCTSYS/frmMakeApp.cs
2.6875
3
using System; using System.Windows.Forms; using Oracle.ManagedDataAccess.Client; namespace NCTSYS { public partial class frmMakeApp : Form { private Form parent; public frmMakeApp() { InitializeComponent(); } public frmMakeApp(Form parent) { ...
41713a57c9023e31209dbe909d2a2b883f38b361
C#
heshko/freaky-fashion-API--c-
/FreakyFashion2/Pages/Search.cshtml.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FreakyFashion2.Data; using FreakyFashion2.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace FreakyFashion2 { public class SearchModel : PageModel { private ...
4a16ad7bbafbbe6ddee1e41ed5baf50528d1d55a
C#
atsharrock/ZooTechTest
/ZooSimTechTest/ObservableObject.cs
2.8125
3
using System; using System.ComponentModel; /// <summary> /// This is done to save adding this code into a lot of classes. /// </summary> public class ObservableObject : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(String name) { ...
7a2e51e454ebeadefb3469be0dcebf4459bf936c
C#
nigarjafar/hotel_management
/HotelManagement/Form5.cs
2.5625
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 HotelManagement { public partial class Form5 : Form { public Form5() {...
f36649bbcc1cf80dfb933b0df4fc5635625de983
C#
Gabriel01osabuede/Lab4Assignment
/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; namespace Lab4Assignment { //Array of size N //so we can use a list to accept inputs and den convert it to and array. //Accepting inputs(Scores of students) and storing it in and list. //Note Inputs must be converted to double so t...
599a70c88e2cd3df925e8d207116747215912775
C#
ksenia1009/ImageFilters
/Lab1/IncreaseBrightnessFilter.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace Lab1 { class IncreaseBrightnessFilter : Filters { protected override Color calculateNewPixelColor(Bitmap sourceImage, int x, int y) { ...
d949f7e8d1652914d0763ee7ad628e4f1a5d162f
C#
AoyamaSaito/ShitaiSanpo
/Assets/script/PauseManager.cs
2.96875
3
using UnityEngine; /// <summary> /// 一時停止・再開を制御する。 /// </summary> public class PauseManager : MonoBehaviour { /// <summary>true の時は一時停止とする</summary> bool m_pauseFlg = false; void Update() { // ESC キーが押されたら一時停止・再開を切り替える if (Input.GetButtonDown("Cancel")) { PauseResu...
4e0d8e6bdbb428fa7184dbf806b3e7fa8b24761b
C#
Marina-Efimova00/Kursach_Bank
/BankView/BankDatabaseImplement/Implements/ClientLogic.cs
2.625
3
using BankBussinessLogic.BindingModel; using BankBussinessLogic.Interfaces; using BankBussinessLogic.ViewModel; using BankDatabaseImplement.Model; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BankDatabaseImplement.Implements { ...
bdfbb08270b010f1fa50ca7452bc37489b33f38a
C#
ChristianWeyer/WebApiSignalRAngularDemo
/WebApiSignalRAngularDemo/Server/ProductsController.cs
2.90625
3
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace WebApiSignalRAngularDemo { public class ProductsController : ApiController { private static ConcurrentDictionary<int, Product> database; static ProductsController() ...
9bc5db4f9fd92a8fd57914ac5bc6b3ed0a9ef7dd
C#
Malik-Fleury/VocaQuiz
/VocaQuiz MySQL/Frm_GestionVoc.cs
2.5625
3
/* ____ ____ .__ \ \ / /___ ____ _____ ________ __|__|_______ \ Y / _ \_/ ___\\__ \ / ____/ | \ \___ / \ ( <_> ) \___ / __ \< <_| | | / |/ / \___/ \____/ \___ >____ /\__ |____/|__/_____ \ \/ \/ |__| ...
7cc7dafafda37bb5060a0f785f4f46ccf439110b
C#
billymoughton94/Black-Hole-Game
/Assets/Scripts/Game_Manager.cs
2.6875
3
using UnityEngine; public enum EndScenario { GAMEOVER, VICTORY } public class Game_Manager : MonoBehaviour { private static int itemCount; //total number of items collected private static int itemLimit = 3; // number of items to collect // END THE GAME AS A VICTORY OR GAME OVER. WIN I...
6a101fe43882ed4052b22cd310ab9974a342754a
C#
bolabola/assetFrame
/Assets/Scripts/Tool/Json/JsonListBase.cs
2.8125
3
using LitJson; using System.Collections.Generic; using UnityEngine; /// <summary> /// Json序列化列表实体基类 /// </summary> /// <typeparam name="T">别序列化的实体</typeparam> public class JsonListBase<T> where T : IJsonSerialize, new() { public List<T> dataList; /// <summary> /// 列表长度 /// </summary> public int C...
7fbe7573e2ee06dbdd6096ae724dc08f4411acad
C#
MauricioPortilla/SIGEA
/SIGEA/SIGEA.Pruebas/RegistrarArticuloPruebas.cs
2.515625
3
using System; using System.Collections.ObjectModel; using Microsoft.VisualStudio.TestTools.UnitTesting; using SIGEABD; namespace SIGEA.Pruebas { [TestClass] public class RegistrarArticuloPruebas { /// <summary> /// Prueba que verifica que se registra un artículo y se relaciona con /// ...
761168281b1d470e2b590c5f93cf55efcf09c952
C#
semglad/bank-utilities
/bank-utilities/AccountNumber.cs
3.078125
3
using System; using System.Numerics; using System.IO; using System.Collections.Generic; using Newtonsoft.Json; namespace Ekoodi.Utilities.Finance { public static class AccountNumber { public static bool ValidateBBANNumber (string bbanNumber) { // Check if the calculated check digit...
1b077564e49e78189d2fb12229f54cca668bbbe5
C#
IUT-Becquet-Celian/ProjetRobotPhase3BecquetCelian
/TrajectoryManager/TrajectoryManager.cs
2.671875
3
using EventArgsLibrary; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Utilities; namespace TrajectoryManagerNS { public enum TrajectoryState { Idle, Rotation, Avance, Recule, } public class Traj...
4724aabb5d9ae4426f5638036fc33cbcbed10abb
C#
luiami14/bleakwind-buffet
/Data/Drinks/MarkarthMilk.cs
3.328125
3
/* * Author: Luis Amiel * Class name: MarkarthMilk.cs * Purpose: Class used to represent one of the drinks in the menu */ using BleakwindBuffet.Data.Enums; using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace BleakwindBuffet.Data.Drinks { public class Mark...
dd5022d392f22635f2777dd2f6d188ec4b179b97
C#
aparrett/ConsoleApp
/ConsoleApp1.UnitTests/HtmlFormatterTests.cs
2.640625
3
using ConsoleApp1.Fundamentals; using NUnit.Framework; namespace ConsoleApp1.UnitTests { [TestFixture] class HtmlFormatterTests { [Test] public void FormatAsBold_WhenCalled_ShouldEncloseStingWithStrongTags() { var formatter = new HtmlFormatter(); var result...
54587ffb7f424d2eea9eaac8d6225b8936c91706
C#
manojro/RunnerSolution
/Source/SumOfMultiple/SumOfMultipleFinder.cs
3.859375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SumOfMultiple { public enum Method { MATH_FORMULA = 1, FORLOOP = 2, LINQ = 3, HASHSET = 4 } public class SumOfMultipleFinder { /// <summ...
f43c6ad704f3fed1718582f189cb4ad4a9a79fde
C#
yimuxuewen/23-DesignPattern
/23_DesignPattern_Src/InterpretPattern_Demo/AIInterpreter.cs
3.234375
3
using System; using System.Collections.Generic; using System.Text; namespace InterpretPattern_Demo { class AIInterpreter : BaseInterpret { private Dictionary<char, string> _dictInterpreter = new Dictionary<char, string>(); public AIInterpreter() { _dictInterpreter.Add('a',...
487e8e01f94fe0bb9c216a3addf73d3ef64df7d6
C#
JUNICHIFUJIO/C_Sharp_Poker
/Poker/Hand.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // # of cards in hand // display cards in hand // organize cards // discard cards // subsection cards // draw cards namespace Poker { // Ciao churru (cat feed japanese) ERROR TESTING public enum ...
e8e4711958176ec4517649fc616bbab56a5ec745
C#
dada97/PointCloud_Viewer
/Assets/Scripts/PlyLoader.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using System.Text; using System.Linq; using System; public class PlyLoader { private Vector3[] _vertices; private Color[] _colors; private int[] _indices; private int _verticesCount; //x y z r g b a ...
94e452ed8b2c07c77e4af20bf149d5155115ec4b
C#
iAJTin/iExportEngine
/source/library/iTin.Export.Writers.Adobe/Portable Document Format [ pdf ]/iTextSharp/text/TextExtension.cs
2.578125
3
 namespace iTextSharp.text { using System.Drawing.Imaging; using System.IO; using System.Text; using iTin.Export.Helpers; using iTin.Export.Model; /// <summary> /// Static class than contains common extension methods for objects of the namespace <see cref="N:iTextSharp.text"/>. /// </...
f7f5213285076492f8dd89b5c86057b4592888f0
C#
kranthiv/QnABot
/DpsBot/Forms/AccountCreationForm.cs
2.625
3
using DpsBot.Models; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.FormFlow; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DpsBot.Forms { [Serializable] public class AccountCreationForm { [Prompt("Please enter your {&}")] ...
630b19417e066d14f9aaad1568df953cafc0643f
C#
DigitDaemon/TwitchRCG_Role_Chatting_Game
/StreamClientProducer/StreamClientProducer/KafkaProducer.cs
3
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Confluent.Kafka; namespace StreamClientProducer { /** * This class is responcible for dequeue messages from <messageQueue> and then publishing t...
4da9c048c01153dbcf23e93065b030e7b47f833d
C#
MSSA-CAD-Lacey-Cohort25/emailConfirmationAssistant
/EmailConfirmationServerCore/Models/ExcelRowCreateSheet.cs
2.890625
3
using EmailConfirmationServer.Models; using Excel.IO; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace EmailConfirmationServerCore.Models { public class ExcelRowCreateSheet : ICreateSheet { public virtual void WriteToStream<T>...
baba886f515b2f2e08275a33395e988e69bead6f
C#
Baks84/RepRest
/RESTClient/Dropbox/Implements/UserInfo.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RESTClient.Dropbox.Implements { /// <summary> /// Represents implementation of the IUserInfo /// </summary> internal class UserInfo : IUserInfo { #region Public Properties /// <summary>...
11bbf90a6558b25adb4d177b304cf1fedad88de3
C#
mobiletonster/dneforums
/DotNetForum/App.Core/Security/IPrincipalExtension.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace App.Core.Security { public static class IPrincipalExtension { public static bool HasAnyRole(this IPrincipal user,...
9abcb31cc4cbeebc44715c7707b6bd55918f8751
C#
anshul1806/GitWCF
/HelloWorldService/ConsoleClient/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ConsoleClient.HelloWorldClientReference; namespace ConsoleClient { class Program { /// <summary> /// Following method initiates the client to talk to service on the ...
05b5a569f6166206cbd86d07b48676214f429a72
C#
Kavly/SimpleMessageBoardApi
/BoardApiTest/MessageBoardControllerTest.cs
2.671875
3
using BoardApi.Controllers; using BoardApi.Model; using Microsoft.AspNetCore.Mvc; using NUnit.Framework; using System; using System.Collections.Generic; namespace Tests { public class MessageBoardControllerTest { private List<Message> GetTestMessages() { var list = new ...
1283d97f8a2e4ba82b46e9f95f3abb46956ab742
C#
shendongnian/download4
/first_version_download2/226697-17764857-44032428-2.cs
3.265625
3
public static class CharacterExtentions { public static bool IsVowel(this char c) { long x = (long)(char.ToUpper(c)) - 64; if (x*x*x*x*x - 51*x*x*x*x + 914*x*x*x - 6894*x*x + 20205*x - 14175 == 0) return true; else return false; } }
bafbc12af7314151d1b3459758c85842e8e3a9cd
C#
keseray/HackerRankPractice
/CoreConsoleApp/Arrays/NewYearChaos.cs
3.59375
4
using System; using System.Collections.Generic; using System.Text; namespace CoreConsoleApp.Arrays { public class NewYearChaos : IPractice { public void Run() { MinimumBribes(); //int t = Convert.ToInt32(Console.ReadLine()); //for (int tItr = 0; tItr < t; t...
9881b0631b0c1fd2dc8a1b5011c76d0ddbb3c6dc
C#
Macoron/AtmoSimulation
/Assets/Scripts/Commands/AddGasCommand.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using Unity.Mathematics; using UnityEngine; public class AddGasCommand : ICommand { public float ammount = 100f; public int2 pos; public void Execute(AtmosSimulation simulation) { var grid = simulation.currentState; if (!grid...
b00a66fd849db091d8c5981bc27db1408b4d114b
C#
c-s-h-i-r/python
/~ProjectEulerExamples/ProjectEuler2/ProjectEuler/CountSundays.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectEuler { /// <summary> /// 1 Jan 1900 was a Monday. /// Thirty days has September, /// April, June and November. /// All the rest have thirty-one, /// Saving Febr...
649b989069f872edb8e2321918a438646976e66d
C#
simplex3510/This-is-C_Sharp
/Chapter4/4-4_practice.cs
2.9375
3
// 4. 다음 코드에서 a가 가지는 값은 무엇인가. /* int a = 0xF0 | 0x0F; */ /* a는 0xFF의 값을 가지게 된다. 이는 10진수로 255이다. */
2925f975231e2866c4db1a47a57bc8ce8bc4bdc9
C#
brbarmex/dotnet-craftsman
/src/Craftsman.Domain/Validators/CustomerValidator.cs
2.59375
3
using Craftsman.Domain.Bases; using Craftsman.Domain.Constants; using Craftsman.Domain.Entities; using FluentValidation; namespace Craftsman.Domain.Validators { public class CustomerValidator : CustomAbstractValidator<Customer> { public CustomerValidator() { RuleFor(x => x.Cpf) ...
2390081689f24b5477265e8e2934088e68b5cf9e
C#
bubdm/EWork
/EWork/Exceptions/NotEnoughMoneyException.cs
2.546875
3
using System; namespace EWork.Exceptions { public class NotEnoughMoneyException : ArgumentException { public NotEnoughMoneyException() { } public NotEnoughMoneyException(string message) : base(message) { } public NotEnoughMoneyException(string message,...
d53c0b33bc27eb6b7f75f5b44d7a831510a1e658
C#
bankin/TelerikAcademy
/C# I Homeworks/OperatorsExpressionsStatements/03.RectangleArea/RectangleArea.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _03.RectangleArea { class RectangleArea { static void Main(string[] args) { int height = new int(); int width = new int(); int areaOfRec = new int(); ...
80cff528f74958d464e3e318e4779e4f9a8f4c30
C#
xiangxiaoxiao-commits/educational-management-system
/16_201806062525_项潇——数据库系统课程设计应用程序/student/student/frmcourse.cs
2.515625
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 student { public partial class frmcourse : Form { sqlConnect con = new sq...
340caab4e5e53f1e11db11e1a69d0f0ed1a00dbd
C#
ggarabedian/TelerikAcademy
/CSharpOOP/DefiningClassesPart2/VersionAttribute/Main.cs
3.015625
3
namespace VersionAttribute { using System; [VersionAttribute("Some Game", "2.11")] public class VersionAttributeMain { static void Main() { var attributes = typeof(VersionMain).GetCustomAttributes(false); foreach (VersionAttribute attribute in attributes) ...
65efc8df10c86cabc800552724cb49f607241f08
C#
kirillgla/Spbu-Homework
/Semester 2/Task10/task3/ConsoleInteractions.cs
3.4375
3
using System; using System.Collections.Generic; namespace Task3 { public static class ConsoleInteractions { public static bool Confirm(string message) { Console.Write(message); string s = Console.ReadLine() ?? throw new NullReferenceException(); switch (s[0]...
12c510e63b3d7656dc828bcde670de9492dd3f80
C#
li2008kui/DesignPatternsLearn
/结构型设计模式/适配器模式/MultitapAdapter.cs
3.421875
3
using System; namespace DesignPatternsLearn.结构型设计模式.适配器模式 { /// <summary> /// 充电适配器(类适配器)。 /// </summary> public class MultitapAdapter : AndroidCharger, ILightningCharger { /// <summary> /// 给 iPhone 手机充电。 /// </summary> /// <param name="type">手机类型。</param> ...
fab9e6f4a51ba0ab925bad2472669c379333b84b
C#
artulloss/te-c-base
/module-1/17_FileIO_Reading_in/lecture-final/dotnet/Lecture/Program.cs
3.46875
3
using Lecture.Aids; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lecture { class Program { static void Main(string[] args) { //FileAndDirectories.UsingTheDirectoryClass(); ...
2ae3d4d452d367d3c5f21cefeea0a7daa052073c
C#
codehoose/manic-miner-unity
/src/Manic Miner Remake/Assets/Scripts/Room/Renderers/BlockRenderer.cs
2.640625
3
using Com.SloanKelly.ZXSpectrum; public class BlockRenderer : IRenderer { private SpectrumScreen _screen; private RoomData _roomData; public BlockRenderer(RoomData roomData) { _roomData = roomData; } public void Draw() { _screen.OrDraw(); for (int y = 0; y < 16; ...
0dd5d070eb21292dfa05dbe1967d01f4af71ec18
C#
xuanthulabnet/learn-cs-netcore
/CS023_Dispose/Program.cs
2.921875
3
using System; namespace CS023_Dispose { class A : IDisposable { bool resource = true; public void Dispose () { Console.WriteLine ("Phương thức này gọi tự động khi hết using"); resource = false; // giải phóng tài nguyên } } class Program { static ...
5cb86c20493484e630f64b7c5ba92b79937c1765
C#
bariss10/wordCount
/MvcWebApp/Controllers/HomeController.cs
2.625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using System.Xml; using Microsoft.AspNetCore.Mvc; using MvcWebApp.Models; using xmlCore.Models; namespace MvcWebApp.Controllers { public class HomeController : Controller { public...
be30f0a275d51115a14ec99d71f9ff1c053b41c3
C#
pcb-gr/NTVideoData
/NTVideoData-v1/Utils/CryptoUtil.cs
2.890625
3
using System; using System.Diagnostics; namespace NTVideoData.Util { class CryptoUtil { static string password = "1624558d5f8c89aadb89ae0b0fddb5f7"; public static string encrypt(string plainText) { return Base64Encode(Base64Encode(plainText) + password); } ...
88da85ca2e596d8ff908ceb315b32a062aa070aa
C#
shuimuyangsha/ProfessionalVisualStudio2017SourceCode
/Chapter 3/GettingStarted/MainWindow.xaml.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; 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.Navigati...
87225098a1ab207ed3d2c24b5d8ab802ca8b8d61
C#
BrendaMonteagudo1/Questionados.Net
/Controllers/CategoriaController.cs
2.625
3
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Questionados.Net.entities; using Questionados.Net.Models.Response; using Questionados.Net.Services; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Questionados.Net.Controllers { [A...
e5bc7dac730fe7dfbe9493a692ad6452deaa3d0f
C#
BlitzGLEP1326/NewSnake
/Point.cs
3.640625
4
//используем системную библиотеку using System; //пространство имен "змейка" namespace Snake { //класс точка public class Point { //координата Х точки public int x; //координата Y точки public int y; //символ точки public char ch; //отрисовка точки public void draw() { //установку курсора выв...
10b8fb23014670bc6d5e96a66c1b632d1015f28c
C#
NormanBrandon/TecnicasProgramacion
/Practica9/Practica9/InformacionAntibioticos.cs
2.640625
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 Practica9 { public partial class InformacionAntibioticos : Form { pub...
1d78a855a27e584dc5c2dd58be6be2d8b1e2cc05
C#
jGrader/APIs
/GraderDataAccessLayer/Repositories/GenericRepository.cs
3.046875
3
namespace GraderDataAccessLayer.Repositories { using System.Data.Common; using System.Linq; using System.Threading.Tasks; using Interfaces; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq.Expressions; public abstract class GenericReposito...
95771d4a96f7620fc993132de067eabef4c3a540
C#
shendongnian/download4
/code4/638781-15164962-36766133-1.cs
3.34375
3
public void CheckWinner() { int arrLength = buttonArray.Length; int foundCount = 0; for (int i = 0; i < arrLength ; i++) { string buttonText = buttonArray[i].Text; if(buttonText == "X" && (i+1) % 5 == 0) foundCount++; } if(found...
d1634e9d52a55c666dca42d70f2a4c39dedfd7a5
C#
SeppPenner/orleans
/samples/ShoppingCart/Grains/ProductGrain.cs
2.6875
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT License. namespace Orleans.ShoppingCart.Grains; internal class ProductGrain : Grain, IProductGrain { private readonly IPersistentState<ProductDetails> _product; public ProductGrain( [PersistentState( stateName: "P...
fe559421530f1dc1775846261fb9498e34c01104
C#
ulivegenov/SoftUni
/CSharp/04.CSHARP-OOP-ADVANCED/05.UnitTestingExsercise/Old/07.HackTests/HackTests.cs
2.59375
3
using _07Hack; using Moq; using NUnit.Framework; using System; namespace _07HackTests { [TestFixture] public class HackTests { private const double Negative = -20.4; private IHack fakeHack = new Hack(Negative); [Test] public void MathAbsMethodTest() { A...
1f9d7c82bca2ff6349db689f11915016b1f3ac82
C#
leventozz/StudentExamGrades
/ExamGradesApplication/Repository/GradesRepo.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using ExamGradesApplication.App_Start; using ExamGradesApplication.DB; using System.Data.Entity; namespace ExamGradesApplication.Repository { public class GradesRepo : IGrades { public IEnumerable<ExamGrade> GetGradeL...