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
06056f7c5a1f9d0d089a15c580ad1b7c22241f0a
C#
himo77/Water-Bill
/Form1.cs
3.3125
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 Water_Bill { public partial class Form1 : Form { // List to store input entrie...
d45ccad3e3ae824c850c8f2dc14cb51b522d70d0
C#
jpk6789/SlimJim
/src/SlimJim/Model/CsProj.cs
2.59375
3
using System.Collections.Generic; namespace SlimJim.Model { public class CsProj { public CsProj() { ReferencedAssemblyNames = new List<string>(); ReferencedProjectGuids = new List<string>(); } public string Guid { get; set; } public string Path { get; set; } public string AssemblyNa...
7e3997ac4bda8e16b83372032d1443650465ebe6
C#
kanatafolt/Jack-and-ToyTower
/Assets/Scripts/MazeSwitchMaster.cs
2.546875
3
//// //MazeSwitchMaster.cs //二種類のスイッチのトグル管理、及び複数のスイッチの同期を行うスクリプト //// #pragma warning disable 0649 //変数が初期化されていないという警告を無視する using System.Collections; using System.Collections.Generic; using UnityEngine; public class MazeSwitchMaster : MonoBehaviour { [SerializeField] SequenceOperator relianceSequence; [S...
bcf0667b275a18dc4ea390dfcb718bb1aa4d07e1
C#
jarmanso7/SimpleRubeGoldbergMachine
/SimpleRubeGoldbergMachine/DominoToken.cs
3.25
3
using System; using System.Threading; namespace SimpleRubeGoldbergMachine { public class DominoToken { public event EventHandler Fall; public void Collided(object sender, EventArgs e) { var thread = new Thread(() => { var objectType = sender.Get...
96f548774619d17ea827032bd11c8dac1784d0f2
C#
SE3353-HCI/SimpleSketch-3353
/SimpleSketch-3353/Line.cs
2.890625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SimpleSketch_3353 { public class Line : Shape { public Line(Point s, Point e) { view = (Form1) Form1.Activ...
270ca6c1f25cb8a7f86f2ba4ac6dd5e96fbece57
C#
cmechlin/Signal-Block-Designer
/Signal Block Design Tool/Signal Block Design Tool/Signal Block Design Tool/Database/DatabaseOperations.cs
2.515625
3
using MySql.Data.MySqlClient; using Signal_Block_Design_Tool.Files; using System.Text; namespace Signal_Block_Design_Tool.Database { static class DatabaseOperations { /// <summary> /// Clears the database /// </summary> /// <param name="conn"></param> public static vo...
9e04243e3742775980cf508022e075e0e3560dae
C#
wahhe/Game
/IIIIIIIIIII/MainScreen.xaml.cs
2.625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xamarin.Forms; namespace IIIIIIIIIII { public partial class MainScreen : ContentPage { int win, lose, tie; string playerChoice, cpuChoice; Random rand = new Random(); public MainScreen() { InitializeComponent(); ...
5e1af59424b51c7b5108f57a73981a0f256867a3
C#
Dperedo/Pedidos-Back
/Controllers/BaseController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Pedidos_back.Model; using Pedidos_back.Repository; namespace Pedidos_back.Controllers { [Route("api/[controller]")] [ApiController] public ...
93c11e43ff893a041440982d4b16dd9d0f9a66bd
C#
ga-explorer/GMac
/EuclideanGeometryLib/EuclideanGeometryLib/BasicMath/Float32Utils.cs
3.109375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace EuclideanGeometryLib.BasicMath { public static class Float32Utils { public static float Pi { get; } = (float)Math.PI; public static float TwoPi { get; } = (float)(2.0d * M...
087357af8d1e8df047606b2e03a7f245d834a7fa
C#
Lautenschlager-id/HeadWars
/HeadWars/Stages/NewAccount.cs
2.59375
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; namespace HeadWars { // The account creation window class NewAccount { // Variables List<HTextBox> textboxes = new List<HTextBox>(2); List<HButton> buttons = new List<HButton>(2); List<HLa...
9e492dbdab0fc5458086a0d6035137895408ae53
C#
Papalazaros/BuyOrBidAPI
/BuyOrBid/Services/VinDecodeService.cs
2.59375
3
using BuyOrBid.Extensions; using BuyOrBid.Models; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace BuyOrBid.Services { public interface IVinDecodeService { Task<IEnumerable<VinDe...
42070f5dafba7b2dd167d8e2fd363c3ba921f992
C#
nemawa/CodeWars
/7 kyu - By 3, or not by 3 That is the question . . ..cs
3.703125
4
/* A trick I learned in elementary school to determine whether or not a number was divisible by three is to add all of the integers in the number together and to divide the resulting sum by three. If there is no remainder from dividing the sum by three, then the original number is divisible by three as well. Given a ...
5401bc973b88505a186e46888767ae345de8b559
C#
tgharold/challenges
/2019/terminal-gui-1/src/App/Program.cs
2.84375
3
using System; using Terminal.Gui; namespace App { class Program { static void Main(string[] args) { Application.Init(); var top = Application.Top; // Creates the top-level window to show var win = new Window(new Rect(0, 1, top.Frame...
8a86199315af3b92d505ed6ef6295013b88ad7e1
C#
pjamenaja/tutorials
/Learning/Aut/Lab/Lab11/lab11Application.cs
2.96875
3
using System; using System.Collections; namespace Aut.Lab.Lab11 { public class lab11Application { public void Run() { Console.Write("Enter number : "); int num = Convert.ToInt32(Console.ReadLine()); Powtwo P1 = new Powtwo(num); string cmd = ""; ...
8a53463de7fca83ba66aadf419ac2c0efb399011
C#
ivotabako/RomanNumerals
/Varian/RomanNumerals/RomanNumerals/ConvertServiceSimpleSolution.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RomanNumerals { /// <summary> /// the class converts arabic numbers to roman numerals /// </summary> public class ConvertServiceSimpleSolution : ISolution { private...
578b3936d6eadaa2a38a863c9d492d409b0e5ba6
C#
Flonx55/CSharpBasics
/0926 the first day/73访问修饰符/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _73访问修饰符 { class Program { static void Main(string[] args) { /*c#中的访问修饰符 public :公开的 private:私有的,只能在当前类的内部访问 protected:受...
9e23d99b9c7f7dd639ed846b3247fec960fdf272
C#
epdumitru/mysqlib
/ mysqlib --username HaiLeGia/CommonProject/ObjectSerializer/IDictGenericEmitter.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Reflection; using BLToolkit.Reflection.Emit; namespace ObjectSerializer { internal class IDictGenericEmitter : SerializeEmitter { public void Emit(PropertyInfo property, ref EmitHelper serializerEmit...
ecb8cc7e0051790f4d7715bde94211b64ea4e8d3
C#
monikaa1997/Strukturi
/QueueA.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spisak { class QueueA { public int value; QueueA previous; QueueA next; public class Queue { QueueA head; QueueA t...
60e8033aa4fea5d7e300031235a6f1c6b5b7bcc4
C#
shibox/DeepLearningSharp
/DeepLearningSharp/HiddenLayer.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DeepLearningSharp { public class HiddenLayer { public int N; public int n_in; public int n_out; public double[][] W; public double[] b; ...
164a3e740ffa6c02896ca6f55939c886d63aa06f
C#
petrenkodima/3d_models
/МОЯ БОРЬБА/KP3D/Shapes/Triangle.cs
3.0625
3
using Ara3D; using EarClipperLib; using System; using System.Collections.Generic; using System.Text; namespace KP3D.Shapes { public class MyTriangle { public Vector3 a; public Vector3 b; public Vector3 c; public Vector3 normal; public MyTriangle(Vector3 a, Vector3 b, ...
61aa641503b87f2602bebc35aaf2af1888406bf2
C#
DarkKitsune/StarWander
/StarWander/StarWander/GFX/DrawableAsset.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; namespace StarWander.GFX { public class DrawableAsset : Asset { /// <summary> /// Shader to use when drawing /// </summary> public ShaderProgram ShaderProgram { get; set; } private DrawableAsset() : bas...
11e0c59f70cba77e60d8ed0c5cc140417dacb4ec
C#
OleksandrKatrynets/TUZ
/TUZ/TUZ.BL/RepositoryContainer.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using SQLite; using TUZ.BL.Repository; namespace TUZ.BL { public class RepositoryContainer { private readonly SQLiteAsyncConnection _dbConnection; private readonly Dictionary<Type, object> _repositories; public Reposito...
95080a0a3120f3262be457875bada734ac6873b0
C#
devfabiorm/MongoDbExamples
/MongoDbExamples/GettingBooksFilterBson.cs
3.015625
3
using MongoDB.Bson; using MongoDB.Driver; using System; using System.Threading.Tasks; namespace MongoDbExamples { partial class Program { static async Task FilterUsingBson(string[] args) { var mongoConnection = new MongoDbConnection(); var filter = new BsonDocument(); ...
a8765400889754474c504a650fa2eed7c7e517a8
C#
HughJeffner/cs-sdk
/src/APIRequest.cs
2.84375
3
using System; using System.Collections.Generic; using System.Text; class APIRequest { #region Fields string _key; string _token; string _output; List<RequestFields> _requestFields; #endregion public APIRequest() { _requestFields = new List<RequestFields>(); } #re...
1d5d27c6df73aed94903c1282c6fd62050e44327
C#
Mistrall/Solvation
/Solvation/Solvation.UI/Models/JobModel.cs
2.96875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace Solvation.UI.Models { public class JobModel { private IEnumerable<int> precedingJobs; public int Number { get; set; } public IEnumerable<int> PrecedingJobs { get { return precedingJobs; } set {...
912cede9302e01e9498d6ae05a456fa6f8d28f74
C#
limitzero/MicroIOC
/src/Configuration/ParameterElement.cs
2.671875
3
using System.Configuration; namespace MicroIOC.Configuration { public class ParameterElement : ConfigurationElement { private const string ElementKey = "name"; private const string ElementValue = "value"; [ConfigurationProperty(ElementKey, IsRequired = true, IsKey = true)] public string Name { get { r...
f80d9481490bd280ca2d3b0f6fc2254bf894f436
C#
fortizfe/net-core-api-template
/Code/ApiTemplate.Core.Domain/Models/Worker.cs
2.75
3
using ApiTemplate.Core.Domain.Interfaces; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ApiTemplate.Core.Domain.Models { public class Worker : IDomainEntity<int> { public int Id { get; set; } public string Name { get; set; } publi...
db85d72f1ba7c88661973f93b450b045a75a70b2
C#
juanmbellini/super-running-ball
/Assets/Scripts/LevelManager.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using Boo.Lang.Runtime; using UnityEngine; using Random = UnityEngine.Random; /// <summary> /// Class in charge of creating the level. /// </summary> public class LevelManager : MonoBehaviour { // ===================================================...
3fc0e04dbb1fda10daf2bbddfaf2f4b2beeae708
C#
Charamia/C-Sharp-Projects
/01.SimulatedNNestedloops/SimulatedNestedLoops.cs
3.921875
4
/* * 1. Write a recursive program that simulates the * execution of n nested loops from 1 to n. * * Examples: * 1 1 1 * 1 1 2 * 1 1 3 * 1 1 1 2 1 * n=2 -> 1 2 n=3 -> ... * 2 1 ...
3c71391aea6d83569bcaffac472e9b9a766de347
C#
gbelcheva/TelerikAcademy
/DataStructuresAndAlgorithms/WS3/Songs - Copy/Songs.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Songs { class Program { static void Main() { Console.ReadLine(); int[] officialRanking = Array .ConvertAll( ...
f3bc53e40a97ce89754622e127189cef6cf238c7
C#
rimij405/Asteroids
/Asteroids/Tools/StateManager.cs
2.65625
3
/// StateManager.cs - Version 3 /// Author: Ian Effendi /// Date: 3.26.2017 #region Using statements. // System using statements. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // Monogame using statements. using Microsoft.Xna.Framework; using Mic...
ce209acd0c09d75e7947590499364a5d79a61347
C#
soluling/I18N
/Library/NET/Standard/Pattern.cs
3.390625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Resources; namespace Soluling { /// <summary> /// Enumeration that specifies the plural form. There are six different plural forms from singular to various plurals. /// How many forms a language uses depends on the languag...
67e08fbabb32f36a248d47abf6d36c93a4241375
C#
s1m0nj/Harvest-Service-for-.Net
/HarvestApi/Service/HarvestConnection.cs
2.71875
3
namespace HarvestApi.Service { public class HarvestConnection { /// <summary> /// /// </summary> /// <param name="uri">"https://example.harvestapp.com/</param> /// <param name="username">username.is@email.address</param> /// <param name="password">password</para...
8888f661d2b933cff9935796d88adede9dcb1a90
C#
IharYakimush/HttpClientConcurrencyLimit
/HttpClientConcurrencyLimit/ServiceCollectionExtensions.cs
2.515625
3
using Microsoft.Extensions.DependencyInjection; using System; using System.Net.Http; namespace HttpClientConcurrencyLimit { public static class ServiceCollectionExtensions { public static IHttpClientBuilder AddConcurrencyLimitation(this IHttpClientBuilder httpClientBuilder, IConcurrencyProvider provid...
59b8a5e77e206c0d01f5be90e0c8e01b970a4436
C#
MadeByXy/JIGSAW-PUZZLE
/RegistryLibrary/RegistryLibrary/Event/InternalEvent.2.cs
3
3
using RegistryLibrary.Interface.Common; using RegistryLibrary.Interface.Event; using System; using System.Threading.Tasks; namespace RegistryLibrary.Event { /// <summary> /// 依赖于本地逻辑的事件模块 /// </summary> /// <typeparam name="T1">消息类型1</typeparam> /// <typeparam name="T2">消息类型2</typeparam> publi...
af05c63bb692c9c0e370ec153e0173233dc08e42
C#
Evan-Gilbert-1212/Katas
/csharp/6-kyu/consonant-value/solution.cs
3.609375
4
public class Kata { public static int Solve(string s) { var runningTotal = 0; var highestTotal = 0; if (s.Length > 0) { foreach (var character in s) { if (!"aeiou".Contains(character)) runningTotal += (byte)(character) - 96; else { if (r...
93ebc77a0bc4ea5b8c14e15e5cd409ec050f1c3c
C#
garnhold/CrunchyBox
/CrunchyDough/Extensions/LinkedList/LinkedListExtensions_Insert.cs
3.1875
3
using System; using System.Collections; using System.Collections.Generic; namespace Crunchy.Dough { static public class LinkedListExtensions_Insert { static public void Insert<T>(this LinkedList<T> item, T value, Predicate<T> predicate, Process<LinkedListNode<T>> process) { LinkedLi...
0dc3911c766aa3da676a0b95ab9b88401f0e3201
C#
zhangaiming/Minesweeper
/MineSweeper/MineButton.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace MineSweeper { class MineButton : Button { public bool IsClicked { get { return (bool)GetValue(IsClickedPropert...
9baec1d0c40a388b6abd3636e8e098f87b24f5cd
C#
ShweSolutions/StockAndSale
/DAL/SqlConjunction.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Configuration; using System.Data; namespace StockAndSale { class SqlConjunction { public static string DataConn = ConfigurationManager.AppSettings.Get("SQLConnection"); ...
947a3651f7780c0722e6adbea38d1793b46a73f1
C#
bylu/baiyiWeb
/789充值中心/Game.Utils/Utils/TextFilter.cs
2.734375
3
namespace Game.Utils { using System; using System.Text; using System.Text.RegularExpressions; using System.Web; public class TextFilter { private static Regex REGEX_BR = new Regex(@"(\r\n)", RegexOptions.IgnoreCase); private TextFilter() { } public sta...
308c5b8b8def26dc55c3198a86f2db7227aafc04
C#
shendongnian/download4
/code2/331657-7041229-15446673-2.cs
2.96875
3
/// <summary> /// Gets information from the data source for a user. /// Provides an option to update the last-activity date/time stamp for the user. /// </summary> /// <param name="username">The name of the user to get information for.</param> /// <param name="userIsOnline">true to update the la...
a8d8531f08442e7a46c00fbd5203caa3fefd4e5c
C#
Blaster391/Healthbar
/Healthbar/Assets/Scripts/UI/UIMidSlider.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UIMidSlider : MonoBehaviour { [SerializeField] private float _speed = 300; [SerializeField] private float _offscreenDistance = 600; [SerializeField] private Image _image; pr...
c4addb37331e600bbff3a6c80e8d36d94a2f0aab
C#
jnoruzi/fastnt
/src/FasTnT.Persistence.Dapper/DapperConfiguration/ArrayOfEnumerationHandler.cs
2.546875
3
using Dapper; using FasTnT.Model.Utils; using System.Data; using System.Linq; namespace FasTnT.Persistence.Dapper.DapperConfiguration { public class ArrayOfEnumerationHandler<T> : SqlMapper.TypeHandler<T[]> where T : Enumeration, new() { public static ArrayOfEnumerationHandler<T> Default = new ArrayOf...
a3c33b8520d0148be388d3ff534eca6d8edce709
C#
Frazurbluu/DeExtinction
/DeExtinctionMod/DeExtinctionMod/Mono/PassBelowPlayerAction.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace DeExtinctionMod.Mono { /// <summary> /// If the creature moves too far from the player, the creature returns, passing below them. Supposed to be a creepy visual thin...
dc1259511ae20d4c54c6e6577a8fb2e3f52c24b7
C#
NoelKirkland/noel-s-bakery
/Bakery/Models/Bread.cs
3.484375
3
using System; namespace BreadBakery.Models { public class Bread { public int Quantity { get; set; } public Bread(int quantity) { Quantity = quantity; } public string PriceCalculatorBread() { if (Quantity % 3 == 0) { decimal priceDec = ((Quantity * 5)*(2/3m));...
8f21b44342ef46a76c0a6dc140a3eadf2ce03a11
C#
sean0001/onedot
/cmd/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; using System.Diagnostics; using cmd.libs; namespace cmd { public abstract class Animal { public abstract void Eat(); } public class Cat : Animal {...
477e025cdbb1f77814b3ff719ded8e30ad865473
C#
Apu909/ExomeProject
/1046_Manea_Diana_Valentina_Proiect_AbonatiTelefonici/Plati.cs
2.9375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1046_Manea_Diana_Valentina_Proiect_AbonatiTelefonici { class Plati : ICloneable, IEnumerable<TipAbonament>, IEnumerable<ExtraOptiuni> { TipAbonament ...
3a70dc4fac18029822abab66b4da246843e99afd
C#
Enanyy/LuaGame-slua
/Assets/Scripts/Extend/StringEx.cs
2.9375
3
using System; using System.Collections.Generic; using UnityEngine; public static class StringEx { public static bool ToBoolEx(this string text) { bool result = false; if (string.IsNullOrEmpty(text)) { return result; } bool.TryParse(text, out result); ...
d44a28a4976546529736141cb83698d3fa4cb250
C#
ElisavetaTodorova/Telerik-Academy
/C# Advanced/03.Methods/14.IntegerCalculations/Startup.cs
3.953125
4
using System; using System.Linq; namespace _14.IntegerCalculations { class Startup { static void Main() { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var max = array.Max(); var min = array.Min(); var average = array.Av...
e3bcc70254a318f88b9807837209be2b329fc5d8
C#
danielglennross/Gobble
/Gobble/Frameworks/GraphMatch/Repositories/NetworkRepository.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GraphMatch.Providers; using GraphMatch.Entities; namespace GraphMatch.Repositories { public class NetworkRepository : EntityRepository<Network, NetworkNeo4JProvider> { public Netwo...
dcf48b9cc887466600ac75490fc04f7b9b61d046
C#
Commando56/bleakwind-buffet
/Data/Sides/FriedMiraak.cs
3.265625
3
/* * Author: Cole Kaster * Class name: FriedMiraak.cs * Purpose: Holds information about a Fried Miraak */ using BleakwindBuffet.Data.Enums; using System.Collections.Generic; using System.ComponentModel; namespace BleakwindBuffet.Data.Sides { /// <summary> /// Represents an order of Fried Miraak /// ...
74a5e1d6b448c2d68d4380dc77fa6232b632d6ee
C#
TheGrandUser/DragonRising
/DraconicEngine/Terminals/TerminalBase.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DraconicEngine.Terminals { public abstract class TerminalBase : ITerminal { public TerminalBase() : this(RogueColors.White, RogueColors.Black) { } publi...
500e3fe3968c4875cf92cccd09577a9d07c48d63
C#
gohypergiant/payload-command-console
/src/common/Hypergiant.HIVE.Core/ServiceCollection.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Hypergiant.HIVE { public class ServiceCollection : IEnumerable<object> { private Dictionary<Type, object> m_items = new Dictionary<Type, object>(); public IEnumerator...
af7d02c75fced838a9e91444e8c0a32682d0f906
C#
fvilers/freeroms-scraping
/src/FreeromsScraping/StreamExtensions.cs
3.1875
3
using System; using System.IO; using System.Threading; using System.Threading.Tasks; namespace FreeromsScraping { public static class StreamExtensions { public static async Task CopyToAsync(this Stream source, Stream destination, IProgress<long> progress, CancellationToken cancellationToken = default(...
ceb26ff794408552872178c27bb75385ddedd5ea
C#
pgcourses/CSharpAlapok201611
/Nap5/02Delegate/Program.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02Delegate { /// <summary> /// A Delegate használatának lépései /// /// 1. Készítünk egy függvény típust (ez maga a delegate) /// 2. Készítünk egy híváslistát /// 3. ...
d6064539e3aa7fe1f3212ad22f9274097e744626
C#
redcasual/Website
/Website/Entrees/ThugsTBone.cs
3.34375
3
using System; using System.Collections.Generic; using System.Text; /* * Author: Mitch Higgins * Class name: ThugsTBone.cs * Purpose: Create all the necessary properties for thugs t-bone in order to make a proper order */ namespace Website.Entrees { public class ThugsTBone : Entree { public override s...
1da4c396d1dd8b5a1cee3425291aaff04280c2cd
C#
kobi2294/MvvmKit
/Source/MvvmKit/Mvvm/Navigation/Definition/Region.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MvvmKit { public class Region { public string Name { get; private set; } public HashSet<RegionBehavior> Behaviors { get; } = new HashSet<RegionBehavior>(); pu...
1f1d56c7fd571f8865a1ca9cffbb0060408118dc
C#
artag/Training
/Freeman - ASP.NET Core MVC 2/Chapter14_ConfiguringApps/04_StartupAndServices/Controllers/HomeController.cs
2.65625
3
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using StartupAndServices.Infrastructure; namespace StartupAndServices.Controllers { public class HomeController : Controller { private readonly UptimeService _uptimeService; public HomeController(UptimeService uptimeService) ...
bee7f13d7ca885a6f864220a196426813b780645
C#
trabuco97/Survival2d
/Assets/Scripts/Systems/Health_Armor/HealthSystemCalculator.cs
2.546875
3
using UnityEngine; using System.Collections; namespace Survival2D.Systems.HealthArmor { public static class HealthSystemCalculator { public static float GetArmorRatingLoss(float base_armor_rating_loss, float damage_recieved) { float output = base_armor_rating_loss; ret...
d390f6612f2f33aa986d0ee86db80632baf6daf0
C#
michaelian12/OOP-Practice-in-Visual-Studio
/CobaLibrary/CobaLibrary/Lingkaran.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CobaLibrary { class Lingkaran { // attributes private double jari; // Getter Setter public double Jari { get { ...
cfb051a50df6e725eed1ac8fced4b8f201ace543
C#
andyshao/VacantCloud-
/WebMVC/VaCant.WebMvc/Filter/CheckPermissionAttribute.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace VaCant.WebMvc.Filter { //这个Attribute可以应用到方法或类上,而且可以添加多个 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] public class CheckPermissionAttribute : Attribute ...
ab4c8904f9a9f36cb8dbe2fe2f5c5149c57d203b
C#
umutarisoy/cla3
/WebApplication1/Model/BaseDBInterface.cs
2.546875
3
using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Attributes; using MongoDB.Driver; using MongoDB.Driver.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using MongoDB.Bson.Serializati...
e8f8ac4112bda6e6b39bf576df7e51c6d06f0883
C#
blockbasenetwork/bblinq
/BBLinq/ExtensionMethods/ObjectExtensionMethods.cs
3.03125
3
using System; namespace BlockBase.BBLinq.ExtensionMethods { internal static class ObjectExtensionMethods { public static bool IsNumber(this object value) { return value is sbyte || value is byte || value is short || value is ...
e507ad0295923c3e0da7cf4142baeeb567817c6a
C#
osemoka/tanks1
/Assets/Scripts/Wall.cs
2.515625
3
using UnityEngine; using System.Collections; public class Wall : MonoBehaviour { public int wallhp = 3; public Sprite[] wallsprite; private SpriteRenderer spriteRenderer; void Awake() { spriteRenderer = GetComponent<SpriteRenderer>(); } void OnTriggerEnter2D(Collider2D c)...
ef3297eeb5deac7d96637b977ea2b7c076f96b41
C#
jen3ten/Week10
/Week10_PolymorphismPractice_03072016/Week10_PolymorphismPractice_03072016/Savings.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Week10_PolymorphismPractice_03072016 { class Savings : Account //A derived class of Account { //The savings account will not allow a withdrawal unless the balance is gr...
003e81c807c9a626fbad79b3864bd6c17394e5f8
C#
Suhyun77/Head-First-Design-Patterns
/Chapter 09/Composition/MenuIterator/MenuItem.cs
3.328125
3
using System; using System.Collections; using System.Collections.Generic; namespace MenuIterator { public class MenuItem : IMenuComponent { string name; string description; double price; bool isVegetarian; public MenuItem(string name, string description, bool isVegetar...
06ceb78b69accb80b3b3687aba5205d1ac5ba975
C#
devangkantharia/ContextShow
/Demos/Show2/UWPOxfordFaceIdentification/MainPage.xaml.cs
2.640625
3
namespace UWPOxfordFaceIdentification { using Microsoft.ProjectOxford.Face; using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Windows.UI.Popups; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; public sealed partial class MainPage : Page { public MainP...
f04f42ec7cd226ca83b03f6fa7b815a818dc832d
C#
K2Gendosz/Csharp-_zadania_z_prog_Kubiak
/dzial3_petle_cz_2.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace zadania { class Program { static void Main(string[] args) { // for (){} //zadanie3_16(); //zadanie3_19(); ...
17f5c8f7f48b1cad3b4bb77c17179a67ff7203a4
C#
Samuel0814/Entregable_6
/RegistroArticulo/BLL/PersonasBLL.cs
2.703125
3
using RegistroArticulo.DAL; using RegistroArticulo.Entidades; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; namespace RegistroArticulo.BLL { public class PersonasBLL { public static bool Guardar(Personas p...
bdf042b35c9cae911df10f3309f0abcb769a59dd
C#
nohwnd/Pester
/src/csharp/Pester/DictionaryExtensions.cs
3.140625
3
using System; using System.Collections; using System.Linq; using System.Management.Automation; // those types implement Pester configuration in a way that allows it to show information about each item // in the powershell console without making it difficult to use. there are two tricks being used: // - constructor ta...
7fd42f21c7a9728a57e60d590a03987f9d3d0fd1
C#
Konstantin-sdc/ClassLibraries
/Social/Rating.cs
3.234375
3
using System; using Foundations; namespace Social { /// <summary>Отзыв пользователя</summary> public class Rating<T> : Favorite<T> where T : IBasicComplex { /// <summary>Создаёт новый экземпляр <see cref="Rating{T}"/></summary> /// <param name="subject">Объект оценки</param> /// <par...
cc3d8f83e3051251b9789b44962ec3c330db8c5f
C#
KronosGames/BloodTower
/Assets/Script/DB/SkillDatabase.cs
2.625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class SkillDatabase : MonoBehaviour { static List<SkillParam> skillList = new List<SkillParam>(); void Start () { skillList.Clear(); DataTable dataTable = DatabaseManager.RequestLoad(DB_ID.SKILL); ...
6bd43bf997859c261ccb58de5f0ff11fa5bf118f
C#
vuorinem/aurelia-signalr-test
/api/Controllers/ItemsController.cs
2.71875
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using api.Models; using AureliaSignalRTest.Hubs; using Microsoft.AspNetCore.Mvc; namespace AureliaSignalRTest.Controllers { [Route("[controller]")] [ApiController] public class ItemsController : ControllerBase { pri...
86155b46c2cc10d17b4e79114b42419fa5860a8d
C#
VictorGorban/Test-MVVM
/Test MVVM/ApplicationViewModel.cs
2.90625
3
using System.ComponentModel; using System.Runtime.CompilerServices; using System.Collections.ObjectModel; using System; using System.Windows; namespace Test_MVVM { public class ApplicationViewModel : INotifyPropertyChanged { private Phone selectedPhone; public ObservableCollection<Phone> Phon...
736a0bced1525dffcca0006ef33e94dea0303c32
C#
kleopatra999/Aspose.Pdf-for-.NET
/Examples/CSharp/AsposePdfGenerator/Conversion/XSLFOToPDF.cs
2.640625
3
using System.IO; using System.Xml; using System.Xml.XPath; using Aspose.Pdf; namespace Aspose.Pdf.Examples.CSharp.AsposePdfGenerator.Conversion { public class XSLFOToPDF { public static void Run() { // ExStart:XSLFOToPDF // The path to the documents directory. ...
b8a3bd966388dcceb449df451708c22c985008cb
C#
takasyt/WindowsFormsApplication1
/WindowsFormsApplication1/clsFunction.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApplication1 { /// <summary> /// テスト対象関数 /// </summary> class clsFunction { private String mName; /// <summary> /// コンストラクタ /// ...
4156710b68800a6e140760510382a6cca94cd61b
C#
etxasu/swv_source
/Assets/Scripts/ProbePilot.cs
2.515625
3
using UnityEngine; using System.Collections; public class ProbePilot : MonoBehaviour { public Transform Origin; public Transform Destination; public GameObject ProbePrefab; public float Speed; private float FlightStep; public bool StartFlying; [SerializeField] private float DespawnTi...
920f676a37e189b1336073901c180a60bbad2987
C#
MelBartels/CSharpLib
/GenLib/View/Validate.cs
2.734375
3
using System.IO; using System.Windows.Forms; namespace GenLib.View { public class Validate { public Validate() : this(new ErrorProviderHelper()) { } public Validate(ErrorProviderHelper errorProviderHelper) { ErrorProviderHelper = errorProviderHelper; ...
54bd09f253cf729fc20645413330a17e3e2cf7b1
C#
cnbrown2021/KomodoInsurance
/DevTeam_Console/ProgramUI.cs
3.1875
3
using Developer_Repository; using DevTeams_Repo; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DevTeam_Console { class ProgramUI { private DeveloperRepository _repo = new DeveloperRepository(); private TeamReposito...
70b5f8139b6ecb042109cc6a1ea9eaa7cd56528b
C#
valandir/HandicapCalculator
/HandicapCalculator/Program.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HandicapCalculator { class Program { static void Main(string[] args) { Handicap test = new Handicap(70); int h = test.CalculateHandicap(7.2); ...
406edc069d4e9ce7a0614875c4f5655676d2a143
C#
LXPVN-WR7/Export-Word-PDF
/Program.cs
3.328125
3
using System; using Spire.Doc; using Spire.Doc.Documents; using System.Drawing; namespace Repositório_Export_Word_PDF { class Program { static void Main(string[] args) { String[] nome = new string[5]; String[] endereco = new string[5]; double[] compra = new...
20cc3c5399d129f45d5f6366884bf5ff7945a4bd
C#
kristley/Line-Rider-game
/Assets/Scripts/CameraZoom.cs
2.5625
3
using System; using UnityEngine; public class CameraZoom : MonoBehaviour { [SerializeField] private float minZoom = 3; [SerializeField] private float maxZoom = 20; [SerializeField] private float zoomStep = 8; [SerializeField] private float zoomLerpSpeed = 15; private Camera _camera; private float _targetZoom; ...
a12d12df0c958b90823a75402838698a971de3d6
C#
shendongnian/download4
/latest_version_download2/180167-37511557-119206071-2.cs
3.359375
3
WebClient client = new WebClient(); string dictionary = client.DownloadString( @"https://raw.githubusercontent.com/dwyl/english-words/master/words.txt"); Stopwatch watch = new Stopwatch(); watch.Start(); HashSet<string> fourLetterWords = new HashSet<string>(); using (StringReader reader = new StringRea...
5377ae24a0cc92367cd6d6e0f9466fedd0a559ad
C#
juliusfriedman/net7mma_core
/Media/nCodec/Common/VLCBuilder.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace nVideo.Common { public class VLCBuilder { private Dictionary<int, int> forward = new Dictionary<int, int>(); private Dictionary<int, int> inverse = new Dictionary<int,...
972b84285eaf4f442ecaad8479babcf71ab3c405
C#
mojoelectrical/Tournament
/Tournament/Programming2-Assignment 2/Team.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; namespace Programming2_Assignment_2 { class Team { List<Player> players; public string Name { get; set; } public Region Region { get; set; } public uint Id { get; } public List<Player> Players...
5242aabf1d205cfa16a65e83bb246dc9ba02bb41
C#
eaycayildirim/Hackerrank-Solutions
/Problem Solving/Algorithms/Implementation/Migratory Birds/Program.cs
3.8125
4
using System; using System.Collections.Generic; namespace MigratoryBirds { class Program { static int migratoryBirds(List<int> arr) { Dictionary<int, int> birdsDictionary = new Dictionary<int, int>(); for (int i = 0; i < arr.Count; i++) { if ...
aef3e973fae27c6cd6773d651c4a10df43f951e4
C#
PaulMEdwards/ACM
/ProductRepository.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACM.BL { public class ProductRepository { /// <summary> /// Saves the current Product data. /// </summary> /// <returns> /// Boolean indicating ...
cb79f55f5a7c6294bf5363477e12f2206032708b
C#
donkeizluv/CLTool
/CashLoanTool/Helper/StringCleaner.cs
2.9375
3
using CashLoanTool.EntityModels; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace CashLoanTool.Helper { public static class StringCleaner { private static string[] _accents = new string[] { "á", "à", "ả", "ã", "ạ", "â", "ấ", "ầ", "ẩ", "...
f1498fe89dce53a82c78f8f3bde1cbf700f0e633
C#
Rasohin/Calculator-ComandPtrn-
/Calc(ComandPatteren)/Calc(ComandPatteren)/Commands/SinusCommand.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Calc_ComandPatteren_.Commands { class SinusCommand : ICommands { public double Execute(string str) { try { double ...
87276265222331f69f8196c99cca95ed6f7f9ea0
C#
feliperezende2019/triagulo_Maior_Area
/Triangulo_Area_s4/Program.cs
4.125
4
using System; using System.Globalization; namespace Triangulo_Area_s4 { class Program { static void Main(string[] args) { // p = (x1 + x2 + x3) / 2; // Formula de Heron areaX = Math.Sqrt(p * (p - x1) * (p - x2) * (p - x3)); // Variables double...
601854325b79fceb238669f5632f7b7b59396c70
C#
VsevolodRomanovsky/TestTask
/Danfoss.Services/CounterService.cs
2.96875
3
using Danfoss.Contracts; using Danfoss.DataLayer; using Danfoss.Entities; using System.Threading.Tasks; using System.Linq; using Microsoft.EntityFrameworkCore; using System; namespace Danfoss.Services { public class CounterService : ICounterService { protected readonly DanfossDbContext Context; ...
38c25e06b773425c850abb8dff6e6e694d7e8dbb
C#
hloken/NancyWithTokenAuthentication
/SimpleConsoleClient/Program.cs
2.921875
3
using System; using System.Net.Http; using Thinktecture.IdentityModel.Client; namespace SimpleConsoleClient { class Program { static void Main(string[] args) { Console.WriteLine("Calling RestAPI with machine client token"); var returnedString = CallRestApiUsingMachineCl...
6c29fcad0576d841b33f5b16cd2b611b6b38efa4
C#
percipio/learn_c-sharp_unity_game_solutions
/Number_Wizard/Assets/Scripts/NumberWizard.cs
3.203125
3
using UnityEngine; using System.Collections; public class NumberWizard : MonoBehaviour { // Use this for initialization void Start () { print ("Welcome to Number Wizard"); print ("Pick a number"); int max = 1000; int min = 1; print ("The highest number you can pick is " + max); print ("The lowest num...
8118a903ea9a719f891b6a72a9718a911eb44f11
C#
fmmsilva/dotnet-extensions
/src/DotNetExtensions/StringExtensions.cs
3.390625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DotNetExtensions { public static class StringExtensions { public static string Slugify(this string value) ...
958ecf62b4eb9510565674c2fcdf1614e7aa31c2
C#
MoIdriez/SM
/Simulation/Simulation/Examples/ExpSimpleSlam.cs
2.765625
3
using Engine; using Simulation.Objects; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Simulation.Examples { public static class ExpSimpleSlam { public static Scene Run(Graphics g, Step step) {...
6204e28784a401d1aef052c72c4c769a1b61e756
C#
Celni/YoulaAPI
/YoulaApi/Exceptions/YoulaException.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; namespace YoulaApi.Exceptions { public class YoulaException : Exception { public int Code { get; } public YoulaException() : base() { } public YoulaException(string message) : base(message) { } public YoulaEx...
e5a3467af0493d6b8778ad4b4cbabe10e515fbda
C#
jlochoa1/net-challenge-financial-chat
/SignalRMvcChat/Helpers/RabbitMqHelpers/Publisher.cs
2.765625
3
using RabbitMQ.Client; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace SignalRMvcChat.Helpers.RabbitMqHelpers { public class Publisher : IPublisher { public static IStockCode _stockCode; public asy...
2ed87db28eb3dbd1216851cb7fa8d8a8e4ebafb1
C#
AyrFX/Telerik-Academy-2016-CSharp-Part-2-Homewoks
/04. Numeral-Systems/02. Binary to decimal/BinToDec.cs
3.5
4
using System; class BinToDec { static void Main() { string binaryNumber = Console.ReadLine(); long decimalNumber = 0; for (int i = binaryNumber.Length - 1; i >= 0; i--) { decimalNumber += (long)(Char.GetNumericValue(binaryNumber[i]) * Math.Pow(2, binaryNumber.Lengt...
9d5ffb42b9a15f00f990069bbfd5487f34caf4a1
C#
femoreti/BCC_PI_5
/Entrega 2/Learning Vector Quantization/Learning Vector Quantization/CrossValidation.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learning_Vector_Quantization { class CrossValidation { public static Dictionary<string, int> binaryConfusionMatrix = new Dictionary<string, int>(); public st...
aa7a1990524f41619ed4592100f9166dc2cf940d
C#
neptuo/WebStack
/src/Neptuo.WebStack.Http/HttpMediaType.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Neptuo.WebStack.Http { /// <summary> /// Describes media type of request and response. /// </summary> public class HttpMediaType : IEquatable<HttpMediaType> { ...