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
7a0978d5f03129552d8b5b323052521ce000ddbd
C#
deba1/Real-Time-Chat-App
/Backend/Real-Time Chat/Handlers/BasicAuthenticationHandler.cs
2.59375
3
using Microsoft.AspNetCore.Authentication; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Real_Time_Chat.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using System.Security.Claims; using Syst...
1ef4c7fbe75110f87be921db6359b34b10ffa7a9
C#
cmj7010/MyDoNetProject
/JM.CARRIER/JM.CARRIER/TcpComm/EventArgsExtensions.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace JM.CARRIER.TcpComm { public static class EventArgsExtensions { public static void Raise<TEventArgs>(this TEventArgs e, Object sender, ref E...
9ad23375be2936de45054421f3f286dfda094855
C#
joao-neves95/Exercises_Challenges_Courses
/CSharp/Build-Web-APIs-using-ASP.NET_edX-Microsoft/m04-FinalProj/L03-FinalProj/WebServer/DataAccess/CityTbl.cs
3.1875
3
using System.Linq; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using WebServer.Models; namespace WebServer.DataAccess { public class CityTbl { public static List<City> GetAllCities(WorldDbContext dbContext) { return dbContext.City.ToList(); } ...
71ea2c69888527982137d531dc1e5b62c30b1922
C#
JarvanZhou/BitManage
/BitManage/BitManage/MidControler/ImageListControl.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace BitManage.MidControler { public class ImageListControl : FlowLayoutPanel { public ImageListControl() { t...
1b67ce9b973737acfb397c8240b5cbfb40ecb736
C#
AleksandarLazarov/Izpiti
/28 August 2016/28August2016/Axe/Axe.cs
3.234375
3
using System; class Axe { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int col = 5 * n; int row = n * 2; if (n%2==1) { row = n * 2 - 1; } int srednoTire = 0; int posledniTireta = col - (n * 3 + 2); ...
f27f4d96b5b9cd5efb9c0b6b0a654eeaa510cf9c
C#
rajakondla/SmartBuy
/src/SmartBuy.OrderManagement.Domain/ManageOrder.cs
2.734375
3
using SmartBuy.SharedKernel.Enums; using System.Collections.Generic; using System.Linq; namespace SmartBuy.OrderManagement.Domain { public class ManageOrder { private List<Order> _orders; public ManageOrder() { _orders = new List<Order>(); } public ManageO...
f23baf25db23baf745ce1a2486c3c2c7488997b6
C#
mfmnow/Woolmark
/Part A/Wool.Test.LinkedList.Domain/LinkedList.cs
3.3125
3
namespace Wool.Test.LinkedList.Domain { public class LinkedList { private Node _tail { get; set; } public void AddNode(int nodeData) { Node newTail = new Node() { Data = nodeData, Previous = _tail }; _tail ...
bfcad13ba0a6c01d877a518654fb3c8257995002
C#
Naomarius/ColorPickerExercise
/Models/Colors.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml.Serialization; namespace Models { public class Colors { private List<Color> colorsList = new List<Color>(); public List<Color> ColorsList { get ...
4bacecf10d599065aeb1cabe60276dca4418046b
C#
shendongnian/download4
/code6/1008116-25753602-73170353-4.cs
2.703125
3
if (bar.Value == 100) { int value; if(!int.TryParse(f1.label1.Text,out value)) { f1.label1.Text = "1"; } else { f1.label1.Text = ""+(value+1); } }
f4910cc49bfe22c908585aca79a0a80b5a4b9832
C#
shendongnian/download4
/code7/1208043-32112169-97814979-2.cs
3.15625
3
DateTime now = DateTime.UtcNow; string logString = now.ToString("yyyyMMddHHmmss"); byte[] logEntry; int elements = logString.Length / 2; logEntry = new byte[elements]; for (int i = 0; i < elements; i++) { logEntry[i] = Convert.ToByte(logString.Substring(i*2,2)); } ...
5e7e8fb4910c5a8cb95bbebed282bacbecaecde1
C#
itasevski/OneMinuteSniper
/One Minute Sniper/One Minute Sniper/Player.cs
3.203125
3
/* Created by: Ivo Tasevski * Player class - this class describes the user attributes, gamertag and score. * Last revised: 17.06.2020 */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace One_Minute_Sniper { public class Playe...
0a6c32bee103196382df661b05694537f58eb08a
C#
AllenYan-Git/PetaFine.Framework
/project/Infrastructure/APIUtils.cs
2.65625
3
 //using Newtonsoft.Json; //using System; //using System.Threading.Tasks; //namespace Infrastructure //{ // /// <summary> // /// WEBAPI调用类。调用方式举例:string url = string.Format("api/E_Config/GetValue/?Key={0}", Key); // /// var r = APIUtils.CallAPI<string>(APIUtils.Enums.ApiOperator.GET, url); // /// </sum...
424a7e1d98c489c48778f2aa848b8b6aaee62f80
C#
khooversoft/Performance
/Src/FrameworkPerformanceTests/FrameworkPerformanceTest/LruList/Tools/LruDictionary2.cs
3.078125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace FrameworkPerformanceTest.LruList { public class LruDictionary2<TKey, TValue> : IEnumerable<TValue> { private readonly object _...
fe80332f4ede981dd81d53c013ec6748e11f3387
C#
kurokawh/test
/csharp/json/json_test/ArrayTest.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace json_test { class ArrayTest { public static void getArrayFromJToken(JToken token) { //JArray arr = (JArr...
76108f95ef9b800e6be89f44273430e540e83da6
C#
peixiaohong/Wanda.BusinessIndicators
/6Plugin/BPF.Workflow.Object/base/BaseServeContext.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; namespace BPF.Workflow.Object { /// <summary> /// 上下文基类信息 /// </summary> public abstract class BaseServeContext { /// <summary> /// 交互状态代码 /// 0:成功 /// 1~200:交互错误 /// >200:异常错误 /// </...
fc68d76afa5080c989b95f1a5adb6820826b451e
C#
jeanke75/WpfSimulationLoop
/MarshCrossing/MainWindow.xaml.cs
2.703125
3
using DrawingBase; using DrawingBase.Input; using System; using System.Globalization; using System.Windows; using System.Windows.Media; namespace MarshCrossing { /// <summary> /// Interaction logic for MainWindow.xaml /// This is a visualisation for https://projecteuler.net/problem=607, not a solution! ...
c6433dd97eba383fc827181d6c94643c652f41d4
C#
DenyaAbramenkov/Elementary_Task_2
/Elementary_Task_2/UI/UI_Console.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Elementary_Task_2 { class UI_Console { public static void CallMenu() { const int START_COUNT_OF_ARGS = 1; string[] args = Environment.G...
cd0929a634137b83a79b01ccb0ba5a435d4228b4
C#
JordanBrobyn/RolloutSearchTool
/RolloutLister/Sorter.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RolloutLister { class Sorter { public KeyValuePair< List<Main.NodeItem>,String> selectBest(List<Main.NodeItem> list,String owner,int safety, string logs) { logs += "Processing ACF2 : " ...
276d185b858ff49112fcf6536cf763df82c51142
C#
SixGodZhang/ATFramework
/ATFramework/System/ATStackTraceInfo.cs
2.65625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ATFramework.Main { public class ATStackInfo { /// <summary> /// 获取当前的堆栈信息 /// </summary> /// <returns></returns> publi...
bfd22ad092c1d6af0f74e2727880d61f48d4eea0
C#
whiteSkar/ProblemSolving
/Microsoft Coding Challenge/MS Code Challenge - ReplacementGrammar (SOLVED)/MS Code Challenge - ReplacementGrammar/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MS_Code_Challenge___ReplacementGrammar { class Program { static void Main(string[] args) { var fileLines = System.IO.File.ReadAllLines(@"ActualInput.txt").T...
223ae6806ed8b05f5cbcf9abea2b3deec543956c
C#
rf0444/LineTrader
/LineTrader/Model/RiskType.cs
2.796875
3
using System; using System.Collections.ObjectModel; using System.Linq; namespace LineTrader.Model { public class RiskType { public string Key { get; } public string Name { get; } public Func<Oanda.Account, decimal, decimal> Risk { get; } public Func<Oanda.Account, st...
35aa92ed6c0471d81640c347d44b012d55fd5bf2
C#
Hooginator/HoilTest
/Assets/Scripts/Combat/Ability.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /***********************************************************/ // Routine to use a special ability in battle. // Includes constructor and cast function to apply the ability. /***********************************************************/ p...
6d4e0bd4b24eec9fa9eea86360f5e589586111f7
C#
Andrea/duality-withsvn-history
/Duality/Resources/VertexShader.cs
2.53125
3
using System; using OpenTK.Graphics.OpenGL; namespace Duality.Resources { /// <summary> /// Represents an OpenGL VertexShader. /// </summary> [Serializable] public class VertexShader : AbstractShader { /// <summary> /// A VertexShader resources file extension. /// </summary> public new con...
21464d45f6292e0d740bc9e7381ab143faec550f
C#
bruno-dsr/CSharpConsoleApp
/EP3/Program.cs
3.21875
3
using System; namespace EP3 { class Program { // EXERCICIOS PROPOSTOS PARTE 3 // ABORDA: ESTRUTURA DE REPETIÇÃO WHILE static void Main(string[] args) { Console.WriteLine("Escolha um exercício"); Console.WriteLine("[1] Testar senha"); Console....
fafdae4697ef18d699c3c32d600acfbb59134299
C#
tivtag/Zelda
/Source/Library/Core/Difficulties/BaseDifficulty.cs
2.671875
3
// <copyright file="BaseDifficulty.cs" company="federrot Software"> // Copyright (c) federrot Software. All rights reserved. // </copyright> // <summary> // Defines the Zelda.Difficulties.BaseDifficulty class. // </summary> // <author> // Paul Ennemoser // </author> namespace Zelda.Difficulties { usin...
667cb1fadf890b154f98b9c7b0169ccd735bce62
C#
layerssss/SCS
/NFA/Process/strict.cs
2.609375
3
using System; using System.Collections.Generic; using System.Text; namespace NFA.Process { class strict<TCondition, TData> where TData : INfaStatusData<TCondition> where TCondition : IEquatable<TCondition> { strict(Nfa<TCondition,TData> nfa) { while (!nfa.Traverse(t...
48f31bec9fb9513eccf26557897beef37eca4e20
C#
ivovachkov/LabyrinthSeven
/Labyrinth-7/Labyrinth/Game.cs
3
3
namespace LabyrinthSeven { public abstract class Game { private bool isRunning; private int currentMoves; private bool isGameRestarted; public bool IsRunning { get { return this.isRunning; } ...
480da827670bd96140eac5f180bdec7ce8a43892
C#
eopb/c_sharp_exercises
/october_november/animals/Program.cs
4.03125
4
using System; using System.Collections.Generic; namespace animals { interface Animal : Sound, Size { } interface Sound { String noise(); } interface Size { String size(); } class Dog : Sound, Size, Animal { public String noise() => "Bark"; ...
0b9c1ee89b6de0d1002a7c108f919d334a1df67e
C#
GgomidesS/trabalhosATPJogos
/Atividade 01 - Lab/Atividade_01/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace aula1 { class Program { static void Main(string[] args) { char continuar; int numeroExer...
745010f896cd2b462f0312139679be4d648720b1
C#
eraykisabacak/Desing-Pattern-Tasarim-Desenleri
/SingletonPattern/SingletonPattern/DataBaseConnection.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingletonPattern { class DataBaseConnection { private static DataBaseConnection _dataBaseConnection; private DataBaseConnection() { // Constructor ...
dc06e81c7bc174357dbd369d6ba26d4a8dc2bced
C#
AudioLabYork/SALTE-VR-interface
/Listening_test_03/Assets/ShowScore.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.IO; // show the socre to the user public class ShowScore : MonoBehaviour { public Text text; // call for Text component in the current game object (make sure to drag to link the text component in the...
833588d4b0a8310f7ca54c7352b13c3eee6dfc8a
C#
shendongnian/download4
/code9/1590917-44429910-148889365-2.cs
3.40625
3
public async Task ProcessFile() { const int parallelism = 5; using (var readStream = File.OpenRead(@"c:\myinputfile")) { // put HERE your logic for skipping to a specific line // e.g. readStream.Seek(lastPosition); using (var reader = new St...
307d3cb5a5752d5535340bbc03834f0e2c5d631c
C#
gareth-evans/binday
/Tests/Unit/DateFormatterTests.cs
2.953125
3
using System; using BinDay; using Moq; using NUnit.Framework; using Shouldly; namespace Tests.Unit { public class DateFormatterTests { private readonly DateTime _today = DateTime.Parse("2019-12-17"); private DateFormatter CreateSut() { var dateProviderMock= n...
647c956169e9d2dfad809345eb39f21eccb01c78
C#
tminlim/pp
/next/pex_week09-chatting/pex_week09-chatting/Form1.cs
2.9375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace pex_week09_chatting { public partial class Form1 : Form { bool isFirst = true;...
7dd3fb69680c2db2ece984e1c565c858026b534e
C#
NetanelLevRon/Car-Rental
/server/03_BLL/UsersManager.cs
2.84375
3
using _01_DAL; using _02_BOL; using System; using System.Linq; namespace _03_BLL { public static class UsersManager { public static bool InsertUser(UserModel newUser) { try { using (CarRentalEntities ef = new CarRentalEntities()) { ...
2bfcbb81caddacbc3bb67006b997736f4374f785
C#
Mike-Reina/BlueFin_Client
/BlueFin_Client/Program.cs
3.265625
3
using Blue_Fin_Inc.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace BlueFin_Client { class Program { static void Main() { //Products Console.WriteLine("Please pro...
f3f07030e0d0a63ef0be5597f931611654d71ca3
C#
DimitarSamarov07/SoftUni-Software-Engineering
/C# OOP/Polymorphism/Wild Farm/Models/Animals/Birds/Owl.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; namespace Wild_Farm.Core.Animals.Birds { public class Owl:Bird { public Owl(string name, double weight, double wingSize) : base(name, weight, wingSize) { } public override string FoodAskSound { get; ...
4975446548290fbc342a5a0d24d6012b8e72cc28
C#
shendongnian/download4
/code10/1827011-53971216-188641312-4.cs
2.703125
3
public class B : ScriptableObject { // You don't need [SerializeField] since public properties // are serialized anyway public A a; // Internal for removing listeners later private A lastA; private void OnValidate() { // Apparently something el...
9e0e292b5c7e705a6c3d0b9fc8b2ccc1082fb01c
C#
UrienZhang/WPF-Helpers
/ModalPopupOverlay/ViewModels/QuestionPopupViewModel.cs
2.875
3
using System.Collections.Generic; using System.Linq; using System.Windows.Input; namespace ModalPopupOverlay.ViewModels { public class QuestionPopupViewModel : ViewModelBase { private string _question; public string Question { get { return _question; } set ...
08e21ad12ee2d4fa947a4f1239f17d579d6518fd
C#
JamesPinkard/ExcelChartTool
/OpenXMLTools/FieldVerifier.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenXMLTools { internal class FieldVerifier { public FieldVerifier(Dictionary<int, List<MountainViewField>> weeklyMeasurements) { _weeklyMeasurements = week...
55d852a4c2d27c1e95495a5709354c6fd87970e2
C#
0shu/NOV_2020_GAME_JAM
/Assets/Scripts/DomHScripts/Interactables/Interactable.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Collider))] public abstract class Interactable : MonoBehaviour { protected float m_fRange = 1.5f; protected bool m_bInRange = false; protected bool m_bInteracted = false; public void Interact() // ...
43327b784a14ca211a884ab6cc937bdfee3d9460
C#
FengFengcjf/HR
/HR/DAO/standard_detailsDAO.cs
2.703125
3
using EFentity; using IntDAO; using Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAO { public class standard_detailsDAO : DaoBase<standard_details>, ISstandard_detailsDAO { public List<standard_detailsModel> Select...
f5875589bf8b54ff7d1fb8ed3ca7ef75efc63303
C#
dreegoo/Advanced-Algorithms
/Advanced.Algorithms.Tests/DynamicProgramming/OptimalGameStrategy_Tests.cs
3.03125
3
using Advanced.Algorithms.DynamicProgramming; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Advanced.Algorithms.Tests.DynamicProgramming { /// <summary> /// Problem statement bel...
82d43e1fbccd287132b2e997e506b20da5c2d3d6
C#
nickykitchingman/BuildIt
/Assets/Scripts/Utilities.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class Utilities { /// <summary> /// Update density of each child object /// </summary> /// <param name="transform"></param> public static void UpdateMasses(Transform transform) { //Iterate ove...
9d779482abe3a8248edbf26842411c297da0762a
C#
BergerNA/MakeCandel
/CandelMaker/Candel/VolumeCandel.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CandelMaker { /// <summary> /// Класс реализующий объёмные свечи. /// </summary> class VolumeCandel : Candel, ICandel { private int prevTime, prevDate; pri...
da53f2c580d6f4936df5f8adcf4962565941862d
C#
nguyener/csmicroservicewithakka
/src/CSharpMicroServiceWithAkka/HTTPProcessor.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Net; using Akka; using Akka.Actor; using Newtonsoft.Json; namespace CSharpMicroServiceWithAkka { public class HTTPProcessor : ReceiveActor { HttpListenerContext ctx; public ...
05f177a7e4150f0f89c9dbd8c2acc292ad3186b2
C#
davidcnath/TraderMoe_v1
/ResourceManager.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ResourceManager : MonoBehaviour { public Text topBarList; private string itemList; public int gold, food, workers, wood, weapons, machines, stone, fireRunes, iceRunes, arcaneRunes; void...
a1775c68344d0af95adf7b3294ba1e204b72627f
C#
astambi/Databases-Advanced
/08-Best-Practices-and-Architecture/PhotoShare.Client/Core/Commands/LoginCommand.cs
2.953125
3
namespace PhotoShare.Client.Core.Commands { using Models; using Services; using System; public class LoginCommand { private readonly UserService userService; public LoginCommand(UserService userService) { this.userService = userService; } publi...
3e37b94078fcbf7cc715310c4fb77f0c7e996020
C#
capananj/BuggyCarsRating
/BuggyCarsRating/Tests/Steps/TableActionsSteps.cs
2.875
3
using BuggyCarsRating.Pages; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using System; using TechTalk.SpecFlow; namespace BuggyCarsRating.Tests { [Binding] public sealed class TableActionsSteps { private readonly MakerPage page; private int listPage; ...
1187cdc3e6b5c42a9a6e36f5e353a904aaaf6068
C#
GamehubDev/Nin_Online_Unity
/Toolset/Toolset/Preferences/ToolsetPreferences.cs
2.90625
3
using CrystalLib.Serialization; namespace Toolset.Preferences { public class ToolsetPreferences { #region Property Region public int MaxHistorySize { get; set; } public bool MapGrid { get; set; } #endregion #region Constructor Region /// <summary> //...
b701364784bf55267c7efe4ba29d54e31a54eaf2
C#
Megi223/Softuni-OOP-C-Sharp
/Unit Tests/FightingArena.Tests/ArenaTests.cs
3.03125
3
using NUnit.Framework; using FightingArena; using System; namespace Tests { public class ArenaTests { private Arena arena; private Warrior firstWarrior = new Warrior("Pesho", 50, 100); private Warrior secondWarrior = new Warrior("Ivan", 40, 200); private ...
ada5e6d886a83bbfe382683f25b1f5aaa925752f
C#
shrhabibi/LightsOut
/LightsOut/Classes/JsonLevels.cs
3.0625
3
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LightsOut.Classes { static class JsonLevels { public struct LevelType { public string Name; public int Columns, Rows...
ce58fce710023a2e92914e9ab8758d868eb789c8
C#
Frirou/Company.Net
/Company/CompanyData/Configurations/ProductConfiguration.cs
2.8125
3
using CompanyDomain.Entities; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace CompanyData.Configurations { public class ProductConfiguration : EntityTypeConfiguration<Product> { public ProductConfiguration() { // Primary Key...
f5b829659e05df78e12de2ba66ba90087e6d7888
C#
justinhachemeister/NShim
/NShim.Tests/StubGeneratorTests.cs
2.625
3
using System; using System.Collections.Generic; using System.Reflection; using NShim.Tests.Examples; using Xunit; namespace NShim.Tests { public class StubGeneratorTests { [Fact] public void GenerateStubTestStaticMethod() { var methodInfo = typeof(ExampleClass).GetMethod(nam...
04aa0e7596f8885fbf8e171d08d85c1157193bfd
C#
isikbilal/DesignPatterns
/ConsoleApplication1/ConsoleApplication1/Program.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static Yerel yerel; static Bolgesel bolgesel; static TV tv; static void Main(string[] args) { yerel = new Yere...
3a7704f43a4e46f109f4731b720667135d9905ed
C#
bardasoft/Kane.Extension
/Test/Json类/JsonHelper.Test.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Kane.Extension.Test { [TestClass] public class JsonHelper { [TestMethod] public void TestJsonHelper() { var jsonHelper = n...
cb05a235759ec379cd661a736b1b01b13aa5d070
C#
Miwss/MiwssTrash
/Структуры/Структуры/Program.cs
2.859375
3
using System; namespace Структуры { struct Book { public string title; public string name; public string author; } class Program { static void Main(string[] args) { Book b; b.author = "King"; Console.WriteLine(b.author); ...
ce0eabcc6d272c006ea3ea1de3a7c9e6b31d48fe
C#
Axirr/spoopyMansion
/Assets/scripts/TileInfo.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileInfo : MonoBehaviour { Tiles actualTileType; Tiles displayedTileType; bool explored = false; #region Properties public Tiles ActualTileType { get { return this.actualTileType; } se...
37f3b330ba159c07d2b613907bddd7472854e99c
C#
unicornzyn/ProjectManager
/DAL/AttentionsRule.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Model; using System.Data; using Common.DB; using Common; namespace DAL { public class AttentionsRule { public static List<Attentions> Get() { List<Attentions> list = new List<Attentions>(); ...
ac4f067dbb401a1ff7304e0096733a480a09d9b5
C#
mere-team/teacher_schedule
/Schedule/Models/Departments.cs
2.53125
3
using System; using System.Collections.Generic; using Schedule.Helpers; namespace Schedule.Models { public static class Departments { private static Dictionary<string, string> _Departments; static Departments() { _Departments = new Dictionary<string, string> { ...
0fccbf3ea56eee154eb2921c6d11c1926cc5d237
C#
franknaros/Space-Invaders-game
/Klosse.cs
2.828125
3
using System; using System.Drawing; using System.Collections; namespace UbatSpill { /// <summary> /// Summary description for Klosse. /// </summary> public class Klosse : GameObject { private ArrayList KuleHuller = new ArrayList(50); public Klosse(): base("klosse.gif") { // // TODO: Add...
f8f885608d5fbfef219f9f7dc559a6a8429edf9e
C#
bstando/nn-examples-csharp
/BEP_Obrazy_RGB/BEP_Obrazy_RGB/BEP.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BEP_Obrazy_RGB { class BEP { protected int iloscWejsc; protected int iloscWyjsc; protected int iloscWarstw; protected int[] iloscNeuronowWW...
7c8ba84041cfc4ac0d86c4db6c5eeca2985270c9
C#
AklileKebede/cohort-16
/Module-1/02_Variables_Data_Types/student-exercise/VariableNaming/Program.cs
3.515625
4
using System; namespace VariableNaming { class Program { static void Main(string[] args) { /* 1. 4 birds are sitting on a branch. 1 flies away. How many birds are left on the branch? */ // ### EXAMPLE: int initialNumberOf...
386cb887453665ae6dc646b85c3e24fc97bfce6e
C#
yuxuac/Algo
/DataStructure/exercise/LinkedList.cs
3.625
4
using System; namespace Algo.Exercise { public class LinkedList { public LstNode Head { get; set; } public LstNode Tail { get; set; } public int Length { get; set; } public LinkedList(object val) { this.Head = new LstNode(val); this.Tail = this.H...
37eb3677c80da112b9eb4465a78d3af56a3a4c4b
C#
adamuso/2DRabbitPlatform
/2DRabbitPlatform/2DRabbitPlatform/Engine/Files/SerialBinary/SerialBinaryCompound.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using IS = System.Runtime.InteropServices; using Ref = System.Reflection; namespace _2DRabbitPlatform.Engine.Files.SerialBinary { public class SerialBinaryCompound { List<ValueInfo> binaries; ...
614e1949d46f730034adc02f88130de9c17c7245
C#
shmeleva/Human-Detection-Course-Project
/HumanDetectionCourseProject/HumunExtraction/Label.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; namespace HumanDetection { internal class Label { #region Публичные свойства public int Name { get; set; } public Label Root { get; set; } public int Rank { get; set; } #endregion #region Конс...
e37409ecd5f626cafc0385110409084a7afb853d
C#
truongphuong/blogEngine
/BlogEngine.KalturaClient/Types/KalturaAttachmentAsset.cs
2.71875
3
using System; using System.Xml; using System.Collections.Generic; namespace Kaltura { public class KalturaAttachmentAsset : KalturaAsset { #region Private Fields private string _Filename = null; private string _Title = null; private KalturaAttachmentType _Format = null; private KalturaAttachmentAssetStatus...
feb201f6c85c404664dd7321f7b7ccd588ab5e72
C#
chzdo/CodilityChallenge
/2018/Ferrum2018/SolutionTests.cs
2.59375
3
using Common; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Ferrum2018 { [TestClass] public class SolutionTests : BaseTest { [TestMethod] public void Test1() { Test( new[] { -1, -1, 1, -1, 1, 0, 1, -1, -1 }, 7); } ...
6a9336cab2529a1a9dc21fdefb3e5f0a7ac712f2
C#
kurt-patrick/qa
/appium/Mobile.App.Automation/helpers/ProcessHelper.cs
3.03125
3
using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace KPE.Mobile.App.Automation.Helpers { public static class ProcessHelper { const string CmdExe = "cmd.exe"; /// <summary> /// Helper function to execute commands from the command line /// </s...
2b65d6d7aad9c96ddcf645d455dbb8751fc9e8f8
C#
sdm-ms/R8R08222014
/ClassLibrary1/Business Logic/AdjustmentFactorCalc.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ClassLibrary1.Model { public static class AdjustmentFactorCalc { /// <summary> /// The maximum and minimum to which we will constrain AdjustmentFactors when we are looking back at them /// ...
e510080be9fbef94023d4305261f4acddac44631
C#
dotnet/aspnetcore
/src/Http/Routing/src/Constraints/StringRouteConstraint.cs
2.546875
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing.Matching; namespace Microsoft.AspNetCore.Routing.Constraints; /// <summary> /// Cons...
9b91e5a8c940e49c9a1ad38ae9ada2fccf845228
C#
Miktor/pub
/Game/MyWorldEditor/MyWorldEditor/WindowUtilites.cs
2.640625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using Mogre; namespace MyWorldEditor { //класс всякой поеботы, он типо статик, его ничен е нужно объявлять и т.п. пишеш Utils.<Funcname> //но е увлекайся, обычно статики юзают для всякого говна типо конвертирован...
1781fbddd05a41b970e21203f249fceaffdb4d65
C#
RoyStevelink/nwebdav
/NWebDav.Server/Helpers/RequestHelper.cs
2.65625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using System.Xml.Linq; using NWebDav.Server.Http; using NWebDav.Server.Logging; namespace NWebDav.Server.Helpers { public class SplitUri { public Uri CollectionUri { get; set; } ...
e93c67e016605c36910ba0cfd3d5cdb5b8bf0317
C#
Aidoin/CoachAnketsProject
/Assets/Scripts/InputFieldEnterNumbersOnly.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class InputFieldEnterNumbersOnly : MonoBehaviour { public int LimitingNumbers; public InputField text; public void ChangingTheField() // Отсекается ввод значений "-", ".", " " и "," { ...
df515f34f391efc8dee05e8574c3a2cda79cdb30
C#
bdrupieski/IndeedKeywordTrends
/IndeedSameJobDifferentPost/Program.cs
2.828125
3
using Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Newtonsoft.Json; using NSoup; using System.Threading; using MoreLinq; namespace IndeedSameJobDifferentPost { class Program { public static char[] spl...
e36a63732cdb11547dc9854198e7f22840720da2
C#
d3sformal/weverca
/VSProjects/Weverca.Analysis/ExpressionEvaluator/TypeConversion.cs
2.578125
3
/* Copyright (c) 2012-2014 David Skorvaga and David Hauzar This file is part of WeVerca. WeVerca 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 optio...
56b8ab5abca3b4eda0203c204ec82d71e8f5aefa
C#
francoe1-gamedev/demo-event-architecture
/Assets/Scripts/Mechanics/BulletMechanic.cs
2.546875
3
using System; using Entities; using Events; using Events.Payloads; using Managers; using UnityEngine; namespace Mechanics { public class BulletMechanic : IDisposable { private IEventBus m_eventBus { get; set; } public BulletMechanic(IEventBus eventBus) { m_eventBus = event...
937faca97e6b1ea20a0bbf631d18ca31fc9ecc1b
C#
damasem/task-Mamay
/Taskwork3/Taskwork3/equilateral.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Taskwork3 { class Equilateral : Triangle { public override void GetSquare(double x, double y, double z) { double Square; ...
ab53dda5c6b32f665f68e009a3db918c6878b8cc
C#
An3Dev/MegMagnet
/Assets/Scripts/ObjectPooler.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectPooler : MonoBehaviour { List<GameObject> spawnedBallsList = new List<GameObject>(); public int startingBallNumber = 3; public GameObject ballPrefab; List<GameObject> spawnedPersonsList = new List<GameO...
2df6afad3326ca1aa0571894d49c280329173a02
C#
GrigoriyVoronin/Ulearn
/Part1/lab3/mazes/PyramidMazeTask.cs
2.96875
3
namespace Mazes { public static class PyramidMazeTask { public static void MoveTroughOneBend(Robot robot, int width, int height, int numberOfBends, int bendingNumber,int counter) { EmptyMazeTask.MoveDistanceTowards(robot, width - 3-counter*2, Direction.Right); EmptyMazeTask.Mo...
cc150d8dede4f0b684f03fcbdc9e00334c9ccc85
C#
axe-me/LocaleCounter
/LocaleCharCounter.cs
3.234375
3
using System; namespace ECounter { /// <summary> /// LocaleCharCounter Factory /// </summary> class LocaleCharCounter { private CharCounter counter; public LocaleCharCounter() : this(null, null, Config.LOCALE) { } public LocaleCharCounter(int? startNum, int? en...
918c4f72e3b7b70f5247ba28f6bc7528547beae9
C#
shendongnian/download4
/code1/65392-12937871-30609714-2.cs
2.515625
3
internal void LoginToSite() { WebBrowser.Navigate("some site login Page"); _Processing = true; var username = ConfigurationManager.AppSettings["username"]; var password = ConfigurationManager.AppSettings["password"]; while (...
3f65faa1cca869be1700b30f3410f8e0b3a5535c
C#
leemorris/Testify
/Testify/CodeMarkManager.cs
2.609375
3
using System; using System.Collections.Generic; namespace Leem.Testify { public class CodeMarkManager { // this object is passed from the Package class public delegate void CodeMarksEventHandler(object sender, EventArgs e); public const double CodeMarkGlyphSize = 16.0; // size of the ...
943daf80daa1aff18ea5be73854c8e74480d1d5e
C#
kolinlocke/WebApplication_Exam
/Layer01_Common_IdeSeg.SharePoint.Caml.QueryParser/LexScanner/ScannerBase.cs
2.515625
3
#region Copyright(c) Carlos Segura Sanz - www.ideseg.com // Copyright (c) 2009 Carlos Segura Sanz - www.ideseg.com // // 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, inclu...
2025232551ae0b2379e9c0a81a27c93d6d5fcf4b
C#
MikeAllport/CE303-Socket-Assignment
/MarketCSharp/ClientTest/TraderTest.cs
2.75
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using Client; namespace ClientTest { [TestClass] public class TraderTest { [TestMethod] public void TestMakeTrader() { Trader trader = new Trader("Trader0"); Assert.AreEqual("Trader0", trader.ID); } ...
70fa3d7705604faddd92ead0a8d93e4e2af5fa26
C#
marcingutka/First-non-repeating-character
/Program.cs
3.828125
4
using System; using System.Linq; namespace First_non_repeating_character { class Program { static void Main(string[] args) { Console.WriteLine(default(string)); Console.WriteLine(FirstNonRepeatingLetter("")); Console.WriteLine(FirstNonRepeatingLetter("Hello ...
ad94cef2a1a6701a85afd3402681880de114a0b2
C#
PendelinP/DavinciJ15TokenBot
/DavinciJ15TokenBot.DataManager.EF/DataContext.cs
2.546875
3
using DavinciJ15TokenBot.Common.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace DavinciJ15TokenBot.DataManager.EF { public class DataContext : DbContext { public DbSet<Member> Members { get; set; } public DataContext(Db...
8ea5fe2dcce043560a818c48128eec96003347d7
C#
oleguchok/Graphics-editing
/GraphicsEditor/GraphicsEditor/DrawShapes/DrawTriangle.cs
2.75
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GraphicsEditor.DrawShapes { class DrawTriangle : IDrawShape { private Triangle triangle; public DrawTriangle(Triangle triangle) { ...
508244f619c4f9e73ef73ff34eab695e5d51b303
C#
KirillShlenskiy/Kirkin
/src/Kirkin.Tests/Text/TextTests.cs
2.8125
3
using Kirkin.Text; using NUnit.Framework; namespace Kirkin.Tests.Text { public class TextTests { [Test] public void CapitalizeFirstLetterOfEachWord() { for (var i = 0; i < 100000; i++) { var text = "SOMEONE O'SOMEONE"; Assert.Ar...
802820821f16d0828f4a5cdc75ee0b6bbed36fad
C#
Pulsar4xDevs/Pulsar4x
/Pulsar4X/Pulsar4X.ECSLib/ComponentFeatureSets/LeadersAndTeams/TeamsDB.cs
2.640625
3
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Pulsar4X.ECSLib { public enum TeamTypes { Science, ArmyCdr, SpaceNavyCdr, CivAdmin, } public class TeamsHousedDB : BaseDataBlob { public Dictionary<TeamTypes, List< TeamObject...
0c4a5dba86b3d3af9caf6a619af5732a6f8a315c
C#
gitter-badger/GitDepend
/GitDepend/Visitors/CheckOutBranchVisitor.cs
3.09375
3
using System; using GitDepend.Configuration; namespace GitDepend.Visitors { /// <summary> /// An implementation of <see cref="IVisitor"/> that ensures that the correct branch /// has been checked out on each dependency. /// </summary> public class CheckOutBranchVisitor : IVisitor { #region Implementation of I...
87c3082038b6b2e8e1e7d433d60e109bf70bb74f
C#
Hengle/Fovea
/Fovea.Tests/VectorTests.cs
2.765625
3
using Fovea.Renderer.VectorMath; using Xunit; using static System.Math; namespace Fovea.Tests { public class VectorTests { [Fact] public void VectorAddition() { var v = new Vec3(2, -4, 1); var w = new Vec3(-2, 0f, 14); Assert.Equal(new Vec3(0, -4, 15)...
c1f9f91d7c7aae31e20dbea8ca620d9862be4b0a
C#
chriscoo/prog1264Assignment1
/TvHRace/Racer.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TvHRace { abstract class Racer { public Racer() {} public void initialize() { Position = 0; } public abstract void move(); public virtual void d...
f32c9af4d318415bb30db7404c7a8fa2330e3779
C#
peterlambov/CSharp
/C#Homeworks/C#Part1Homeworks/01Homework_Intro/ConsoleApplication3/flName.cs
2.8125
3
using System; class flName { static void Main(string[] args) { string firstName = "Georgi"; string lastName = "Georgiev"; Console.WriteLine("{0} {1}", firstName, lastName); } }
0ff4737c5d3aacae15a83c2dfdabc588873ff94f
C#
MarianoMurcianoRodriguez/LimoKnight-RPG-Prototype
/Assets/Resources/Scripts/Managers/Derived/CompletitionQuest.cs
2.875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace LimoKnight { [CreateAssetMenu(menuName = "Quest/CompletitionQuest")] public class CompletitionQuest : Quest { [SerializeField] private List<Objective> _objectives = new List<Objective>(); [SerializeFi...
f219f04077a77b0428b0c0331a6b7cbd943c1eb3
C#
CuriousCurmudgeon/taut
/Taut/Authorizations/OAuthService.cs
2.53125
3
using Flurl; using Flurl.Http; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Taut.Authorizations { public class OAuthService : BaseApiService, IOAuthService { private const string AUTHORIZE_URL = "ht...
ce93f69e28fb49f71e8a8612581ea2090071dda9
C#
EverettQuebral/ASCOMDriverTemplate
/ASCOM Driver Template (CS)/DeviceSwitch.cs
2.6875
3
// All lines from line 1 to the device interface implementation region will be discarded by the project wizard when the template is used // Required code must lie within the device implementation region // The //ENDOFINSERTEDFILE tag must be the last but one line in this file using ASCOM; using ASCOM.Utilities; clas...
0fd79e23e4ef217f7893630bbafccdc6b3347ed6
C#
KareemAde/Card-Game
/Assets/Scripts/CardBehaviour.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; public class CardBehaviour : MonoBehaviour { // All card types public Button safeCard; public Button bombCard; public Button reverseCard; public Button attackCard; ...
b01f399b24614f5324103b19c70bf2a95bbab358
C#
andreakarasho/FLY
/src/Utility/Logger.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; namespace FLY.Utility { static class Logger { #region Public Static Variables /* Use to spit out useful information to the player/dev */ public static Action<string> LogInfo; /* Use when something sketchy happens, but isn't deadly */ ...
441107e7e895f319795426f0a5dcbc04e7a80d7e
C#
pekunicki/HackathonInfusion
/HackathonInfusion/ResponseScan.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HackathonInfusion { class ResponseScan { public string left { get; set; } public string right { get; set; } public string up { get; set; } public string...