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
5f2363b90d9e30f4aab89b312fee08ec360aee22
C#
ewilde/dotnet-playground
/messaging/zeromq/performance-test/zeromq-perf-producer/Program.cs
2.734375
3
using System; using System.Diagnostics; using Edward.Wilde.CSharp.Features.Strings; using Edward.Wilde.CSharp.Features.Utilities; using NetMQ; namespace zeromq.perf.producer { class Program { static readonly string Message = StringExtensions.RandomString(4.Kilobytes()); static void Main(strin...
2bbf6244355649a63f51d0b712d232695968d62a
C#
hoangloc0402/halloween-story
/UI/HealthBarPlayer.cs
2.53125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Content; namespace HalloweenStory.UI { class HealthBarPlayer : HealthBarBoss { #region Fields protected Texture2D scoreTexture; //hình ảnh của thanh score protected Rectangle score...
789c0005a9a2c16fd06dd13009a86632624bb872
C#
menkari/SimpleInjectorInit
/SimpleInjectorInit/Repositories/TextBasicRepository.cs
2.75
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Web; using SimpleInjectorInit.Interfaces; namespace SimpleInjectorInit.Repositories { public class TextBasicRepository : IBasicRepository { public string GetHelloWorld() ...
139df3e3b2de3b8e9c94ae1a3139726791044527
C#
fabracht/designPatterns
/PrototypePattern/Program.cs
3.875
4
using System; /* The core idea of this pattern is to create an object that is based on another object. This existing object acts as a template for the new object. */ namespace PrototypePattern { class Program { static void Main(string[] args) { System.Console.WriteLine("****...
7a42113582616223156983cc9fe119536add05dd
C#
queston02/Algorithms
/Algorithms/MissingNumberInSortedArray.cs
3.453125
3
using System; using System.Collections.Generic; using System.Text; namespace Algorithms { class MissingNumberInSortedArray { static void Main() { Console.WriteLine(FindMissing(new int[]{ 1, 2, 3, 4, 5, 6, 8 })); Console.WriteLine(FindMissing(new int[] { 1, 2, 3, 4, 5, 7...
65d0ec5964c649c07b5af6bf37db79a169ed5763
C#
drdnar/Tiedye
/Tiedye/Hardware/SE84/Battery.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tiedye.Hardware { /// <summary> /// TODO: Actually make the emualted calculator reference the battery voltage. /// </summary> public class Battery { public double V...
4aa31a1357a4d5f8f0d0b9649d2b43a94f3be3a3
C#
AntonPlotnikau/NET.S.2018.Plotnikau.02
/NumberOperations/ArrayFilter.cs
3.71875
4
using System; using System.Collections; using System.Collections.Generic; namespace NumberOperations { /// <summary> /// This class is responsible for filtering the array by the criterion. /// </summary> public static class ArrayFilter { /// <summary> /// Filter for collections ...
604423b188098eff426d42246d317e9b05dc3116
C#
tasksc/Abstraction
/AbstractionHard/Program.cs
3.78125
4
using System; using InheritanceHard; namespace AbstractionHard { class MainClass { public static void Main(string[] args) { Console.WriteLine("A Class can have only one Parent but inherit multiple interfaces"); Console.WriteLine("Interfaces are the ultimate form of abst...
c1618b36659b2e5dd1b8ed7208c52e49c0c4875f
C#
AlexL33t/OOP-Citadels
/Citadels/Domain/Persons/King.cs
2.703125
3
using System.Collections.Generic; namespace Citadels.Domain { class King : Person { class Сoronation : Act { public Сoronation(Player player, Person person, GameField field) : base(player, person, field) { } public override List<object> GetPa...
7bfc299c5ef983486e4eceba75ebc7ceedda1952
C#
neroes/AI-MAS
/RPG-reference project/RPGModel/Map.cs
3.328125
3
using System.Collections.ObjectModel; using System.Collections.Specialized; namespace RPGModel { //Map related logic. Extends ObservableCollection public class Map : ObservableCollection<Tile> { public int nCols { get; set; } public int nRows { get; set; } public Map(int[] Maps...
cb5fdf1706867d885382b4315e0e93e3cab6bb76
C#
nick121212/xima_desktop3
/desktop/Core/XIMALAYA.PCDesktop.Core.Data/Decorator/ResultBase.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentJson; using FluentJson.Configuration; namespace XIMALAYA.PCDesktop.Core.Data.Decorator { /// <summary> /// result基类 /// </summary> public abstract class ResultBase { ...
b28de6046c6f99f2410d0e8b5c658a162977b8e4
C#
shendongnian/download4
/latest_version_download2/2098-35539113-111398640-2.cs
2.796875
3
private static bool IsList(object value) { var type = value.GetType(); var targetType = typeof (IList<>); return type.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == targetType); }
8af3f3047145639fe3cd6a4a2cc8575610cb912e
C#
Praktika228/CalculatorOOP
/Calculator/Calculator.Tests/TwoArgumentsCalculator/ModCalculatorTests.cs
2.625
3
 using Calculator.TwoArgumentsCalculator; using NUnit.Framework; namespace Calculator.Tests.TwoArgumentsCalculator { [TestFixture] class ModCalculatorTests { [TestCase(5, 2, 1)] [TestCase(6, 2, 0)] [TestCase(11, 3, 2)] public void CalculationTest(double firstValue, double ...
a8d6ee8ac8d052c237a400ab40c56524c357ae42
C#
IagoGabriel/Exercicio_VaiFundos
/VaiFundos/VaiFundos/Real.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VaiFundos { class Real : Moeda { private float irrf=0.2f; public Real(int increment, String nomeMoeda, String simbolo) : base(increment, nomeMoeda, simbolo) { ...
8260b2355b096d09157a4a452a62412cfafde5d1
C#
DaniellyDSX/salaDeProvas
/Teste1/Program.cs
3.265625
3
using System; using System.Text.RegularExpressions; using System.IO; using System.Text; using System.Linq; class ReadFromFile { static void Main() { // Os arquivos usados neste exemplo são criados no tópico // Como: Gravar em um arquivo de texto. Você pode alterar o caminho e ...
1ae51d45ad0a7612ea34f7bc419ed73f03eef23f
C#
martinpj1/Desiderata
/Desiderata/Desiderata/MainMenu.cs
2.8125
3
using System; using static Desiderata.Program; using static Desiderata.TextEngine; using static System.Console; namespace Desiderata { public static class MainMenu { public static void DisplayMainMenu() { var title = "DESIDERATA"; var newGame = "NEW GAME"; ...
9804a800831fdd58307b2b84e78e13a9c1c509ee
C#
ProjectBMMS/SmartMuseum_official
/Login/MainWindow.xaml.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; 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; using System.Windows.Media.Imaging;...
827bbf92dac1f85484219f7ea164ab764d36570f
C#
jorge3186/jordanalphonso.net
/fulcrum_services/NHibernate/CustomTypes/Company.cs
3.109375
3
using System.Collections.Generic; using System.Reflection; namespace fulcrum_services.NHibernate.CustomTypes { public class Company : ICustomType { public readonly static Company MINE = new Company("MNE", "jordanalphonso.net"); public readonly static Company NA = new Company("NA", "N/A"); ...
f21bf5bcaeaee8eafaacb62fa161dd51839eecb0
C#
TheAwesomeProgrammer/ThroughtDeadlySpaces2
/Assets/Scripts/Extensions/ListExtensions.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Assets.Scripts.Extensions { public static class ListExtensions { public static void RemoveType<T>(this List<T> list, Type type) { list.RemoveAll(item => item.GetType().IsSubclassOf(type)...
9b3276474e33bae8c77f308ee4f1efdd552e4608
C#
rodya-mirov/Voxelist
/VoxelistDemo2/VoxelistDemo2/BlockHandlerExtension.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Voxelist.BlockHandling; using Microsoft.Xna.Framework.Graphics; using Voxelist.GeometryPrimitives; using Microsoft.Xna.Framework; namespace VoxelistDemo2 { /// <summary> /// Summary of block information: /// /...
65279fc84e29310fb1cdddf755218d3c56739485
C#
wavefrontHQ/wavefront-sdk-csharp
/Wavefront.SDK.CSharp/Entities/Tracing/SpanLogs.cs
2.671875
3
using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace Wavefront.SDK.CSharp.Entities.Tracing { /// <summary> /// Data contract object used to serialize the span logs for a particular span to JSON for /// sending to Wavefront. /// </summary> [DataContract] ...
a2b73a7351aee9845f3a52db0280b59f2d5eb206
C#
Grawitum/GyreRigTestTask
/GyreRigTestTask/Assets/Skripts/Task1/ButtonController.cs
2.515625
3
using UnityEngine.UI; namespace Task1 { public class ButtonController { private Text _text; private Counter _counter; public ButtonController(UISkreenFactory skreen) { _text = skreen.Text; skreen.Button.onClick.AddListener(ButtonEvent); } ...
81ae889cb9486ce7bdf9b0b31c595e41465912b6
C#
bryangrimes/SampleAddressBook-InterviewTest
/AddressBook.BLL/Services/AddressBookService.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Threading; using AddressBook.BLL.Entities; using AddressBook.BLL.Repositories; using System.Linq.Dynamic; namespace AddressBook.BLL.Services { // There are no ...
6ca8bdc62d4e27649015c9490e07053d3a0fe0ed
C#
craigomatic/IMML
/src/Imml.Runtime/Services/ResourceAcquisitionService.cs
2.5625
3
using Imml.ComponentModel; using Imml.Runtime.Services; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Imml.Runtime.Services { public class ResourceAcquisitionService : IResourceAcquisitionService { p...
a4eb13d86d8640964bd5d1d55cd652e36927214c
C#
yvanjanssens/xpatch
/xpatch/PatchContents.cs
3.0625
3
using System; using System.Collections.Generic; using System.IO; using System.Globalization; namespace xpatch { public class PatchContents { private List<PatchOffset> _Offsets; public List<PatchOffset> OffsetList { get { return _Offsets; } } public PatchContents(List<PatchOffset> Offsets) { ...
de41915cafd533065373506912c303407201ee09
C#
mfkiwl/DiscreteMethods-GPU-DIC
/DigitalImageCorrelation.Core/Utils.cs
3.296875
3
using System.Collections.Generic; using System.Drawing; using System.Linq; namespace DigitalImageCorrelation.Core { public static class Utils { public const int DELTA = 6; public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> self) => self.Select((item...
0954f84862e8b57bbb20cc8b4499a9911b0a9875
C#
MorpheusMXML/IGD2021
/Assets/Groups/Group C - Interconnections/Scripts/CustomizationScripts/ChangeFeet.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ChangeFeet : MonoBehaviour { public enum FeetOptions { RightFoot, LeftFoot } public SkinnedMeshRenderer rightFoot; public SkinnedMeshRenderer leftFoot; public List<Material> rightF...
cfbe5c710a720d5e83cf68cad79f174d649badd5
C#
Lozov-Petr/Schedule
/SEE/Editor/Repository/ScheduleRepository.cs
3.046875
3
using System; using System.Globalization; using System.Linq; using Editor.Models; namespace Editor.Repository { class ScheduleRepository { private static readonly Random Rnd = new Random(); public ClassesSchedule Schedule = new ClassesSchedule(); public ScheduleRepository() ...
0973f6fd5c6b67c14d3132531e5cd90273b4f6b4
C#
mkropat/VSPerformanceTracker
/VSPerformanceTracker/UI/GeneralOptionsControl.cs
2.734375
3
using System; using System.IO; using System.Windows.Forms; namespace VSPerformanceTracker.UI { public partial class GeneralOptionsControl : UserControl { internal VsPerformanceTrackerOptionsPage OptionsPage { get; set; } public GeneralOptionsControl() { InitializeComponent...
6f2a875720313fd7662c16f4da88d1f1507d2170
C#
Jacob-Buchinsky/CF-Game
/CF-Game-git/Assets/Devdog/Rucksack/Source/Collections/CollectionGroupSimulation.cs
2.71875
3
using System; namespace Devdog.Rucksack.Collections { public sealed class CollectionGroupSimulation<TElementType> : CollectionGroupSimulation<TElementType, ICollection<TElementType>> where TElementType : class, IEquatable<TElementType>, IStackable, IIdentifiable, ICloneable { public Collectio...
7f5383bba756662db017a63cfb46994ec32855c0
C#
dzstoever/SeeTCPIP200
/ReportPrinting/ReportBoolColumn.cs
3.171875
3
// Copyright (c) 2003, Michael Mayer // See License.txt that should have been included with this source file. // or see http://www.mag37.com/projects/Printing/ using System; using System.Drawing; using System.Data; namespace ReportPrinting { /// <summary> /// A DataColumn that is used for true / false columns by /...
0a4c1bcacef65e67ecb56479320e9a38df41d0e2
C#
nielsbekkers/Restservice_Producent
/ConsoleRestSvc/Program.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.ServiceModel.Web; using System.ServiceModel.Description; using System.Timers; namespace ConsoleRestSvc { class Program { private static Timer timer = new Timer(1000); ...
5ee06adac3f18b3ce4530f3541975879d40bc993
C#
lcsFloriani/AcademiaProgramador2018
/NDDResearch Angular 4/server/NDDResearch.Infra.Data/Features/Sites/SiteRepository.cs
2.875
3
using NDDResearch.Domain.Exceptions; using NDDResearch.Domain.Features.Sites; using NDDResearch.Infra.Data.Contexts; using NDDResearch.Infra.Structs; using System; using System.Data.Entity; using System.Linq; namespace NDDResearch.Infra.Data.Features.Sites { /// <summary> /// Repositório de sites /// </su...
362bcc2cfcc18107a6d99a3c8a860f6fff74bf47
C#
HristoTrendafilov/CSharp---Fundamentals
/ObjectsAndClassesExercise/TeamWork/TeamWork.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; namespace TeamWork { class Program { static void Main(string[] args) { int teamsCount = int.Parse(Console.ReadLine()); List<TeamCreator> totalTeams = new List<TeamCreator>(); ...
b2d64596dd59d6c45a1ba5984ff1e7fe20a30022
C#
sg-university/psd-lab-project
/Project/Handlers/TrHeaderHandler.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Project.Factory; using Project.Repositories; using Project.Models; namespace Project.Handlers { public class TrHeaderHandler { readonly TrHeaderRepository TrHeaderRepository = new TrHeaderRepository(); r...
687d2657bfaf239e587880fc70abc1fa4cc2b212
C#
vaurer/Dictionary
/DeEnDictionary/Form1.cs
2.796875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DeEnDictionary { public partial class Form1 : Form { Dictiona...
1b30c052e4a7c58bf41d3c4eb0d56225a1bee07b
C#
shaikdesign01/CityCallGlobe
/Mobinor.Repository/Interfaces/IDailersInfoRepository.cs
2.515625
3
using System.Collections.Generic; namespace Mobinor.Repository.Interfaces { /// <summary> /// Interface for IDailersInfoRepository /// </summary> public interface IDailersInfoRepository { /// <summary> /// GetCountries /// </summary> /// <returns></retur...
16b218948c7bc9fa8d53e42984b79af9c604d3f9
C#
shendongnian/download4
/code5/868103-21499250-57008175-4.cs
2.546875
3
public void Timer_Tick(object sender, EventArgs e) { progressBar_Ladebalken.Value = i; label_Titel.Content = i + "%"; if (i < 100) { i += 1; } else { i = 0; Timer.Stop(); ...
9e1aa3a5e668d393db01f9442a746c8ad305187e
C#
SteveIves/Demos
/SilverLight/DSVControls Test/Paint/MainForm.xaml.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using DSV.Contr...
1f30000bef72b2962afe31d1b0afaf6a2bbc2bf3
C#
HungLTL/alc-emy
/alchemy/Player.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace alchemy { class Player { string Name { get; set; } int Score { get; set; } TimeSpan time { get; set; } string Difficulty { get; set; } bool Win ...
453250f68e3fd570c82df670dbc1fdf20b563bc1
C#
codinesh/Minesweeper-in-Csharp
/Minesweeper.Core/Handlers/ActionHandler.cs
3.078125
3
using Minesweeper.Contracts; using Minesweeper.Model; namespace Minesweeper.Core.Handlers { /// <summary> /// ActionHandler class provides the abstract methods to process the user action on a particular block of the board. /// This class should be inherited by respective handlers to handle different user a...
c0d3dfde0f509efbdaf3c43ea9f3c77a129c6fbb
C#
tainicom/Aether.Physics2D
/Physics2D/Common/Complex.cs
2.765625
3
// Copyright (c) 2017 Kastellanos Nikolaos using System; #if XNAAPI using Complex = tainicom.Aether.Physics2D.Common.Complex; using Vector2 = Microsoft.Xna.Framework.Vector2; #endif namespace tainicom.Aether.Physics2D.Common { public struct Complex { private static readonly Complex _one = new Complex...
a266fbed219b3f197a93a33614e5bb995dfdcff9
C#
zavoshsoftware/Bonian
/Bonyan/Helpers/CodeCreator.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Models; namespace Eshop.Helpers { public static class CodeCreator { private static DatabaseContext db = new DatabaseContext(); public static int ReturnUserCode() { User user = db.Use...
81d5a31c2fb49cdba6a5c2cc09ae41516dcbdb88
C#
Shtekata/01.SoftUni-BasicsWithCSharp
/07.1 PB-CSharp-Nested-Loops/Sum Prime Non Prime/Program.cs
3.890625
4
using System; namespace Sum_Prime_Non_Prime { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var primeNumbers = 0; var nonPrimeNumbers = 0; bool variable = false; while (input != "stop") ...
138e007e1ae50ce921cd39c8344268f03bf28286
C#
andyfengc/ASP.NET-Personal-Work
/BillManager/Presenter/LoginPresenter.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BillManager.Presenter { class LoginPresenter { private LoginForm view; public LoginPresenter(LoginForm view) { this.view = view; this.vi...
948b0f1dcff3df1f30105f9545c475c53f3a1690
C#
roelantsm/DIConsole
/GanzenBoard.SharedKernal/StringHelperFunctions/StringHelperFunction.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace GanzenBoardGame.SharedKernal.StringHelperFunctions { public static class StringHelperFunction { public static string GeefEenNieuweLijn(this string input) { return new string('-', 20); ...
864ed8421292ae28260a9f394e864fae4198e9f7
C#
sami50/AspNetCore.Docs
/aspnetcore/mvc/controllers/bind-tryparse/7.0-samples/BindUsingTryParse/BindTryParseAPI/Controllers/WeatherForecastController.cs
2.59375
3
using System.Globalization; using BindTryParseAPI.Models; using Microsoft.AspNetCore.Mvc; namespace BindTryParseAPI.Controllers { [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { ...
78e174351d61de0691a13bc1792ceb145626b983
C#
GlynnJKW/Cyber-Arch-VR
/Assets/Gamepad/Scripts/ExampleGamepadInput.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExampleGamepadInput : MonoBehaviour { // Update is called once per frame void Update () { CheckForInput(); } public void CheckForInput() { if (GamepadInput.GetDown(InputOption.A_BUTTON)) ...
d4fc18dede1af75a495853bfa792ae0b62fc92d9
C#
drawcode/game-lib-engine
/Engine/Animation/Expo.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; using UnityEngine; class Expo : Ease { public static double EaseIn(double t, double b, double c, double d) { return (t == 0) ? b : c * Math.Pow(2, 10 * (t / d - 1)) + b - c * 0.001; } public static double EaseOut(double t,...
672b911141198495cd0a95d6f0eefe1f567fba67
C#
DISCONSpecialists/Metabuilder
/Main/MetaBuilder.UIControls/GraphingUI/Formatting/MouseRuler.cs
2.59375
3
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace MetaBuilder.UIControls.GraphingUI.Formatting { public delegate void CaptureFinishedEventHandler(object sender, CaptureEventArgs e); public delegate void MovingEventHandler(object sender, CaptureEventArgs ...
87f4f4367f866700d67cf19f6f84ecf7acb815a1
C#
Atlaspud/WeedKiller2.0
/WeedKiller2.0/InertialMeasurementUnit.cs
3
3
using System; using System.Collections.Generic; using System.IO; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WeedKiller2._0 { public class InertialMeasurementUnit { // Serial Port Constants private const int T...
3b6644beeec4507888d97c0e8db828c876c6cfef
C#
imastio/work4net
/Work4net.Execution/JobExecutorBase.cs
2.765625
3
namespace Work4net.Execution { /// <summary> /// The base and abstract job executor /// </summary> public abstract class JobExecutorBase { /// <summary> /// The job executor context instance /// </summary> protected readonly IJobExecutorContext context; //...
c26737bec914bd80b5c696a32ac6dd3065b2e56b
C#
elipmoc/ZunDokoGame
/ZunDokoGame/ResultScene.cs
2.53125
3
using System; using DxLibDLL; namespace ZunDokoGame { class ResultScene : IScene { int time; int handle; IScenePusher scenePusher; public ResultScene(int time,IScenePusher scenePusher) { this.time = time; this.scenePusher = scenePusher; ...
b2acda8e0699adb2b16c3d61c3621ae10887c2f5
C#
aznoe/Den-St-rste-Historie
/Assets/Script/AudioScripts/AmbSoundTransistion.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AmbSoundTransistion : MonoBehaviour //This script keeps the gameobject it’s on from being destroyed when loading a new scene and deletes other instances of gameobjects with this script on it. //It’s supposed to be used on th...
7d88bd664fc367205ccb590ec1fea130b7af662c
C#
adastrum/async-everything
/src/AsyncEverything.Core/Constructor.cs
2.84375
3
using System.Threading.Tasks; namespace AsyncEverything.Core { public class Bar { private Bar() { } private async Task<Bar> InitializeAsync() { await Task.Yield(); return this; } public static async Task<Bar> CreateAsync() ...
3088824be35bb0d6e8bb6e3d2230d571112252ea
C#
shendongnian/download4
/first_version_download2/502000-45800444-154436269-1.cs
2.546875
3
var invoiced = new List<Anonim> { new Anonim {Category = 1, Title = "Legal", Amount = 20}, new Anonim {Category = 2, Title = "Accounting", Amount = 10} }; var settled = new List<Anonim> { new Anoni...
839283b8bb750fb152a7300c0ab58641e6a815b6
C#
Sig2t53/InteractiveCSharp
/OperatorOverloadingEx2/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OperatorOverloadingEx2 { class ComplexNumber { public double real, imaganinary; public ComplexNumber() { this.real = 0; this.imaganinary...
5f33820ae45505c1b8ef8faa7ad55d7dfbf446b6
C#
AdrianoCandido/NetworkBuffer
/src/NetworkBuffer/Communication/Messaging/Message.cs
2.59375
3
using System.Collections.Generic; namespace NetworkBuffer.Communication.Messaging { /// <summary> /// Represents the message. /// </summary> public class Message : Dictionary<string, string>, IMessage { /// <summary> /// Initializes a new instance of the <see cref="Message"/> class...
da2565294790cd56dea56d59f532f2cf05f1e832
C#
NicholasIbarra/Datastructures
/Algorithms/Practice/ValidNumber.cs
3.84375
4
using System; using System.Collections.Generic; using System.Text; namespace Datastructure.Algorithms.Practice { /* A valid number can be split up into these components (in order): A decimal number or an integer. (Optional) An 'e' or 'E', followed by an integer. A decimal number can ...
6f8b409e2ad4fb8d0979078f1d47cc6803210039
C#
Splatypus/Pupper_boy
/Assets/Scripts/UI/TextFadeOut.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class TextFadeOut : MonoBehaviour { TMP_Text text; [SerializeField] private float timeUntilFadeStarts = 1.0f; [SerializeField] private float timeToFadeOut = 1.0f; [SerializeField] ...
1b24b292f10726bf706a7fe3008d17799d7ba500
C#
gusev-p/algs
/c#/Algs/Tasks/Sorting/SortedArray.cs
3.78125
4
using System; namespace Algs.Tasks.Sorting { public static class SortedArray { public static Tuple<int, int> FindItemsWithSum(int[] array, int sum) { var i = 0; var j = array.Length - 1; while (i < j) { var s = array[i] + array[j]...
e079cfd43bd20126463471adbea294b4a9143566
C#
TopShares/CSharp-Study
/高级进阶/第31讲:.NET中常用的加密和解密方法/第31讲:.NET中常用的加密和解密方法/授课笔记和源码/EncryptAnDecrypt-xiketang.com/EncryptAnDecrypt-xiketang.com/CommonClass/BasedDESEncrypt.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; namespace EncryptAnDecrypt_xiketang.com { public class BasedDESEncrypt { private static string key = "xiketang.ke.qq.com";//这个可以采取动态获取的方式。 //可以通过用户输...
ee88fe1a57f2b3a21a374e55000804a9d9ede086
C#
vulcanlee/Xamarin2021
/xf006/xf006/xf006/ViewModels/MainPageViewModel.cs
3.171875
3
using System; using System.ComponentModel; using System.Windows.Input; using Xamarin.Forms; namespace xf006.ViewModels { public class MainPageViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; // 宣告要進行 命令 綁定的來源物件 public ICommand HelloCommand ...
96c2eb1d629b636675b3af2778e07d0fc76b2af3
C#
xeon2007/Fly.Net
/Fly.Util/Token/TokenHelper.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fly.Util.Token { public class TokenHelper { static string SecretKey = "Fly.XXXPZ"; /// <summary> /// 生成token 根据用户名信息 /// </summary> /// <param n...
05a153a14bef87eaa61d1b61cd8bbc4d87179cf0
C#
BittnerBarnabas/SmartBank
/SmartBankDesktop/Model/LoginModel.cs
2.875
3
using System; using System.Net.Http; using Serilog; using SmartBankDesktop.Model.Utils; namespace SmartBankDesktop.Model { internal class LoginModel { private readonly ILogger LOG = Log.ForContext<LoginModel>(); public event Action<BankEmployee, bool> LoginAttemptEvent; public void L...
bba8aa8edfa9e0746d9b6f90ec26cfbfebc75691
C#
Rn11/Memory-Csharp
/Memory/Memory/Logik.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Memory; using System.Collections; using System.Windows.Forms; using System.Drawing; using System.Timers; namespace Memory { class Logik { private static int tmpIDa = 0; pri...
7948c306966c4d26dfbddfd5084ace51b4a4ec48
C#
Tso-Battleship/A2014-Battleship
/BattleShip-2014/BattleShip-2014/Piece.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BattleShip_2014 { public class Piece : DescriptionPiece { private int positionX_, positionY_; private Rotation rotation_; /*Les 5 constructeurs avec différent...
e9bb02d9c5ae84e6fdb26c26f59c6a93fc1c86a8
C#
warny/MapForge.Net
/MapForge.Net/trunk/MapCore/Util/LRUCache.cs
2.515625
3
/* * Copyright 2010, 2011, 2012 mapsforge.org * * This program is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later version. * * T...
5999be57937b3e940efbf5ac0d186acaeddaebe0
C#
targeton/DesignPatternLearn
/StateDesignPattern/Program.cs
2.859375
3
using System; using System.Collections.Generic; namespace StateDesignPattern { class Program { static void Main(string[] args) { Context context = new Context(); var hours = new List<int>() { 3, 7, 13, 22, 19, -1, 8 }; foreach (var hour in hours) ...
2d07d65a9fb8985f0f4e52733b432b36797e8c37
C#
devAdaid/Stove_GameJam_October
/Assets/Scripts/Data/Stat/StatStaticDataHolder.cs
2.546875
3
using System.Collections.Generic; using System.Linq; using UnityEngine; public class StatStaticDataHolder { private readonly Dictionary<StatType, StatStaticDataRecord> _dataByKey; public StatStaticDataHolder() { var records = Resources.LoadAll<StatStaticDataRecord>("Data/Stat"); ...
b0a5ce314661ff0a827a60b5c1c2d3f9035f6a1c
C#
andr0x/shadowsocksR-cshape
/ShadowsocksR/ZXing-back/BitmapLuminanceSource.cs
2.53125
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace ZXing { // Token: 0x02000061 RID: 97 public class BitmapLuminanceSource : BaseLuminanceSource { // Token: 0x060003A2 RID: 930 RVA: 0x00020A08 File Offset: 0x0001EC08 public BitmapLuminanceSource(Bi...
5937b51fbb2dce1965e8f689d53d4629c8e32d0c
C#
annaran/MusicDating
/Controllers/UsersController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using MusicDating.Models; using MusicDating.Data; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Mvc.Rendering; ...
f7092455f10e107f7bb9fd594eea8addb336b98e
C#
AhmedHafez98/MemorizeWords
/MemorizeWords/Add.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 MemorizeWords; namespace MemorizeWords { public partial class Add : Form { Main M;...
ebb7581d53275db4f6b34542c42b54f5b17a76f7
C#
netonjm/CGEngine
/CGEngine.Windows/Helpers/CGERandom.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CGEngine.Helpers { class CGERandom { private static Random _rnd; public static Random Rnd { get { if (_rnd == null) ...
76ccbc64992c8410c492ffb2c40e16ef8992a0a4
C#
plwh/SoftUni-train
/C#/Advanced/06. Regular Expressions/05.ExtractEmails/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _05.ExtractEmails { class Program { static void Main(string[] args) { string text = Console.ReadLine(); st...
e31c216e6b2abdee148f5b9b37effdbb61475a8d
C#
mdmamunfullstack/LayeredArchitectureDotNet
/LayeredArchitecture/LayeredArchitecture/DataAccess/Mapping/Implementation/EntityTypeMap.cs
2.703125
3
// Copyright (c) Philipp Wagner. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace LayeredArchitecture.DataAccess.Mapping { /// <summary> ...
1ee1651038ef2d21358b17451803a8c50e5394b6
C#
Anton13371/exzamen
/source/repos/WpfApp3/WpfApp3/Model/LocalDataProvider.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp3.Model { public class LocalDataProvider : IDataProvider { public IEnumerable<Buyer> GetBuyers() { return new Buyer[]{ new Buyer{Age=12,Da...
460e9b885415f68befc7657c011bde584062ad0c
C#
AscenKeeprov/Databases-Advanced
/Exercise5-EntityRelations/P01_StudentSystem.Data/EntityConfiguration/ResourceConfig.cs
2.59375
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using P01_StudentSystem.Data.Models; namespace P01_StudentSystem.Data.EntityConfiguration { public class ResourceConfig : IEntityTypeConfiguration<Resource> { public void Configure(EntityTypeBuilder<Resource> entityBu...
7abac00f042efb3bba6c8d32b33335b9442440c7
C#
kamalkraj/books
/Speed Programming/ProBattle 15/Round 2 our attemp/Projects/Test/Test/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Test { class Program { static void Main(string[] args) { var inputFile = new StreamReader("input.txt"); StreamWriter outputFile...
c35957932cb48e6e9c02ba2360c11d133f5a3cda
C#
enesozturk/ObajuShopping
/ObajuShopping/Interfaces/CartVisitor.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using ObajuShopping.Models; namespace ObajuShopping.Interfaces { public class CartVisitor : ICartService { ObajuEntities db = new ObajuEntities(); public BasketModel basketmodel() { ...
487e97b974beacabb4d7b8a5951a1296a8f581cb
C#
softawaregmbh/samples-wpf-uwp
/wpf/templates/CurrencyCalculator/CurrencyCalculator.BL/CurrencyCalculatorService.cs
3.09375
3
using System; using System.Collections.Generic; namespace CurrencyCalculator.BL { internal class CurrencyCalculatorService : ICurrencyCalculator { private class Entry { public String Name; // long form of currency name public String Country; // country currency i...
9a0e678638f84a78ff79ac5b214f6de22c745f94
C#
MatthewFairbank/dealeron
/DealerOn.Helpers/StringHelper.cs
3.125
3
using System; namespace DealerOn.Helpers { public static class StringHelper { public static string[] SplitByNewLine(string input) { return input?.Split(new[] { Environment.NewLine }, StringSplitOptions.None); } public static decimal ConvertColToDecimal(string value...
51a8ae8ca6b3f4ec786ad7ad71b1ffac360481b8
C#
danmaq/nineball
/XNA/tags/130815/Nineball/util/thread/CThreadPoolWrapper.cs
2.796875
3
//////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // danmaq Nineball-Library // Copyright (c) 2008-2013 danmaq all rights reserved. // //////////////////////////////////////////////////////////////...
c4a70775f5c391fc20cb3bbc579ecebdd77818c6
C#
mib71/CodeWars-Kata
/CSharp/7-kyu/SumOfOddNumbers/Program.cs
2.859375
3
using System; namespace SumOfOddNumbers { class Program { static void Main(string[] args) { Console.WriteLine(rowSumOddNumbers(42)); } public static long rowSumOddNumbers(long n) { return n * n * n; } } }
05fbf2e3f507354a2dff057ab42082c0e9b95c41
C#
LinLeng/SSASDiag
/SSASDiag/SSASDiag/SimpleMDXParser/MDXParser/MDXObject.cs
2.6875
3
namespace SimpleMDXParser { using System; public class MDXObject { private string m_CanonicalName; private MDXFunctionOpt m_Opt; private MDXDataType m_ReturnType; private MDXSyntaxForm m_SyntaxForm; private string m_SyntaxTip; private MDXDataType m_ThisType;...
a3969f2c1be3e79832ef9b8be75f52fa57f9caa1
C#
ChrisBrandhorst/Touchee_HTTPServer
/iTunes/Media/Playlist.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Touchee; using System.Xml.Linq; namespace Touchee.ITunes.Media { /// <remarks> /// Represents an iTunes playlist /// </remarks> public class Playlist : Container, IPlaylist { #region Statics ...
14427f4d2eab340100cbe84ac920e4dd50bf3318
C#
mason-mcglothlin/structured-logging-talk
/src/LoggingExamples.ConsoleApp/Examples.cs
2.75
3
using System; using System.Data.SqlClient; using System.IO; using Dapper; using Serilog; using Serilog.Context; namespace LoggingExamples.ConsoleApp { public class Examples { public static void PlainTextAppending() { var logPath = Path.GetTempFileName(); var purchaseOrderNumber = 123456; File.AppendAll...
e89c44a3218a21bab7c7ba97cafeecc631a1e3ec
C#
ramcsamal/TestExtentions
/TestExtentions.Validations/Contols/DateValidation.cs
2.53125
3
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace TestExtentions.Validations.Contols { public class DateValidation { public bool BlankDateF...
cf57a4876165d89061bf07dc4c726af14d630924
C#
valsby/LearnTagHelpers
/LearnTagHelpers/Logic/TechTermRepository.cs
3.375
3
using LearnTagHelpers.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LearnTagHelpers.Logic { /// <summary> /// A class used to get and create techterm data. It is currently a dummy representation, /// only working in the RAM. /// </su...
5a5c413773a5023525c01895f7cc140134cb6e3c
C#
IvoDemerdjiev/CSharpOOP
/ObjectsHomework/Passthetime/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Passthetime { class Program { static void Main(string[] args) { int result = Environment.TickCount & Int32.MaxValue; Console.WriteLine("Sec=" + ...
ecd69bdb92c85d2e198740dba3d11bfebad85db7
C#
popcron/console
/Runtime/Converters/UShortConverter.cs
2.953125
3
using System; namespace Popcron.Console { public class UShortConverter : Converter { public override Type Type { get { return typeof(ushort); } } public UShortConverter() { } public override object Convert(string val...
b4b909dbe1ae8820d0fae9e0695c71b862c694b3
C#
unicaes-ing/practica-02-Mario-MT
/Practica2CS/Ejercicio5.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practica2CS { class Ejercicio5 { static void Main(string[] args) { int numcel; TimeSpan Ttrans; DateTime horaI, horaF; d...
ba72aef0c2844b136cacf2ce2fd10cf57e1d3f53
C#
sarahkaylor/IceProgrammingTest
/IceProgrammingTest/AvailableSources.cs
2.546875
3
using System.Collections.Generic; using PricingSourcesInterfaces; namespace IceProgrammingTest { public class AvailableSources { public IEnumerable<AvailableSource> GetAvailableSources() { yield return new AvailableSource("NYSE", new NyseSimulatedPricingSource.PricingSourceFactory()); ...
d99f8ef63bcdc66a6292d4ef4ee8fb5cfea0383f
C#
zsonglorman/News-Comparator
/ArticleCollector/WebScraping/NewsWebPortals/ScrapingBase.cs
2.734375
3
using ElasticsearchClient.Models.News; using ScrapySharp.Network; using System.Collections.Generic; namespace ArticleCollector.WebScraping.NewsWebPortals { /// <summary> /// Serves as an abstract base class for web scraping classes used for retrieving articles from different news portals. /// </summary> ...
836d62b9a9fcbffc72383acc739d8693ff57f32b
C#
stefansedich/AgnesBot
/src/AgnesBot.Core/UnitOfWork/UnitOfWorkFactory.cs
2.5625
3
using System; using System.Runtime.Remoting.Messaging; using Raven.Client; namespace AgnesBot.Core.UnitOfWork { public class UnitOfWorkFactory : IUnitOfWorkFactory { private readonly IDocumentStore _documentStore; private const string UNIT_OF_WORK_KEY = "UnitOfWorkFactory.CurrentUnit...
851688667234eab9228cbef507a801d87f36797a
C#
djsubzero/csound6net
/csoundAPI_Examples/Example8.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using csound6netlib; namespace csoundAPI_examples { public partial class CsoundAPI_Examples { /** * Example 8 - More efficient Channel Communications (in a single ...
419ceea242d9220e2197298ce38c709f1a505bc4
C#
gabrielweyer/unsupported-types
/tests/TableStorage.UnsupportedTypes.Tests/UnsupportedTypesTableEntityTests.cs
2.640625
3
using System.Collections.Generic; using FluentAssertions; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Table; using Xunit; namespace TableStorage.UnsupportedTypes.Tests { public class UnsupportedTypesTableEntityTests { [Fact] public void GivenUnsupportedProperty_Wh...
edbfaacfddda9e0ac47e9cdf2a2dc35a375d9dac
C#
smbc-digital/iag-contentapi
/src/StockportContentApi/Utils/Ensure.cs
2.546875
3
namespace StockportContentApi.Utils; public static class Ensure { public static void ArgumentNotNullOrEmpty(string variable, string name) { if (string.IsNullOrWhiteSpace(variable)) throw new ArgumentException($"'{name}' cannot be null or empty."); } public static void ArgumentNotN...
69971f3f29cd2c2e9d872466742167c167c0d3b8
C#
Fat-Cats/UnityFiles
/White Rose/Assets/Scripts/GameManagerScript.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManagerScript : MonoBehaviour { public List<GameObject> unitList; public List<GameObject> sectorList; public int counter; public int positionX; public int positionY; public GameObject unit; pub...
7b2c3bc900eccf1bb788ffc925ea92447d97a99f
C#
OlDEYSHINA/ContactsApp
/ContactsAppBLL/ProjectManager.cs
3.28125
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using Formatting = Newtonsoft.Json.Formatting; namespace ContactsAppBLL { public class ProjectManager { public static readonly string DefaultPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocu...