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
b4cabab598a0f84cb43f8f9a2f7da830b48f8828
C#
shendongnian/download4
/code5/851988-21163312-55786057-1.cs
2.578125
3
XElement output = XElement.Load("c:\\temp\\input.xml"); IEnumerable<XElement> users = output.Elements(); DataTable dt = new DataTable(); dt.Columns.Add("CLIENT_INPUT_MHS_ID", typeof(int)); dt.Columns.Add("CLIENT_INPUT_MHS_GUID",typeof(Guid)); ...
e6a6867e865e45bdff74f3fe3a0b4bbb279c5298
C#
Peter-Georgiev/Programming.Fundamentals
/DataAndTypesExercises-Fast/06.CatchTheThief/CatchTheThief.cs
3.5
4
using System; using System.Linq; class CatchTheThief { static void Main() { string message = Console.ReadLine(); int n = int.Parse(Console.ReadLine()); long[] array = new long[n]; for (int i = 0; i < array.Length; i++) { array[i] = long.Parse(Console.ReadLin...
65851aacb0928f8b79cec7bc0287118a6abc6e64
C#
nhiuyenc7full/Module2
/ConsoleApp3/Vehicles/Bike.cs
3.09375
3
using System; using System.Collections.Generic; using System.Text; namespace OOP.Vehicles { class Bike: Vehicle { private int wheel; private string idBike = "CIRCLE"; private static int count = 0; private string id; public Bike() { count++; ...
be8792cbee935c2fb66f922d7bdd1cc5a91c26dd
C#
krishnareddyerredla/codility-csharp
/Lesson 01 - Iterations/BinaryGap_4.cs
3.34375
3
using System; // you can also use other imports, for example: // using System.Collections.Generic; // you can write to stdout for debugging purposes, e.g. // Console.WriteLine("this is a debug message"); class Solution { public int solution(int N) { // write your code in C# 6.0 with .NET 4.5 (Mono) ...
e14b270c41ac8de869a14ad3f27f04aed575aecd
C#
Blooker/MarchTheCube
/MarchingCubes/Assets/Scripts/Player/PlayerSound.cs
2.53125
3
using UnityEngine; using System.Collections; public class PlayerSound : MonoBehaviour { [SerializeField] private AudioSource audioSource; public void PlayPlayerSound (AudioClip clip) { if (audioSource.clip == null) { Debug.Log("Changed clip to " + clip.name); audioSource....
d8e9fdeca9c89b0269002664f68ddcd78d3320aa
C#
michael-ell/Pies
/Tests/Core/Domain/TagsSpecs.cs
2.8125
3
using System.Collections.Generic; using System.Linq; using Codell.Pies.Core.Domain; using Codell.Pies.Testing.BDD; using FluentAssertions; namespace Codell.Pies.Tests.Core.Domain.TagsSpecs { [Concern(typeof (Tags))] public class When_tags_are_empty : ContextBase { private Tags _tags; prot...
fd45f53285b3285c308a1060507a78ff4e69cada
C#
Dilatazu/RealmPlayers
/RealmPlayers/RealmPlayersWebsite/Code/Logger.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Threading; using Utility = VF_RealmPlayersDatabase.Utility; namespace RealmPlayersServer { public class Logger { private static DateTime sm_LogStartTime = DateTime.Now; private static List<string...
7ec628e7eee4355399c28a7ec8410735cb46e8e8
C#
scaepz/shapist-game
/WpfApplication1/ViewModel/LevelEditViewModel.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Editor.Model; using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace Editor.ViewModel { public class LevelEditViewModel { public Level lvl; pub...
e3b3fe20688f93e43ce111ef474d2f1b5d57b8a8
C#
KevinKao809/SunnyPoint-Azure
/ShareClasses/DateTimeService.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShareClasses { public class DateTimeService { public static long GetTimeStampByDateTime(DateTime inputDateTime) { DateTime baseTime = new DateTime(1970, 1, ...
b3a0045030718661106e8b01b2897a6798da70be
C#
geffzhang/test-cse-dapr-icebreaker
/Vigilantes.DaprWorkshop.OrderService/csharp/Controllers/OrderController.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Vigilantes.DaprWorkshop.OrderService.Models; namespace Vigilantes.DaprWorkshop.OrderService....
dccdd6e76efb8ce0e963eff04ead1d7bc7a140f6
C#
jurriemcflurry/BotjeDeVis-src
/Dialogs/AddProductsToOrderDialog.cs
2.796875
3
using CoreBot.Database; using CoreBot.Models; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Dialogs.Choices; using Microsoft.Bot.Schema; using Microsoft.BotBuilderSamples.Dialogs; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; u...
3e4681285328252f655073b8d8dd60875bbe69e3
C#
a-postx/Delobytes.Mapper
/tst/Delobytes.Mapper.Test/MapperTest.cs
2.71875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Xunit; namespace Delobytes.Mapper.Test { public class MapperTest { [Fact] public void Map_Null_ThrowsArgumentNullException() { Mapper mapper = new Mapper(); Assert.Throws...
09d493fa76d739dab1232d9356cf5686857ed0fb
C#
ASbeletsky/HexagonArchitectureTempalate
/src/Domain/HexagonArchitecture.Domain.Interfaces/Sorting.cs
2.921875
3
using System; using System.Linq.Expressions; using JetBrains.Annotations; namespace HexagonArchitecture.Domain.Interfaces { /// <summary> /// Sort order enumeration /// </summary> [PublicAPI] public enum SortOrder { [PublicAPI] Asc = 1, [PublicAPI] Desc = 2 } [PublicAP...
f06439cd691af4d41cc812a34a80b12564cfc23f
C#
nguyentansongbsd/InsightLand
/ConasiCRM/Portable/Models/PhiMoGioiFormModel.cs
2.515625
3
using ConasiCRM.Portable.Helper; using System; using System.Collections.Generic; using System.Text; namespace ConasiCRM.Portable.Models { public class PhiMoGioiFormModel { public string bsd_name { get; set; } public string project_bsd_name { get; set; } public int bsd_loaimo...
af8ae3e6dbd119f6bf280645f302bd07bdd794e8
C#
eduardo-salazar/sag
/Sistema De Administracion De Servicios/EncryptPassphraseAlgorithm.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sistema_De_Administracion_De_Servicios { class EncryptPassphraseAlgorithm { public static string EncryptSHA1(string passphrase) { string psEncrypted=""; System.Security.Cryptography....
d8ca0c73325fdec46cd983a4e2a199508a34efc4
C#
mff-uk/exolutio
/Model/OCL/AST/OperationCallExp.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Exolutio.Model.OCL.Types; namespace Exolutio.Model.OCL.AST { /// <summary> /// An OperationCallExp refers to an operation defined in a Classifier. The expression may contain a list of argument /// express...
9812f57603f7cafc63c8ff84cb9453b8073a40d0
C#
jacgit18/Asp-Class-intro-1
/WebApplication4/WebForm1.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication4 { public partial class WebForm1 : System.Web.UI.Page { int Numfailures; protected void Button1_Click(object sender, EventArgs...
3ca371d60e50e5c69d76fb56b80ff03648586d37
C#
kraian/Trevendi
/src/Web/Utils/Utils.cs
2.890625
3
using System; using System.Linq; namespace Web.Utils { public static class Utils { private const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; public static string GenerateRandomId(int length) { var random = new Random(Guid.NewGuid().GetH...
daf447e4032c50dea8bff89992fdc8824d4c7609
C#
FURams09/Vidly
/Vidly/ViewModels/MovieViewModel.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using Vidly.Models; namespace Vidly.ViewModels { public class MovieViewModel { public IEnumerable<Genre> Genre { get; set; } public int ID { get; set; } [Required] [StringLengt...
5356757019ff4569ab7c10c97b4f0e79b58b43f5
C#
AppReadyGo/EyeTracker
/EyeTracker.Model/Commands/Users/CreateUserCommand.cs
2.875
3
using System.Collections.Generic; namespace EyeTracker.Common.Commands.Users { public abstract class CreateUserCommand : ICommand<int> { public string Email { get; set; } public string Password { get; set; } protected CreateUserCommand(string email, string password) ...
5fc80afa2df9ffd59c1c27d1b66fc89b8477f411
C#
sedc-codecademy/skwd9-net-06-csharpadv
/G2/HomeworkClass01/Task01/Entities/Game.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; namespace Task01.Entities { public class Game { private int _gamesPlayed { get; set; } protected bool IsActive { get; set; } public Game() { _gamesPlayed = 0; } protected void Incre...
71b503cd8ae36e2ec49151753f1d7bf3fd7b6649
C#
JMPSequeira/json-everything
/JsonLogic/JsonLogicException.cs
2.671875
3
using System; namespace Json.Logic { /// <summary> /// Thrown when a rule cannot be processed or deserialized. /// </summary> public class JsonLogicException : Exception { /// <summary> /// Creates a new instance of the <see cref="JsonLogicException"/> class. /// </summary> /// <param name="message">The ...
5b684174d7380e9d642aa48bb064a98722c95658
C#
patrickdemooij9/Umbraco-CMS
/src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs
2.515625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Newtonsoft.Json.Linq; using Umbraco.Core; using Umbraco.Core.IO; using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors { /// <summary> /// The value editor for the f...
d225ef2448ac15f3a3055ce2107e6e8921f0e3db
C#
limjh/DailyKata
/IncreasingOrderSearchTree/Ordering/Ordering.Test/UnitTest1.cs
3.34375
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Ordering.Test { [TestClass] public class UnitTest1 { //Input: [5,3,6,2,4,null,8,1,null,null,null,7,9] // 5 // / \ // ...
59dbdf0393ebc03776208002ee8c8ea30de1dc60
C#
Bulldozer777/Console_Modul_Project
/F_6_Create_Base_Type_Data.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training_Csharp { class F_6_Create_Base_Type_Data : Modul_Struct { public static void TypeCreate(int i) { if (i == 6) { Modul_St...
75a08de5d13e35dec5ecd476936e74b968c66337
C#
allenwang162/MySql
/Program.cs
2.59375
3
using MySql.Data.MySqlClient; using System; namespace MySQL { class Program { static void Main(string[] args) { MyDataInfo mydata = new MyDataInfo(); mydata = MySQLDB.GetTestDemoData(); if (MySQLDB.InsertDataInfoWithOutDuplicate(mydata)) ...
4f69c87e694e2de02d6a36acec4f1d51ce1bd207
C#
ek7/stationery_shop
/shop/Forms/stationeryEditForm.cs
2.578125
3
using System; using System.Windows.Forms; namespace shop.Forms { public partial class stationeryEditForm : Form { private bool isEdit; private int pid; public stationeryEditForm() { InitializeComponent(); isEdit = false; } public station...
1c40e20fd48fb5f5205cd71be664660d4defc8ef
C#
sharanya204/GDDProj2
/Proj2a/Assets/Scripts/PlayerController.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerController : MonoBehaviour { // Change Notes 2/24/20: I added the condition "&& canJump()" to the move right if statement (Line 64) // to deal with the weird physics where you can move while...
27fb3af546118dd8edc747cb5fedc097ff136aad
C#
eopoku61057/Data-Structures-Array-Strings
/TREES-AND-GRAPHS-LEETCODE/Alien-Dictionary.cs
3.515625
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace DataStructure { public class NumMatrix { public string alienOrder(string[] words) { int[] indegree = new int[26]; Dictionary<char, List<char>> g = ne...
83d51968d754212270427533d0dd22278405176e
C#
DenisOliveira1/course_csharp_from_the_beginning
/1 - Basics/6 - Loops/6 - Loops/Program.cs
4.0625
4
using System; namespace _6___Loops { class Program { static void Main(string[] args) { int[] array = { 12, 54, 23, 78 }; for (int i = 0; i < array.Length; i++) { Console.WriteLine(array[i]); } Console.WriteLine("----------------...
55f9e1361fb1974eeb75265e5f51297ee18f06c5
C#
VasilVP/Software-University-Courses
/Level 2/Object-Oriented-Programming-January2015/04.FunctionalProgramming/15.LinqToExcel/LinqToExcel.cs
3.09375
3
using ExcelLibrary.SpreadSheet; using QiHe.CodeLib; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; class LinqToExcel { static void Main() { StreamReader reader = new StreamReader("../../Resources/Students-data.txt"); List<Student> student...
617c5a46676f6c8fa5e2890af49fbf67c969c5f3
C#
caesuric/familiar-quest
/FamiliarQuestMainGame/Assets/Scripts/Characters/Attributes/CharacterAttributeInstance.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class CharacterAttributeInstance { public Character character = null; public event EventHandler ValueChanged; private float _baseValue = 0; public float BaseValue { get =>...
8f9913d5f6d8118142c5b056e236e06be1a2e723
C#
JakedStevens/FancyCalculator
/CalculatorCore/Calculator.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CalculatorCore { public class Calculator { public EvaluationResult Evaluate(Expression expression, decimal prevResult) { //return new EvaluationResult { ErrorMessage = $"\u001b[...
8c9a3bc9a3f631eb20e01c0c027c4205af8b170d
C#
LiteObject/TestIdentityServer
/Demo.Api/Controllers/WeatherForecastController.cs
2.640625
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Identity.Web.Resource; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Demo.Api.Controllers { [ApiController] [Route("[contro...
95de22403fa10714fa0a5caa45853265d8f50830
C#
Lelikeks/Toto
/IdiotKuponsProvider.cs
2.859375
3
using Newtonsoft.Json; using System.IO; using System.Net; namespace Toto { public class IdiotKuponsProvider { private int _drawingId; public IdiotKuponsProvider(int drawingId) { _drawingId = drawingId; } public IdiotsKupon[] GetKupons() { ...
cb048611335b2490548e8c0ba75cbb1c4d63a15a
C#
Akema8/Lab4EnterSys
/Lab4/Form1.cs
2.609375
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; using System.Management; using System.IO; namespace Lab4 { public partial class Form1 : Form { ...
f0d476052d36d945cb27958f63c6f8535ca2d841
C#
bashiransari/ConfigUtil
/BAS.ConfigUtil/ConfigWriter.cs
2.609375
3
using System; using System.Diagnostics; using System.Reflection; using System.Configuration; using System.Drawing; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using BAS.ConfigUtil.ConfigSource; namespace BAS.ConfigUtil { public class ConfigWriter { public...
31add4cec40c8f5ed88b5143b8f46f278352fd62
C#
shubhnake287/.Net-Assignments
/Day4-Assign-3/Refandvaluetypesin.netcode/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Refandvaluetypesin.netcode { class Program { static void Main(string[] args) { int i; int j; Init(out i, out j);//with using init ou...
0ffb08106d157aba54fdb8c83ea79a268879f09b
C#
brikibsw/EdukacijaXamarin
/Adresar/Adresar/ViewModels/CityPageViewModel.cs
2.78125
3
using Adresar.Data; using System.Windows.Input; using Xamarin.Forms; namespace Adresar.ViewModels { public class CityPageViewModel : BaseViewModel { private readonly AdresarDatabase database; public CityPageViewModel(City grad) { database = new AdresarDatabase(); ...
14b1d20557ecfc16e8ccec4d530f01f05ab93f84
C#
HFisher1212/halfisher1212
/FisherHal/Lec11Lab/Program.cs
3.078125
3
/****************************************************************** * @author Hal Fisher * @class CS155 * @project lec11lab * @date 11.21.2016 * **************************************************************** * Alogrithm * 0. START PROGRAM * 1. OPEN streamreader for boy file * 2. ...
b6e88122f2eaab80e8e16734f41fd814a92dcb3d
C#
steville1/HotelsRatesAPI5.0
/HotelsRatesAPI5.0.Repositories/common/HotelsRatesRepository.cs
2.703125
3
using HotelsRatesAPI5._0.Data.Interfaces; using HotelsRatesAPI5._0.Data.Models; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; name...
0f653ab7289d0346b86ca63fa8cd7ad7e4749fda
C#
pedroyan/MbOS
/MbOS/FileDomain/DataStructures/Instructions/FileInstruction.cs
2.78125
3
using System; using System.Collections.Generic; using System.Text; namespace MbOS.FileDomain.DataStructures.Instructions { public abstract class FileInstruction { protected FileInstruction(int pid, string fileName) { PID = pid; FileName = fileName; } /// <summary> /// ID do processo realizando a oper...
bba164d0a2636ef38f587035e9633567bbc2960f
C#
AhmadOthmanAdi/ZooApplication-For-Class
/Zoo/Form1.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Zoo { public partial class Form1 : Form { public Form1() ...
34e5b28f509daded5417bd7c849fafed87b50dac
C#
cat-begemot/IT_Data
/IT_Data/Models/Order.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace IT_Data.Models { public class Order { public DateTime OrderDate { get; set; } public String Company { get; set; } public String City { get; set; } ...
c05922caf86c36366158f249403f5ed5736dcd0e
C#
Vadim4016/PacMan
/Assets/Scripts/PacmanCollision.cs
2.703125
3
using System; using UnityEngine; using UnityEngine.UI; namespace Assets.Scripts { public class PacmanCollision : MonoBehaviour { public AudioClip cherry; public AudioClip food; public Text scoreText; public delegate void Collision(); public static event Collision Ghost...
84202dddd90801de9a25de0b22d74cce0f638911
C#
juniorgasparotto/GraphExpression
/src/GraphExpression.Examples/Examples/SerializationComplex.cs
2.5625
3
using GraphExpression.Examples.Models; using GraphExpression.Serialization; using SysCommand.ConsoleApp; using SysCommand.Mapping; using System; using System.Collections.Generic; using System.Linq; namespace GraphExpression.Examples { public partial class Examples { [Action(Help = "")] public ...
5334fb3b38e1a171d59e5462db6122f008fa9444
C#
ArjunChandarana/TestingAssignment-2
/UnitTestProject/UnitTest.cs
3.015625
3
using Testing_Assignment_2; using Xunit; namespace UnitTestProject { public class UnitTest { string inputString = ""; string expected = ""; [Fact] public void UppartoLower() { // Arrange inputString = "Unit Test"; expected = "uNIT tES...
06f0b3cb809238ef97e436bc16f0c1b974226c7e
C#
fbardelli/compsci
/euler/009/pythtrip.cs
3.828125
4
using System; /* Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^(2) + b^(2) = c^(2) For example, 3^(2) + 4^(2) = 9 + 16 = 25 = 5^(2). There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. */ public class Pyth { static public void Mai...
a77ab86841ba7a4e41f4e495a685118327bcb58a
C#
mwirzba/Shop
/Shop/Controllers/AdministrationController.cs
2.609375
3
using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Shop.Data; using Shop.Data.Repositories; using Shop.Dtos; using Shop.Models; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Shop.Controllers {...
989049b2d4fba6054140f05dd4410e89c4fd6841
C#
halilsatik/MarsRover
/MarsRover.Service/RoverController.cs
2.796875
3
using MarsRover.Service.CustomExceptions; using MarsRover.Service.Enums; using MarsRover.Service.Models; using System; using System.Collections.Generic; using System.Text; namespace MarsRover.Service { public class RoverController : IRoverController { public Position Position { get; set; } pub...
fa185f5cedd2d1cf5a2cd7e2f10c5834d14b0765
C#
tlagmltjq11/Algorithm
/Graph-DFS,BFS/1012.cs
3.546875
4
using System; using System.Collections.Generic; using System.Text; namespace CodingTestPractice { class _1012 { static int[,] mat; static int m; static int n; static void DFS(int i, int j) { mat[i, j] = 0; if ((i - 1) >= 0 && mat[i - 1, j] == 1...
1b67ae4bb05155f71f4c02319e7c20ef5a8bfa3b
C#
yassinemaghfour/Anouar-CMIM-GIT
/CMIM/CMIM/Models/Bordereau.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace CMIM.Models { public class Bordereau { [Key] public long BordereauId { get; set; } public virtual ICollection<Dossier> Dossiers { get; set; } private strin...
2092f68b0a2b3ccca74b5f7e9eb2be3f5acac9f1
C#
joaofreitas21/16968_17632_LP2
/DAO/Hotel.cs
2.625
3
using System; using BO; using System.Collections.Generic; namespace DAO { interface IHotel { bool EfetuarCheckIn(Cliente c , DateTime check, int num); Registo RemoverRegistoQuarto(int num); Registo AddRegistoQuarto(Quarto q,int num); double EfetuarPagamento(int num, double prec...
480a5ab6ddb30d635d77a388a7ba3c18468af60a
C#
pipe01/pi
/Pi/Parser/Syntax/Expressions/UnaryExpression.cs
2.53125
3
namespace Pi.Parser.Syntax.Expressions { internal sealed class UnaryExpression : Expression { public UnaryOperators Operator { get; } public Expression Argument { get; } public UnaryExpression(SourceLocation location, UnaryOperators @operator, Expression argument) : base(location) ...
c4bbe50d508e75ff755272d44d0b2072a244f72b
C#
Nhawdge/takeover
/GameEngine.cs
2.703125
3
using System; using System.Collections.Generic; using Takeover.Components; using Takeover.Entities; using Takeover.Systems; namespace Takeover { public class GameEngine { private List<Systems.System> Systems { get; set; } = new List<Systems.System>(); public List<Entity> Entities { get; set; }...
61ea2d0d366be528cad91d96c267d875d0d15fbe
C#
alyons/PokemonInfinity
/PEEditor/PEEditor/Data Objects/Ability.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PEEditor { public class Ability : ViewModelBase { private int id; private String internalName; private String displayName; private String description; ...
b5bc1986de25a9b389e4ee6240daa7518a6fa5f5
C#
dgarcia202/grassworld
/Assets/Scripts/Resources/Transaction.cs
2.546875
3
using System; using Behaviours; namespace Resources { public class Transaction { public static int Perform(ResourceContainer origin, ResourceContainer destination, ResourceType resource, int amount) { if (origin.Count (resource) < amount) { var availableAmount = origin.Count (resource); origin.Take (re...
6fec35f0c3305e4cd9eb97309a07cf47987a33cc
C#
radtek/shi5588
/RMCrypt/RMCrypt/RMCrypt.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using System.IO; namespace app3 { public class RMCrypt { private Byte[] _Key = {0x01, 0x09, 0x08, 0x05, 0x00, 0x06, 0x00, 0x05, 0x01, 0x09, 0x07, 0x09, 0x00, 0x08, 0x00,...
946b7833391144ee19df3772aef0b284df20fcca
C#
jakubkozera/DesignPatterns
/Structural/Decorator/PizzaDecorator.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Decorator { public abstract class PizzaDecorator : IPizza { private IPizza _pizza; protected PizzaDecorator(IPizza pizza) { _pizza = pizza; ...
4d784f4d11b1e2af8c08771c3e1fe2357268250e
C#
wlindley/AngryShihTzu
/Assets/Scripts/Editor/ScriptableObjectHelper.cs
2.734375
3
using System; using UnityEngine; using UnityEditor; namespace AST { public class ScriptableObjectHelper { public bool IsTypeScriptableObject(Type type) { return null != type && !type.IsAbstract && type.IsSubclassOf(typeof(ScriptableObject)) ...
3ae639aa843eb14ad329b83d615662f53504d7ac
C#
kindex/labyrinth2
/sources/Math/Degrees.cs
3.375
3
using System; namespace Game { public static class Degrees { public static float ToRadians(float degrees) { return degrees * (float)Math.PI / 180.0f; } public static double ToRadians(double degrees) { return degrees * Math.PI / 180....
828af34883b76ab1d0825fe8efae85cec84a31d0
C#
uk-gov-mirror/SkillsFundingAgency.DC-ILR-2021-Tools
/legacy/src/Easy OPA/Visuals/Abstract/VisualBindingWrapper.cs
2.953125
3
using EasyOPA.Model; using System; using Tiny.Framework.Abstracts; namespace EasyOPA.Abstract { /// <summary> /// an abstract visual element binding class /// </summary> /// <typeparam name="TSource">The type of source.</typeparam> /// <seealso cref="ObservableBase" /> public abstract class Vi...
9b870db126f43283ee674663ba664add96d12896
C#
MichaelAllenClark/ETConsoleExample
/ETConsoleExample/Program.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using ETConsoleExample.ExactTargetSOAPAPI; namespace ETConsoleExample { class Program { static void Main(string[] args) { BasicHttpBinding binding = new BasicHttpBindin...
1d78457f76ea93b888d3ba05c6194e86951a93fe
C#
SSSxCCC/Survival
/Assets/Scripts/Public/PathFinding/BinaryHeap.cs
3.578125
4
 // 这是一个只适合本程序A*算法使用的二叉堆,堆顶元素最小 public class BinaryHeap { public Vertex[] vertexes; // 二叉堆内容 private int length; // 当前长度 // 新建二叉堆,最大长度为size public BinaryHeap(int size) { vertexes = new Vertex[size + 1]; // items[0]并不会使用,所以这里需要一个额外空间 length = 0; } // 插入新元素 public void Add(...
1e2048e47e6ba99914d32e2aca139fce07b05548
C#
ggarabedian/TelerikAcademy
/CSharpOOP/ExtensionMethodsDelegatesLambdaLINQ/Timer/Test.cs
3.65625
4
/* Using delegates write a class Timer that can execute certain method at each t seconds. */ namespace Timer { using System; using System.Threading; public class Test { static void Main() { Timer timer = new Timer(1); Timer.TimerDelegate dlgt = delegate() { Con...
b27b22ea246c33448de9b5517dc096af56e23cdb
C#
ilandeka/masters-thesis-paper
/DevQuiz/DevQuiz.Core/Models/ViewModels/GameViewModel.cs
2.734375
3
using DevQuiz.Core.Models.ApplicationModels; using DevQuiz.Core.Models.TransportModels; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DevQuiz.Core.Models.ViewModels { public class GameViewModel : BaseViewModel { public const uint NUMBER_OF_Q...
fd3b63bc97e668c37a7c1cb3a020dd8ef721875e
C#
senchov/ECS
/Assets/Scripts/Fuzzy/sets/TriangleFuzzySet.cs
3.1875
3
namespace Fuzzy { public struct TriangleFuzzySet : IFuzzySet { private int LeftOffset; private int Peak; private int RightOffset; public TriangleFuzzySet(int leftOffset, int peak, int rightOffset) { LeftOffset = leftOffset; Peak = peak; ...
a03674bd2d25081732fb7a7670169b9f2b2b91d1
C#
alma-sys/alma-infra
/Common/Security/Hash.cs
2.671875
3
using System; using System.Security.Cryptography; namespace Alma.Common.Security { public static class Hash { public static string Create(string input) { var inputBytes = System.Text.Encoding.UTF8.GetBytes(input); using (var hash = SHA512.Create()) { ...
4324585709d34e504192b4bc17c36cd16d6216da
C#
benmpeterson/CSharpLibrary
/0.21_Generics_BestPractices_PluralsightCourse/OperationResult.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _0._21_Generics_BestPractices_PluralsightCourse { public class OperationResult<T> { public OperationResult() { } public OperationResult(T result, stri...
6d915670fa15bdfd06a3b94bddc4f0b4244e77d9
C#
joelmora9618/POO-C-SHARP
/Practica 2/Practica 2/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practica_2 { class Program { static void Main(string[] args) { string value; clsClientesFijos Clientes; Clientes = new clsClientesFi...
c126e368369994a3c5f0a7f30532e6db8a5b8f6c
C#
DMBS/.NET-Design-Patterns
/Behavioral/Iterator/GeneratorThroughIterator/GeneratorThroughIterator/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeneratorThroughIterator { class Program { static void Main(string[] args) { var n = GenerateFibonaci(); } public static IEnumerable<int> G...
169eedde950c97d40bcfd40b2cb12e27dc6bd5c6
C#
CptWesley/Clap
/src/Clap/Arguments.cs
2.796875
3
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using System.Text; namespace Clap { /// <summary> /// Class containing static functions for parsing arguments. /// </summary> public static cla...
d0601b2d95105b7b6bfe3fd8e1d0c18f66ddce10
C#
terry-u16/AtCoder
/Nomura2020/Nomura2020/Nomura2020/Questions/QuestionD.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Nomura2020.Algorithms; using Nomura2020.Collections; using Nomura2020.Extensions; using Nomura2020.Numerics; using Nomura2020.Questions; namespace Nomura2020.Questions { public class QuestionD : AtCoderQue...
95c7eb246da118edc37a1a11a5f88e7d7ec1e9a0
C#
lhorsager/XamarinLocalStorage
/XamarinLocalStorage/XamarinLocalStorage/FileIO/FileIOController.cs
2.5625
3
/* * Example from Xamarin * http://docs.xamarin.com/samples/FileSystemSampleCode/ * * */ using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace XamarinLo...
1dc7cfede9ee04704e7e31e23803531985eda4a2
C#
JacobVerona/HelicopterAttack3d
/Assets/Scripts/Global/RectTransfromUtilityExtention.cs
2.546875
3
using HelicopterAttack.Global; using UnityEngine; namespace HelicopterAttack.Global { public static class RectTransfromUtilityExtention { public static Vector2 WorldPositionToRectLocalPosition( Vector3 centerWorldPosition, Vector3 targetPosition, float scale) ...
0a6d14b1be3e56b832f22dba4de0e5c72ebc3340
C#
wangzhilinet/web_csharp_sqlserver
/fishercommunity/App_Code/DAL/Class1.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.SqlClient; using System.Data; /// <summary> ///Class1 的摘要说明 /// </summary> public class Class1 { private static string connStr = "server=.;database=test;uid=sa;pwd=123"; private SqlConnection conn = new SqlC...
59217e05bd55d233171e4d053b20fb887a1fcd5c
C#
l42111996/kcp4sharp
/kcp4sharp/KcpClient.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.IO; namespace cocosocket4unity { /// <summary> /// kcp客戶端程序 /// </summary> public abstract class KcpClient : KcpOnUdp { protected volatile bool running; /// <summa...
e551e7b28ffd9d17ae07ae2d619934db5622c0bf
C#
Myvar/Eclang
/Src/Eclang/ECLang/BuildInTypes/EcByte.cs
2.78125
3
using System.Collections.Generic; using System.Text.RegularExpressions; namespace ECLang.BuildInTypes { using ECLang.BuildInTypes.Base; public class EcByte : EcBuiltInType { public static EcByte Null { get { return new EcByte() { value = "0" }; ...
795482d35e3dcf215c3c9479cb0c3755c5b80e20
C#
EmanuelMoldovan/PSSC-2017
/Turcian Darius/CURS/TEMA2/DariusDDD/DariusDDD/Infrastructure/CalculatorManager.cs
3.46875
3
using System; namespace DariusDDD.Infrastructure { public class CalculatorManager { private readonly decimal _fuelValue; private readonly decimal _powerValue; private readonly decimal _yearValue; private readonly decimal _price; public CalculatorManager(decimal price, ...
ce3484163ad7f70bd02f37202bfe8a5d6f9089bd
C#
Shushoto/Breeze
/code/Breeze.Core/Services/PlayersService.cs
2.6875
3
using System; using System.Collections.Generic; using System.Threading; using Breeze.Model.DataObjects; namespace Breeze.Core.Services { public class PlayersService : IPlayersService, IDisposable { private readonly IIDService _idService; private readonly PlayersData _allPlayers = new PlayersDa...
61d69c3599db5dc39cba8c255c199ec88d08cfc7
C#
StureTh/ec_utbildning
/ec_utbildning/MediaLib/MediaLib/Movie.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MediaLib { class Movie:Media { public string Director { get; set; } public Movie(string name="",string genre="",int year=0,string publisher="",string director=""):base...
dbda685673cd0c32a675f905142784fab0ec52d2
C#
tiaofu/tsdn.MS
/src/(V)NetCore/IMS/tsdn.Core/tsdn.Common.Core/TypeManager.cs
2.75
3
/********************************************************* * CopyRight: tiaoshuidenong. * Author: tiaoshuidenong * Address: wuhan * Create: 2018-04-10 17:44:16 * Modify: 2018-04-10 17:44:16 * Blog: http://www.cnblogs.com/tiaoshuidenong/ * Description: ef管理 *****************************************************...
388a3b03b0a367877ee5297acf77af5c97c3ecf3
C#
hackerlank/TraderClientTest
/ConsoleApplication8/ConsoleApplication8/ThreadDemo.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApplication8 { public class ThreadDemo { private readonly object objBlock = new object(); public void Call1() { lock (this.objBlock) { ...
9ab14d1a9e6ab9d20948069f44cf39d54fd99ec1
C#
moneymakermaster2010/MyPersonalProject
/EntityFramework/src/EntityFramework/Migrations/Model/DropTableOperation.cs
2.6875
3
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Migrations.Model { using System.Data.Entity.Utilities; using System.Diagnostics.CodeAnalysis; /// <summary> /// Represents dropp...
00e77f4dce52abcd52e4d2d21879b801949ee37d
C#
bausshf/Wordgorithm
/Source/WordBuilder.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wordgorithm { /// <summary> /// A word builder that can be used to construct sentences etc. /// </summary> public sealed class WordBuilder { /// <summary> /...
c58a266bbcc6dd22a3dcc7bd5eb03111128246e4
C#
tomitrescak/EI3
/Ei/Ei/Runtime/VariableDefinition.cs
2.65625
3
using Ei.Ontology; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; namespace Ei.Runtime { public enum VariableAccess { Public, Protected, Private } public interface IVariableDefinition ...
95b65a887c800e1e6afff2a9658ce03ebd1057c8
C#
ange-arthur/POO-Basis
/Properties.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; namespace POO_Basis { class Properties { public readonly DateTime _dateDeNaissance; public string Nom { get; set; } public string Prenom { get; set; } public int Age { get { var ager...
02dd97d9cc15924cdeec19d53bbe3784a8f205b5
C#
gleblebedev/UrhoSharpToolkit
/src/UrhoSharp.Prefabs/AbstractComponentPrefab.cs
2.609375
3
using System; using System.Xml.Linq; using Urho; namespace UrhoSharp.Prefabs { public abstract class AbstractComponentPrefab<T> : AbstractPrefab, IComponentPrefab where T : Component { public abstract string TypeName { get; } object IPrefab.Create() { return Create(); ...
78ea9680f4fd3e1fbf4cd8e332fe67a72b928d52
C#
pphuppertz/SimpleDllProjectToTestTeamCity
/SimpleDllProjectToTestTeamCity/Class1.cs
2.578125
3
using System; namespace SimpleDllProjectToTestTeamCity { public class Person { public string Name { get; set; } public DateTime BirthDate { get; set; } public int AgeInDays { get { return (DateTime.Today - BirthDate).Days; } } } }
7780124a93eaa2ad0f7ae2f46efdc17973e5ce5b
C#
msadeqshajary/graphql-aspnet
/src/graphql-aspnet-subscriptions/Execution/Subscriptions/SubscriptionEventName.cs
2.65625
3
// ************************************************************* // project: graphql-aspnet // -- // repo: https://github.com/graphql-aspnet // docs: https://graphql-aspnet.github.io // -- // License: MIT // ************************************************************* namespace GraphQL.AspNet.Execution.Subscriptio...
1a2f1577c8a83a6d50622aca5fa5070b517dcc18
C#
MykhailoIvchenko/Finite-state-machine-algorithm
/End automate/End automate/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace End_automate { class Program { static void Main(string[] args) { PinCreation myPin = new PinCreation(); /...
dc65b7fabc8a6a8807429b214f86de6db1f95ab9
C#
Ashirbadc/AspNet
/NewProjectASP/Default.aspx.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { LabelDate.Text = ...
af4f1dc995a4bd8729a9c5a0243a17204bef37ed
C#
DigitalSkunkworks/MediaAnalyser
/VisionProcessor/AzureQueueHandler.cs
2.765625
3
using Microsoft.Azure.WebJobs.Host; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; using System; using System.Threading.Tasks; namespace VisionProcessor { /// <summary> /// Class AzureQueueHandler /// Azure specific message handling methods. /// /// </summary> ...
052c403d7f55e5eb0622ddf63d05437b79d32b92
C#
ShourovSaha/DataStructurePractice-
/Stack/StringAnagramCheck/Program.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //A programe to check is a string is anagram to another string. namespace StringAnagramCheck { class Program { static void Main(string[] args) { Console.WriteLine("I...
41163034cd40e2637b827c9a0925358e39925a67
C#
lucasbriguenti/MestreDosCodigosNet
/MestreDosCodigosLucas/MestreDosCodigosPOOLucas/Modulos/PessoaModulo/PessoaModulo.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using Xunit.Abstractions; namespace MestreDosCodigosPOOLucas.Modulos.PessoaModulo { public class PessoaModulo : Modulo { private readonly ITestOutputHelper _output; public PessoaModulo() { } public Pes...
7fb9a020a59e2b92f0a43a53e195bb59757c1506
C#
KennethRPedersen/PetShop
/PetShop.Core/ApplicationService/Impl/UserService.cs
2.875
3
using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Security.Cryptography; using System.Text; using PetShop.Core.DomainService; using PetShop.Core.Entities; namespace PetShop.Core.ApplicationService.Impl { public class UserService : IUserService { private readonly ...
0a02c30ce6db8a9613656eb823583230db97791b
C#
pcardot/KinectProject
/ProjetIEC.b/Assets/Resources/Scripts/Game2-specific/ObjectFactory.cs
2.75
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class ObjectFactory : MonoBehaviour { [SerializeField] private GameObject objectPrefab; private Stack<GameObject> unusedObjects; public static ObjectFactory instance = null; public enum positions{ left, right, up } ...
ea7b3999e1d452099028c3d2a275ee0dc6680e4c
C#
ryomutk/walkingInTheWorldOf_HDRPv
/Assets/Scripts/Utility/Singleton.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Utility { public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T> { public static T instance = null; protected virtual void Awake() { CreateSingleton(); }...
1b6c2b58c47c6484f1a5ef29a1f8c54b8dc64950
C#
SRINIVAS2698/CSharpExercise
/src/Problem2/Requirements.cs
2.984375
3
namespace src.Problem2 { /* A class, entitled Requirements, that contains two pieces of data. The first is an instance of the enumerated type above. The second is an integer that represents the required number of units of the enumerated type specified in the first piece of data. The class should ...
1673f8e79c394552e3c68c1dcb78e076210c2010
C#
shendongnian/download4
/latest_version_download2/20859-2980974-26748941-6.cs
2.8125
3
public class DynamicProxy : System.Dynamic.DynamicObject { private object _innerObject; private Type _innerType; public DynamicProxy(object inner) { if (inner == null) throw new ArgumentNullException("inner"); _innerObject = inner; _innerType = _innerObject.GetTyp...