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
1fb06a78c9604473b249a25ade4eec62189259e3
C#
RamzesUAA/SortingAlgorithms
/SortingAlgorithms/AlgorithmsLibrary/Algorithms/SelectionSort.cs
3.25
3
using System; using System.Collections.Generic; using System.Drawing; using System.Text; namespace AlgorithmsLibrary.Algorithms { public class SelectionSort : SortBase { public void selectionSort(ref int[] arr) { for(int i = 0; i < arr.Length - 1; ++i) { ...
1932e73eb28996179de6c6d048d82d19eaaf090e
C#
stanek09512/Zarzadzanie_Druzyna_Pilkarska
/Backend_Prod_Front/InzBackend/InzBackend/InzBackApi/InzBackInfrastructure/Services/MatchService.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using AutoMapper; using InzBackCore.Domain; using InzBackCore.Repositories; using InzBackInfrastructure.Commands.Matches; using InzBackInfrastructure.DTO; using InzBackInfrastructure.Repositories; using System.Linq; names...
9b436b608751a4ac394f5b3ebf82385006d487a1
C#
lavar3l/Ewidencja
/CompanyDetails.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Ewidencja { public partial class CompanyDetails : Form { public Company companyDetails; ...
9d2f4ac996dd383376e4a1f5290bb874693b25bf
C#
Ciclo-DAW/DWES
/Unidad 4/Ejercicios/Ejercicio4.2.3/Ejercicio/Models/Words.cs
3.75
4
using System.Collections.Generic; namespace Ejercicio.Models { public class Words { private static List<string> list = new List<string>(); // permitimos acceso en modo lectura a la lista de palabras al resto de objetos de la aplicación public List<string> List { get => list; } ...
196c8fc922a81b71b7161ff08c3b6b6bc9ba308c
C#
itayl13/StudiesExercises
/ex4/VendingDP.Lib/Commands/EndOrder.cs
2.734375
3
using System; namespace VendingDP.Lib.Commands { public class EndOrder : Command { public override string CommandPrintingFormat() => "EndOrder"; public override void Run(ref Order currentOrder) { if (currentOrder.Price > 0) { currentOrder.EndOr...
6839d6090202deac55598281598db8f93ea7f7e1
C#
Oswin2014/Behavior_Tree-Practice-in-Unity
/Behavior Tree Practice/Assets/_Script/AI/Agent/Context.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.ComponentModel; using System.Globalization; namespace behaviac { public class Context { private static Dictionary<int, Context> ms_contexts = new Dictionary<int, Context>(); private Dictiona...
9ee86114595e4369cb5f7969cd8cc621d9c4bcc8
C#
cthibault/passgen
/PasswordGenerator/PasswordGenerator.cs
2.9375
3
using PasswordGenerator.Random; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Security; using System.Security.Cryptography; using System.Text; namespace PasswordGenerator { public class PasswordGenerator { public PasswordGenerator(...
2776f32279af80d9d023725a3bcf4de344b86b02
C#
chaitrashankar06/Chaitra_Repo
/LightSimulatorTesting/Program.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.IO; using System.Net.Sockets; using TestInterface; namespace LightSimulatorTesting { class Program { static void Main(string[] args) ...
c22f1bd5fd6be848eafe6211ac34871eb66d4a3b
C#
irun99/hdt-deck-predictor
/DeckPredictor/Predictor.cs
2.71875
3
using Hearthstone_Deck_Tracker.Hearthstone; using Hearthstone_Deck_Tracker; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO.Compression; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System; namespace DeckPredictor ...
ceea540e23864136ee3ac01de345c8de4dd3dc90
C#
rediarisa/PierresBakery
/Bakery/Models/Pastry.cs
3.03125
3
using System; namespace Bakery.Models { public class Pastry { public int Cost { get; set; } public int Quant { get; set; } public Pastry(int cost, int quant) { Cost = cost; Quant = quant; } public static int PastryCost(int quant) ...
a406e9019e7da72edefeaaec8235ad16ae71204d
C#
PPFTech/PpfChallenge002
/PpfChallenge002/Level1/FormMp3Player.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PpfChallenge002.Level1 { public partial class FormMp3Player : Form { ...
b5475a383c29c0da19eac166687f80bb5cb94c48
C#
sigmalin/Institute
/Assets/CardFlip/Tools/TweenVector2.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TweenVector2 { Vector2 src; Vector2 dst; float time; float elapsed; public TweenVector2() { src = Vector2.zero; dst = Vector2.zero; time = 0f; elapsed = 0f; } pu...
213f24244beb54a86fe72fe48f843bb181929b6c
C#
shendongnian/download4
/code8/1447663-39490485-127073537-2.cs
2.984375
3
public class TextBoxBehaviors { public static bool GetEnforceFocus(DependencyObject obj) { return (bool)obj.GetValue(EnforceFocusProperty); } public static void SetEnforceFocus(DependencyObject obj, bool value) { obj.SetValue(EnforceFocusProperty, ...
340d6ca3af2fca0e716c5fc35f30c5443e3a00cd
C#
sanoojps/notifierElite
/notifierElite/SchedulerForm.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace notifierElite { public partial class SchedulerForm : Form { public SchedulerForm() { InitializeComponent();...
7df544038cd797760950dbb6edb8c8fc80b5f3df
C#
jeffman/RopeSnake
/RopeSnake/Mother3/Text/JapaneseCharacterMap.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ForwardLookup = System.Collections.Generic.Dictionary<short, char>; using ReverseLookup = System.Collections.Generic.Dictionary<char, short>; namespace RopeSnake.Mother3.Text { public class Ja...
5f3c239f7417257852c4f8e9a4ba9a8416d0eae5
C#
mgulsoy/nuve
/nuve/Sentence/SentenceSegmenterEvaluator.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; namespace Nuve.Sentence { /// <summary> /// Evaluates the accuracy of a SentenceSegmenter on a paragraph. /// </summary> internal static class SentenceSegmenterEvaluator { public static IEnumerable<DetailedEvaluation> E...
feb9dc2f00d23da4044b75a11e2e5ed979bb2096
C#
yuka1984/DurableFunctionsTutorial
/Tutorial/Tutorial3/Sample.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; namespace Tutorial3 { public class SampleOrchestratorFunctions { [FunctionName(nameof(SampleOrchestratorFunction))] public async Task<int> SampleOr...
8054438a083b55caeb81f25e542f39b10d7993cf
C#
vitalityyy/My3d
/Matchlab/Vector3d.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace My3d { public class Vector3d { public double dx; public double dy; public double dz; public Vector3d(double dx, double dy, double dz) { ...
0d1b93061152b075385b55eb9933cdfef960d263
C#
yongzhao1/DecompliedDotNetLibraries
/System.Data/System/Data/SqlClient/SqlServerEscapeHelper.cs
2.828125
3
namespace System.Data.SqlClient { using System; using System.Data.Common; using System.Text; internal static class SqlServerEscapeHelper { internal static string EscapeIdentifier(string name) { return ("[" + name.Replace("]", "]]") + "]"); } internal st...
cbbff17790d34bb25d010d35d38b8b882849953d
C#
macuistin/ApiSwaggerAuthScan
/ApiSwaggerAuth.CLI/SwaggerScan.cs
2.984375
3
using System; using System.Diagnostics; using System.Net; using System.Threading.Tasks; using ApiSwaggerAuth.Domain.Entities; using ApiSwaggerAuth.Domain.Services; namespace ApiSwaggerAuth.Console { public class SwaggerScan : ISwaggerScan { private readonly IApiService _apiService; public Swa...
342cd84af1ff8699db84253791e047d830dc6a8a
C#
ctzuchiang/project-euler
/LeetCode/Solution/Solution/Easy/051_100/E70_ClimbingStairs.cs
3.046875
3
namespace Solution.Easy._051_100 { public class E70_ClimbingStairs { public int ClimbStairs(int n) { int a = 1, b = 1; while (n-- > 0) a = (b += a) - a; return a; } } }
dc592eb90cb765558768eb2ff751c09c4d0563d6
C#
gchristo/EmuladorAtari
/Atari/Chip8Commands/BaseCommand.cs
2.640625
3
namespace Emulator.Chip8Commands { public abstract class BaseCommand { protected Chip8 Chip; public BaseCommand(Chip8 chip) { Chip = chip; } public ushort PC { get { return Chip.PC; } set { Chip.PC = value; } } ...
efbaeb517c47550b07903ee9c56dddf381cbd92a
C#
anluu275/Gacha_Roll_Tracker
/Code_Behind/Arknight_Roll_Tracker/MainWindowViewModel.cs
2.78125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Windows.Controls; using System.Windows.Input; namespace Arknight_Roll_Tracker { public class MainWindowViewModel : BaseViewModel { private float _curTotalRolls; private float _amtOf6Stars; ...
a768382082f37b317e2afdc066bbc480db08a215
C#
shendongnian/download4
/first_version_download2/412643-36239287-114178911-2.cs
2.640625
3
DataTable t; // assume this is table with "Category","Wee","Resolution" columns var pivotData = new PivotData( new string[] {"Category","Week"}, new SumAggregatorFactory("Resolution"), new DataTableReader(t) ); var pivotTable = new PivotTable( new []{"Week"}, // row dimension...
9917e32d3d5340d2f7d90a09eebd988f950daa5e
C#
Argg1025/PostCodeJsonTest
/PostCodeJsonTest/Tests/UnitTest1.cs
2.546875
3
using System; using NUnit.Framework; namespace PostCodeJsonTest { [TestFixture] public class UnitTest1 { PostcodeService postcodeService = new PostcodeService(); [Test] public void CheckStatus() { Assert.AreEqual(200, postcodeService.postCodeDTO.PostCode.status)...
7c0694d452e9107a10be2805b9254154df160e65
C#
dis-kz/progeliers
/Synectix/Model/SynectixConnection.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { public class SynectixConnection { //string _serverName = @".\SQLEXPRESS"; /*@"SERVER\SQLSYNECTIX";*/ //string _modelName = "DataModel"; //string _databa...
9006c602b53112fd369815b44335e6f7b81385a9
C#
MangyctSoft/TenzoTest
/Server/Services/OperationService.cs
2.8125
3
using Common.Interfaces.Services; using System; using System.ServiceModel; namespace Server.Services { [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.Single)] public class OperationService : IOperationService { public void Start(string userName...
0a948fdb23f7527e816a3217d898b0c7b5f51a38
C#
WGPQ/CompilerWCL
/CompilerWCL/herramientas/Login_Resources/ManagerUser.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace CompilerWCL.Login_Resources { class ManagerUser { string archivo = "user.txt"; private enviaremail env = new enviaremail(); public string user...
4502dad7ab32c85ce195d7c995cdad033e8610a4
C#
incarnum/WoTW
/WoTWGame/Assets/DescriptionTextScript.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DescriptionTextScript : MonoBehaviour { public List<string> descriptions; public float rowLimit; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public v...
2e1288a44a9be62e1170119dc8021c67c858d1f4
C#
alifshits/LeetCode
/Bytes/Reverse Bits.cs
3.171875
3
public class Solution { public uint reverseBits(uint n) { uint reversed = 0; for (var i = 0; i < 32; ++i) { if (i > 0) reversed <<= 1; var last = n & 1; n >>= 1; reversed |= last; } return reversed; } }
31504408fdf8f6b0a72006bb27acd3e1d78d4425
C#
cuiopen/httpjsonrpcnet
/src/HttpJsonRpc/JsonRpcResponse.cs
2.640625
3
using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace HttpJsonRpc { public class JsonRpcResponse { [JsonProperty("jsonrpc")] public string JsonRpc { get; set; } [JsonProperty("id")] public object Id { get; set; } [JsonProperty("result")] pub...
8fd2abf3fa84633b21e3272d3b505f5f71da4b29
C#
revcozmo/absoluterisk
/Risk1/Bolge.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace Risk1 { public class Bolge { public Bolge(List<Nokta> nok,String ad) { this.noktalar = nok; this.isim = ad; } public Bolge(){} ...
5ef7a34b818de7f6d6afd6ee27d423782cb03207
C#
ctcb57/lemonade_Stand
/lemonade_Stand/lemonade_Stand/Store.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lemonade_Stand { public class Store { //member variables public int lemonPrice; public int icePrice; public int cupPrice; public int sugarPrice;...
eca1f7d2cf8d5b2592e91484ac1be3fd69163d80
C#
21959293/CITS5551_Project
/Assets/Scripts/EndManager.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; /// <summary> /// Manages the end of the game (doesn't seem to do much though) /// </summary> public class EndManager : MonoBehaviour { public Text moneyText; void Start ()...
64b418e411a8c8ad064b39773c7873329de245ba
C#
mnjstwins/Bitcsharp
/bitcsharp/src/lsc.llvm/Instruction/Label.cs
2.546875
3
 namespace LLVMSharp.Compiler.CodeGenerators.LLVM { /// <summary> /// &lt;label>: /// </summary> public class Label : Instruction { public string Name; public Label(Module module) : base(module) { } public override string EmitCode() { ...
3a3502a479b0d019b237ac3efc4418dc026bcff1
C#
bobonic/SproutExam
/Sprout.Exam.WebApp/Controllers/EmployeesController.cs
2.578125
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Sprout.Exam.Business.DataTransferObjects; using Sprout.Exam.Common.Enums; using Sprout.Exam.Repositories; usi...
c514d1de686e09be8d3a9b90056fea46e407e064
C#
SkieeL/Laboratorio-II
/PARCIALES/Práctica 1 SP Lab II/Entidades/Goma.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades { public class Goma : Utiles { private bool _soloLapiz; public override double Precio { get { return base._precio; } set { base._prec...
d08accd97e804133e70fda0edb63a4f719326d87
C#
rwg0/ConeSharp
/ConeSharp/RADecl.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConeSharp { class RADecl { public double RA { get; set; } public double RADegrees { get { return RA/24*360; } } public double Declination { get; set; } static public RADecl operato...
1d35f8292af6fb5aac86df63f11788e9f2388f01
C#
mndspc/Chapter5-Repo
/ArrayAndCollections/ArrayAndCollections/HashTableAndSortedListDemo.cs
3.640625
4
using System; using System.Collections; namespace ArrayAndCollections { // This program demo. how to use HashTable and SortedList non-generic collection class HashTableAndSortedListDemo { static void Main() { // HashTable and SortedList maintain data in pairs (key and value) ...
2500fb4ed396bfebe6037765a47ca1e6ac57fb0c
C#
nathalyoliveira/LP3_IFSP
/Aula13/Aula13/Aula13/Program.cs
3.296875
3
using System; namespace Aula13 { class Program { static void mostrarArea(IForma forma) { Console.WriteLine("Área da forma: " + forma.calcularArea()); } static void Main(string[] args) { IForma f1 = new Quadrado(10.0); mostrarArea(f1);...
f90ee4eda5bd8a8768dec86758e741fd871ec6bb
C#
danruimdegame/MAIN-2D
/Assets/SCRIPT/LEVEL 1/SPECIAL PLATFORMS/MovingPlatformControl.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MovingPlatformControl : MonoBehaviour { public GameObject platform; public Transform currentPoint; public Transform[] positions; public int pointSelection = 0; public float moveSpeed = 2f; public float waitTime = 0.5f; ...
96c0ce063eb8952a3a9717d1be2c063f10fe1fbe
C#
notusedusername/doctorCSharp
/ShopServer/Model/Items/SerializedUser.cs
2.78125
3
 using DoctorCSharpServer.Controllers.Exceptions; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DoctorCSharpServer.Model.Items { public class SerializedUser { public string name { get; set; } pu...
6bea857b58bd69c62db02e8ffd13029f067fa951
C#
sunnytyra/ProductSite
/ProductSite/Data/ProductBase.cs
2.609375
3
using ProductSite.Interfaces.Enum; using ProductSite.Interfaces.Public; using System; using System.Collections.Generic; using System.Text; namespace ProductSite.Data { class ProductBase : IProduct { //TODO remove this may not be needed private readonly IProduct product; public ProductTypeEn...
8eb8708342ab05b0e6487a16b2952fe1dc11210d
C#
Hemant-Jain-Author/Problem-Solving-in-Data-Structures-Algorithms-using-CSharp
/HashTable/HashTableExercise.cs
3.671875
4
using System; using System.Collections.Generic; public class HashTableExercise { public static bool IsAnagram(char[] str1, char[] str2) { int size1 = str1.Length; int size2 = str2.Length; if (size1 != size2) { return false; } Dictionar...
56bcd5b2dd104091a63012473372326a1afdde4b
C#
keisukenakamura0711/WPFApp_Test3
/Views/Behaviors/CommonDialogBehavior.cs
2.828125
3
using Microsoft.Win32; using System; using System.Windows; namespace WPFApp_Test3.Views.Behaviors { /// <summary> /// コモンダイアログに関するビヘイビアを表します。 /// </summary> internal class CommonDialogBehavior { #region Callback 添付プロパティ /// <summary> /// Action&lt;bool, string&gt; 型のCallba...
a0be412d9e91f567da83f33a6f4a83acdca0fe03
C#
devatwork/Premotion-Mansion
/src/Premotion.Mansion.Core/IO/EmbeddedResources/EmbeddedResource.cs
2.859375
3
using System; using System.IO; using System.Reflection; using System.Text; using Premotion.Mansion.Core.Patterns; namespace Premotion.Mansion.Core.IO.EmbeddedResources { /// <summary> /// Implements the <see cref="IResource"/> interface for embedded resources. /// </summary> public class EmbeddedResource : IResour...
3ee501016230cf50484c0633e305c2aab6461690
C#
eweader/SharedMemory-master
/Experiments/PriceConsumerConsole/Program.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PriceConsumerConsole { class Program { static void Main(string[] args) { string mname = "PovEURUSDm5" ; using (var consumer = new SharedMemo...
ec779eace1cfbd5c548f8ee674b1d236e6ff1e1e
C#
LittleKolio/CSharp
/CSharp Advanced/16_LINQ_Exercises/Exercises_08_Weak_Students.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace LINQ_Exercises { class Exercises_08_Weak_Students { static void Main() { /* List<string[]> students = new ...
003ebdbae3a596f684188dca133b6f498375f50a
C#
InNomineMortis/internet_technologies_components
/Lab3/Lab3/Figure.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab3 { public abstract class Figure : IPrint, IComparable { public abstract double Area(); public int CompareTo(object obj) { switch (o...
867ab213f83ab49a9f92838b06ee1495b2423706
C#
RodrigodeMoura/contravania
/RunAndGun/RunAndGun/StageObjects/Platform.cs
2.796875
3
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RunAndGun.GameObjects { public class Platform { public enum PlatformTypes { Normal, Stairs, StairsBottom } priva...
3894573402ec8fdd2db83e8c58385d3ce9457da0
C#
LMErika/sisComercial
/SistemaComercial/DAO/daoUsuario.cs
2.59375
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 Entidad; namespace DAO { public class daoUsuario { #region singleton private static readonly daoUsuario conexUsuario = new d...
d51d4fea49cedafcc9ba215f49f7a32205703886
C#
zl1814264-lay/C-Sharp-Samples-for-Beginners
/Collatz Sequence.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication210 { class Program { static void Main(string[] args) { Console.WriteLine("Generation of Collatz Sequence"); Console.WriteLine...
597a3ac2cf62334bc3e0d1ac01609333f43d2aae
C#
rianjs/PassiveIncomeCalculator
/PassiveIncome/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PassiveIncome { internal class Program { static void Main(string[] args) { BridgeToAsync().Wait(); Console.ReadLine(); } privat...
894163bb2fbb8143d00b2246cca34b2b0d2771fd
C#
KishorNaik/Sol_Ref_Local_Returns_C-
/Sol_Demo/Sol_Demo/Program.cs
3.421875
3
// Ref local and return using System; namespace Sol_Demo { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); #region Exmaple One Example1 example = new Example1(); int[] numbers = new[] { 1, 2, -4, 5, 6 }; ...
5d4d8a8e66ef4a5ada0470327a87badf14bbdde6
C#
nguoiyoujie/Primrose
/src/Primrose.Expressions/Tree/Statements/Statement.cs
2.90625
3
using System.Text; namespace Primrose.Expressions.Tree.Statements { internal class Statement : CStatement { private readonly CStatement _statement; internal Statement(ContextScope scope, Lexer lexer) : base(scope, lexer) { // IFTHENELSE (GetNext) while (lexer.TokenType == Tok...
86e8869309245a1dec49239788cfa0c7ec9274c2
C#
kim4t/SEP
/C# 04/Exercise1/Program.cs
3.453125
3
using System; namespace Exercise1 { class Program { static void Main(string[] args) { Customer c = new Customer(1); c.Name = "Maria Anders"; c.City = "Berlin"; Console.WriteLine(c); } } public class Customer { publi...
9099fd73d946cf4ef9abea58069ebc513c24adee
C#
zyque-sys/aplicaciones-web
/visual studio repo/FUNPOO2020_2/III_5CodigoDesdeUML/Perro.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace III_5CodigoDesdeUML { public class Perro : Animal { private int cPerro1; private string cPerro2; public event System.EventHandler Ladrar; public int C...
0d22797e0eece0c9f82cf2f475dd6badc5f0a049
C#
ab4d/Ab3d.PowerToys.Wpf.Samples
/Ab3d.PowerToys.Samples/Text3D/LineWithTextSample.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...
c174f7d392d381d6dd531999cbd9d297fff20e3b
C#
PacktPublishing/Programming-in-C-Sharp-Exam-70-483-MCSD-Guide
/Chapter07/ExceptionSamples.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Chapter7 { internal class ExceptionSamples { public static void ExceptionTest1() { string str = string.Empty; ...
58118f5c52030f08e703d3870a4f7ed5dc40b5f3
C#
andreialex007/AvitoParser
/AvitoParser.BL/EmailHelper.cs
2.609375
3
using System; using System.Collections.Specialized; using System.Net; using System.Net.Mail; using System.Threading.Tasks; using NLog; namespace AvitoParser.BL { public class EmailHelper { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); public static NameValueColle...
ba8807b177217503fd4ee3ebf82a1ab4666cb9cc
C#
mfmese/DesignPatterns
/Observer/Program.cs
3.546875
4
using System; using System.Collections.Generic; namespace Observer { /// <summary> /// Amaç: one-to-many ilişki olan nesnelerde kullanılır. Eğer nesne değişmişse ona bağlı diğer nesneler otomatik olarak bilgilendirilir. /// Kendine abone olan sistemlerin bir işlem olduğunda devreye girmesini sağlayan bir...
e9d39131c6891890d214c65902a32a6eb347e2fe
C#
keshaavg/game-of-life
/GameOfLife.Tests/CellTest.cs
3.078125
3
using GameOfLife.Domain; using System; using Xunit; namespace GameOfLife { public class CellTest { [Theory] [InlineData('a')] [InlineData('@')] public void Throws_ArgumentOutOfRangeException_ForInvalidValues(char cellStatus) { // Arrange + Act + Assert ...
67cf6740bbebcf3adcb8a5dfd11d5f186c3a8811
C#
SAW1518/MosbitJesusTraining
/C#/TestPoo/TestPoo/CAsociado.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestPoo { class CAsociado { public CAsociado() { _Sueldo = "16 000 $"; } private string _Sueldo; internal string Puesto {get; set; } public string Horas { get;...
f777ec1c075ba3563720623b651ba9495654655c
C#
qxc/Blink
/Blink/Assets/Scripts/GameLogger.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; public class GameLogger : MonoBehaviour { // Use this for initialization public void WriteGameLog(string score, string time) { //int pathEnder = Random.Range(0, 1000000); string path = Applicati...
a80ec831d801d9737c94cb5487508101d0627186
C#
leeleiBruce/HealthyInformations
/HealthyInformation.FrameWork/ActionTrigger/TriggerHelper.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Interactivity = System.Windows.Interactivity; namespace HealthyInformation.FrameWork.ActionTrigger { public static class TriggerHelper { public static void At...
ffac0d160a8b6bd8f91970d433633ffd4daee281
C#
yapyuyou/ICT2106-2018T2-P2
/SmartHome/Controllers/UsageStatistics/EnergyUsageController.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using SmartHome.Models; using UsageStatistics.Models; namespace UsageStatistics.Controllers { public class EnergyUsageController : Controller { private Session _session; // GET: EnergyUsage ...
ff158d33429b480a4bf26cf483ebf5d22265bc81
C#
svetlyoek/DB
/Entity Framework Core/Best practicing and architecture/PetStore/PetStore.Services.Models/Pet/PetCreateServiceModel.cs
2.625
3
namespace PetStore.Services.Models.Pet { using PetStore.Models.Enums; using System; using System.ComponentModel.DataAnnotations; public class PetCreateServiceModel { [Required] [StringLength(50)] public string Name { get; set; } [Required] public DateTime B...
7b6d335fdc28b85493f737cad855a3b0395ea1f3
C#
rhanariba001/ventas
/ventas/Mantenimiento/BL/ClienteBL.cs
2.765625
3
using Mantenimiento.Modelos; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mantenimiento.BL { public class ClienteBL { public List<Cliente> ListadeCliente { get; set; } public ClienteBL() { Lis...
10badb016e6e3f6635ceca9f1fd06add18b5e039
C#
MeadowSuite/Meadow
/src/Meadow.EVM/Exceptions/TransactionException.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; namespace Meadow.EVM.Exceptions { /// <summary> /// An exception thrown to signal that our transaction was invalid. /// </summary> public class TransactionException : Exception { public TransactionException() { } pu...
cc685b84461bbeebfd84089d0768352143218ab0
C#
DTRaich/PM-Semester-4
/Supernova/Supernova/objects/ProjektDataDummy.cs
2.5625
3
using Supernova.data; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace Supernova.objects { public class ProjektDataDummy { #region fields public int ProjectID = 0; #region basisdaten public int lala; pu...
4ed840af3a08496b5222f69b37d31d3bb460f2ee
C#
HristoSpasov/C-Sharp-Advanced
/06. Exercise Iterators and Comparators/07. Equality Logic/Comparers/PersonComparer.cs
3.546875
4
using _07.Equality_Logic.Interfaces; using System; using System.Collections.Generic; namespace _07.Equality_Logic.Comparers { public class PersonComparer : IEqualityComparer<IPerson>, IComparer<IPerson> { public bool Equals(IPerson x, IPerson y) { return string.Equals(x.Name, y.Nam...
2744d2665ac1571c6dc65859c349172883656006
C#
boulosdib/Azure-Sentinel
/.script/tests/KqlvalidationsTests/JsonFilesTestData/DataConnectorFilesLoader.cs
2.59375
3
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Schema.Generation; using Newtonsoft.Json.Schema; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; namespace Kqlvalidations.Tests { public class DataConnectorFilesLoader : JsonFilesLoader ...
3a10a7dd374e25d4c3282aa7b63598b19f5480c2
C#
captainanderz/DateFlix-API
/Dateflix-MVC/Services/MessagesService.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DateflixMVC.Dtos; using DateflixMVC.Helpers; using DateflixMVC.Models.Profile; namespace DateflixMVC.Services { public class MessagesService : IMessageService { private WebApiDbContext _context; ...
9b23d95b8c1a7565d3a8c20f8c9b111441f5f351
C#
smarkets/IronSmarkets
/IronSmarkets/System/Threading/LazyInitializer.cs
2.578125
3
// // LazyInitializer.cs // // Author: // Jérémie "Garuma" Laval <jeremie.laval@gmail.com> // // Copyright (c) 2009 Jérémie "Garuma" Laval // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in ...
6bdc4d8330643543607124194cd7262b5187902c
C#
Tonic-Box/D3Studio-Source
/D3.Protobuf/Console/PropertyExtension.cs
2.875
3
 using System; using System.ComponentModel; using System.Reflection; namespace PB.Console { public static class PropertyExtension { public static void SetPropertyValue(this object obj, string propName, object value) { PropertyInfo property = obj.GetType().GetProperty(propName); Type conversion...
96bb63caefca78f8c856d8e44469ca80d8685ddb
C#
CyberBird2/Projects
/C# Projects/RockPaperScissorsLizzardSpock/RockPaperScissorsLizzardSpock/Form1.cs
2.78125
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 RockPaperScissorsLizzardSpock { public partial class Form1 : Form { public For...
1a8bbb7e60605dfd2b4234517bf319b9d1512132
C#
Jafic/EZNEW
/EZNEW/Extensions/GuidExtensions.cs
3.578125
4
namespace System { /// <summary> /// Guid extensions /// </summary> public static class GuidExtensions { #region Verify guid vlaue whether is empty /// <summary> /// Verify Guid is empty or not /// </summary> /// <param name="value">Guid value</param> ...
fc70d08dabe996b9ef002e0960147e3f21be7796
C#
dobroslav-atanasov/Programming-Fundamentals
/13. ArraysAndMethods-MoreExercises/06. Heists/Heists.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; namespace _06.Heists { public class Heists { static void Main() { int[] prices = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int priceJewels = prices[0]; int priceGold = prices...
1df30a31e6f5fe4f27a7bcd2bd9cac8ad133c6ee
C#
jasiak96336/test
/Form1.cs
2.71875
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 jak_się_czujesz_xd { public partial class Form1 : Form { int nastroj = 0...
6832c9dbe422ea9c4be0d5e7b5b19bbd5cf6a2db
C#
AStrand94/WebApplikasjoner
/DAL1/Stub/CustomerStub.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WebApplication3.Model; namespace WebApplication3.DAL { public class CustomerStub : ICustomerDAL { public Customer AddCustomer(Customer customer) { if (customer....
b6b8c9ef013be244dd4d3673aab79b69454f9937
C#
Anrich96/Anoroc-Server
/Anoroc-User-Management/Models/Cluster/ClusterWrapper.cs
2.6875
3
using Microsoft.AspNetCore.Routing.Constraints; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Anoroc_User_Management.Models { /// <summary> /// Class used to simplify the clusters so that we don't send too much data to the Mobile app. /// </summ...
7906740c6c65dbd09040d1147140b1baaf32e2c2
C#
SynHub/syn-speech
/Syn.Speech/Trainer/Node.cs
3.15625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Syn.Speech.Trainer { /// <summary> /// Defines the basic Node for any graph A generic graph Node must have a list of outgoing edges and an identifier. /// </summary> public class Node { /...
3c0a862a4702234260a2f59f2cb717f35313ed89
C#
lemonine/Flat
/RandomHelper.cs
3.09375
3
using System; using Microsoft.Xna.Framework; namespace Flat { public static class RandomHelper { private static Random Rand = new Random(); public static int RandomInteger() { return Rand.Next(); } public static int RandomInteger(Random rand)...
90bd45bff2824f04353e72aa60ab6b625f3f1e8e
C#
aosoft/libavif-sharp
/libavif-sharp/AvifImageData.cs
2.890625
3
using System; using System.Collections.Generic; using System.Text; namespace LibAvif { public readonly ref struct AvifImageData<T> where T : unmanaged { private readonly AvifData<byte> _data; public AvifImageData(uint channelCount, uint width, uint height, IntPtr p, uint rowBytes) { ...
d842d02ddec533c61ef48de0cea399ef248d9689
C#
Gentlet/Team.NULL-DungeonMusician
/던전 뮤지션/Assets/0_Test/Broken_Fire_Egg/Scripts/MultiObjectAnimation.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MultiObjectAnimation : MonoBehaviour { public Animator[] animators; public string triggerName; private void Start() { TriggerAll(); } public void TriggerAll() { foreach(Animator anit...
df176610ea4ea8ff27231ef39d809f8db0aef00c
C#
ProtonSoftware/Pogodeo24
/Backend/Pogodeo.Core/Commons/OperationResult.cs
2.953125
3
using System.Collections.Generic; using System.Text; namespace Pogodeo.Core { /// <summary> /// /// </summary> public class OperationResult { #region Public Properties public List<Error> Errors { get; set; } public bool Success { get; private set; } #endregion ...
726ada91df273a2fd0a50d882c0674bd709b3d3f
C#
osamajaved/maxsum
/MaxSumTriangle/Input.cs
3.5
4
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace MaxSumTriangle { public static class Input { public static async Task<List<string[]>> ReadLines(string path) { try { StreamReader...
1c84038c53062dda2ee4135725e4df5758020aa0
C#
JasinskiLuk/TestingProject
/TestingProject.DTOs/ParameterDTO.cs
2.515625
3
namespace TestingProject.DTOs { public class ParameterDTO { public int Id { get; set; } public string Name { get; set; } public string Value { get; set; } } public class NullParameterDTO : ParameterDTO { public NullParameterDTO() { Id = -1; ...
79c94443952dd81bf0177f13313e28362e41275b
C#
ZyshchykMaksim/nlayer-architecture.net
/NLayer.HealthCheck/HealthChecker.cs
2.671875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using NLayer.HealthCheck.Models.Enums; using NLayer.HealthCheck.Models.Results; using NLayer.Logging; namespace NLayer.HealthCheck { /// <summary> /// HealthChecker. /// </summary> ...
7b51056543407b8b5c877d942bd35d9bad61dc5f
C#
albertosam/ffb-tec-inter
/TrilhasCertificacao/Infrastructure/Repositories/CertificadoRepository.cs
2.671875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TrilhasCertificacao.Domain; using TrilhasCertificacao.Infrastructure; namespace TrilhasCertificacao.Infrastructure.Repositories { public class CertificadoRepository : ICertif...
a089a652612b387aa25f5e20e366712102d72ec5
C#
alialwahish/WizardNinjaSamurai
/Samurai.cs
2.78125
3
namespace Human{ public class Samurai : Human{ public Samurai(string samuraiName):base(samuraiName){ this.health=200; } public void death_blow(Human rhs){ if(rhs.health<=50){ rhs.health=0; } ...
428637e6ab0d5ab49f6fb9b5ea3d74a8f09e3339
C#
VKeCRM/V2
/Framework/VKeCRM.Common/Cryptography/RsaCryptoProvider.cs
2.8125
3
//----------------------------------------------------------------------- // <copyright file="RsaCryptoProvider.cs" company="VKeCRM"> // Company copyright tag. // </copyright> //----------------------------------------------------------------------- using System; using System.IO; using System.Security.Cryptography;...
caac968358b651655eaaeff0d9f666bc87a94276
C#
shendongnian/download4
/first_version_download2/264573-21145794-55722621-2.cs
3.125
3
static IEnumerable<string> GetSomeData() { using (var connection = new SqlConnection("...")) { connection.Open(); using (var command = new SqlCommand("select name from some_table", connection)) using (var reader = command.ExecuteRea...
b52fe2294f46b51e93d32ebd06675ba480ca6539
C#
stoyanov7/ModPanel
/ModPanel/ModPanel/Services/UserService.cs
2.953125
3
namespace ModPanel.Services { using System.Collections.Generic; using System.Linq; using Contracts; using Data; using Models; using Models.Enums; using Models.ViewModels; using Utilities; public class UserService : IUserService { private readonly ModPanelCo...
c276a9a32f89b23fa848f7dad6369951724d9656
C#
sergeybykov/orleans
/Samples/1.x/Chirper/ChirperClient/ChirperClient.cs
2.53125
3
using System; using System.Collections.Generic; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Orleans.Runtime.Configuration; using Orleans.Samples.Chirper.GrainInterfaces; namespace Orleans.Samples.Chirper.Client { internal class ChirperClient : IChirperViewer { p...
632e567f987dd1ff71878661df623031b11e2117
C#
ptrefall/fluid-text-adventure
/Fluid Text Adventure/Fluid Text Adventure/Items/Sword.cs
2.875
3
using System; using System.Collections.Generic; using FluidHTN; using FluidHTN.Compounds; using Fluid_Text_Adventure.Screens; namespace Fluid_Text_Adventure { public class Sword : Item { public override string Description => "On the ground lies a rusty, old sword."; public Sword(...
47562bddd7f3dfac7247e471465f6ae4547e2143
C#
Bunyod545/SBFramework
/src/Database/Migrator/Database/SB.Migrator.Postgres/Logics/Database/Managers/PostgresColumns/Models/PostgresColumnTypeInfo.cs
2.84375
3
using System.Collections.Generic; using SB.Common.Helpers; using SB.Migrator.Models.Tables.Columns; namespace SB.Migrator.Postgres { /// <summary> /// /// </summary> public class PostgresColumnTypeInfo : ColumnTypeInfo { /// <summary> /// /// </summary> private re...
c817741786e5864f9dceb71a8d03913179ccfbd8
C#
AustinRow1/Graviton_Unity_2D_Game
/Graviton/Assets/Scripts/Singletons/Light_Effects.cs
3.109375
3
/************************************************************************************** ** Filename: Light_Effects.cs ** Author: Austin Row ** Date: 8/22/16 ** Description: Contains functions for handling individual light effects such ** fading, flaring, and pulsing (to be implemented in the future when ** ...
fd61e7b77ee05dfb040da7d4c90bd63c2b95c9d2
C#
LisovichIvan/Crm.Sdk.Core
/Microsoft.Xrm.Sdk/Messages/CreateRequest.cs
2.671875
3
using System.Runtime.Serialization; namespace Microsoft.Xrm.Sdk.Messages { /// <summary>Contains the data that is needed to create a record.</summary> [DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")] public sealed class CreateRequest : OrganizationRequest { /// <summary>Gets o...
5231840ad843082a4bce9742c702925bb80e6794
C#
mjz1211/IOT-web
/MyService/MyService/Controllers/SensorController.cs
2.546875
3
using MyService.Models; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using Newtonsoft.Json; namespace MyService.Controllers { public class SensorController : ApiControlle...