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 |
|---|---|---|---|---|---|---|
5ee303b851c7bacf5bc931466c8ca6830967ff2b | C# | iliadsh/Calc.NET | /Calc.NET/SimpleCalculator.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Calc.NET
{
public class SimpleCalculator
{
private Parser parser;
private SyntaxTree runner;
private readonly List<CalcOperator> operators = new List<CalcOperator>
{
new CalcOperato... |
3644d2094f29b5a1028d9018d6306f95214c5fbc | C# | askrinnik/MyHomeLib.NET | /SourceCode/LibRusEc.FileStorage/FileStorageRepository.cs | 2.765625 | 3 | using System;
using System.IO;
using System.IO.Compression;
namespace LibRusEc.FileStorage
{
public class FileStorageRepository
{
private readonly string storageFolder;
public FileStorageRepository(string storageFolder)
{
this.storageFolder = storageFolder;
}
public Stream GetFile(stri... |
69adca8fdb20a0399edc88a533c58d86733763f6 | C# | Parasuatene/UnityGithubAPI | /Assets/Scripts/QueryParamManager.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class QueryParamManager : MonoBehaviour
{
private int pageNumber;
private string repoParam;
private string sortParam;
private string orderParam;
// 与えられたパラメータからクエリを作成して返却
public string... |
7d207573aee4a9885e3806cfbe5cb3f6ecc0fd43 | C# | PlasticwaterLabs/GemsOfEgypt | /Assets/GemsOfEgypt/Scripts/InfoProvider.cs | 2.640625 | 3 | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class InfoProvider : MonoBehaviour {
const string leftVentricle="Ventricle is one of two large chambers that collect and expel blood received from an atrium towards the peripheral beds within the body and lungs.Ventricles have thicker walls th... |
031deefcc9dc332b782960601187900f5562d6a3 | C# | mediabuff/WebSocketDemo | /WebSocketDemo/Services/QueueProcessor.cs | 2.703125 | 3 | using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace WebSocketDemo.Services
{
public abstract class QueueProcessor<T> : IHostedService
{
readonly TimeSpan _pollDelay = ... |
9408e662c47d8313b36be90d0568c48d774aeb4c | C# | YlliElshani/Student-Management-System | /Application/Detyrat/Details.cs | 2.59375 | 3 | using System;
using System.Threading;
using System.Threading.Tasks;
using Domain;
using MediatR;
using Persistence;
namespace Application.Detyrat
{
public class Details
{
public class Query : IRequest <Detyra>
{
public Guid DetyraId {get; set;}
}
public class Handle... |
2695928b37bdb5d95664dc3ba7d63628eaf0a4bc | C# | AbrahamPena/BeSpokedBikes | /BeSpokedBikes/Entities/Salesperson.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
namespace BeSpokedBikes.Entities
{
public class Salesperson
{
private int _id { get; set; }
private string _firstName { get; set; }
private string _lastName { get; set; }
private string _address { get; set; }
private strin... |
dd72862485e5a857074418e3705229125f3d64ae | C# | hazharaziz/AP | /A7/A7/Dabir.cs | 3.4375 | 3 | using System;
namespace A7
{
/// <summary>
/// Dabir class containing dabir properties
/// </summary>
public class Dabir : ICitizen, ITeacher
{
public string Name { get; set; }
public string NationalId { get; set; }
public Degree TopDegree { get; set; }
public stri... |
cd6578ebb478c271841f8aa21db679fd44d525da | C# | duck-rabbit/bwoah-chat | /bwoah-shared/bwoah-shared/DataClasses/AData.cs | 2.734375 | 3 | using Newtonsoft.Json;
using System;
namespace bwoah_shared.DataClasses
{
public abstract class AData
{
public string ParseToJson()
{
String json = JsonConvert.SerializeObject(this);
Console.WriteLine(json);
return json;
}
public AData Parse... |
9c817e0be332038d307864754b4f8ac17270350f | C# | jamesryan83/Csharp-Library | /Common/CommonJson/JsonUtil.cs | 3.265625 | 3 | using Newtonsoft.Json;
using System.IO;
using System;
namespace CommonJson
{
public class JsonUtil
{
// Convert Object to Json String
public static string ConvertObjectToJsonString(object data)
{
return JsonConvert.SerializeObject(data, Formatting.Indented);
}
// Convert Json string to object
public... |
5ae2ed65966fb1735489580a9fa73690b40fde46 | C# | jiwonan/myrandomrealnumber | /myrandomrealnumber/Program.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace myrandomrealnumber
{
class Program
{
static void Main(string[] args)
{
Random rand = new Random();
double num;
num = rand.NextDouble... |
0aa4cb95e50e8e336b8cbe71fc4e01530672fe97 | C# | jeffryang24/NUT-number-to-text | /src/Nut/TextConverters/IndonesianConverter.cs | 2.640625 | 3 | using System;
using Nut.Models;
namespace Nut.TextConverters
{
public sealed class IndonesianConverter : BaseConverter
{
private static readonly Lazy<IndonesianConverter> Lazy = new Lazy<IndonesianConverter>(() => new IndonesianConverter());
public static IndonesianConverter Instance... |
eb35fabfa9027a66a421692c2c311eb13a8456de | C# | shendongnian/download4 | /first_version_download2/180361-13611794-32460744-2.cs | 2.59375 | 3 | class FilePath
{
public FilePath(string inPath)
{
Path = inPath;
}
public string Path { get; set; }
}
|
bcbdebf58c01a5a4177022fbe311ccb4dc7ae20b | C# | Jordan-Ben/ExplorableAreas | /ExplorableAreas/MainWindow.xaml.cs | 2.78125 | 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;... |
df2c851dccf9fdc850a9189679524bb87c3c9678 | C# | maestroAlfredo/HBAlgorithmMain | /WindowsFormsApplication3/nodeFeederForm (AlfredHome-PC's conflicted copy 2015-04-19).cs | 2.53125 | 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 VoltageDropCalculatorApplication
{
public partial class nodeFeederForm : Form
{
... |
1268c1b7b86f3141765c649943d74cc6de1938b3 | C# | BBarry29/RPSLS | /RPSLStest/RPSLS1.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assignment
{
public class RPSLSGame
{
string playerInput;
string name;
public void PlayGame()
{
if (playerInput == name)
{
... |
e8a81d7fb133fff79a96982f46097b8b1915e9a9 | C# | courtenayparserr/BSheet | /Plaid.Net/Data/Models/Results/PlaidResult.cs | 3.140625 | 3 | namespace Plaid.Net.Models
{
using System;
/// <summary>
/// Generic result from Plaid which could possibly be an error.
/// </summary>
/// <typeparam name="T">The type of response value.</typeparam>
public class PlaidResult<T> : PlaidResult
{
/// <summary>
/// Initializes ... |
3239d7e6da2490c83f8cfca1edace32ae877f417 | C# | ipoddubnyi/mt-tacticwar | /src/MT.TacticWar.UI.Editor/Sources/Painters/PassabilityPainter.cs | 2.90625 | 3 | using System;
using MT.TacticWar.Core;
using MT.TacticWar.Core.Landscape;
using MT.TacticWar.UI.Graphics;
namespace MT.TacticWar.UI.Editor.Painters
{
class PassabilityPainter : IPainter
{
private readonly GameGraphics graphics;
private readonly Map map;
private readonly bool passable;
... |
3a63199d3397206c27814becdc791706f62f3be7 | C# | tdmehmet/Seat2Gether_Backend | /Seat2Gether/Repositories/MasterDataMaterialRepository.cs | 2.84375 | 3 | using Seat2Gether.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace Seat2Gether.Repositories
{
public class MasterDataMaterialRepository
{
private Seat2GetherDBContext DBContext;
public MasterDataM... |
c1b74ed74ff001bcd436a09e38d6c398950df386 | C# | livetract/BlazorWasm | /Wasm/Services/WeatherService.cs | 2.59375 | 3 | using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
using Wasm.Dtos;
namespace Wasm.Services
{
public class WeatherService : IWeatherService
{
private readonly HttpClient _httpClient;
private const string BaseUri = "https://localho... |
99814838af282173561b2478ace5b87e58efaf8a | C# | shendongnian/download4 | /first_version_download2/313550-25932921-73850941-2.cs | 2.625 | 3 | for (int i = 0; i < 365; i++)
{
var tasks = db.Tasks.Where(x => x.Date.AddDays(-i).ToString("d") == DateTime.Now.AddDays(-i).ToString("d")).ToList();
if (tasks != null)
{
tempTask.AddRange(tasks);
}
... |
3b1e225b3b53cf2877f85faf7e4a936285ceedc3 | C# | SethTales/FluentInject | /FluentInject/Extensions/TypeExtensions.cs | 2.578125 | 3 | using System;
using FluentInject.Exceptions;
using FluentInject.Models;
namespace FluentInject.Extensions
{
internal static class TypeExtensions
{
internal static bool IsSupportedCtorParam(this Type self)
{
return self.IsInterface ?
true :
throw new... |
a36b0d58c3019ca4555b2b4df23671896e48d30b | C# | pijix/CallCenter | /CallCenter.Application/IncidenceService.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using CallCenter.CORE.Domain;
using CallCenter.CORE.Domain.Enums;
using CallCenter.DAL;
namespace CallCenter.Application
{
public class IncidenceService
{
private DBContext _dbContext;
public Incidenc... |
e52d8c905d48b92b7b785556a0538d092869f9e6 | C# | rold2007/kerglerec | /Tests/Kerglerec.Tests/BirthControlTests.cs | 2.59375 | 3 | // <copyright file="BirthControlTests.cs" company="David Rolland">
// Copyright (c) David Rolland. All rights reserved.
// </copyright>
namespace Kerglerec.Tests
{
using System;
using Shouldly;
using Xunit;
/// <summary>
/// Contains tests for the BirthControl class.
/// </summary>
public class ... |
47c4f4bd57c6bd52c980fafd8e090cca5ce7d6f1 | C# | nikitrifonovprojects/Data-Structures-and-Algorithms | /DataStructuresAndAlgorithms/NT.DataStructures/Hash.cs | 3.25 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace NT.DataStructures
{
public class Hash<T> : ICollection<T>
{
private const int DefaultInitialSize = 17;
internal List<HashSlot<T>>[] buckets;
private int count;
private int len... |
a4d35309d899830f2258ec7206d6e7b73a0b26c5 | C# | inthehand/32feet | /Legacy/InTheHand.Devices.Bluetooth/Devices/Enumeration/DeviceUnpairingResult.cs | 2.765625 | 3 | //-----------------------------------------------------------------------
// <copyright file="DeviceUnpairingResult.cs" company="In The Hand Ltd">
// Copyright (c) 2017 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License - see License.txt
// </copyright>
//------------------... |
95b69b8f9ee33fafe92d44a65c13eef42eec7d7f | C# | Yordan432/Exams | /Programming Basics Online Exam 10-11 March 2018/Online Exam Basics/05.Mask/Program.cs | 3.1875 | 3 | using System;
public class Program
{
public static void Main()
{
int n = int.Parse(Console.ReadLine());
int countSpace = n - 2;
int countSpaceMid = 0;
FirstPart(n, ref countSpace, ref countSpaceMid);
Console.WriteLine(new string('-', n * 2 + 2));
Console.Writ... |
0d1c9b2be67a55c9c7f4e76e8f0d683145898a70 | C# | isurling/EasySharpFrame | /ES/Network/Websocket/RemoteConnection.cs | 2.71875 | 3 | using Fleck;
using System;
namespace ES.Network.Websocket
{
/// <summary>
/// 远程连接对象
/// </summary>
public class RemoteConnection
{
/// <summary>
/// 连接对象
/// </summary>
public IWebSocketConnection socket;
/// <summary>
/// 用户自定义标识 绑定对象
/// <... |
82e42eabef7929c2393c53e3dc2402fc8241dfa8 | C# | s-rusev/TelerikAcademy | /C# I/3HW_OperatorsAndExpressions/OperatorsExpressions/RectangleArea/RectangleArea.cs | 3.578125 | 4 | using System;
class RectangleArea
{
static void Main()
{
double height = Double.Parse(Console.ReadLine());
double width = Double.Parse(Console.ReadLine());
Console.WriteLine("The area of the rectangle is "+ (height*width));
}
}
|
72a975c4512783423364f37154e9bcc0cf1cd952 | C# | Binhhp/picture-engineer | /PictureEngineer.OCR/ImageProcess/Method/DeskewText.cs | 2.625 | 3 | using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.Util;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace PictureEngineer.OCR.ImageProcess.Method
{
public class DeskewText
{
/// <summary>
/// deskew text
/// </s... |
fea3e82b02956c9194ca8373d7069ab47aa7aa1f | C# | HemantKoti/Design-Patterns | /StrategyPattern/Business/Strategies/Comparer/OrderAmountComparer.cs | 3.09375 | 3 | using Strategy_Pattern_First_Look.Business.Models;
using System.Collections.Generic;
namespace StrategyPattern.Business.Strategies.Comparer
{
class OrderAmountComparer : IComparer<Order>
{
public int Compare(Order x, Order y)
{
var xTotal = x.TotalPrice;
var yTotal = y.... |
a8dedcb6ca1b95a0ee28a8110da985bfc4c25072 | C# | bingoo0/SoftUni-TechModule | /Simple Arrays - Exercises/1. Largest Element in Array/LargestElement.cs | 3.640625 | 4 | using System;
using System.Linq;
namespace _1.Largest_Element_in_Array
{
class LargestElement
{
static void Main()
{
var numbers = int.Parse(Console.ReadLine());
var arrayOfNums = new int[numbers];
var largestNum = int.MinValue;
for (int i = 0; ... |
623f2bc06c0cae684d985e5e43b124dd9b51f540 | C# | didafpunk/training-csharp | /AsyncDelegate/AsyncDelegate/Program.cs | 3.21875 | 3 | using System;
using System.Net;
using System.Threading;
namespace AsyncDelegate
{
class Program
{
static bool donwloading = true;
static void Main(string[] args)
{
string filename = "bateau.jpg";
string url = "https://codeavecjonathan.com/res/bateau.jpg";
... |
ea0cac6d40977d4d60f2ff450242fd7a62c868b4 | C# | wyjtom/test | /Login/Login/Web/showdata.aspx.cs | 2.515625 | 3 | using Login.Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Login.Web
{
public partial class showdat... |
68be0837dcd08434c81a28c0062966433c953762 | C# | DracZhang/SortVisualize | /Sort/Base/SortBase.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sort
{
public class SortBase
{
public List<int> SortList { get; private set; }
public int TotalCount { get; private set; }
public event EventHandl... |
2e8a2c2a72c890c8d8ffb2df9c7e785a6e5e5972 | C# | darl2ng/LinqBenchmarks | /LinqBenchmarks/Array/Int32/ArrayInt32WhereCount.cs | 2.734375 | 3 | namespace LinqBenchmarks.Array.Int32;
public class ArrayInt32WhereCount: ArrayInt32BenchmarkBase
{
Func<int> linqOptimizerQuery;
protected override void Setup()
{
base.Setup();
linqOptimizerQuery = source
.AsQueryExpr()
.Where(item => item.IsEven())
.... |
be6b95f241e4de26184636f73f898633b1ae9d3c | C# | leonard-thieu/css-sprite-sheet-generator | /CssSpriteSheetGenerator.Gui/Controls/SelfAdorningFrameworkElement.cs | 2.625 | 3 | using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Documents;
using CssSpriteSheetGenerator.Gui.Controls.Tools;
namespace CssSpriteSheetGenerator.Gui.Controls
{
/// <summary>
/// An element that can be initialized with an adorner.
/... |
df0538d1132a4e77a0d32b9232463611293e3b4d | C# | shendongnian/download4 | /code4/678011-16252715-39799161-2.cs | 2.84375 | 3 | static private dynamic[] testSet = new dynamic[] { 5L, 4D, 3F, null, 2U, 1M, null, 0UL };
static void Main(string[] args)
{
Stopwatch st1 = new Stopwatch();
st1.Start();
for(int i = 0; i < 100000; i++)
Test1();
st1.Stop();
... |
872e48b9a7778c277494a28faef6f41de42817a5 | C# | augomat/projectTracker | /ProjectTracker/Storage/WorktimeRecord.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LiteDB;
namespace ProjectTracker
{
public class WorktimeRecord : IStorageClass
{
[BsonId]
public int storageID { get; set; }
public DateTime Start { get; set; }
... |
20c8baa6151eda53545381a3b49c2bddd7dda0fd | C# | djeebus/MusicHub | /MusicHub.ConsoleApp/BotCommands/MostLovedUsers.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MusicHub.ConsoleApp.BotCommands
{
public class MostLovedUsers : BaseCommand
{
public override string Command
{
get { return "most-loved-users"; }
}
... |
5d99d07f075733b0f701a8971b26d6c74ab127b2 | C# | fvalverd/High-Level-MANET-Protocol | /source/winx86/NetLayer/SystemHandler.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.InteropServices;
using System.Management;
using System.Net.NetworkInformation;
using SystemInterop;
using System.Threading;
namespace NetLayer
{
/// <summary>
/// Clase con mtodos de comunicacin con el sistema operativo... |
4cab155dcc9ed25077f35c3f398728da6d727e71 | C# | cffitzgi/cowboy-cafe | /DataTests/PropertyChangedTests/CowboyCoffeePropertyChangedTests.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
using CowboyCafe.Data.Entrees;
using CowboyCafe.Data.Sides;
using CowboyCafe.Data.Drinks;
using System.ComponentModel;
namespace CowboyCafe.DataTests.PropertyChangedTests
{
public class CowboyCoffeePropertyChang... |
6c768c62615c4b434d2d00cf3b7662ecd7cd851e | C# | ihristova11/TelerikAcademyAlpha | /01. MODULE 1/C# OOP/Exams/CSharp-OOP-16Jan2017/Telerik Academy/Academy/Models/Trainer.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using Academy.Models.Contracts;
using Academy.Models.Utilities;
namespace Academy.Models
{
public class Trainer : ITrainer
{
private string username;
private const string PatternToPrint = "* Trainer:\n -... |
2c2ef7bf49d9a2c255ff5c40f670df7e6df643b7 | C# | ZerlenZhang/QuickStartTools | /Assets/ReadyGamerOne/Algorithm/Graph/TriangleMgr.cs | 2.90625 | 3 | using System.Collections.Generic;
using UnityEngine;
namespace ReadyGamerOne.Algorithm.Graph
{
public static class TriangleMgr
{
private static Dictionary<int, Triangle> id2Trianges = new Dictionary<int, Triangle>();
public static Triangle GetTriangle(int id)
{
foreach (var... |
8fbd1a8d97a0d47e94ddd35dc805d139c47b6fe6 | C# | jeuxjeux20/DongBall | /Assets/Scripts/AnnouncerManager.cs | 2.703125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AnnouncerManager : MonoBehaviour
{
// Use this for initialization
void Start()
{
StartCoroutine(AnnouncementCoroutine());
}
// Update is called once per frame
... |
0868e9581c3c5cf0b935b4ae36e9bc17a7686725 | C# | grigoryan98/Practise | /Stacks/Stacks/StackDemo.cs | 3.328125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stacks
{
public class StackDemo
{
public static void StackPush(Stack st, int a)
{
st.Push(a);
Console.WriteLine($"Pus... |
afaa8e822a5d771612c044dd6e43a5f2677ee9a5 | C# | akshay-shettar/Factory | /FactoryComparor/Factories/CharTypeFactory.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FactoryComparor
{
public class CharTypeFactory : ComparorFactory<char>
{
private char _first;
private char _second;
public CharTypeFactory(char first, char seco... |
f3c8b88f7570fd4c69477c7d5e99d300f5ff7705 | C# | Matias035/Rol_PlayGame_Testing_Eq.8 | /tests/items/Test7.cs | 2.65625 | 3 | using NUnit.Framework;
using RoleplayGame.Characters;
using RoleplayGame.Items;
namespace RoleplayGame.Library.Test
{
public class Test7
{
[Test]
public void WhenAddingMagicToACharacterItsAttackPowerGoesUp()
{
Elf elfo = new Elf("Eduardo");
Magic magia = new Magi... |
6cced2d47b6a1a9156651707f2b09ece2c7ef7cd | C# | denysivanov/MillenniumManagement | /PositionCalculator/mlp.interviews.boxing.problem.Implementation/BoxedPosition/BoxedPositionCalculator.cs | 2.65625 | 3 | using System.Collections.Generic;
using System.Linq;
using mlp.interviews.boxing.problem.Interface.Entity;
using mlp.interviews.boxing.problem.Interface.Interfaces;
namespace mlp.interviews.boxing.problem.Implementation.BoxedPosition
{
public class BoxedPositionCalculator : IBoxedPositionCalculator
{
... |
53a902e2b9e3e794a0e27d0bff16d7b6e14c6dc6 | C# | MrSchlag/bloodbender | /Bloodbender/RadianAngle.cs | 3.15625 | 3 | using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bloodbender
{
public class RadianAngle
{
public float value;
public RadianAngle(float value) { this.value = value; }
public sta... |
5b37a5d8d1add4e67b6bbb696d5088a965a532bc | C# | karstengresch/HexGridUtilitiesForGames | /codeplex/Utilities/Utils.cs | 2.546875 | 3 | #region The MIT License - Copyright (C) 2012-2013 Pieter Geerkens
/////////////////////////////////////////////////////////////////////////////////////////
// PG Software Solutions Inc. - Hex-Grid Utilities
/////////////////////////////////////////////////////////////////////////////////////////
// The ... |
400594dc2f1a4f783d6572d626c4d31b7efedfa7 | C# | darvell/Coremero | /Coremero/Coremero/Storage/JsonCredentialStorage.cs | 2.734375 | 3 | using System.Diagnostics;
using System.IO;
using Coremero.Utilities;
using Newtonsoft.Json.Linq;
namespace Coremero.Storage
{
public class JsonCredentialStorage : ICredentialStorage
{
private readonly string _secretsPath = Path.Combine(PathExtensions.AppDir, "secrets.json");
public string Get... |
25755e1f777d40cf2b0363263b30daa2b44bca8d | C# | SimCitee/ProjetBD2 | /ProjetBD/Collections/PlayerCollection.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Oracle.DataAccess.Client;
using ProjetBD.Models;
namespace ProjetBD.Collections {
class PlayerCollection {
private static PlayerCollection _instance;
private List<Player> _play... |
4806b36117b7db3c5c31fa1994e3ddd4a5b879dc | C# | VitaliiAndreev/WarThunder_PresetRandomizer | /Core.Json.Tests/Extensions/JArrayExtensionsTests.cs | 2.765625 | 3 | using Core.Json.Extensions;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
using System.Linq;
namespace Core.Json.Tests.Extensions
{
/// <summary> See <see cref="JArrayExtensions"/>. </summary>
[TestClass]
public class JArrayExtensionsTests
{
... |
da149bd055e1dc547d090199605ab0df3c1f8564 | C# | axelma199/Proyecto.NET | /Servidor_AlejandroVenegas/ConexionBD/CajeroBD.cs | 2.75 | 3 | using Entidades_AlejandroVenegas.Objetos;
using Servidor_AlejandroVenegas.Objetos;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Tarea2_AlejandroVenegas.ConexionBD
{
class CajeroBD : Conexion
{
public bool inserta... |
58a82e19903cce044bcff41477f8c9d464ddbab5 | C# | agaddampalli/Algorithms | /Chapter 2 - Arrays/LexicographicOrder.linq | 3.46875 | 3 | <Query Kind="Program" />
void Main()
{
var input = "271435";
var length = factorial(input.Length);
LexicographicOrder(input);
}
public int factorial(int n)
{
if(n == 0 || n == 1)
{
return 1;
}
return n * factorial(n-1);
}
public void LexicographicOrder(string input)
{
bool finished = false;
var s ... |
43950b7e997f8d5a3f30b3408aa383ddb78088d7 | C# | h0l0tn1k/Minesweeper | /WindowsFormsApplication1/Classes/ILogExporter.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Minesweeper
{
/// <summary>
/// Interface for Exporting logs
/// </summary>
/// <typeparam name="T">Type of input objects</typeparam>
public interface ILogExporter<T> where... |
3b9e42a327b80c66a034c2941f2f506c5af02553 | C# | shanecelis/PshSharp | /src/TestCase/FloatRegTestCases2.cs | 2.765625 | 3 | using System;
using Psh;
namespace Psh.TestCase {
public class FloatRegTestCases2 : TestCaseGenerator {
private static int _testCaseCount = 200;
private float[] _testCasesX = null;
private float[] _testCasesY = null;
private static float _firstSample = -3;
private static float _lastSample = 3;
public ... |
ef8b30f35728e782581f4e691de4b6fd36031516 | C# | ibanknatoPrad/Voyager-Golden-Record-Decoder | /VoyagerImageDecoder/VoyagerReader3.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VoyagerImageDecoder
{
public class VoyagerReader3
{
private PictureBox pictureB... |
306dc19904bd0404b072749cad32247939da1a46 | C# | shendongnian/download4 | /code9/1577965-44086126-145835447-2.cs | 2.796875 | 3 | engine.Evaluate("x<-c(1:10)");
string[] text = engine.Evaluate("x").AsCharacter().ToArray();
StringBuilder builder = new StringBuilder();
foreach (string value in text)
{
builder.Append(value);
}
... |
fdc7c72fcef5fad0c3c5f3ae90828bf6eb63d629 | C# | Aidan63/smnclauncher | /smnclauncher/Utils/Patcher.cs | 2.703125 | 3 | using Newtonsoft.Json;
using smnclauncher.Models;
using System;
using System.IO;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Security.Cryptography;
namespace smnclauncher.Utils
{
static class Patcher
{
public static IObservable<double> Patch(string patchDirectory... |
f85bf0e8da2dff34a6c0f8e2efb71ddf3c03bd5e | C# | icebeam7/FutbolApp | /FutbolApp/FutbolApp.Android/Helpers/FileHelper.cs | 2.546875 | 3 | using System;
using System.IO;
namespace FutbolApp.Droid.Helpers
{
public class FileHelper
{
public static string ObtenerRutaLocal(string archivo)
{
string ruta = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
retu... |
37c7f0694b076d37c6f447cd9e4f79724a0f69a9 | C# | jazziiilove/BookShelfWebApplication | /BookShelf.BusinessLogic/BookShelfUserManagerBLL.cs | 2.71875 | 3 | /*
* Company:
* Motto: Talk more to loved ones!
* Assignment: A book shelf application
* Deadline: 2012-01-02
* Programmer: Baran Topal
* Solution name: .BookShelfWeb
* Folder name: .BusinessLogic
* Project name: .BookShelfWeb.BLL
* File name: BookShelfUserManagerBLL.cs
* Status: Finished
*/
using Syst... |
7036065ad0c8fd85aac4b902c3807febfc59756f | C# | mGrondzi/ARSearchLEGO | /Assets/CustomScripts/SwitchDatasets.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwitchDatasets: MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
/*
public void SwitchTargetByName(string activateThisDataset)
{
... |
b2785ae67a88250e6e76f6a323005a1bb4a9052e | C# | SKKbySSK/NotesGenerator | /NotesPlayer/Extensions/ElementExtension.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Animation;
namespace NotesPlayer.Extensions
{
public static class ElementExtension
{
public static void AnimateOpacity(this UIElement Ele... |
682444ab7a4e1f21cda6dc84f4e88b2d26c9e8a6 | C# | PavelGem-13g/ne_spisivay | /9 класс/Фоновая 5_2/Фоновая 5_2/Program.cs | 3.140625 | 3 | using System;
namespace Фоновая_5_2
{
class CargoVehicles
{
protected string name;
protected int mass;
protected int powerReserve;
protected int carryCap;
protected int cargoMass;
protected string Name
{
get { return name; }
}
... |
11ac6b2fab931a69a88b432a9b52e651d0f68b1a | C# | Codinablack/Tibia | /src/Tibia.Network.Game/AddingFriendEventArgs.cs | 2.71875 | 3 | using System.ComponentModel;
using Tibia.Data;
using Tibia.Spawns;
namespace Tibia.Network.Game
{
public class AddingFriendEventArgs : CancelEventArgs
{
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Tibia.Network.Game.AddingFriendEventArgs" /> ... |
b107c5b535fe814f5c284bec2a59038b4555265a | C# | Bolillo-Kremer/DriverDB | /DriverDB.Core/Exceptions/DriverDoesntExist.cs | 3.171875 | 3 | using System;
namespace DriverDB.Core.Exceptions
{
class DriverDoesntExist : Exception
{
#region Properties
public string DriverName = string.Empty;
#endregion Properties
#region Constructors
/// <summary>
/// Creates new <see cref="DriverDoesntExist"/>
... |
d3f5bb47ec071e25073acf60c9c870bd6fedcfae | C# | vectorized-runner/node-editor | /Core/Extensions/StringExtensions.cs | 2.953125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Text.RegularExpressions;
public static class StringExtensions
{
public static string ToInspector(this string str)
{
return str.SplitCamelCase().UppercaseFirst();
}
static string SplitCamelCase(this string s... |
d670187bf557327bc00cccd04e23c1d2b2bd4de5 | C# | Caster123/CS3247Project | /LastPiece/Assets/Source/DrawActivityOnResult.cs | 3.078125 | 3 | /**
* DrawActivityOnResult must be implemented by any class wishing to use DrawActivity class.
* The calling class is used as a parameter in DrawActivity.getInstance(DrawActivityOnResult) call.
* Method onDrawActivityResult is called by a DrawActivity method onDrawActivityResultListener, which is a callback method ... |
386af421bf51c5bc562c82840d32576ad90c0f06 | C# | Horton-D/Lab18 | /Lab18/Lab18/List.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
namespace Lab18
{
public class List
{
private int _count = 0;
private readonly string[] _array;
private Object p;
public List(int maxLength)
{
_array = new string[maxLength];
}
public int Cou... |
191e0e1c4a27b5054efcd8c9bbf0cafd4306919e | C# | ukillkenny/IPJ.Test | /Juego RPG/Juego RPG/Tower.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
class Tower
{
enum Options {Enter, Fight, Leave, GoToNextFloor, Error };
enum OnEnterOption { Leave, Fight, Error }
enum OnFinishFightOption { Leave, GoToNextFloor, Error }
private List<Floor> floors;
... |
3ba5f977c7e30383cbd7490bcf8bb32783fff151 | C# | maplemike/NRF_MerchandisingCalendar | /NRF_MerchandisingCalendar/MerchandisingDate.cs | 3.328125 | 3 | using System;
namespace MerchandisingCalendar
{
public class MerchandisingDate
{
#region FIELDS
protected DateTime date;
protected Int32 dayOfYear;
protected Int32 period;
protected Int32 quarter;
protected Int32 week;
prote... |
d8473eeeaac902362332613e2ecc6d791a9da520 | C# | atanashivachev/IT-kariera | /Year 1/Programming/Bonus 17 and 18, 10(10,15,17).02.2019/ProductsForPizza/ProductsForPizzaProgram.cs | 3.828125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProductsForPizza
{
class ProductsForPizzaProgram
{
static void Main(string[] args)
{
List<string> products = Console.ReadLine().Split(' ').ToList();
... |
2fbeec888014dfa14738ac0f2dba5bf555d8bc55 | C# | mkbiltek2019/pdf_transform | /Utils/Utils.cs | 3.46875 | 3 | using System;
using System.Linq;
using System.Text.RegularExpressions;
using PDFTransformation.Enums;
namespace PDFTransformation
{
public static class CommonUtils
{
/// <summary>
/// Generates the file names by using Random Generator for uploaded files.
/// </summary>
/// <ret... |
cddb4c5dd494cb399e1f025dbc4e3d22bbd19e79 | C# | HRashedy/SMSSender | /SMSAPI.Data/Repositories/GenericRepository.cs | 3.046875 | 3 | using Microsoft.EntityFrameworkCore;
using SMSAPI.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SMSAPI.Data.Repositories
{
public abstract class GenericRepository<T> : IGenericRepository<T>
where T : BaseEntity
{
prote... |
2cd70fabd691454dca12b49f1bea64627728d932 | C# | keichi/isurf | /IsosurfaceGenerator/Exporter/OBJExporter.cs | 2.78125 | 3 | /*
* This file is part of "IsosurfaceGenerator"
*
* Copyright (C) 2013 Keichi TAKAHASHI. All Rights Reserved.
* Please contact Keichi Takahashi <keichi.t@me.com> for further informations.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED T... |
985175dfdace4bfda34f3c1e984a5505841203ee | C# | mpodonyi/Twilight | /Twilight.Test/TestBase.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using FluentAssertions;
namespace Twilight.Test
{
public class TestBase
{
private static double ConvertDegreeAngleToDouble(string point)
... |
b849e8a909632dfe42ba0c7b13f5bbbbeda43df5 | C# | alanx0401/ASP-Project-2019 | /ITP213/DAL/AcademicResultDAO.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Web;
namespace MyFunctions.DAL
{
public class AcademicResultDAO
{
string DBConnect = ConfigurationManager.ConnectionStrings["Co... |
6247d1d7d227d6997e10c457e356d91c72143217 | C# | voducdan/PTTKBanHang | /PTTKBanHang/Models/InfoCustomer.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace PTTKBanHang.Models
{
public class InfoCustomer
{
private string _name;
private string _email;
private string _phonenumber;
private string _address;
public string name
{
get... |
79a505dce8c886b570430f3f54999baa493370a3 | C# | qkmaxware/NautilusUnits | /Units/src/Qkmaxware/Units/Frequency/ZettaHertz.cs | 2.921875 | 3 | namespace Qkmaxware.Units.Frequency {
/// <summary>
/// Unit of measurement for ZettaHertz (ZHz)
/// </summary>
public struct ZettaHertz : IFrequency {
public static string Name => "ZettaHertz";
public static string Symbol => "ZHz";
}
/// <summary>
/// Extension method factory for generating... |
7cac39d089a5b987b9daaca849e611a0ee90d103 | C# | sunny-lan/GenshinbotCsharp | /GenshinBotWindows/yui/windows/Line.cs | 2.671875 | 3 | using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace genshinbot.yui.windows
{
class Line : Drawable, yui.Line
{
private Viewport parent;
public Line(Vi... |
81b7df7fb2805b934d3ecf4ceb6e8c931932b755 | C# | DiazMichael/CodingExercises | /CountOnesInBinaryRepresentation/Program.cs | 3.140625 | 3 | using System;
using System.Linq;
namespace CountOnesInBinaryRepresentation
{
class Program
{
static void Main(string[] args)
{
var i = 999;
Console.WriteLine(CountOnes(i));
}
public static int CountOnes(int i)
{
return (Convert.ToStr... |
0d4675dd6ce5abe87827a609b820a798d74039cb | C# | raghavendra3790/algosAllinOne | /Graphs.Tests/DfsTests.cs | 3.109375 | 3 | using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Graphs;
namespace Graphs.Tests
{
[TestClass]
public class DfsTests
{
[TestMethod]
public void TestDFSHasPathSuccess()
{
UndirectedGraph g = BuildGraph();
DFS dfs = ne... |
534702bfaa95eb8182650c90cdca7af1d7ec7178 | C# | ZuhayrProxi/BudgetRepo | /Budgeting.Infrastructure/UserRepository.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using Budgeting.Core.Interfaces;
using Budgeting.Core.Model;
namespace Budgeting.Infrastructure
{
public class UserRepository : IUserRepository
{
public User Register(string username, str... |
090a2d362270777360688c73b4ecf889e463b878 | C# | hack4change/hambasafe | /Server/Hambasafe.Services/Services/AttendanceService.cs | 2.84375 | 3 | using System;
using System.Linq;
using System.Threading.Tasks;
using Hambasafe.DataLayer;
using Hambasafe.DataLayer.Entities;
using Hambasafe.Services.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Hambasafe.Services.Services
{
public interface IAttendanceService
{
Task<bool> Join(Attendan... |
2a66d70add928640eeea887cdf5941259e7433fd | C# | shendongnian/download4 | /code2/269433-5471421-11726048-2.cs | 2.859375 | 3 | protected void Button1_Click(object sender, EventArgs e)
{
FileInfo imageInfo = new FileInfo(File1.Value.Trim());
if (!imageInfo.Exists)
//Show msg for "please select one image file."
else
{
switch (imageInfo.Extension.ToUpper())
... |
e73de25ffe9a805f1f44e822b1cf8ae42b8e4dd4 | C# | khadbui94/KoalaTea_POS_System | /KoalaTea_Project_Root/FormCalculator.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KoalaTea_Project_Root
{
public partial class FormCalculator : Form
{
public Fo... |
a63417f8c8312886b85e8baabad04bba5b691d27 | C# | matheus-maeda/PatoTelecom | /PatoTelecom/Plano.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PatoTelecom
{
class Plano
{
private string _id;
private string _nome;
private string _franquia;
private string _caracteristicas;
private string ... |
0868697c413577f9fa333a760a92b9a35ccb2888 | C# | IsaoOhnuki/PlainWpf | /PlainUtility/Behaviors/InkCanvasBehavior.cs | 2.71875 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Ink;
using System.Windows.Media.Imaging;
using System.Windows.Media;
namespace Behaviors
{
public class InkCanvasBeh... |
bc45a1766c1ebdbd1a2c9b98a66491faae09c616 | C# | dktrotti/SaltyBid | /ShanghaiBloodSports/Assets/Scripts/Input/AutoAttackInputBuffer.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Assets.Scripts.Input
{
public class AutoAttackInputBuffer : MonoBehaviour, IInputBuffer
{
public InputDevice Device { get; } = new DummyDevice();
pr... |
51871a88cfdc7188bc5efb6aecc03b0b9e2ac1fb | C# | Glassification/Concierge | /Concierge.Tools/DiceRoller/ShuntingYard.cs | 3.359375 | 3 | // <copyright file="ShuntingYard.cs" company="Thomas Beckett">
// Copyright (c) Thomas Beckett. All rights reserved.
// </copyright>
namespace Concierge.Tools.DiceRoller
{
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Provides methods for converting infix expressions to postf... |
66a7701224c1247274e64c7157bb8d4c42218dde | C# | jkendev/Distributed-Brute-Force-Password-Recovery | /RecoveryManagerLibrary/PWBatch.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RecoveryManagerLibrary
{
/// <summary>
/// A Struct to be passed across a network to a service. Smaller size than the PWBatch object!
/// </summary>
public struct Batch
{
... |
c913f1813aba949adc1a5f23ccc8f0835e928aca | C# | GBarrera817/SW1_ISO9126_FUZZY | /SW1_ISO9126_FUZZY/Logica Difusa/ImplicacionDifusa.cs | 2.890625 | 3 | namespace SW1_ISO9126_FUZZY.Logica_Difusa
{
/// <summary>
/// Clase para la implicación de la lógica difusa.
/// </summary>
public static class ImplicacionDifusa
{
/// <summary>
/// Realiza la implicación, recibe el valor resultante de aplicar el operador
/// a la regla evaluada.
/// </summary>
/// <par... |
3ea0282ebb1f917a17f9bde2d09609a6f74d76ad | C# | iosdevzone/excel-mapper | /src/Mappers/DictionaryMapper.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using ExcelMapper.Abstractions;
namespace ExcelMapper.Mappers
{
/// <summary>
/// Tries to map the value of a cell to an object using a mapping dictionary.
/// </summary>
public class DictionaryMapper<T> : ICellValueMapper
{
/// <summary>
... |
9db830f3268320bc925ccff4941f3c79abdaa54d | C# | lc8882972/RateLimiters | /sample/Hello/State.cs | 3.15625 | 3 | using System;
namespace Hello.State
{
// 状态模式
class Context
{
State state;
public Context(State state)
{
this.state = state;
}
public State State
{
get;
set;
}
public void Request()
{
s... |
3c092315813035af7b469d5aa78798e4aa52c7c9 | C# | hlimbo/MathNinja | /Assets/Scripts/NumberText.cs | 2.890625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
//use this class as a workaround for text values not updating sometimes
[RequireComponent(typeof(TextMeshPro))]
public class NumberText : MonoBehaviour
{
private TextMeshPro tmp;
//use this variable to compar... |
5241c2a1518cfa911d6fcbdb93d45e9f0651f259 | C# | gentringer/Webservices | /webservices/Library-Webservice/RemotingPartage/Livre.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RemotingPartage2
{
public class Livre : MarshalByRefObject, RemotingInterfaces.ILivre
{
private String auteur;
private String titre;
private String isbn;
private String e... |
f8efa0152ed5a1ca8cd44d6c44da92838bf9e6f6 | C# | swcarrier/SteamCompletionTime | /SteamCompletionTime/Form1.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using RestSharp;
namespace SteamCompletionTime
{
public partial class Form1 : Form
{
public ... |
0e6f7f64179a77e73a64b793dcba7215419fab91 | C# | shendongnian/download4 | /latest_version_download2/209185-44740183-150138252-4.cs | 2.5625 | 3 | public sealed class WebSaveActivity : NativeActivity
{
public InArgument<MyBigObject> ObjectToSave { get; set; }
protected override bool CanInduceIdle
{
get
{
// This notifies the WF engine that the activity can be unloaded / persisted to an instan... |