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 |
|---|---|---|---|---|---|---|
7bcfeedded5f738d56888d71429206f5e667d636 | C# | muhyilmaz/CSharpFullCourse | /CSharpCourse/CA.TypesVariables/Program.cs | 3.453125 | 3 | using System;
namespace CA.TypesVariables
{
class Program
{
enum Days
{
Pazartesi,Salı,Çarşamba,Perşembe,Cuma,Cumartesi,Pazar
}
static void Main(string[] args)
{
//Value Types
int number_1 = 10;
if ((int)Days.Pazar == 6)... |
7eac6b2ab945ec6251a4259ae7d04215be241b90 | C# | NeatCrown/PaperMarioBattleSystem | /PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/Global/Debug.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace PaperMarioBattleSystem
{
... |
bb985ba559e1c9efd1a6a8b77e7550d462a24c33 | C# | Zokatt/PirateCardGame | /Cards/Empty.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace PriateCardGame.Cards
{
/// <summary>
/// Empty card is used for card check
/// <para>this is has no health,damage and 0 coins</para>
/// </summary>
///<remarks>
/// Nikolaj
/// </remarks>
class Empty : CardBas... |
5798af1d94c639241debf2b2e73923efce595b9a | C# | dmitry-ui/c_nordic | /Lesson24/ASP.NET Core/L22_C01_empty_asp_net_core_app/DataValidation/OtherValueAttribute.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace L22_C01_empty_asp_net_core_app.DataValidation
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false... |
f927d028f8a49d5c5900964c20056097cb9cca12 | C# | EarthShaping/com.earthshaping.third-person-controller | /Runtime/Scripts/Character/States/AIJumpingCharacterState.cs | 2.546875 | 3 | namespace com.earthshaping.thirdperson.controller
{
/// <summary>
/// The character is in the air, and he jumped to achieve that
/// </summary>
public class AIJumpingCharacterState : AICharacterStateBase
{
public override void Update(Character character)
{
base.Update(cha... |
a70951e1f91809e60e5e14f4977d29763b28aa59 | C# | shendongnian/download4 | /code3/575145-13429752-31958484-2.cs | 2.765625 | 3 | public class instance : INotifyPropertyChanged
{
private int progress;
public int Progress
{
get { return progress; }
set
{
if (progress != value)
{
progress = value;
if (Property... |
4eb7bdbfa70e5ce01e8fb4f90ce73ab7bf88eada | C# | resatkrky/Bitirme-Projem | /Assets/Scripts/EnemyAI.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public enum AIState //AI'ın durumlarını numaralandr variable olarak kullan
{
Guarding,
Aert,
Attacking
}
public class EnemyAI : MonoBehaviour
{
public AIState enemyState;
public float speed; //an... |
73d412af4e8fde3fba02ef7f0b943d1598da24e7 | C# | dani5636/Registration | /VideoMenuUI/VideoUI.cs | 3.03125 | 3 | using System.Collections.Generic;
using VideoMenuBLL;
using VideoMenuBLL.BusinessObjects;
using static System.Console;
namespace VideoMenuUI
{
class VideoUI
{
static BLLFacade bllFacade = new BLLFacade();
public static void VideoMenu()
{
#region Menu It... |
5195b9e705d2f518860c4e46aa5eac1f1505240f | C# | NightRoadIx/Curso-C- | /beispiel33.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FireSharp.Config;
using FireSharp.Response;
using FireSharp.Interfaces;
namespace databasizacion
{
class Estudiante
{
// Atributos
public int RollNo { get; set... |
ebbb6ea34a5045507e5a32718079fd0ce478e5f0 | C# | kasmeltz/PizzaEmpire | /Client/Unity2/Assets/Code/Resources/LightweightResourceManager.cs | 3.03125 | 3 | namespace KS.PizzaEmpire.Unity
{
using KS.PizzaEmpire.Common;
using System;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Manages the resources used in the game.
/// Doesn't use referene counting and is suitable for items that
/// are very lightweight and will live in memory for the
... |
2e270b0fcd03ea171e475d9b2ae2746ce48a17a5 | C# | CrimeMasterGogo31/DsAlgoSample | /CodeForces/ArrayRestoration.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace DemoConsole.CodeForces
{
public class ArrayRestoration
{
//public static void Main()
//{
// int t = Convert.ToInt32(Console.ReadLine().Trim());
// while (t-- != 0)
// {
// ... |
4a24382cae481377a3a5bba659e61d2b123f8326 | C# | ezemanzano/Labo2 | /labo2/Ejercicio33/Libro/Class1.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Libros
{
public class Libro
{
List<string> paginas;
public Libro()
{
this.paginas = new List<string>();
}
/// <summary>
//... |
3b96a6a5399f181c64909f5f0b7922c23a0fb97a | C# | harindya/Black-Dot-Test | /Bds.Tech.Test/Model/ResultMixer.cs | 2.75 | 3 | using Bds.Tech.Test.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bds.Tech.Test.Model
{
public class ResultMixer
{
IList<ISearchEngine> searchEngines = new List<ISearchEngine>();
public void RegisterSearchE... |
d344d4a03333a35cd8c946c07e8bc9bd3a5a50cb | C# | yavuzkocar/art-eksi | /Program.cs | 3.359375 | 3 | using System;
namespace artieksi
{
class Result
{
/*
* Complete the 'plusMinus' function below.
*
* The function accepts INTEGER_ARRAY arr as parameter.
*/
public static void plusMinus(string arr)
{
char[] bosluk = new char[] { ' ', '.' };
string[] sayi = arr.Spli... |
93ffc6ac2b081efd13fdb437c686206fa735e954 | C# | emoacht/Wifinian | /Source/Wifinian/Views/Controls/SimpleToggleButton.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace Wifinian.Views.Controls
{
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Mous... |
89dc8c52847aeca4aacc52d757f021d28318aa23 | C# | Lucasciappa/.Net-Curso | /Observer/Observer/Graph.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Observer
{
public class Graph<T> : Observer<T>
{
public Graph() : base()
{
}
public Graph(T data) : base(data)
{
}
public override void Update(T data)
{
Console.WriteLine("Hola soy Graph -> " + data.ToString());
}
... |
2e3aa9f9e3c697f95044375c9e4576278e5b51ac | C# | john-clark/rust-oxide-umod | /old/plugins/rust/BetterBatteries.cs | 2.65625 | 3 | using Newtonsoft.Json;
using Oxide.Core;
namespace Oxide.Plugins
{
[Info("Better Batteries", "Orange", "1.0.1")]
[Description("Allows players to get better batteries")]
public class BetterBatteries : RustPlugin
{
#region Vars
private const string permUse = "InfiniteBatteries.use";
... |
42e894a6a59ca5228444dfbecce32d684b2b4917 | C# | chenjiancheng/WindowsService1 | /WindowsService1/Utils/IPUtil.cs | 2.6875 | 3 | using NLog.LogReceiverService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
class IPUtil
{
public const int PORT_TREE = 44675;
public static string[] G... |
69fedee7ad524d1e873560bd294b467299ea6be9 | C# | shendongnian/download4 | /first_version_download2/595916-57904280-205217655-4.cs | 2.59375 | 3 | public async Task<bool> InsertCard(Card card)
{
try
{
await _dbContext.AddAsync(card);
_dbContext.SaveChanges();
return true;
}
catch
{
return false;
}... |
220447d2bddd1b0a03400202398164e4e5ff2d71 | C# | chadbengen/Finbuckle.MultiTenant.Contrib | /src/Finbuckle.MultiTenant.Contrib.Strategies/FormStrategyConfiguration.cs | 2.671875 | 3 | using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
namespace Finbuckle.MultiTenant.Contrib
{
public class OptionSnapshotFormStrategyConfiguration : IOptionsSnapshot<FormStrategyConfiguration>
{
public OptionSnapshotFormStrategyConfiguration(FormStrategyConfiguration va... |
3777f7bfb255cfd20f969739c909c1b9e2435fd6 | C# | Skytim/FormTest | /Test/DataSourceSpecial.cs | 2.96875 | 3 | using System.Collections.Generic;
using System.Data;
using System.Windows.Forms;
namespace Test
{
public class DataSourceSpecial
{
public static DataTable CreateSource(DataGridView productTable, Dictionary<string, string> scrapeData)
{
var table = new DataTable();
table... |
2493831463b6ac140a4b031bc353d88920138b6e | C# | Unit67/MDSimulator | /Assets/_Skrypty/_SaveSystem/SaveSystem.cs | 2.796875 | 3 | using UnityEngine;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
public static class SaveSystem
{
public static void SavePlayer(PlayerController player)
{
BinaryFormatter binaryFormatter = new BinaryFormatter();
string path = Application.persistentDataPath + "/player.MD... |
4c8c1c781f5cec673ff8de3cd0f7cff2c4f5e9e4 | C# | gocevskam/CSharp | /01Homework.Arrays/05.MaxIncreasingSequence/MaxIncreasingSequence.cs | 4.03125 | 4 | using System;
class MaxIncreasingSequence
{
static void Main()
{
int[] array = {3, 5, 4, 6, 8, 9, 10, 11, 15, 4, 5, 2, 3 };
int maxSequence = 0;
int seqence = 1;
int endIndex = 0;
for (int i = 0; i < array.GetLength(0) - 1; i++)
{
if (array[i] < arr... |
bcd5c1e8994146bd1b830d50fef50d80867e6951 | C# | Mikah-Kainen/FlappyBirdForNeuralNetTesting | /FlappyBird/GameObject.cs | 2.640625 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Text;
namespace FlappyBird
{
public abstract class GameObject
{
public Vector2 Pos { get; set; }
public Vector2 Size { get; set; }
public Vector2 Scale {... |
a97f37e96e75bc650e37ca5618a4ad4daa083282 | C# | lostmsu/Quarrel | /src/Quarrel/Converters/AuditLog/ChangeToVisibilityConveter.cs | 2.734375 | 3 | // Copyright (c) Quarrel. All rights reserved.
using DiscordAPI.API.Guild.Models;
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace Quarrel.Converters.AuditLog
{
/// <summary>
/// Converter to check if change needs to be shown.
/// </summary>
public class ChangeToVisibilityCo... |
b34e75320e8e7fe3db00db3e66e7f64561e1bca5 | C# | Lotus-heart/Job_Schedule | /JCB.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
namespace 作业调度C_sharp
{
public enum Status { Wait, Run, Finish };
[Serializable]
public cl... |
ffc38ee02956012b0f2a3203d672daf223b5f677 | C# | genyosha/Isp01_batrak_vd_mdk0101 | /self_task/work 20.02.2020/projects/SampleConsoleApp_01/Hierarchy01/Student.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace batrak_20._02
{
class Student : Person
{
private int course;
private string group;
public int Course
{
get
{
re... |
91686534f51582190ec2956aeb7ec3ef004a5433 | C# | mguid65/RTC3 | /Real-Time Corruptor/BizHawk_RTC/BizHawk.Common/AWEMemoryStream.cs | 2.796875 | 3 | using System;
using System.IO;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace BizHawk.Common
{
/// <summary>
/// A MemoryStream that uses AWE to achieve a large addressable area, without being subject to 32 bit address space limits.
/// </summary>
public class AWEMemoryStream : S... |
9515b3b27aa253e57a27bc57ce5f36680a16356c | C# | tpsa/pwsg | /wpftutorials/pwsg2/Form1.cs | 2.65625 | 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;
namespace pwsg2
{
public partial class Form1 : Form
{
Color[,] tab;
public Form1()
{
Initi... |
cb6cc2c49688ad25547bd5de9078eb8b6da5a9b0 | C# | Enthralment/WebService | /ASP_Hook/Controllers/ValuesController.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using HookLib;
using Newtonsoft.Json;
namespace ASP_Hook.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
static string entryAddr;
... |
e2834f7096fd308d6a4fcf8253cd5d1a64f7d5be | C# | UnitedTraders/Shtirlitz | /Shtirlitz/Common/IStage.cs | 2.8125 | 3 | using System.Threading;
namespace Shtirlitz.Common
{
/// <summary>
/// Describes one stage in one report generation.
/// </summary>
public interface IStage
{
/// <summary>
/// Gets the root directory of the report.
/// </summary>
string RootPath { get; }
//... |
2c46b4b6e86c65f85e002f72e3adc2ac067f4b81 | C# | shendongnian/download4 | /first_version_download2/407763-35602940-111644825-2.cs | 2.734375 | 3 | public class EnStatusEnum Converter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return ((enStatus)value).ToString()
}
public object ConvertBack(object value, Type targetType, object parameter, Cultu... |
64cc37f48791b7e969add0d0db5dfe9135075c4d | C# | HarveyHuBJ/PowerWorkflow | /PowerWorkflow/Workflow/PowerThreadStateMachine.cs | 2.609375 | 3 | using Newtonsoft.Json;
using PowerWorkflow.Enums;
using PowerWorkflow.Workflow.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace PowerWorkflow.Workflow
{
public class PowerThreadStateMachine
{
/// <summary>
/// 节点到节点的自然转换
/// </summary>
pu... |
8bad2a226c5003f2a62e5fdc3cc659ea37fb1032 | C# | H0nok4/Unity-Training | /目前在做的/SRPG/SRPG DEMO/Assets/Script/Gameplay/BuffSystem/BuffManager.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class BuffManager
{
//每个角色都有一个BuffManager实例
private SrpgClassUnit m_Unit;
private List<Buff> m_Buffs;
public BuffManager(SrpgClassUnit unit)
{
m_Unit = unit;
m_Buffs = new List<Buff... |
3ffb6c19c4d638d5e3b07e775650f3a7072ec02b | C# | jonmholt/thoughtworks | /thoughtworks/ReceiptFormatter.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace thoughtworks
{
public class ReceiptFormatter
{
static public string getReceipt(List<IItem> list)
{
double tax = 0;
double total = 0;
string receipt =... |
661297ca85282c017048ab76cff7a87437f5f944 | C# | jlavoine/DotR | /DotR/Assets/Scripts/DotR/Abilities/AbilityData.cs | 2.984375 | 3 | using System.Collections.Generic;
//////////////////////////////////////////
/// AbilityData
/// Immutable data for an ability.
//////////////////////////////////////////
public class AbilityData : GenericData {
// name of the ability
public string Name;
// brief description of the ability
public st... |
f3e53ac432f5d3d4e043b35e18b75b8ede7ce547 | C# | a-haapa/village | /village/TaskDB.cs | 2.765625 | 3 | using System.Data;
using System.IO;
using System.Data.SQLite;
using System.Data.SQLite.Linq;
using System;
using System.Collections.Generic;
namespace village
{
public static class TaskDB
{
private static string filename;
private static string tablename;
private static string tablename... |
ef4a3706a7a73ea231bb36217c947e892efd40b9 | C# | DanTup/Google-Wave-Notifier | /GoogleWaveNotifier/Enc.cs | 3.421875 | 3 | using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
namespace GoogleWaveNotifier
{
/// <summary>
/// Simple encryption to avoid storing plaintext usernames/passwords in the config file.
/// This is not very secure - if someone has a copy of Google Wave Notifier and your co... |
1ad305344f39e03ad02d024fe12652e9cd78bd80 | C# | shendongnian/download4 | /code10/1730667-50141829-172574993-2.cs | 3.609375 | 4 | //Change #1 -- new type with space for each attribute
public class Employee
{
public string Name {get;set;}
public string code {get;set;}
public bool Left {get;set;}
}
// ...
public IEnumerable<Employee> GetEmployees(bool Left)
{
//Change #2 -- ask for other f... |
5458f2ff007bd9dbdd6b135c83e3bd3231a9908e | C# | elifmacit/ClassMetotDemo | /MusteriManager.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace ClassMetotDemo
{
class MusteriManager
{
List<Musteri> musteriler = new List<Musteri>();
public void Ekle(Musteri musteri)
{
String mesaj = "\n\nTebrikler! Müşteri başarıyla eklendi.";
... |
903d6f6ff5f1ec17b29cee73a05afbd2940885bd | C# | bpbrox/GeniApiSample | /GeniApiSample/JsonDictionary.cs | 3.15625 | 3 | /****************************** Module Header ******************************\
Module Name: JsonDictionary.cs
Project: GeniApiSample
Copyright (c) Bjørn P. Brox <bjorn.brox@gmail.com>
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMIT... |
4b8efefa9299831e0578f819e56b78967d35c7cd | C# | pakrologie/jeuDeDame | /Jeu De Dame - Serveur - Copie/Jeu De Dame - Serveur/CheckTime.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace Jeu_De_Dame___Serveur
{
class CheckTime
{
static Mutex mut = new Mutex();
public static void CheckDuration()
{
while (true)... |
99385a88010ba830d3c86fa3f558805839b556b0 | C# | VB6Hobbyst7/v7-framework | /src/Xeora.CLI/Program.cs | 2.5625 | 3 | using System;
using System.Reflection;
using System.Threading.Tasks;
using Xeora.CLI.Basics;
namespace Xeora.CLI
{
public static class Program
{
public static async Task Main(string[] args)
{
if (args == null || args.Length == 0)
{
Program.P... |
8b6fd1463218e87910c6d564e0b134318e3a0aff | C# | a592955699/M8cool | /InfoSniffer/PageRequestManager.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text.RegularExpressions;
using System.Collections.Specialized;
using System.IO;
namespace InfoSniffer
{
public class PageRequestManager
{
public stati... |
42afefd765bb71047708aca2617d2a12baaf6f95 | C# | Weiaett/dotNetLabs | /lab1/lab1/Actors/Illustrator.cs | 3.1875 | 3 | using System;
using lab1.Products;
namespace lab1.Actors
{
/// <summary>
/// Иллюстратор
/// </summary>
public class Illustrator : Actor
{
public Illustrator(string name) : base(name)
{
}
/// <summary>
/// Иллюстратор добавляет иллюстрации к уже написанным ... |
d267d5605b4a6da999f0e3b9217d4f29ee41a711 | C# | GermanKurochkin/10 | /lab10/Engine.cs | 3.28125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace lab10
{
public interface IExecutable
{
void Show();
int ToWatt();
}
public class SortByPower:IComparer
{
int IComparer.Compare(object obj1, object ob... |
e0d3241b238bf7d224b4db6ede6bb6f32391dd82 | C# | Guad-in/C-Sharp | /Rock_P_S/Rock_Paper_Scissors.cs | 3.4375 | 3 | //Take user input
//Generate a random choice
//Compare the choice
//Declare the winner
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RockPaperScissors
{
public class Rock_Paper_Scissors
{
public static void Main(string[] args)
{
s... |
8ddce568b170a0a04475bb6e62e60b07f2fd9de5 | C# | CollaboratingPlatypus/PetaPoco | /PetaPoco/Core/GridReader.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using PetaPoco.Core;
using PetaPoco.Internal;
namespace PetaPoco
{
public class GridReader : IGridReader
{
private readonly Database _db;
private readonly IMapper _defaultMapper;
private IDbCommand _c... |
d00898130762f082e4b9c9c29538e249b75881f1 | C# | ldl2/C- | /week1/Human2/Wizard.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
namespace Human
{
public class Wizard : Human
{
public Wizard(string _name) : base(_name)
{
intelligence = 25;
health = 50;
name = _name;
}
public void Heal()
{
this.health += ... |
31764ee2a1c64cc3d73fe73f1668ab68709d012a | C# | destroyer0fWorlds/TypeSearch | /TypeSearch.Tests/BoolTests.cs | 2.671875 | 3 | using System.Linq;
using System.Collections.Generic;
using Xunit;
using TypeSearch.Tests.Mocks;
namespace TypeSearch.Tests
{
public class BoolTests
{
[Fact]
public void Bool_IsEqualTo_Search()
{
// Arrange
var testCollection = new List<TestEntity>()
... |
825b71bed5098121681880d4316a23e42601cc8c | C# | mwpowellhtx/Kingdom.Protobuf | /src/Kingdom.Protobuf.Descriptors/Strategies/IDescriptorVisitor.cs | 2.5625 | 3 | // ReSharper disable once IdentifierTypo
namespace Kingdom.Protobuf
{
/// <summary>
/// Represents a <typeparamref name="T"/> <see cref="IDescriptor"/> Visitor pattern.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IDescriptorVisitor<in T>
where T : IDescriptor
{
... |
90dd69b5a71366de5d06c521b4a3ac3515d5c2b1 | C# | clethbridge/EntityQueryLanguage | /EntityQueryLanguage.Components/Models/EntityType.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace EntityQueryLanguage.Components.Models
{
[DebuggerDisplay("{EntityKey}")]
public class EntityType
{
/// <summary>
/// A unique key used to identify and map the subject Entity Type to a dat... |
088a087bfdea927d1cfbccc4606f8eb5ac11969c | C# | michal-kindl/generate-diagrams-from-source-code | /ClassDiagramGenerator.cs | 3.015625 | 3 | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System.IO;
// ClassDiagramGenerator from https://github.com/pierre3/PlantUmlClassDiagramGenerator
namespace Diagrams
{
/... |
1af5c5dad5ab5ffa647070c73cb275d47c6e2dc0 | C# | AVPolyakov/SharpLayout | /SharpLayout/ReflectionUtil.cs | 2.71875 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace SharpLayout
{
public static class ReflectionUtil
{
private static readonly ConcurrentDictionary<MethodInfo, PropertyInfo> propertyDic... |
b3be668c3d5a984ae1a71a9f494595d16e036940 | C# | NesQ1kx/Drocsid | /Dal/ForumDao.cs | 2.59375 | 3 | using DalContracts;
using Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dal
{
public class ForumDao : IForumDao
{
public List<Topic> GetForIndex()
{
List<Topic> topics;
using (var ... |
d39468da9ddda60e3cb523a757ab5609c974642e | C# | maolen/Profile | /Services/AuthService.cs | 2.890625 | 3 | using Domain;
using Profile.DataAccess;
using Services.Abstract;
using System.Linq;
using System.Text.RegularExpressions;
namespace Profile.Services
{
public class AuthService : IAuth
{
private readonly Context context;
private BcryptHasher bcryptHasher = new BcryptHasher();
public Au... |
be5ec2f051a3dd17e775f1066987fea3bb8d4c4c | C# | rinavin/RCJS | /CefSharp.MinimalExample-master/magic/Sources/RichClientDotNet/Controls/com/magicsoftware/Editors/TreeEditor.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using com.magicsoftware.controls;
using System.Windows.Forms;
using System.Drawing;
namespace com.magicsoftware.editors
{
/// <summary>
/// implement editor for tree
/// </summary>
public class TreeEditor : Editor
{
privat... |
b8a7c635a3cd3176940538a22a1df0babed4a702 | C# | nehachauhan14/blog-api | /BloggerApp/Controllers/BloggerController.cs | 2.765625 | 3 | using BlogsDataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace BloggerApp.Controllers
{
public class BloggerController : ApiController
{
[HttpGet]
public HttpResponseMessage GetBlogersList()
... |
32c13be82bf50fec4b7652fbdc981e008e322a49 | C# | bmegana/sdgamejam2019 | /JourneyToTheHorizon/Assets/Scripts/GatherWater.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GatherWater : MonoBehaviour
{
bool bHaveWater = false;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if ( Input.G... |
71322103faf7475a94678504496fd7d0ae590d1e | C# | co185057/MeijerTESTSVN | /Meijer/Platform-Core-Patch/LaunchPadNet/Executable.cs | 2.640625 | 3 | using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Threading;
using System.Text ;
using System.Collections;
using RPSWNET;
using CommonLibsNet;
namespace LaunchPadNet
{
/// <summary>
/// Summary description for Executable.
/// </summary>
public class Executable
{
... |
4f3197571bd0822a027cabf8f82438419375b7b9 | C# | piotr0sawicki/Polygon_Projekt_20Z | /Assets/Scripts/HealthComponent.cs | 2.828125 | 3 | using UnityEngine;
using UnityEngine.Assertions;
public class HealthComponent : MonoBehaviour
{
[SerializeField, Range(1.0f, 1000.0f)] private float maxHealth = 10.0f;
private float currentHealth = 1.0f;
public event System.Action OnHealthChange;
public event System.Action OnHit;
public event S... |
cd5678e4866335aaaf0d101ac4b0c1fad6c66163 | C# | PDmatrix/advent-of-code | /CSharp/Solutions/2017/22/Year2017Day22.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using AdventOfCode.Common;
using JetBrains.Annotations;
namespace AdventOfCode.Solutions._2017._22;
[UsedImplicitly]
public class Year2017Day22 : ISolution
{
private const string Directions = "URDLURDL";
private const string PossibleStates = "... |
358934ab2af14e69124d47051411b64bdaf22604 | C# | kunkliricsi/Snake-AI | /Handlers/StrategyHandler.cs | 2.828125 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Kukac.enums;
using Kukac.interfaces;
using Kukac.kukac;
namespace Kukac.ai.Handlers
{
using Strategies;
/// <summary>
/// The God object. It's purpose is to handle all end every str... |
dedc9097cfb9278c8838ea80c00face87218ef55 | C# | chakrabar/Dorkari | /Dorkari.Helpers.File/Compresser.cs | 3 | 3 | using ICSharpCode.SharpZipLib.Core;
using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.Tar;
using ICSharpCode.SharpZipLib.Zip;
using System;
using System.IO;
namespace Dorkari.Helpers.Files
{
public class Compresser //from SharpZipLib samples
{
public void CreateTarGZipFromDirectory(str... |
a2a85f58e2465906a98bb03475db45edc674a01a | C# | BryanApellanes/Bam.Net | /shared/bam.net.shared/Testing/Specification/ItContext.cs | 2.78125 | 3 | using Bam.Net.CoreServices;
using System;
using System.Collections.Generic;
using System.Text;
namespace Bam.Net.Testing.Specification
{
public class ItContext
{
Queue<AssertionAction> _shouldQueue;
public ItContext()
{
_shouldQueue = new Queue<AssertionAction>();
... |
b3afdb87c47ab673c6e82a64c072ead415e1a33d | C# | N3X15/Kerbal-Mod-Manager | /KMM/Repositories/Mod.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Windows.Forms;
using System.IO;
namespace KMM.Repositories
{
/// <summary>
/// Stores data regarding a mod.
/// </summary>
public class Mod:DataGridViewRow
{
... |
9de4df232ca770d574b7eb87a771275bdb508af9 | C# | DangouHaim/AnalyticsTools | /AnalyticsTools/BLL/UniversalAnalitics.cs | 2.671875 | 3 |
namespace AnalyticsTools
{
class UniversalAnalytics
{
private readonly IGoogleAnalytics _googleAnalytics;
private readonly IYandexDirect _yandexAnalytics;
public UniversalAnalytics()
{
_googleAnalytics = new GoogleAnalytics();
_yandexAnalytics = new Yan... |
fc1f7040f1479c26651bab7dafdd41b7359fd2ae | C# | kepengProgramCode/User | /Hnt.StackTray/Hnt.StackTray/Hnt.Business/Common/ViewPages.cs | 2.515625 | 3 | using Hnt.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hnt.Business.Common
{
public class ViewPages : INotifyPropertyChanged
{
private int _number;
public int Number
{
... |
09d01d6e62939045984716b4745af9e177b7006b | C# | Codeators/WebAPI-Test-Environment | /Servers/ASP.Net C#/WebAPI2/Controllers/EmployeesController.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Claims;
using System.Web.Http;
using WebAPI2.Models;
namespace WebAPI2.Controllers
{
public class EmployeesController : ApiController
{
[AllowAnonymous]
[HttpGet]
... |
86ada46e37385425e03ab86b0184e56bd39d5925 | C# | subrotocse/Web-App-Development-DOT-NET | /OOP Example1/OOP Example1/Person.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP_Example1
{
class Person
{
public string firstName;
public string middleName;
public string lastName;
public string nId;
public Person(string... |
2e0922f99e4d551c6eb7d553561bed186c82095d | C# | kr105/svn-dump | /Shaiya Tools/Shaiya Editor/Editor.Lib/ShaiyaDataWriterHelper.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Editor.Lib {
public class ShaiyaDataWriterHelper {
public static byte[] GetHeader() {
List<byte> headData = new List<byte>();
headData.AddRange(
new byte[]{
0x53, // S
0x41, // A
0x48, // H... |
13f821c455e4962fc5f65f750f8001015dbc0c2b | C# | AlexCazan/IMR2 | /IMR2_VRTK/Assets/VRTK/LegacyExampleFiles/ExampleResources/Scripts/DrawLines.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawLines : MonoBehaviour
{
private LineRenderer lineRenderer;
public GameObject creta;
void Update()
{
if (Input.GetMouseButtonDown(1))
{
GameObject drawing = Instantiate(creta);
... |
5e154c2a5d5ab1aea1eda303cbb447f9b9d954be | C# | guraleks/FileManager | /LocalFileManager.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace FileManager
{
// Класс, реализующий методы для локальной работы с файлами
public class LocalFileManager : IFileManager
{
private const string separator = "_version_";
public void CreateFile(strin... |
8ebdb5c41fcfd169c6431ee5582ea367351bf568 | C# | ColdMatter/EDMSuite | /ScanMaster/ProfileSet.cs | 2.75 | 3 | using System;
using System.Collections;
using System.Xml.Serialization;
namespace ScanMaster
{
/// <summary>
/// The class provides a convenient way to XmlSerialize and deserialize the set of profiles.
/// That is it's only function.
/// </summary>
[Serializable]
public class ProfileSet
{
public ProfileSet()
... |
5536111c60b1971841dafda017505c5aa24a7754 | C# | abhi62255/AmazonDream | /AmazonDream.BLL/ProductSuggestion_BLL.cs | 2.65625 | 3 | using AmazonDream.DAL;
using AmazonDream.Entities;
using AmazonDream.ViewModels;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
namespace AmazonDream.BLL
{
public class ProductSuggestion_BLL
{
private readonly IMapper _mapper;
public ProductSuggestion_BLL(... |
9c2b97f613759ec0595a1f3bdc077fac86ede3d5 | C# | javivi235/APICentral | /APICentral/Controllers/ProductController.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Services;
using Services.Models;
namespace APICentral.Controllers
{
[Route("crm-api/products")]
public class ProductController : Cont... |
914b19843d0dc53aefa71a6ee42f37468dcd661b | C# | nxtman123/pupper-hunt | /pupper_hunt/Profile.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace pupper_hunt
{
public class Profile
{
public string Name { get; protected set; }
public string Bio { get; protected set; }
public Ima... |
1d320b6b0147e709039898aec598dfb2b07a531a | C# | Divyashree-Muddagangaiah/LibraryManagement | /Library Management System/Training.LMS.App/Menu.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Training.LMS.Core;
using Training.LMS.Core.Model;
namespace Nalashaa.Training.LMS
{
static class Menu
{
static Business instance;
static Business Instance
{
... |
9831f0406ea6fc8dd09e5987ffffcf122582c647 | C# | ZimCodes/self_learning_projects | /Design Patterns/Structural Pattern/Decorator/Decorator.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Decorator
{
class Decorator:Sandwich
{
public Sandwich sandwich;
public Decorator(Sandwich sandwich)
{
this.sandwich = sandwich;
}
... |
e0c8416258534e0e5195b4edafe8b56574eb6336 | C# | sidby/Sklad1 | /SidBy.Common/Helpers/StringHelper.cs | 3.109375 | 3 | using System.Text;
namespace SidBy.Common.Helpers
{
public static class StringHelper
{
public static string Transliterate(string source)
{
return Transliterate(source, true);
}
public static string Transliterate(string source, bool trimtolower)
{
... |
55b7ad634dad1811d58a5acd9e9cc4d58ecb39bf | C# | AshV/Cracking-the-Code-P2P-App-Development | /C# Version/P2P/WorkingWithXML/clsXMLParser.cs | 3.25 | 3 | namespace WorkingWithXML
{
using System; // Provides the basic functionality of .NET
using System.Net; // Provides the net related functionality
using System.IO; // Provides the I/O functionality
using System.Text; // Provides text based manipulations
/// <summary>
/// Generic structure used for parsin... |
7689200a1373c15b59bce71a21fb5a94d300052b | C# | ovpoddar/Shop | /Test/Shop.Tests/HandlersTests/WholesaleTest.cs | 2.609375 | 3 | using DataAccess.Entities;
using DataAccess.Repositories;
using Moq;
using Shop.Handlers;
using Shop.ViewModels;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace Shop.Tests.HandlersTests
{
public class WholesaleTest
{
private readonly Mock<IGenericRepository<WholesaleSize>> ... |
cc1d5b5d2a2a9bb364c22b491f2899a65fb592b0 | C# | medjedovic/WpfCRUD | /WpfCRUD/MainWindow.xaml.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
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.Inp... |
10e48756e5fe30973ea020ded7b5cc48b0a12284 | C# | Anzzhhela98/CSharp-Fundamentals | /Data Types and Variables/Data Types and Variables - Lab/02. Pounds to Dollars/Program.cs | 3.109375 | 3 | using System;
namespace _02._Pounds_to_Dollars
{
class Program
{
static void Main(string[] args)
{
decimal pouds = decimal.Parse(Console.ReadLine());
decimal leva = pouds *(decimal) 1.31;
Console.WriteLine($"{leva:f3}");
}
}
}
|
885f54a57b3410934f42ad21bd8a289748b50e36 | C# | Smoggert/BubbleShooter | /BubbleShooter/BubbleShooter/BubbleShooter/Classes/Side.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using BubbleShooter;
namespace BubbleShooter.Classes
{
class Side
{
Vector2 normal;
float distance;
public Side(float distance ,... |
de1ef5223d07393c43de2371afef2dd3f22dc1de | C# | prasanjeetd/dotnet-core | /Practice.Classlibrary/Data Structures/TreeTraverseEfficient.cs | 3.71875 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace Practice.Classlibrary.Data_Structures
{
//https://www.geeksforgeeks.org/level-order-tree-traversal/
public class TreeTraverseEfficient
{
public void Traverse(Tree tree)
{
Queue<Tree> Q = new Queue<Tre... |
ff41d70f2cf8d78783ae89ff7ddcdcd4e774bc43 | C# | mbarnes16/TicketingSystem-With-Classes | /Display.cs | 3.390625 | 3 | using System;
using System.IO;
namespace TicketingSystem
{
public class Display
{
public void menuChoice(){
Console.WriteLine("1) Read data from file.");
Console.WriteLine("2) Create file from data.");
Console.WriteLine("Enter any other key to exit.");
... |
6b4b097acd58ed4833ef482f7fb026865513d429 | C# | EdLichtman/HelloAzureCI | /HelloAzureCIUnitTests/ConnectionStrings.cs | 2.671875 | 3 | using System;
using System.Configuration;
using NUnit.Framework;
namespace HelloAzureCIUnitTests
{
[TestFixture]
public class ConnectionStrings
{
[Test]
public void Should_not_be_null()
{
string testConnectionString = ConfigurationManager.ConnectionStrings["Test"].Conne... |
cd9ee854956b9dd2216fe5cf41552ba7f93fcb54 | C# | a498497672/Code-TicketOTA2 | /Ticket.Infrastructure.KouDaiLingQian/Lib/SecretUtilTools.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Ticket.Infrastructure.KouDaiLingQian.Lib
{
public class SecretUtilTools
{
/// <summary>
/// 加密
/// </summary>
/// <p... |
8d08e208cfe9296ec823a8aa64b76c9feda79a1b | C# | dave/dontstayin | /Spotted/Js/Desktop/ClientControls/SuggestionsCollection.cs | 2.796875 | 3 | using System;
using Js.Library;
using Js.AutoCompleteLibrary;
namespace Js.ClientControls
{
public delegate void SuggestionsChanged();
public class SuggestionsCollection
{
public SuggestionsChanged OnSuggestionsChanged = null;
Array suggestions = new Array();
public void Add(Suggestion newSuggestion)
{
... |
4b53d901704635270d81126ae485ab5039314c06 | C# | ehonda/Malefics | /MaleficsTest/Game/Dice/Mocks/DieMocks.cs | 2.8125 | 3 | using CyclicEnumerables;
using Malefics.Game.Dice;
using Moq;
using System.Collections.Generic;
namespace MaleficsTests.Game.Dice.Mocks
{
public static class DieMocks
{
public static Mock<IDie> Cyclic(IEnumerable<uint> rolls)
{
var mock = new Mock<IDie>();
// TODO: Why ... |
2c76b4d48090e2fdf129f69af558ce71f1ee88ee | C# | samadhicsec/CipherSandbox | /UnitTests/RandomSwapImplTests.cs | 2.875 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Security.Cryptography;
using Ciphers;
using NSubstitute;
namespace UnitTests
{
[TestClass]
public class RandomSwapImplTests
{
[TestMethod]
[ExpectedException(typeof(ArgumentException), "A zero length input was a... |
b1bf78e92192399f2cb7224c08f8f0813af0f831 | C# | imkaef/PakPs | /ПАК ПС/ПАК ПС/Manipulator.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace ПАК_ПС
{
class Manipulator : Figure
{
public Figure selected;
int active_point = -1;
public override bool Touch(float ax, float ay)//Опр... |
00d99756c7873b29bb2bd6d1bb497ccaf9591954 | C# | archangelmichael/CSharpPart2 | /C Sharp Part 2 Homework/08. StringAndTextProcessing/12. URLExtraction/URLExtraction.cs | 3.734375 | 4 | using System;
using System.Text.RegularExpressions;
/* Write a program that parses an URL address given in the format:
* [protocol]://[server]/[resource]
* and extracts from it the [protocol], [server] and [resource] elements.
* For example from the URL http://www.devbg.org/forum/index.php
* the following infor... |
55be62bb0550b4d06678b6252a548e428660a9f9 | C# | mlwalters/csharp-lesson1-studio | /Class1Studio/Program.cs | 3.921875 | 4 | using System;
namespace Class1Studio
{
public class Program
{
public static void Main()
{
Console.WriteLine("Enter a radius:");
string inputRadius = Console.ReadLine();
double radius = double.Parse(inputRadius);
while (radius < 0)
{... |
a86ed8a9d50176e144c2fa1b775c4c8939bfb609 | C# | Sourav159/Bank-System | /Bank.cs | 3.65625 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace BankSystem
{
//Bank class
class Bank
{
//Instance variable
List<Transaction> _transactions;
List<Account> _accounts;
//Read-only property for _transactions
public List<Transa... |
51757a73427416ac556eebd252ad713bf0cc8ddd | C# | Omar-Salem/Dijkstra-s-Algorithm | /DijkstrasAlgorithm/Services/ShortestPath.cs | 3.1875 | 3 | using System.Collections.Generic;
using System.Linq;
using Entities;
namespace Services
{
public class ShortestPath : IShortestPath
{
#region Member Variables
Dictionary<string, Node> _matrix;
HashSet<Node> _visitedNodes;
#endregion
#region Constructor... |
3b46e34ff4cbbf6fbee121a6b34fa9b8e47238f4 | C# | dixon01/Dev-Jasper | /backend/Center/Media/Source/Core/Converters/ResourceProgressConverter.cs | 2.625 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ResourceProgressConverter.cs" company="Gorba AG">
// Copyright © 2011-2014 Gorba AG. All rights reserved.
// </copyright>
// <summary>
// Defines the ResourceProgressConverter... |
9da5e1f63f0ff201684b834bee707c0eff03309f | C# | mattgwagner/Distance-Analyzer | /src/Distance-Analyzer/Models/Node.cs | 3 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Distance_Analyzer.Models
{
public class Node
{
public string id { get; set; } = Guid.NewGuid().ToString();
/// <sum... |
74a9402603c9b7fe7be8d5d0d2c81739e2aa1c7d | C# | mahaisong/Batch | /BatchTestBL/Test2/Test2.cs | 2.59375 | 3 | using BatchFoundation.Worker;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BatchTestBL.Test2
{
public class MyWorker1 : Worker
{
public o... |