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
236d556388a4d480effe15052241e4ba8765ed4b
C#
mosirnik/KK_MainGameVR
/KoikatuVR/SettingsManager.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BepInEx.Configuration; using System.ComponentModel; using VRGIN.Core; namespace KoikatuVR { /// <summary> /// Manages configuration and keeps it up to date. /// /// BepInEx wants us to store the config in a bu...
ff193cfc0d33a364ad0870b8d765ebd9d5ebfab1
C#
tqdv/OneWorldSDKforUnity
/src/OneWorldSDK_UnityDemo/Assets/UnityDemo/Scripts/ScreenshotManager.cs
2.515625
3
//Copyright SimBlocks LLC 2021 //https://www.simblocks.io/ //The source code in this file is licensed under the MIT License. See the LICENSE text file for full terms. using System; using System.IO; using System.Linq; using System.Text.RegularExpressions; using UnityEngine; namespace sbio.OneWorldSDKViewer { public ...
2812cc51c3f4accddb7fc20a2e6fe4a28c9b31fc
C#
rarehunter/kEMStree
/Assets/Scripts/ChemistryController.cs
2.546875
3
using UnityEngine; using UnityEngine.UI; using System; using System.Collections; public class ChemistryController : MonoBehaviour { private Text congratsText; private Text hintText; private Text subscriptText; private Text goalText; private GameObject returnButton; private string[] molecules_text; private str...
5405eaa6e94ef09d6e0ac08344685c7a41f6083a
C#
aspnet/BuildTools
/src/Internal.AspNetCore.BuildTasks/FileHelpers.cs
2.546875
3
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; namespace Microsoft.AspNetCore.BuildTools.Utilities { internal class FileHelpers { public static string ...
27068dfc24f87f9d4ae9e9ddf8bc988c7ffe27b7
C#
transformersprimeabcxyz/sql.native
/Sql.Native/DbCommandExtensions.cs
3.296875
3
using System; using System.Data; namespace Sql.Native { /// <summary> /// Extension for <see cref="IDbCommand"/> /// </summary> public static class DbCommandExtensions { /// <summary> /// Adds the parameter. /// </summary> /// <typeparam name="T">The type of the para...
dcd7930b26b8d1628d834b2db87d9094256e316f
C#
deyan-yosifov/xaml-to-unity
/XAML-CAGD-Demo/CAGD/Controls/Common/NamedObjectsCollection.cs
3.1875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace CAGD.Controls.Common { public class NamedObjectsCollection<T> : IEnumerable, IEnumerable<T> where T : INamedObject { private readonly List<T> elements; public NamedObjectsCollection(...
a13301befac21ff17135f322e3edd74354a04af0
C#
dmalcaba/Utilitatem
/src/CleanCode/Program.cs
3.109375
3
using System; using System.Collections; using System.IO; using System.Text; namespace CleanCode { class Program { static void Main(string[] args) { var path = Directory.GetCurrentDirectory(); ProcessDirectory(path); } // Process all files in the direct...
5c7658a6573f390da2eb65f3810651ef925efad4
C#
kayyer/sigstat
/src/SigStat.FusionBenchmark/FusionMathHelper/StandardNormalDistribution.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; namespace SigStat.FusionBenchmark.FusionMathHelper { class StandardNormalDistribution { private static double[] a = new double[] { 1.0, ...
9e86106902f60be17e3f2d81f0114bb0d7bfba40
C#
MalisPierre/DynamicDLL
/StaticModule/StaticModule/AssetManager/AssetManager.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using StaticModule.ElementNamespace; using StaticModule.BundleNamespace; namespace StaticModule.AssetManagerNamespace { public class AssetManager : MonoBehaviour { public static AssetManager Instance { get; private set; ...
aed083367e2904b24845cd0b3fe705415074fa52
C#
Will9371/DesignPatterns
/StrategyPattern/Assets/6 Strategy/Behaviors/SpeakBehavior.cs
2.609375
3
using UnityEngine; public interface ISpeak_1 { void Speak(); } public class Bark : ISpeak_1 { public void Speak() { Debug.Log("Arf!"); } } public class Meow : ISpeak_1 { public void Speak() { Debug.Log("Meow!"); } } public class Whistle : ISpeak_1 { public void Speak() ...
01db62a0f8211bbbbaef558737a03b2294376d0f
C#
drewdz/FieldDataTest
/FieldDataTest/Commands/BasicCommand.cs
2.8125
3
using DataFactory.Model; using System; using System.Windows.Input; namespace FieldDataTest.Commands { public class BasicCommand : NotifyBase, ICommand { #region Constants protected const int COOLOFF_TIME = 700; #endregion Constants #region Events public event EventH...
920de5d969269e18d4aa4a1fcf5dfeb28aa45d48
C#
microsoft/PowerApps-Samples
/dataverse/webapi/C#-NETx/WebAPIService/Messages/RetrieveCurrentOrganizationRequest.cs
2.890625
3
using PowerApps.Samples.Types; namespace PowerApps.Samples.Messages { /// <summary> /// Contains the data to Retrieve information about the current organization. /// </summary> public sealed class RetrieveCurrentOrganizationRequest : HttpRequestMessage { /// <summary> /// Initiali...
853c28e07de3200b25c6897919080ef6a5e5e57c
C#
coledixon/Tech_Academy_coding_drills_2015
/CS-ASP.NET_drills/LearnVisualStudio.net tutorials/HelperMethods.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace LearnVSproject { public partial class HelperMethods : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } ...
aa4ffcb7f76493a3a66a01d5b3f597a77fbbd584
C#
Visitoff/Ghost
/Assets/Scripts/RayCast.cs
2.578125
3
using UnityEngine; public class RayCast : MonoBehaviour { public float damage = 10f; public float range = 100f; public float fireRate = 15f; public float nextTimeToFire = 0f; public Transform barrelLocation; void Start() { } void Update() { } ...
b553aa9785a4df3de41ff41baf70676604f56453
C#
artempapik/YaStore
/EntityTest/Program.cs
2.890625
3
using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System; using EntityTest.Models; namespace EntityTest { class Program { static void Main() { //Fill(); //using (var db = new ApplicationContext()) //{ // var categoryProducts = db.Categories // .Inclu...
3065216511bd08e6dbec6264f8d543440efeccdc
C#
AlexanderPetrovv/Tech-Module-SoftUni
/Programming Fundamentals - May 2017/LambdaAndLINQ/ArrayData/ArrayData.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArrayData { class ArrayData { static void Main(string[] args) { List<int> numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); st...
570ee1074fa18f6a59fee515a8ccd58017e8cf91
C#
hltdo/exercises
/02_MultidimensionalArrays/02. Maximal sum/02. Maximal sum.cs
3.796875
4
using System; /*Problem 2. Maximal sum * Write a program that reads a rectangular matrix of size N x M and finds in it the square * 3 x 3 that has maximal sum of its elements.*/ class MaximalSum { static void Main() { //Console.WriteLine("Enter the rows (N) of the matrix: "); //int...
81fbb8be683dfd03800079db4ebc84b8a766db69
C#
arbady/AppLocationVehiculeAPI
/ModelGlobal/Services/CategoryGlobalService.cs
2.6875
3
using ModelGlobal.Data; using ModelGlobal.Mapper; using ModelGlobal.Services.Bases; using Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tools; namespace ModelGlobal.Services { public class CategoryGlobalService : BaseService...
aeaaffb62a195140b59299c920b3c21dfea23907
C#
kjellski/WcfServiceTypeTesting
/ServiceHostingApplication/Program.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.ServiceModel.Description; using System.Threading.Tasks; using Common.Logging; namespace ServiceHostingApplication { internal class Program { private static readonly ILog Log = LogManager.GetCurre...
a169d579c5aceecb512c88e6876826b1bbf4ee96
C#
caicaicai/ExcelSheep
/View/AddDataFilter.cs
2.546875
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 ExcelSheep.Controller; namespace ExcelSheep { public partial class AddDataFilter : Form { ...
721897422b143debac3e739b9399e4021da117d5
C#
djglxxii/AdventOfCode2020
/AdventOfCode2020/Day2/PasswordV2.cs
2.953125
3
namespace Day2 { public class PasswordV2 : Password { public PasswordV2(string passwordStr) : base(passwordStr) { } public override bool IsValid() { int pos1 = _val1 - 1; int pos2 = _val2 - 1; return (_password[pos1] == _required && ...
9a31ab3f98dcaea8bfee91ebd30841932b300095
C#
Schreini/CsvDiff
/CsvDiff.Tests/TestDiffOptionsAllowRowReordering.cs
2.96875
3
using System; using Xunit; namespace CsvDiff.Tests { public class TestDiffOptionsAllowRowReordering { public static string CrLf = Environment.NewLine; [Fact] public void DiffOneColumnThreeRowsShouldReorderRowsToMatch() { //Arrange var left = $"Col1{CrLf...
ac5a8fa49a616ff1776410c679d1d98d6b476eba
C#
arabella/CSharp-Jan2013
/Hmwrk3_Methods/Hmwrk3_12/Hmwrk3_12.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Extend the program to support also subtraction and multiplication of polynomials.(see Hmwrk3_11) class Hmwrk3_12 { static int lenght = 0; static int[] polyCoeff = new int[lenght]; static i...
8ef247c19981fbfe4612d07196d71411f30f6777
C#
TMNFr33d0m/AWISite-MVC
/Attanaya_Warrior_Institute/Models/LoggingModel.cs
3
3
using System; using System.ComponentModel; using System.Data.SqlClient; using System.Diagnostics; namespace Attanaya_Warrior_Institute.Models { public class LoggingModel { public LoggingModel(DateTime timeStamp) { TimeStamp = timeStamp; } private LoggingModel() ...
ecba78a5ef170d1e1e3d4ac12a01f812b3f15b74
C#
Anjimoo/IMAP_Impl
/IMAP_Client/Services/TaggingService.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IMAP_Client.Services { public static class TaggingService { private static int tagNumber = 0; //Initial tag number. private static string _Tag = "A0000"; //Initial tag...
587adf6964389051074165205738802c15a7b34a
C#
AndreyLinetsky/CodeValueCourse
/Ex_18.1/Primes/Program.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace Primes { class Program { static void Main(string[] args) { { int firstNum, secondNum, thirdNum; Co...
48873d60847496312f6db1b4a3861195504e5a14
C#
nmakleff/hackeru-dotnet-180319
/C# Advanced - Lesson 6 - Interface/HomeworkSolution/ConsoleApp2/Vehicle.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp2 { class Vehicle { public int LicenseNumber { get; set; } public int MaxSpeed { get; set; } public int Value { get; set; } public Vehicle(int licenseNumber, int maxSpeed, int value) ...
c02f4375f4cd636338d318065ef3e2107d3d9a76
C#
andrewboudreau/Leaderboard
/Leaderboard.Web/DelegatingHandlers/XHttpMethodOverrideDelegatingHandler.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web; // Resources // http://www.asp.net/web-api/overview/working-with-http/http-message-handlers // http://www.hanselman.com/blog/HTTPPUTOrDELETENotAllowedUseXHT...
0268270f17d1dd746bff62b21e6f0e58626d0fe5
C#
eve-moo/EVEOLPD
/MarshalUtil/eveMarshal/Extended/PyCallStream.cs
2.546875
3
using System; using System.IO; using System.Text; namespace eveMarshal.Extended { class PyCallStream : ExtendedObject { long zeroOne = 0; Int64 remoteObject = 0; string remoteObjectStr = ""; string method = ""; PyTuple arg_tuple = null; PyDict arg_d...
a7bcf72c2e5343f81947243bfac477d6f4e281c1
C#
git-gud-2019/pgj-2019
/Assets/Scripts/TrapCounter.cs
2.515625
3
using UnityEngine; using UnityEngine.UI; public class TrapCounter : MonoBehaviour { public Image TrapPrefab; public GameObject SpawnPoint; private int Traps = 1; // Use this for initialization void Start() { InstantiateLives(); } private void InstantiateLives() { ...
f17e5a433e65995717a139a6714c1cd06c736661
C#
MaxBay2020/JellyBoom
/Assets/Scripts/LeftAndRight.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; public class LeftAndRight : MonoBehaviour { [SerializeField] private float x; private float myTime =0; [Range(0.1f,6)][SerializeField] private float stopTime; [SerializeField] private float animTime; ...
f85eb045c6610a34adc766e1d6009c905840007b
C#
knoteva/Softuni
/Courses/Technology Fundamentals with C#/16. Lists-Exercises/15. Lists-Exercises/06. Cards Game/Program.cs
2.921875
3
static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = Integer.parseInt(scanner.nextLine()); int b = Integer.parseInt(scanner.nextLine()); int area = a * b; System.out.println(area); }
a0d368ce89d236c5df09b8b8d84d9c13d2c9d7ce
C#
njoromwando/learning
/DataSrtractures/Program.cs
4.09375
4
using System; using System.Threading; namespace DataStractures { public class Node { public int element; public Node next; public Node(int e, Node n) { element = e; next = n; } } internal class LinkedList { // member variabl...
e97c788ca3c6b4d5c25d8bdb780cb84204e879d3
C#
thomasxu/Npv
/NpvApi/src/NpvApi.Dtos/Validators/GreaterEqualToFieldAttribute.cs
2.9375
3
using System; using System.ComponentModel.DataAnnotations; using System.Reflection; namespace NpvApi.Dtos.Validators { public class GreaterThanFieldAttribute:ValidationAttribute { private string FieldToCompare { get; set; } public GreaterThanFieldAttribute(string fieldTo...
c9af67379bc358ed33c8e4ecd89874d0b2184a32
C#
isencher/csPattern
/Patterns/Delegating/InvokeList.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MarvellousWorks.PracticalPattern.Concept.Delegating { public delegate void StringAssignmentEventHandler(); // 抽象的操作方法 public class InvokeList { private IList<StringAssignm...
ce9dda163f71e40569e0081f58581290a83ee1c3
C#
andrewralon/TRLibrary
/Shell.cs
2.890625
3
using System; using System.IO; namespace TRLibrary { public class Shell { public static string FollowShortcut(string file) { if (Admin.IsValidUrl(file)) // Handle dragging in URL shortcut file from browser "lock" icon { return file; } // Follow the shortcut if it is one! if (IsValidShortcut(...
9e7c2e96cacd7e25837bf105a7b44902415dda89
C#
Laxman243/JSON_Serialization_Deserialization
/College.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace ConsoleApp1 { class JsonCollegeSerialize { public static void Main(string[] args) { var client = new WebClient(); ...
bba9ecea9955d7017a503941918df774f9b14a38
C#
iCocoBanana/Phial.Fantasy
/src/ServerUtils/AwaitUtils.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServerUtils { public class DisposableTuple<T1, T2> : IDisposable where T1 : IDisposable where T2 : IDisposable { public T1 Item1; public T2 Item...
aaf0958e5bbe5949512f2ff1c00c0208b2f93663
C#
antonsamarsky/expression
/ExpressionMapper.Tests/StringConvertionTests.cs
2.53125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ExpressionMapper.Tests { [TestClass] public class StringConvertionTests { [TestMethod] public void ConvertPrimitiveToString() { var m = Mapper.Create<int, string>(); Assert.AreEqual("1", m(1)); } [TestMethod] public void ConvertString...
ee1b2b4deff8b1d32e96bb0a34b4582ba3d1b86f
C#
warddav16/ProDev
/ProDev/Assets/VIDE/Examples/Example1/exampleUI.cs
2.546875
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine.UI; public class exampleUI : MonoBehaviour { //This script will handle everything related to dialogue interface //It will use a VIDE_Data component to load dialogues and retri...
7f7ee0d91c9b1007d491ab9d08fd7265294c0471
C#
shayanc/Inputshare
/InputshareLib/ClipboardMonitor/WindowsClipboardManager.cs
2.671875
3
using System; using System.Runtime.InteropServices; namespace InputshareLib.ClipboardMonitor { class WindowsClipboardManager : IClipboardManager { public bool Monitoring { get; private set; } public event EventHandler<string> TextCopied; private WinWindow cbMonitorWindow; pu...
2c259e8d20d68215f97f514e9cc6a8ca15689915
C#
yaoyel/Finework
/dotnet/main/FineWork.Core/Security/IAccount.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using AppBoot.Repos; using JetBrains.Annotations; namespace FineWork.Security { public interface IAccount { Guid Id { get; } /// <summary> 用户名 </summary> /// <rema...
3451ee8daaba1c2fa6fa12ddfceead13394be239
C#
Hirsinkai/MSMQDemo
/MSMQDemo/Program.cs
2.515625
3
using System; using System.Windows.Forms; namespace MSMQDemo { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDef...
585f4fc943c045d977d6159c955f57f437fd9a46
C#
IrfanMonir/University-Course-Result-Management-System
/CourseResultMVCWebApp/Gateway/StudentResultGateway.cs
2.890625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using CourseResultMVCWebApp.Models; namespace CourseResultMVCWebApp.Gateway { public class StudentResultGateway : BaseGateway { public int Save(StudentResult studentResult) { ...
97bd2aeba82ffdfb21e9bb9e63b13de1556ea9b8
C#
marcomendez/CodeExercise-CSharp
/Code.Exercise/Code.Exercise.Helper/Attributes/PageAttribute.cs
2.875
3
using System; namespace Code.Exercise.Helper.Attributes { /// <summary> /// Handles class attributes for pages. /// </summary> [AttributeUsage(AttributeTargets.Class)] public class PageAttribute : Attribute { public string Name { set; get; } /// <summary> /// Construct...
796caeeb06d8f8a2f129599a0ca07b043ab74e42
C#
CHDKUtil/metadata-extractor-dotnet
/MetadataExtractor.Tests/Formats/Png/PngChunkTypeTest.cs
2.703125
3
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using MetadataExtractor.Formats.Png; namespace MetadataExtractor.Tests.Formats.Png { /// <summary>Unit tests for <see cref="PngChunkType"/>....
dfb4ec3d95621c41919372aa8a37c45bd59e49e2
C#
msrinivas115/develop
/UserManagementAPI/Services/UserService.cs
2.890625
3
using Access; using Entities; using Interfaces; using Newtonsoft.Json; using System.Collections.Generic; using System.Configuration; namespace Services { public class UserService : IUser { #region Variables private readonly IUserAccess _userAccess; #endregion #region Construct...
9955629f300405deb142fbf97ea4bf292537da12
C#
shlomo7492/SoftUniCourses
/ProgramingBasics/DrawingWithLoops/SquareFrame/Frame.cs
2.8125
3
using System; namespace SquareFrame { class MainClass { public static void Main (string[] args) { int n = int.Parse (Console.ReadLine ()); string innerDash=" "; for (int i = 1; i <= (n - 2); i++) { innerDash = innerDash + "- "; } Console.WriteLine ("+" + innerDash + "+"); for (int i = ...
ac3375ba8b1aa3a63772af4232d716cb2ee4b4fe
C#
stephencenter/WalkAround
/MapBuilder.cs
3.046875
3
using System.Collections.Generic; using System.IO; using System.Linq; namespace WalkAround { public static class MapBuilder { // A list of symbols usable when creating textmaps. These symbols each correspond // to a specific kind of tile. private static readonly Dictionary<ch...
b6dbcd3c4351121c46eabeb24a11c00388ee082a
C#
mihaistoie/histria
/src/Histria.Db/Model/DBTable.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Histria.Db.Model { public class DbTable { protected DbColumns columns = new DbColumns(); protected List<string> pk = new List<string>(); protected DbIndexes indexes = new DbIndexes(); ...
169f138724ceb691852aa7d37aeaa4006ba4d783
C#
shendongnian/download4
/code9/1574282-43991683-145457636-4.cs
2.640625
3
GetObjectRequest getRequest = new GetObjectRequest(); getRequest.BucketName = "your bucket name"; getRequest.Key = "your file key name"; getRequest.ServerSideEncryptionCustomerMethod = ServerSideEncryptionCustomerMethod.AES256; getRequest.ServerSideEncryptionC...
76d72ab3073be4561e17205b1fbf1330cd955782
C#
jeronimo34/atcoder
/atc001b/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; namespace atc001b { class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = inputs[0]; var Q = inputs[1]; ...
bcd8a2ffcfcfbfbe4e8a2115e791887be7c5058d
C#
Samuel-Lindsey/BookList
/BookList/Controllers/BooksReadController.cs
2.53125
3
using BookList.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace BookList.Controllers { public class BooksReadController : Controller { // creates Readers List using reader Id passed in public ActionResult ReadersBookLis...
ef79d4c3d4905cf8282ada1dcf3d0ea6248c7c0c
C#
karennel/Xamarin
/RandomApp/RandomApp/RandomApp/Helpers/XFHelper.cs
2.671875
3
using System; using System.Windows.Input; using Xamarin.Forms; namespace RandomApp { public static class XFHelper { const string MailTo = "mailto"; const string Tel = "tel"; public static ICommand CreateCommand(Action action) { return new Command(action); } public static ICommand CreateCommand<T>(A...
e06e028494840fe0300fa4a51056a745fc27de0e
C#
Strije/WinVK
/VK.API/APISession.cs
2.65625
3
using System; using System.Threading.Tasks; using VK.API.Data; namespace VK.API { public class APISession { public String APIToken; public User User; private APISession(){} public static async Task Parse(String u) { API.Session = new APISession(); ...
790b747998808eb0dd24a6dde38e18a0da577f1c
C#
Egor92/TrumpSoftware-Foundation
/TrumpSoftware.Shared/Media/ColorHelper.cs
3.171875
3
using System; #if WPF using System.Windows.Media; #elif WINRT using Windows.UI; #endif #if WPF namespace TrumpSoftware.Wpf.Media #elif WINRT namespace TrumpSoftware.WinRT.Media #endif { public static class ColorHelper { public static Color ConvertFromString(string str) { if (str ==...
86fa4810e54103783eb7981069ae30830d236531
C#
shubh-techie/SP.DSA.Practice.Solution
/SP.DSA.Project.BackTracking/SudokuProblem.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SP.DSA.Project.BackTracking { public class SudokuProblem { public static void SudokuProblemDemo() { int[][] grid = new[] { new ...
290f5c3a31361210094f9370130f2f8a4dbbe31d
C#
eceescalona/MusalaSoftRestServiceTest
/MusalaSoftRestServiceTest/Controllers/PeripheralsController.cs
2.671875
3
using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using MusalaSoftRestServiceTest.Models; namespace MusalaSoftRestServiceTest.Controllers { [Route("api/[controller]")] [ApiController] public class Periphe...
160d7b588c3e543ea3a3f0a19a010cb106fc02c5
C#
Marcaum04/Exercicios-CSharp
/Categorizador de nadadores/Program.cs
3.203125
3
using System; namespace Categorizador_de_nadadores { class Program { static void Main(string[] args) { int idade; Console.WriteLine("Categorizador iniciado\n"); Console.Write("Digite sua idade: "); idade = int.Parse(Console.ReadLine()); ...
88f558097f5706bf603074fb22aaf54ec0fcdf57
C#
kuroshum/PsyKyu
/Assets/Scripts/Character/CharacterCatchSpaceManager.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterCatchSpaceManager : MonoBehaviour { // ̃NXĂяoNX(Player or Enemy) private Character parent; public void SetParent(Character parent) { this.parent = parent; } private bool onBallHit; public bool GetO...
3fda4052daacd8abf069c42659c827f938de6863
C#
dwsfw/GWGL
/JWGLBLL/CourseBLL.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Model; using MySchoolDAL; namespace MySchoolBLL { public class CourseBLL : BaseBLL { public static bool Addnewcourse(string id, string name) { Course c = new Co...
b9537621b21f7cd607df12073561d05b2a574012
C#
alxg90/8LMBackend
/src/8LMBackend/Controllers/FileManager.cs
2.84375
3
using System.IO; using System; using Microsoft.Extensions.PlatformAbstractions; using System.Collections.Generic; using Microsoft.AspNetCore.Http; public class FileManager { public bool writeFiles(List<Microsoft.AspNetCore.Http.IFormFile> files) { try { var path = Directory.GetCu...
8ebda04430b0752b20c3e0705fe84dd4e52598dc
C#
Azazell0/AllMinigames
/Assets/Scripts/Minigame 24/Resource.cs
2.890625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Minigame24 { public class Resource : MonoBehaviour { #region variables public ResourceType type = ResourceType.None; public Cell currentCell; #endregion void Start() ...
226377799bbe4968a5978cee08e8a739eee60920
C#
Ko38/91TDD
/AssertionSample-master/JoeyBirthday/UnitTest.cs
2.90625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Moq; using Moq.Protected; namespace JoeyBirthday { [TestFixture] public class UnitTest { [Test] public void Today_Is_Joey_Birthday() { var expected = "Happy B...
a256dc8150f3c7351f0a7531c6e21239fa7509e1
C#
MarcelloMello2/GitHubCode
/Core/OrclDataAccess/COMMON/DataSetEx.cs
3.40625
3
using System.Collections.Generic; namespace System.Data { public static class DataSetEx { #region 扩展方法 /// <summary> /// 填充对象列表:用DataSet的第一个表填充实体类 /// </summary> /// <param name="ds">DataSet</param> /// <returns></returns> public static List<T> FillMod...
e1cd33151e042890fdd13bbcdd3194e74d4413f8
C#
VinsantSavov/Summer-Practice
/Basic-Console-Calculator/CalculatorApp/CalculatorApp/Calculator.cs
3.734375
4
using System; namespace CalculatorApp { public class Calculator { public Calculator() { this.Result = 0; } public double Result { get; private set; } public void Add(double number) { this.Result += number; } public void...
9a6759d2d5da9097207e35565e87ce1a62d593fd
C#
tiger12506/VMAT
/VMAT/ViewModels/ProjectViewModel.cs
2.546875
3
using System.Collections.Generic; using VMAT.Models; namespace VMAT.ViewModels { public class ProjectViewModel { public int ProjectId { get; set; } public string ProjectName { get; set; } public List<VirtualMachineViewModel> RegisteredVMs { get; set; } public List<VirtualMachineViewModel> PendingV...
94ed8b5cc0ee4bbe4051e32091c6502ff681e94b
C#
yuya-yuliya/.NET-training
/NET.W.2018.Yukhnevich.17/No5.Solution/Converters/ToPlainTextConverter.cs
3.09375
3
using System; using System.Collections.Generic; namespace No5.Solution.Converters { public class ToPlainTextConverter : IConverter { public virtual string Convert(IEnumerable<DocumentPart> documentParts) { string output = string.Empty; foreach (dynamic part in document...
004167c33293f6d312468202943159ec6edaee5e
C#
Solguden/MongoDBDAB3
/SocialNetworkMongoDB/SocialNetworkMongoDB/Services/PostService.cs
2.65625
3
using MongoDB.Driver; using SocialNetworkMongoDB.Models; using System; using System.Collections.Generic; using System.Text; namespace SocialNetworkMongoDB.Services { public class PostService { private readonly IMongoCollection<Post> _posts; public List<Post> GetListofPosts() { ...
f03d7cd16e4036c4cc491e0f2922d66b8846aebb
C#
windygu/Trace
/20170618/Trace/Views/Main/CustomCircularProgressBar.xaml.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media...
5e2638a4b8d69546c34863319673757e0bf239b2
C#
justinhachemeister/MLib
/source/MDemo/Demos/ViewModels/Tasks/ProgressViewModel.cs
2.609375
3
using System; namespace MDemo.Demos.ViewModels.Tasks { /// <summary> /// Viewmodel drives a sample dialog that is really /// based on a CustomDialog that accepts a custom view and /// viewmodel and implements some standard behaviour /// <seealso cref="IBaseMetroDialogFrameViewModel"/>. /// </s...
f5996027603f9a92f63583044868ef8d58ef023e
C#
Ivailo97/Unibit
/ProductStatistics/ProductStatistics/Data/Implementation/MainDish.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace ProductStatistics { class MainDish : CalorieFood { public MainDish(string name, decimal price, int grams) : base(name, price, grams) { InitCalories(); } protected override void InitCalorie...
468192a852d74df9857fa3bbca28f4470ec662bd
C#
polytroper/SineRider-Unity
/Assets/YAMP/Functions/LinearAlgebra/QRFunction.cs
3.1875
3
using System; using YAMP.Numerics; namespace YAMP { [Kind(PopularKinds.Function)] [Link("http://en.wikipedia.org/wiki/QR_decomposition")] [Description("In linear algebra, a QR decomposition (also called a QR factorization) of a matrix is a decomposition of a matrix A into a product A=QR of an orthogonal matr...
7ad2581ccd9d83822c032ed26c4f23fdd69b5ac4
C#
tomShoutTheSecond/SeamlessRepeater
/SeamlessRepeater/Helper/ErrorHandler.cs
2.90625
3
using SeamlessRepeater.Windows; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SeamlessRepeater.Helper { public static class ErrorHandler { private const Environment.SpecialFolder _fil...
6e5f1b56bfd5f8213df19e16cde3ad201aa0cf95
C#
xibeilang524/AC
/AC.Base/Classify.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AC.Base.ClassifySearchs; namespace AC.Base { /// <summary> /// 设备分类。继承该基类的实体类必须提供一个无参数的构造函数,且必须添加 ClassifyTypeAttribute 特性。 /// </summary> public abstract class Classify { #region 分类基本信息 //...
47f38e535802802eb089a91baaeeccbe049576b4
C#
GreenApple-jsy/DiceRun
/DiceRun/Assets/PE2D/Particle Effects/Scripts/Particles/ParticleFactory.cs
2.71875
3
using UnityEngine; using System.Collections; namespace PE2D { /// <summary> /// Creates and maintain an object pool of particles. /// /// </summary> public class ParticleFactory : MonoBehaviour { /// <summary> /// Particle prefab. /// </summary> public GameObject particlePrefab; /// <summary> /// ...
4748e0845ee901b5a05987fc7beb63a7057effd7
C#
arif-ahmed/AspNetCore-Samples
/Middleware/Middlewares/AuthorizedPostMiddleware.cs
3.078125
3
using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Middleware.Middlewares { public class AuthorizedPostMiddleware { //The RequestDelegate represents the next middleware in the pipeline. private RequestDele...
92a58d9be8ba737bd15f23395b279e4596f4e306
C#
EnoughTea/essentions
/Src/Tests/Tools/ValuesTests.cs
2.828125
3
using System; using Essentions.Tools; using NUnit.Framework; namespace Essentions.Tests.Tools { [TestFixture] public class ValuesTests { [Test] public void When_Using_used_with_null_Exception_is_thrown() { bool called = false; Assert.Throws<ArgumentNullExcep...
a37aa7fca12221faaf7fa662f48197b2a00d879f
C#
RamonTurbi/CalculadoraOficial1
/CalculadoraOficial/Clases/OpreacionesAritmeticas.cs
3.359375
3
using System; using System.Collections.Generic; using System.Drawing.Text; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace CalculadoraOficial.Clases { /*La clase al igual que los metodos utilizan el limitador de acceso Publico para que puedan ser usados...
625875551acf19a8656308d8951155dd3b61dee1
C#
viacoin/NBXplorer
/NBXplorer.Client/Models/Bookmark.cs
3.03125
3
using NBitcoin; using System; using System.Collections.Generic; using System.Text; namespace NBXplorer.Models { public class Bookmark { public Bookmark(uint160 value) { if(value == null) throw new ArgumentNullException(nameof(value)); _Value = value; } private uint160 _Value; private sta...
76397fe6d64f51352a165e5568656952da0ae804
C#
Gheorg/CryptoAlpha
/CryptoAlpha/AlphaCypher/Vigenere64.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WallF.BaseNEncodings; namespace AlphaCypher { public class Vigenere64: Vigenere { private Base64Encoding _b64; public Vigenere64():base() { _b64 = new B...
3fd931236891b29230078a71d95bae5eb813541d
C#
DerKnerd/work-time-tracker
/Knerd.Work.Time.Tracker/Helpers/CalenderViewHelper.cs
2.625
3
using System; using System.Collections.Generic; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace Knerd.Work.Time.Tracker.Helpers { public static class CalendarViewHelper { public static DateTimeOffset GetSelectedDate(DependencyObject obj) { return (DateTimeOffset)obj.GetValue...
02dd3cbea60b1f637fa84166ba52b55c889a93cf
C#
EmilJL/AdminFinal
/InfoScreenAdminBusiness/IPHandler.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using InfoScreenAdminDAL; using InfoScreenAdminDAL.Entities; namespace InfoScreenAdminBusiness { public class IPHandler : DBHandler { public static string CheckIP() ...
f2e279ef29fd0d37a6191f25a610ec3f02766b27
C#
jvandertil/FoundationDbNet
/src/FoundationDbNet/Native/Networking/FdbNetwork.cs
2.53125
3
namespace FoundationDbNet.Native.Networking { using System; using System.Runtime.InteropServices; using System.Threading; using FoundationDbNet.Logging; internal static class FdbNetwork { private static readonly ILog Logger = LogProvider.GetCurrentClassLogger(); private static ...
cc0a1a0b21ae40526fe2a325261219bb287bf36a
C#
Projektanker/kicad-db-lib
/src/test/KiCad.UnitTest/KicadDownloader.cs
2.6875
3
using System; using System.IO; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace KiCad.UnitTest; public static class KicadDownloader { private static readonly SemaphoreSlim _semaphore = new(1); public static async Task DownloadSymbolFile(string libraryName) { ...
d06dbb28b55b650bd6e740f485ac60e1b492f496
C#
Venen-S/Asteroids
/Asteroids/Bullet.cs
2.75
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Asteroids { class Bullet : BaseObject { /// <summary> /// Конструктор Пули /// </summary> /// <param name="pos"></param> /...
8d66ffeecb8f9d83937f318da44cf9d67c9188a1
C#
danyelaristizabal/Prodify
/Prodify/SellerRepository.cs
2.65625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; namespace Prodify { class SellerRepository { SqlConnection sq = new SqlConnection(@"Data Source =DESKTOP-KGC5T7J; Initial Catalog =Seller; database =ProdifyDatabase; i...
38b4ac0fd443c8a71d4c010e46d1038527a54e17
C#
Psynature/Future-Jam
/Assets/Scripts/Enemies/EnemyPathingSimple.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyPathingSimple : EnemyPathing { private int waypointIndex; // Update is called once per frame void Update() { EnemyMovement(); EnemyTurning(); SimpleMovement(); } private v...
97997e260a54f958dbbbea14ed1cd186b4b2a12f
C#
abdulbarimalik/MyDotNetProjects
/My Book Collection Win Forms App/MyBookCollection/UpdateTopic.cs
2.625
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 System.Data.SqlClient; namespace MyBookCollection { public partial class UpdateTopic : Form { public UpdateTopic...
8775a1466a8bead296c16aa3142e22c9b9633c1b
C#
Morebis-GIT/CI
/xggameplanAPI/xggameplan.common/Utilities/ScheduleUtilities.cs
2.875
3
using System.Collections.Generic; using System.Linq; using ImagineCommunications.GamePlan.Domain.Breaks.Objects; using ImagineCommunications.GamePlan.Domain.Shared.Schedules; using static xggameplan.common.Helpers.LogAsString; namespace xggameplan.common { public class ScheduleUtilities { private read...
c0bdde0b2ca9bb5fd9a82c14157826bf83d511e0
C#
akesseler/Plexdata.CsvParser
/code/src/Plexdata.CsvParser.NET/Processors/CsvExporter.cs
2.828125
3
/* * MIT License * * Copyright (c) 2022 plexdata.de * * 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 the Software without restriction, including without limitation the rights * to use, copy, m...
021c9c6f6d29ed3aef469265f1dad75866a257c4
C#
beloruszhenia/23.04
/Console24_04/Console24_04/Minmax.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Console24_04 { class Minmax { public int Min { get; set; } public int Max { get; set; } public int Srednee() { return ((Min + M...
eab366df5eddf96f9f9561a5d3ee6511fe02a052
C#
carlohgameros/YOKO-GOUMAO
/YOKO/Models/LegalData.cs
2.578125
3
using System; using System.Collections.Generic; using System.Data; using System.Globalization; using YOKO.Helpers; namespace YOKO.Models { class LegalData { private static LegalData legalDataInstance = null; private SQL sqlHelper; public string rfc; public string name; ...
1f6f297170e3a0147038afeddf6f9525c90c1e7c
C#
MPAVE/RentalDresses
/BusinessLogic/SqlUserManager.cs
2.671875
3
using App.Models; using Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessLogic { public class SqlUserManager : IUserManager { private readonly RentalDressesEntities1 rd; public SqlUserManager() ...
023f46a0b3efb88fbac495f15c4eaea44caa8332
C#
VictorSheep/Rubworld
/Scripts/Rotate90.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate90 : MonoBehaviour { private int _rotationStep = 5; // should be less than 90 (Use this for initialization) private bool _isCompleteRotation; private Vector3 _currentRotation, _targetRotation; public delegate void C...
c25c5cdd4dc5099775c0175b278406b7eea0a8d1
C#
ShuxuanCai/VGP232_Spring
/VGP232_Spring/PokeDexFinalLib/PokemonInfo.cs
3.359375
3
using System; using System.Collections.Generic; using System.Text; namespace PokeDexFinalLib { public enum PokemonType { None, Fire, Water, Grass, Poison, Flying, Dragon, Bug, Normal, Electric, Ground, Fairy, ...
f9b043432343589b7cdeb08f64ad778ac2989a0e
C#
IndreamLuo/LeetCode
/LeetCode.Code/20~29/28.ImplementStrStr.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCode.Code { public class ImplementStrStr { public int StrStr(string haystack, string needle) { int nextIndex = -1; for (var index = 0 ; index <= haystack.Length - needle.L...
8cb52df0ebd465452720018f5891ab923c77024d
C#
WildGums/Orc.FilterBuilder
/src/Orc.FilterBuilder/Expressions/StringExpression.cs
2.578125
3
namespace Orc.FilterBuilder { using Catel.Reflection; using System; using System.Diagnostics; using System.Text.RegularExpressions; using Catel.Caching; using Catel.Caching.Policies; using System.Collections.Generic; using Catel; [DebuggerDisplay("{ValueControlType} {SelectedCondit...
f9bcd60473b50793e69ad51b975d8e40593fd7a2
C#
chloehellberg/Pierres-Bakery
/BakeryShoppe/Models/Bakery.cs
3.140625
3
namespace Bakery.Models { public class Bread { public int totalBreadRequested { get; set; } public Bread(int breadOrdered) { totalBreadRequested = breadOrdered; } public int CalculateBread() { int calculateFreeBread = totalBreadRequested / 3; int breadTotalCost = (totalBre...
9d13e47ddd885c087984150974186ece7b247435
C#
muukvds/LogischCircuit
/LogischCircuit/Factory/CalculationStrategyFactory.cs
3.015625
3
using LogischCircuit.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogischCircuit.Factory { class CalculationStrategyFactory { private Dictionary<string, Type> _strategies; private static CalculationStra...