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 |
|---|---|---|---|---|---|---|
fcd002f114da8f1ec891453c118aee5fdcb76add | C# | VictorRSantos/Curso-CSharp-Udemy | /Aula-69-Vetores-Parte-1/Program.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aula_69_Vetores_Parte_1
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
... |
d124b937119cb47292a521066a3960891a77fd05 | C# | bryantomoregie/CSharpTutorial | /OOP/Post.cs | 3.8125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace CSharpTutorial
{
class Post
{
public Post(string title, string description)
{
_title = title;
_description = description;
DateTime = DateTime.Now;
}
private string... |
65edea8b9b7e2ea57ae268360b140ce568444d76 | C# | netsh3r/sql-reader-helper | /sql-reader-helper/sql-reader-helper.test/HelperBase.cs | 2.796875 | 3 | using Moq;
using NUnit.Framework;
using SqlHelperReader;
using System;
using System.Data.Common;
namespace sql_reader_helper.test
{
[TestFixture]
public class HelperBase
{
private Mock<DbDataReader> MockDataReader;
[SetUp]
public void Init()
{
bool readToggle = true;
MockDataReader = new Mock<DbDataR... |
df67c4600283d1f774a9301ad951524d31d0eaf2 | C# | Merchello/Merchello | /src/Merchello.Core/Trees/TreeNodeFactory{T}.cs | 2.859375 | 3 | namespace Merchello.Core.Trees
{
using System.Collections.Generic;
using System.Linq;
using Merchello.Core.Models;
using Merchello.Core.Models.EntityBase;
/// <summary>
/// Defines a factory capable of building a Tree of <see cref="TreeNode{T}"/>.
/// </summary>
/// <typeparam name="T... |
156ef9359e828f101c960e9cd391f8e29d869377 | C# | jnguyen4103/CSE-3902-Project | /Legend of Zelda/BlankMonoGameProject/GameObjects/Link/LinkStateMachine.cs | 2.828125 | 3 | /* Contributors
* Stephen Hogg
*/
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sprint03
{
public class LinkStateMachine
{
public Link Link;
private Game1 Game;
public LinkSta... |
6882229be0fdbd73c9421a64787504fce6cbcdef | C# | chikhalikarpooja/MVCassignment | /Console_Programs/AssRoshansir_1/AssRoshansir_1/Program.cs | 2.625 | 3 | using System;
namespace AssRoshansir_1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter the number");
int n = Convert.ToInt32(Console.ReadLine());
n = n << 2;
Console.WriteLine("number is" + n);
... |
d48fbcd6be806d5a23033d494b1c15f4e4f5cc17 | C# | hiepvodoi11/LTDT | /TSP_Demo1/TSP_Demo1/FileText.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using GraphSharp;
using Microsoft.Glee;
using Microsoft.Glee.Drawing;
using Microsoft.Glee.GraphViewerGdi;
namespace TSP_Demo1
{
class FileText
{
// Khai bao biến sử dụn... |
b4166e0033e6d181bdd75e8d0d676587b6c15d45 | C# | AngelDimitrov52/Software-University | /3.C# Advanced/Exams/CsharpAdvancedRetakeExam-19August2020/P02.Bee/Program.cs | 3.5 | 4 | using System;
namespace P02.Bee
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
char[,] teritori = new char[n, n];
int beeRow = 0;
int beeCol = 0;
... |
19e7f16d8354224e27ff12e1b1b39e0c4e0a1083 | C# | jonashw/MonoGameTest | /MonoGameTest/Camera.cs | 2.703125 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameTest
{
public class Camera
{
private Viewport _viewport;
public Vector2 Position { get; set; }
public float Rotation { get; set; } = 0;
public float Zoom { get; set; } = 1;
private... |
3e4df5d356a582a71acf1d3ac6a50eb249bf9825 | C# | HannibalCJH/Leetcode-Practice | /451. Sort Characters By Frequency/C#: Heap Solution.cs | 3.484375 | 3 | class PairComparer : IComparer<KeyValuePair<char, int>>
{
// 关键部分,与Java的PriorityQueue不同,C#中SortedSet实现Set接口不支持有相同的结果,这边需要改进比较器
// 1.当两个字符出现的次数不一样时,直接比较Value就行
// 2.当两个字符出现的次数一样时,我们比较Key,因为Key即代表的字符肯定不同,所以我们能保证把所有的字符都存进了SortedSet
public int Compare(KeyValuePair<char, int> l1, KeyValuePair<char, int> l2)
... |
becda5d4d94aa8b181edb9dfca0d81c1ae1a2942 | C# | 4950/DirtyGame | /CleanGame/Game/SGraphics/Commands/BeginBatchDraw.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CleanGame.Game.SGraphics.Commands
{
class BeginBatchDraw : RenderCommand, IComparable<BeginBatchDraw>
{
private SpriteSortMode sortMode... |
d9e8404b0bf0bd55d35aed8874230d21379c612e | C# | BL323/Race-Trace | /src/Core/Application/EventServices/RaceService.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Core.Domain;
using Infrastructure.Contracts.Race;
namespace Core.Application.EventServices
{
/// <summary>
/// Provides an implementation of the race service.
/// </summary>
public sealed class RaceS... |
f96b0f3ba1b3d789416735f2ab8f4dc87d5673de | C# | mo-alam/ATheory | /src/ATheory.UnifiedAccess.Data/Providers/ProviderEnums.cs | 2.625 | 3 | /*
* Copyright (c) 2020, Mohammad Jahangir Alam
* Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
*/
namespace ATheory.UnifiedAccess.Data.Providers
{
/// <summary>
/// Enums related to provider and Linq
/// </summary>
public static class P... |
a2087bd16f85926322f53b60b2ff19abce161cd5 | C# | 921819535/YunMall | /source/YunMall/DF.Tmall.Common/Filter3.cs | 2.640625 | 3 | using DF.Log;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace DF.Tmall.Common
{
/// <summary>
/// 注册过滤器代理类
/// </summary>
public class Filter3 : DelegatingHandler
{
/// <summary>
/// 重写发送HTTP请求到内部处理程序的方法
/// </summary>
/// <par... |
51354abdae5655a16c160cb23b486dd3d0abaf54 | C# | V-Uzunov/Soft-Uni-Education | /08.C#OOPAdvanced/03.IteratorsAndComparators/03.Stack/Startup.cs | 3.46875 | 3 | namespace _03.Stack
{
using System;
using System.Linq;
using Models;
public class Startup
{
public static void Main()
{
string inputLine = String.Empty;
var result = new MyStack<string>();
while ((inputLine=Console.ReadLine()) != "END")
... |
4f91c6c094071b36a61c7d780e8a4a9f548985a5 | C# | mono/coreclr | /tests/src/CoreMangLib/cti/system/io/path/pathgetinvalidpathchars.cs | 2.765625 | 3 | using System.Security;
using System;
using System.IO;
using TestLibrary;
/// <summary>
/// System.IO.Path.GetInvalidPathChars()
/// </summary>
public class PathGetInvalidPathChars
{
private static char[] RealInvalidPathChars = !Utilities.IsWindows ? new char[] { '\0' } : new char[] { '\"', '<', '>', '|', '\0', (Ch... |
b6830f6f05d0734b51ea66fb82b501915431e088 | C# | SuperTux88/ScubyNet | /inp/InpCommand.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Reflection;
using ScubyNet.net;
namespace ScubyNet.inp
{
public abstract class InpCommand
{
public static Dictionary<string, InpCommand> mcCommands = new Dictionary<string, InpCommand>();
static InpCommand() {
Console.WriteLine("collecting comman... |
42a59e36c24326234f7f1250e2e6227179209a93 | C# | itinero/routing | /test/Itinero.Test.Functional/Assert.cs | 3.25 | 3 | using System;
namespace Itinero.Test.Functional
{
public static class Assert
{
/// <summary>
/// Tests if the given value is true.
/// </summary>
/// <param name="val"></param>
/// <param name="message"></param>
/// <exception cref="Exception"></excep... |
95124d638d60ab10c38d829e00ba18a8e660d548 | C# | imgr8/FishingMine | /Assets/Scripts/Interfaces/IUncatchable.cs | 2.5625 | 3 | using UnityEngine;
using System.Collections;
// Объекты, которые нельзя поймать, но либо с ними можно как-то взаимодействовать, либо они выполняют функцию декора
public interface IUncatchable {
GameObject GameObject {
get;
}
ISea Sea { // Каждый предмет в море должен быть осведомлен о море, в котором он находи... |
f107a09efff6de2244e26859ac286edae5681160 | C# | jinmin88/LeetCodes | /0026-Remove-Duplicates-From-Sorted-Array/Program.cs | 3.703125 | 4 | using System;
namespace _0026_Remove_Duplicates_From_Sorted_Array
{
class Program
{
static void Main(string[] args)
{
Solution2 sol = new Solution2();
int[] arr = new int[] { 0, 0, 1, 1, 1, 2, 2, 3, 3, 4 };
int k = sol.RemoveDuplicates(arr);
Cons... |
7ef1fff827117d0bb5e23b368d3a41af7db8b7f9 | C# | CaMoCBaJL/homeWorkEpam2021 | /Task 3.3/3.3.1/ConsoleApp1/ConsoleApp1/Extention Methods.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
static class ExtentionMethods
{
static public double ApplyFuncToArr(this int[] arr, Func<int[], double> func)
{
if (func != null)
return func.Invoke(arr);
return... |
e377ba174844f666c0384ac8b135b7ead41deba4 | C# | vytasilj/NPRG031 | /Lesson09/Palindrom/Palindrom.Tests/PalindromTests.cs | 3.125 | 3 | using System;
using NUnit.Framework;
namespace Palindrom.Tests
{
[TestFixture]
public class PalindromTests
{
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void GetMaxLength_NullInput_ThrowException()
{
new Palindrom().GetMaxLength(null);
... |
3c7d601c71cf36beba9d837b494ce7a50838e833 | C# | svsaikumar/BizRunTime | /c#/Arrays/Program.cs | 2.96875 | 3 | using System;
namespace Arrays
{
class Program
{
static void Main(string []args)
{
Console.WriteLine("enter 2 numbers");
int a = Convert.ToInt16(args[0]);
int b = Convert.ToInt16(args[1]);
int c = a + b;
Con... |
bd92c475a14ca5ad0e3815a66cdfcdd42ba9db9a | C# | Mikhail-Ananev/XT-2018Q4 | /Epam.Task02/Epam.Task02.Triangle/Program.cs | 3.71875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Triangle
{
public class Program
{
protected static void Main(string[] args)
{
Console.WriteLine("Input triangle side 'a':");
double sideA;
... |
8dde416d0ac60e5259e87ed36b1677e5e1fac772 | C# | AyeThinzarKyaw/ShoppingCartCA | /ShoppingCartCA/Classes/Product.cs | 2.78125 | 3 | using ShoppingCartCA.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace ShoppingCartCA.Classes
{
public class Product
{
public List<ProductModel> GetProductList(string keyword)
{
t... |
a18d50fed42f3bf790aeff57371e1dd11de71d73 | C# | sakuranobushi/DecompiledWoWLegionCompanion | /Newtonsoft.Json/Utilities/StringUtils.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
namespace Newtonsoft.Json.Utilities
{
internal static class StringUtils
{
public const string CarriageReturnLineFeed = "\r\n";
p... |
75e30aa665f16b63d0c80b2b3b515fc63d3b23d5 | C# | kameleon00/LINQ-group | /LINQ group/Program.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LINQ_group
{
class Program
{
static void Main(string[] args)
{
List<Student> stud = new List<Student>()
{
new Student("Mika", 19... |
a69766eccdb68d31aa81764a8760263caf252e84 | C# | joakimsigvald/lingua2 | /Translation/CompoundHandler.cs | 2.546875 | 3 | using Lingua.Core;
using Lingua.Core.Tokens;
using System.Collections.Generic;
using System.Linq;
namespace Lingua.Translation
{
public static class CompoundHandler
{
public static IEnumerable<ITranslation[]> CompleteCompounds(IEnumerable<ITranslation[]> translationCandidates, Token[] tokens)
... |
e6efc5793b2ed527be77f9aa7e87b1416e624755 | C# | bskyyun12/ThirdPersonCamera | /Assets/Scripts/State/PlayerTurn.cs | 2.515625 | 3 | using System.Collections;
using UnityEngine;
public class PlayerTurn : State
{
public PlayerTurn(BattleSystem battleSystem) : base(battleSystem)
{
}
public override IEnumerator Start()
{
Debug.Log("Choose an action");
yield break;
}
public override IEnumerator Attack()
{
bool isDead = false;
yield ... |
b218e980d1e2f5d7530995a3e01a325c5e6d3630 | C# | Telerik-Homework-ValentinRangelov/Homework | /C#/OOP/Homework OOP Principles - Part 1/Students and workers/Worker.cs | 3.375 | 3 | namespace Students_and_workers
{
public class Worker : Human
{
public int WeekSalary { get; set; }
public int WorkHoursPerDay { get; set; }
public int MoneyPerHour()
{
int moneyPerHour = (this.WeekSalary / 7) / this.WorkHoursPerDay;
return moneyP... |
0410167f2a7b571e27cac5760d376bfdbad2d5b5 | C# | caskater4/unity3gf | /scripts/GlobalVars.cs | 2.734375 | 3 | /**
* Copyright (c) 2011-2012, Jean-Philippe Steinmetz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice... |
155c0d3604de4b0d9c7a273decc5c82f423f06b9 | C# | mikevlaar/AVL-Tree-Assignment | /AVL Tree/AVL Tree/Program.cs | 3.328125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AVL_Tree
{
class Program
{
static void Main(string[] args)
{
Program program = new Program();
program.start();
... |
25c03502f940ec4c4b433018ceb13f3f264f88d6 | C# | V0idedChip/Papa-s-Parcade | /Assets/Scenes/Pipe Game/PipeScript.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PipeScript : MonoBehaviour
{
float[] rotations = { 0, 90, 180, 270 };
public int curRot = 0;
public float[] correctRotations;
public bool isPlaced = false;
GameManager gameManager;
priva... |
29a3a36f2c39df9e68bbcb835898646f7d44fbd9 | C# | mogikanin/Calculator-The-Game-Solver | /CalculatorTheGameSolverApp/CalculatorTheGameSolverApp/Views/Helpers/InvertBooleanConverter.cs | 2.609375 | 3 | using System;
using System.Globalization;
using Xamarin.Forms;
namespace CalculatorTheGameSolverApp.Views.Helpers
{
internal class InvertBooleanConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is b... |
c047d354cfe7ac108bab2808f04ea3e75156b008 | C# | mbattaini/StockLoan-Products | /RebateBillingClient/Backup1/Excel.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using C1.C1Excel;
using C1.Win.C1TrueDBGrid;
using StockLoan.Common;
namespace NorthStarClient
{
public class Excel ... |
ca64511a1c14f5c3843ba4a027777bb7134d5d99 | C# | nickgenov/ObjectOrientedProgramming | /02.Static-Members-and-Namespaces/Homework/BitArrayToDecimal/BitArrayMain.cs | 3.421875 | 3 | using System;
namespace BitArrayToDecimal
{
class BitArrayMain
{
static void Main()
{
var num = new BitArray(100000);
// 1111 1111 is 255
for (int i = 0; i < 8; i++)
{
num[i] = 1;
}
Console.WriteLine(num);... |
80cb229918521746aea4a4318d0359dbb4df5000 | C# | ybalcin/ArticleExercise | /ArticleExercise.Application/Services/AuthorAppService.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using ArticleExercise.Application.InputModels;
using ArticleExercise.Application.Interfaces;
using ArticleExercise.Application.ViewModels;
using ArticleExercise.Domain.Interfaces;
using ArticleExercise.Domain.Models;
using AutoMapper;
using AutoMapper.... |
736bb54280757ae55e1caa138587eff5ca8aff92 | C# | RonmelRoss/CSharp-Lab-ConsoleApp | /Lambda.cs | 4 | 4 | using System;
namespace Lambda
{
class Lambdas
{
public void Run() {
Console.WriteLine("Hello Lambda!");
#region LAMBDA EXPRESSION
Func<int, int> square = x => x * x;
Console.WriteLine(square(Convert.ToInt32("3")));
Console.WriteLine(square(... |
87f7e82919470afbf71cd407a2e9d0adc47fc743 | C# | LeandroEliseche/GauchoDevsBotellaAR2021 | /BotellaGauchoPrototipo001/Assets/Levels/Common/Scripts/Utils/AITools.cs | 2.890625 | 3 | using UnityEngine;
using UnityEngine.AI;
namespace AITools
{
public static class AITools
{
/// <summary>
/// Retrun a random navmesh point
/// </summary>
/// <param name="_radius"></param>
/// <returns></returns>
public static Vector3 RandomNavmeshLocation(float... |
786ca811b0c5d84d7fbb6f617906194cf064a4eb | C# | Siliconrob/MultiGeocoder | /src/Geocoder/GeocodeServices/MapQuest.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
using NLog;
namespace Geo.Coder.GeocodeServices
{
public class MapQuestGeoCoder : IGeocode
{
private readonly Logger _log;
public MapQuestGeoCoder()
{
_log = LogManager.GetLogger... |
ab9636e033a57cd68bb6625341f22eb1428143f3 | C# | simplicbe/Simplic.AdaptiveTesting | /src/Simplic.AdaptiveTesting/PlugIns/PlugInBaseAttribute.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Simplic.AdaptiveTesting.PlugIns
{
/// <summary>
/// Attribute type which must be implemented in all attributes which
/// will be used for extending the framework
/// </summary... |
12db71da5cefcc75746ef8fddd93913e960e2379 | C# | nimrodolev/Manatee.Trello | /Manatee.Trello/Internal/Validation/RequireCommentRule.cs | 2.546875 | 3 | namespace Manatee.Trello.Internal.Validation
{
internal class RequireCommentRule : IValidationRule<IAction>
{
public static RequireCommentRule Instance { get; }
static RequireCommentRule()
{
Instance = new RequireCommentRule();
}
private RequireCommentRule() { }
public string Validate(IAction oldVal... |
34aca26b8e984b46951463e42c5070af9d3b6e99 | C# | JuneSoftware/LocalStorage | /Assets/June/LocalStorage/ILocalStore.cs | 2.71875 | 3 | using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Logger = June.DebugLogger;
namespace June {
/// <summary>
/// Local storage Interface.
/// </summary>
public abstract partial class ILocalStore {
#region Properties
/// <summary>
/// T... |
31ee17c547e1be4c69cdb1e5d3417b51f9d02ad1 | C# | marinusmaurice/NiL.C | /NiL.C/CodeDom/Expressions/SizeOF.cs | 2.515625 | 3 | using System;
using System.Reflection.Emit;
using NiL.C.CodeDom.Declarations;
namespace NiL.C.CodeDom.Expressions
{
#if !PORTABLE
[Serializable]
#endif
internal sealed class SizeOf : Expression
{
public override CType ResultType
{
get
{
return first... |
b7e1e68b0f3d71c999f4baffb4b307fe9323bd47 | C# | youngeyes/JD.BookOA | /JD.BookOA.Common/SerializerHelper.cs | 2.671875 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JD.BookOA.Common
{
public class SerializerHelper
{
/// <summary>
/// 序列化
/// </summary>
/// <param name="obj"></param>
/// <returns></ret... |
60ac866f799d10bf3385e34e9c5eb8d59e61a64d | C# | akshay123/VersionMe | /Code/Versioning.Engine/ObjectConverter.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Versioning.Engine
{
public class ObjectConverter
{
/// <summary>
/// Convert from Any version to Any version
/// </summary>
/// <typeparam name="T... |
38e5bc508ddc9f4903535046ffa78eb5454d581e | C# | HenrikCheng/OOdemo | /OOdemo3/Rat.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace OOdemo3
{
class Rat : Animal
{
public Rat() : base (1)
{
}
public override void MakeSound()
{
psss();
}
private void psss()
{
Console.WriteLine... |
32b57bd0e9167688b0233d1ede8bcbffeddae5c7 | C# | nevena-angelova/CSharp-Projects | /Algorithms/Binary-Trees/Node.cs | 3.328125 | 3 | namespace BinaryTrees
{
public class Node<TKey, TValue>
{
private TKey key;
private TValue val;
private Node<TKey, TValue> left;
private Node<TKey, TValue> right;
private int count;
public Node(TKey key, TValue value)
{
th... |
bd37a7ccc9c268eea4de054efb3b01204fbd8b3d | C# | AdolfoNava/AlgorithmSkillDemonstration | /SimpleAlgorithms/Program.cs | 3.75 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleAlgorithms
{
class Program
{
//This is week one demonstration of various simple BigO functions in c# since this is very abstract in nature
//using example paints ... |
5cb6574f79fbd2b45fa0ea6dca4ebfa6dea7de55 | C# | GataullinRR/MVVMUtilities | /MVVMUtilities/Types/HoldersManager.cs | 2.75 | 3 | using System;
using System.Diagnostics;
using Utilities.Extensions;
using Utilities.Types;
namespace MVVMUtilities.Types
{
public class HoldersManager
{
int _activeHoldersCount = 0;
public event Action Unholded;
public bool IsHolding { get; private set; }
[DebuggerBrowsable(De... |
a807546462e055d5ce93a82a8ccd8e5b12537567 | C# | dark-c0de/DarkConvert | /EldoradoLib/EldoradoLib/Resources/ResourceCache.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using LZ4;
namespace EldoradoLib.Resources
{
// TODO: Come up with a common class for managing .dat files
/// <summary>
/// A .dat file containing resource data (e.g. resources.dat).
/// </summary>
public class ResourceCache
{
private const int... |
c1969a18e3c6b037752721b06d42074b900940a3 | C# | MiroslavPeychev/C-Sharp-Fundamentals | /Methods/LAB/02. Grades/Grades.cs | 4.0625 | 4 | namespace _02._Grades
{
using System;
public class Grades
{
public static void PrintInWord(double grade)
{
string gradeInWord = string.Empty;
if (grade >= 2 && grade <= 2.99)
gradeInWord = "Fail";
else if (grade >= 3 && grade <= 3.49)
... |
a13bae305d000045cdb123c57e593c989743d911 | C# | BrechtMorrhey/ProjectChallenge | /game/RoodObject.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace ProjectChallenge
{
// De code achter de rode bolletjes
// die je in de game kunt maken
//
// A... |
d18df10d6d37b4b831b9ee08ece117f1d9530363 | C# | MixailN/HoMM-game | /LabaOOP2/UnitsStack.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace LabaOOP2
{
public class UnitsStack
{
public Unit Character { get; }
public int Quantity { get; }
public List<Skill> PassiveSkills { get; } = new List<Skill>();
public List<Skill> ActiveSkills { get; } ... |
2970c23580a8ccfe8a7c07fcd2f4d32f0477e987 | C# | rampallydheeraj/RestaurantSearch | /Models/Crosswalk.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace yumi
{
public class Crosswalk
{
private string name;
private string key;
public Crosswalk()
{
name = "";
key = "";
}
public Crosswalk(string n,... |
d42d5e6d426ba74e903021b2c497d1134e18f411 | C# | timoheijne/Modular-Discord-Bot | /TestModule/Main.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using BobTheBot;
using BobTheBot.models;
using Discord;
using Discord.WebSocket;
namespace TestModule {
public class Main {
public Main() {
// Lets register a command;
Command newCmd = new Command();
newCmd.commandName = "... |
6b9622e06d4d690165acd4e952cb4ef72e581c3e | C# | AndersHansen93/CodingChallenge_Yanchware | /CodingChallenge/Form1.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CodingChallenge
{
public partial class Form1 : Form
{
... |
3f521ae5f6c95af7f9b4b246e6faaa597d898f61 | C# | etiennewayne/AttendanceSystem | /AttendanceSystem/GradeMainform.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace AttendanceSystem
{
public partial class GradeMainform : Form
{
ClassGrade cGr... |
f5a25bcc3cc892a50f71248d1841d310b7f13273 | C# | michalonyx/Robot | /TDD/MoveDirectionTest.cs | 3.234375 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TDD
{
[TestClass]
public class MoveDirectionTest
{
[TestMethod]
public void MovingTest()
{
int[] dim = { 5, 5 }, pos = { 3, 3 };
string move = "F", dir = "N";
string[] ex... |
d5f2db85f3df2f91585f37a6fb62ee57edfeb118 | C# | NPBruce/valkyrie | /unity/Assets/Scripts/UI/UIScaler.cs | 2.953125 | 3 | using UnityEngine;
using System.Collections;
// I couldn't work out unity scaling so I wrote my own.
// The screen is alway 30 'units' high. At 4:3 it is 40 across, at 16:9 it is 53.33.
// I have not designed for 5:4 (37.5 units)
// 1 unit is enough for 'small' text with a border. 1.5 is medium text, 3 is big text
... |
09b109250552c61b55dd33f2dc6802bd60c6c75d | C# | BAKAONICHAN/Test-repository | /ConsoleApp3/Program.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace rara
{
class Program
{
static void Main(string[] args)
{ int nul= 0;
int[] numbers = new int[]{ 1, 2, 3, 4, 5 };
int cosinu... |
cddbc4d9079dd0c7b4b14e08db5e8e043b6853fa | C# | brunomlopes/ILoveLucene | /src/Core/Extensions/TaskExtensions.cs | 2.96875 | 3 | using System;
using System.Threading.Tasks;
namespace Core.Extensions
{
public static class TaskExtensions
{
public static Task GuardForException(this Task task, Action<Exception> callback)
{
return task.ContinueWith(t =>
{
... |
2f5288c377cb84983d6c696daa0a3905465db432 | C# | dvrzan/skymaster | /Assets/Scripts/DamagableEntities/Enemy.cs | 2.53125 | 3 | using System.Collections.Generic;
using UnityEngine;
using AssemblyCSharp.Assets.Scripts.Interfaces;
namespace AssemblyCSharp.Assets.Scripts.DamagableEntities
{
public class Enemy: MonoBehaviour, IDamageable, IShowable, IGameManageable
{
[SerializeField]
private float speed = 4.0f;
... |
80873f8f2dbfa5bb08ecae49cc58e3385e2b1dd3 | C# | JH013/CodeDemo | /Framework.SuperSokcetLib/SessionManager.cs | 2.71875 | 3 | using SuperSocket.SocketBase;
using System;
using System.Collections.Generic;
namespace Framework.SuperSokcetLib
{
public class SessionManager
{
static SessionManager()
{
manager = new SessionManager();
sessionDic = new Dictionary<string, AppSession>();
}
... |
d021f1802dbddba785cc551010d4ab209ea0dc9b | C# | rob-blackbourn/JetBlack.Authorisation.Sasl | /JetBlack.Authorisation/Sasl/Mechanism/Plain/PlainSaslClientMechanism.cs | 2.515625 | 3 | using System;
using System.Text;
namespace JetBlack.Authorisation.Sasl.Mechanism.Plain
{
public class PlainSaslClientMechanism : PlainSaslMechanism, ISaslClientMechanism
{
private readonly string _password;
private int _state;
public PlainSaslClientMechanism(string authorizationId, s... |
064b9676c39a65ea07ca68122214a353f6130d26 | C# | fangld/EDGolog | /ObjectWorlds/Planning/Problem.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LanguageRecognition;
using PAT.Common.Classes.CUDDLib;
namespace ObjectWorlds.Planning
{
public class Problem
{
#region Fields
private Dictionary<string, str... |
b07bbafb9ddf548ada759ede3aebbb9d81efdfb5 | C# | Xonirs/RCS-19.10.2020---Accenture-C--fundamentals | /Day22/Day22_Park/Park.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Day22_Park
{
//properties – Name, Address, MainGardener
class Park
{
public string Name { get; set; }
public string Address { get; set; }
public Gardener MainGardener { get; set; }
public Park(str... |
33bdd1b55a3b4a9c502a85f2fcf0624d3604e67a | C# | Label1-Cool/OptimalEducation | /OptimalEducation.Logic/Characterizer/DistanceCharacterisiticRecomendator.cs | 3.234375 | 3 | using OptimalEducation.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OptimalEducation.Logic.Characterizer
{
public static class DistanceCharacterisiticRecomendator
{
/// <summary>
/// Вычисляет рекомендации по учебным на... |
ab1ffd46422d827c24f002eb4db9b8d8fdcef461 | C# | jjvega86/Battleship_Project | /BattleshipProject/Game.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BattleshipProject
{
class Game
{
public Player Player1;
public Player Player2;
public Game()// method will initialize values here for game replay logic
... |
d85d6f4d60b469c1f631b3c349ab68147f9b3c89 | C# | Flazhed/TeamPerContract | /TeamPerFerryContract/Interface/ContractV2.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TeamPerFerryContract.Interface
{
interface ContractV2
{
/// <summary>
/// Fetches a list of all departures on a given route, in a given time interval.
/// </su... |
536d43bc20d3c5196f5c29f11d9c2fac3396db01 | C# | gerich-home/JaIoC | /JaIoC.UnitTests/Utils/AssertUtils.cs | 2.515625 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace JaIoc.UnitTests.Utils
{
public static class AssertUtils
{
public static void ShouldThrow<T>(Action action, string message = null)
where T : Exception
{
try
{
action()... |
8f345f171decca550b4997823ab3d1d5aa61634a | C# | svetlana-nesterenko/work | /Task1/NewYearsGift/NewYearsGift/Classes/Item.cs | 3.59375 | 4 | namespace NewYearsGift.Classes
{
#region Usings
using System;
using System.Text;
using NewYearsGift.Interfaces;
#endregion
/// <summary>
/// Class used for representing candies, fruits, box and etc.
/// There is an delegate which will be called when weight of element changes.
///... |
25804ba3ef2f9faac20782dc79e81fce4751c623 | C# | DnC275/OOP | /Reports/Reports/ViewModels/ViewEmployeeModel.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Reports
{
public class ViewEmployeeModel
{
private int id;
private string name;
private int directorId;
private List<int> subordinatesId;
public int... |
92d42274695c3b8c718d7fab31ec885fde079b59 | C# | rafaelcruz-net/TodoWebForm | /TodoWebForm/TodoWebForm/Default.aspx.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace TodoWebForm
{
public partial class _Default : Page
{
public static List<Todo> TodoDb = new L... |
d5e55aa6a532c11bbdf271872861b326056a1cfe | C# | urazovm/LeadManagement | /LeadManagement.Service/Services/EmailService.cs | 2.75 | 3 | using System;
using System.Configuration;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using LeadManagement.Service.Contracts;
namespace LeadManagement.Service.Services
{
public class EmailService : IEmailService
{
public async Task SendEmailAsync(string to, string subject, s... |
f8e47f90fb907b5c5d7935ccd279058cf5f2b211 | C# | Claim2017SpringDotNet/Events | /ConsoleApplication1/MailSender.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class MailSender
{
private IEnumerable<string> _badNames;
public MailSender(LoginPrompt prompt, IEnumerable<string> badNames)
{
... |
35ebd4ff80c2b0241cd2613ef4e85d881daab94f | C# | Portismouth/cSharpAssignments | /languageEssentials/human/Program.cs | 3.0625 | 3 | using System;
namespace human
{
class Program
{
static void Main(string[] args)
{
Human Ozzy = new Human("Ozzy");
Console.WriteLine(Ozzy.strength);
Human Mendel = new Human("Mendel");
Human Jenny = new Human("Jenny");
Console.WriteLin... |
dd64b482f0cf51ffc50c3af76f536560c551de6d | C# | Velandrie/AutomaticMail-V1 | /AutomaticMail/Form1.cs | 2.640625 | 3 |
/*Created by Cemal Acar - NextHorizons*/
/* Automatic Mail Version 1.0 Beta */
using System;
using System.Windows.Forms;
using System.Net.Mail;
using System.Net;
using Excel = Microsoft.Office.Interop.Excel;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
using System.Collections.Ge... |
4cfde87e5820af41fcc5e0d86ed29deb795932f6 | C# | wangGuangXu/DesignPattem | /DesignPattem/建造者04/Program.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 建造者04
{
class Program
{
static void Main(string[] args)
{
Director director = new Director();
//指挥者用ConcreteBuilder1的方法来建造产品
Builder builder1 = new ConcreteBuild... |
03f7287cd9fd28bda9c74427f361b92233aa6616 | C# | jsistema/Webapi | /src/Api.Service.Test/Usuario/QuandoForExecutadoDelete.cs | 2.578125 | 3 | using System;
using System.Threading.Tasks;
using Api.Domain.Interfaces.Services.User;
using Moq;
using Xunit;
namespace Api.Service.Test.Usuario
{
public class QuandoForExecutadoDelete : UsuarioTestes
{
private IUserService _service;
private Mock<IUserService> _serviceMock;
[Fac... |
40012d5d7b748a10bad0cc6ad7ed3ddff8f1afc1 | C# | HuaYang1995/MovieShopMVC | /Infrastructure/Services/MovieService.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ApplicationCore.Entities;
using ApplicationCore.Models;
using ApplicationCore.RepositoryInterfaces;
using ApplicationCore.ServiceInterfaces;
namespace Infrastructure.Services
{
public class MovieService : IMovieService
{
... |
69e6eb64391b0c0a454906525d9301fb8b7e7e64 | C# | FreekPaans/PagePerformanceInsights | /PagePerformanceInsights/Handler/DataStructures/SortedIntArray.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PagePerformanceInsights.Handler.DataStructures {
//class SortedIntArray {
// readonly SortedList<int,int> _sortedList;
// public SortedIntArray(): this(new int[0]) {
// }
// public SortedIntArray(ICollect... |
2f596413466b09efece52247447ce2a22a96ece6 | C# | skotiken/cSharp-101 | /1.1/1.1/Program.cs | 2.734375 | 3 | using System;
namespace Application
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Enter your name");
String name = Console.ReadLine();
Console.WriteLine("Welcome " + name);
Console.ReadLine();
... |
988305ea306530c803bd25b13e0e0523c1df5ef7 | C# | DanielEverland/project-tuba-public | /Assets/Scripts/Physics/Interactable.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Allows AI to see things within the environment
/// </summary>
public class Interactable : MonoBehaviour
{
[SerializeField]
private Entity entity = default;
[SerializeField]
private bool inherit... |
f4ca06d84111c96d376f295346580c15625be84c | C# | douglaskasper/graduation-path-finder | /GPF.Domain/Models/ClassDelivery.cs | 3.234375 | 3 | namespace GPF.Domain.Models
{
public class ClassDelivery : ValueDescription
{
private ClassDelivery(string value, string description)
{
_value = value;
_description = description;
}
public static readonly ClassDelivery InClass = new ClassDelivery("C", "I... |
4ee6bec98dd93f8ee484450cefa4ec24ea136598 | C# | AdamCrabtree/JazInterpreter | /JazInterpreter/TokenInterpreter.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
namespace TokenInterpreter
{
class TokenInterpreter
{
Stack<int> localStack = new Stack<int>();
Stack<Dictionary<string, int>> variableStackFrame = new Stack<Dictionary<string, int>>();
Stack<int> returnAddressStack = new Stack<int>();
... |
4acc8f6980cb7f5d47966b07e8fbbd742b18f015 | C# | daniel-souto-rodrigues/building-material-store | /BMS.Shared/Entities/Notificavel.cs | 2.625 | 3 | using System.Collections.Generic;
using System.Linq;
namespace BMS.Shared.Entities
{
public abstract class Notificavel
{
private readonly List<Notificacao> _notificacoes;
public IReadOnlyCollection<Notificacao> Notificacoes => _notificacoes;
protected Notificavel()
{
... |
89b0221a0020b2779238abd0f855dc0fc4200cad | C# | IgorAntropov/GeometricFigures | /UnitTests/CircleTest.cs | 3.171875 | 3 | using Model;
using NUnit.Framework;
namespace UnitTests
{
[TestFixture]
class CircleTest
{
[Test]
[TestCase(9.58, TestName = "Тестирование Circle при радиусе 9.58")]
[TestCase(12, TestName = "Тестирование Circle при радиусе 12")]
[TestCase(2.2578, TestName = "Тестирование ... |
5fccad2722b6b7e754cda285152472d7659990f6 | C# | EkaterinaKusok/EPAM.RD.2016S.Kusok.UserStorage | /Configurator/CustomConfigSection/ServicesCollection.cs | 3.046875 | 3 | using System.Configuration;
namespace Configurator.CustomConfigSection
{
/// <summary>
/// Represents a configuration element containing a collection of service elements.
/// </summary>
[ConfigurationCollection(typeof(ServiceElement), AddItemName = "Service")]
public class ServicesCollection : Con... |
05e374dca5c00f31bd8e2e6ec38c5ee5a07b6791 | C# | korolitskyi/BookLending | /BookLendingCL/Classes/LineIndent.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BookLending.Classes
{
public abstract class LineIndent {
private static LineIndent current;
public static LineIndent Current {
get { return LineIndent.current; }
set {
... |
37fa11ee1c39246378d93ac95e510b72b9185bd7 | C# | gqta/PRN-Final-Project | /PRN Final Project/DAO/TermDAO.cs | 2.6875 | 3 | using PRN_Final_Project.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PRN_Final_Project.DAO
{
interface TermDAO
{
/// <summary>
/// Get term by id of a quiz
/// </summary>
/// <param name="i... |
38a8e7f13f7721173acd85708192cc0eb9162108 | C# | zjaoun01/GDC_XML-Technical_Assignment_submission | /XML_Email_Validator.cs | 3.6875 | 4 | using System;
using System.IO;
using System.Collections;
using System.Xml;
using System.Net.Mail;
using System.Text.RegularExpressions;
// Author: Zackery Jaouni
// Last updated: 6/28/2021
// Description: Attempts to parse an XML file for email address and
// seperates the valid and invalid email addresses into seper... |
da17653ed5d9d03d583eaebc9d2b1915c15e0b41 | C# | omnibs/tfsworkbench-fork | /solutions/ProjectSetupUI/DataObjects/DurationStructureBase.cs | 2.578125 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DurationStructureBase.cs" company="None">
// None
// </copyright>
// <summary>
// Defines the DurationStructureBase type.
// </summary>
// -------------------------------------... |
4e59e291fe4fa6b3d2607daf0e6726516d685806 | C# | Nik-Sun/SoftUni-Fundamentals | /Methods/09.GreaterOfTwoValues/Program.cs | 4.21875 | 4 | using System;
namespace _09.GreaterOfTwoValues
{
class Program
{
static void Main(string[] args)
{
string valueType = Console.ReadLine();
string result = string.Empty;
if (valueType=="int")
{
int a = int.Parse(Console.ReadLine());... |
05667e21861f5f9ff8a2470bbc4d79b919aabaf2 | C# | NemtsovNv/Interview_Task | /InterviewTask.Tests.Unit/Domain/Models/PackagedProductTests.cs | 2.796875 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using InterviewTask.Domain.Core.Models;
namespace InterviewTask.Tests.Unit.Domain.Models
{
[TestClass]
public class PackagedProductTests
{
[TestMethod]
public void Name_Returns_Packaged_Name()
{
// Assert... |
e65f05e8f53dadd254fbe3b59342a232f462013a | C# | pkirilin/strive | /strive-server/src/Strive/Strive.Data/Dtos/Account/RegisterRequestDto.cs | 2.609375 | 3 | using System.ComponentModel.DataAnnotations;
namespace Strive.Data.Dtos.Account
{
/// <summary>
/// Contains application user register request transfer data
/// </summary>
public class RegisterRequestDto
{
[Required]
[MinLength(4)]
[MaxLength(255)]
[RegularExpressio... |
5e64b18bdeeed5ad22c7d0de8ea478343ed3b35f | C# | De-la-Rey/License-Studio | /Mernok RFID Licence Studio/Mernok RFID Licence Studio/MernokRFID/CardDetailManager.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Mernok_RFID_Licence_Studio
{
public static class CardDetailManager
{
public static string CreateCardDetailFile(CardDetailsFile ... |
9e2a4c1e9f3bdf819f6218aa7df5621dcc305564 | C# | andi2/ld31-7 | /Assets/Scripts/Slicer.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections;
public class Slicer : MonoBehaviour {
private GameObject wheel;
private GameObject holder;
private bool enabled;
private int currentStep = 0;
private Vector3 originalPosition;
private Vector3 wheelOrigPosition;
// Use this for initialization
void Start () {
whe... |
a2cda79addc818a45dec8d771e7658592aed3160 | C# | geosrc/scaffold | /Scaffold/Logging/Severity.cs | 2.703125 | 3 | using System;
namespace Scaffold.Logging
{
/// <summary>
/// Severity levels of <see cref="Scaffold.Logging.Event"/>.
/// </summary>
public enum Severity
{
/// <summary>
/// Special severity level of events important to debug the application.
/// </summary>
Debug,
Verbose,
Info,
Wa... |
f8a7204904b05c1778f21969dda4c6b031d9cdba | C# | eloymore/Proyecto1G06 | /Assets/Scripts/Health/EnemyHealth.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyHealth : MonoBehaviour {
public float maxHealth = 10;
public float damagedTime = 0.1f;
protected float curHealth;
public float CurHealth { get { return curHealth; } }
protected Animator anim;
pub... |