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 |
|---|---|---|---|---|---|---|
e8bc4081e9f2f73630d5dd7b42d1bf5d363996fc | C# | aleksimanninen/TTOS0200 | /Lab3.2/Program.cs | 2.84375 | 3 | /*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab3._2
{
class Program
{
static void Main(string[] args)
{
AnnaVolume();
}
static void Ann... |
ab6ed81328d135eeccf9a1ace06889258666e2c5 | C# | shawnewallace/TheAlgorithmsStillCount | /src/cs/Algorithms/Program.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Algorithms.Lib;
namespace Algorithms
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Starting...");
var stopwatch = new Stopwatch();
/... |
e6abc0c49a184dee58c585f2a51e575b209a1ad2 | C# | tonysneed/GK.AspNetCore.v1.Demos | /Demos/06_Razor_2/RazorComponents/RazorComponents/Services/DrinkService.cs | 2.625 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
using RazorComponents.Models;
namespace RazorComponents.Services
{
public class DrinkService : IDrinkService
{
public async Task<IEnumerable<Drink>> GetDrinks()
{
var drinks = new List<Drink>
{
... |
fca46521cb003b2f72325adb3aabbbda14e774b5 | C# | abdulrash234/MovieRank | /MovieRank/Services/MovieRankService.cs | 2.515625 | 3 | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MovieRank.Contracts;
using MovieRank.Libs.Mappers;
using MovieRank.Libs.Repositories;
namespace MovieRank.Services
{
public class MovieRankService:IMovieRankService
{
private readonly IMovieRankRepository _mo... |
aa9e9917bfd95f696af12b1cd9f2ee6cba097161 | C# | rleopold/GrpcDemo | /server/TestServer.cs | 2.609375 | 3 | using System;
using System.Threading.Tasks;
using Grpc.Core;
using grpc_test;
public class TestServer : grpc_test.TestService.TestServiceBase {
public override Task<Response> GetTime(Request req, ServerCallContext ctx) {
Console.WriteLine("GetTime request recieved.");
var res = new Response { Body... |
14c2f372a14690ed6e8b2dd90587a7453b344aed | C# | flpinheiro/ComputationalSecurity | /src/UnB.Security.WebApi/Dto/PublicKeyDto.cs | 2.71875 | 3 | using System.ComponentModel.DataAnnotations;
using System.Numerics;
using UnB.Security.Domain;
namespace UnB.Security.WebApi.Dto
{
public class PublicKeyDto
{
[Required]
public string N { get; set; }
[Required]
public string E { get; set; }
public PublicKeyDto() { }
... |
6a891b5c7daee5431442a874faf9aa5a638a14f7 | C# | schuster-rainer/CloDE | /Clode.Extensions/Clode.Extensions/TextSentToScriptingConsole.cs | 2.984375 | 3 | // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
namespace ICSharpCode.Scripting
{
public class TextSentToScriptingConsole... |
213336e24bf7b28b966b935f03fca9902e4fee9d | C# | ctphuclass/Project_3 | /QuanLyMuaCaFe/DAO/CongThuc_DAO.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using DTO;
namespace DAO
{
public class CongThuc_DAO
{
public static SqlConnection con = new SqlConnection(Con... |
73f52e10b951a7cac9118d2724ccdda2d64f3f71 | C# | helix-toolkit/helix-toolkit | /Source/HelixToolkit.Wpf.Shared/Helpers/ScreenSpace/Billboard.cs | 2.9375 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Billboard.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// <summary>
// Represents a billboard.
// </summary>
// --------------... |
925c35284050532e3c91ca16447da086614e5bd3 | C# | shendongnian/download4 | /first_version_download2/125508-8877739-20051895-4.cs | 2.8125 | 3 | public interface IOperand
{
}
public interface IOperand<T>
{
}
public interface IOperandFactory
{
IOperand CreateEmptyOperand();
IOperand CreateOperand(object value);
}
public interface IOperandFactory<T> : IOperandFactory
{
new IOperand<T> CreateEmpty... |
f1881af83607ff88ef9694e5f5b62068d228c2f0 | C# | Loyal7/CodeBase | /C#WORK/Event/Event/Program.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Event
{
class Program
{
static void Main(string[] args)
{
var e = new Num(10);
e.SetValue(100);
e.ChangeNum += new Num.NumMa... |
651c5e64274b8c38640329f09bbab285a1fe0222 | C# | klik0121/Backpack | /Backpack/MethodType.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Backpack
{
/// <summary>
/// Метод решения задачи.
/// </summary>
public enum MethodType
{
/// <summary>
/// Рекурсивный полный перебор.
///... |
14241a618ccae14987854d528d512cda1033880e | C# | toine16/Labo2 | /AdopteUneDev.DbTools/ForfaitRepository.cs | 2.53125 | 3 | using AdopteUneDev.Models.Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Threading.Tasks;
namespace AdopteUneDev.DbTools
{
class ForfaitRepository : BaseRepository<Forfait,int>
{
private DbConnect db;
... |
16e4b0a207d08982d0746c8cd3c232e8ba773187 | C# | nickgenov/OOP-June-2015 | /01.DefiningClassesPractice/PlayWithClasses/Animal.cs | 3.71875 | 4 | namespace PlayWithClasses
{
public class Animal
{
private string name;
public Animal()
{
}
public Animal(string name)
{
this.Name = name;
}
public string Name
{
get
{
return this.name;... |
28ecdf1ee00fb9c19839536f2b12a479ed795f5b | C# | sethsteenken/net-assist | /NetAssist/NetAssist.Core/Extensions/ObjectExtensions.cs | 3.546875 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace NetAssist
{
public static class ObjectExtensions
{
public static bool HasProperty(this object obj, string propertyName)
{
return Property(obj, propertyNam... |
b3f80bdf7c83ddf34089005b89c8105a4cb382d7 | C# | mitko113/CSharp | /SoftUniHomework/04.ConsoleInputOutput/10.FibonacciSequencePrint/FibonacciSequencePrint.cs | 3.875 | 4 | using System;
namespace _10.FibonacciSequencePrint
{
class FibonacciSequencePrint
{
static void Main()
{
Console.WriteLine("Enter the value of 'n' ");
int n = int.Parse(Console.ReadLine());
Console.WriteLine(new string('-',40));
double firstNum ... |
d13176e67444f151b20631bd5eb497404ca70f7b | C# | FabiovanHaarlem/VRWallDodge | /KeuzedeelGame/Assets/Scripts/Systems/Base/PlayerData.cs | 2.78125 | 3 | public static class PlayerData
{
private static float m_DefaultPlayerHeight = 1.7f;
private static float m_DefaultPlayerDuckHeight = 1.0f;
private static float m_PlayerHeight = m_DefaultPlayerHeight;
private static float m_PlayerDuckHeight = m_DefaultPlayerDuckHeight;
public static AudioManager m_... |
8135f48b6e8b69646dbe90f54db5777b7a551f1e | C# | TomaszSynak/AzureStorageClient | /Projects/AzureStorageClient.Blob/Infrastructure/Serializer.cs | 2.953125 | 3 | namespace AzureStorageClient
{
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
internal static class Serializer
{
/// <summary>
/// You should not override the Newtonsoft.Json ContractResolver with CamelCasePropertyNamesContractResolver for Json Serialization.
/// N... |
72f6c5625834068d042e81b57451036fe93bf5b3 | C# | zhongyang219/ReoGrid | /ReoGrid/Drawing/Image.cs | 2.5625 | 3 |
#if DRAWING
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using unvell.ReoGrid.Graphics;
using unvell.ReoGrid.Rendering;
#if WINFORM
using RGImage = System.Drawing.Image;
#elif WPF
using RGImage = System.Windows.Media.ImageSource;
#elif ANDROID
using RGImage = Android.Graphi... |
d25f62cd36439cfc78c5350d68612edc3334e845 | C# | dkblock/VisualAlgorithms | /VisualAlgorithms/Algorithms/RedBlackTree.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
namespace VisualAlgorithms.Structures
{
internal enum NodeColor
{
Black,
Red
}
internal class RedBLackNode<TKey, TValue> : ITreeNode<TKey, TValue> where TKey : IComparable<TKey>
{
public TKey Key { get; set; }
public ... |
883102f4fe5415e478a9783a3a9b2a178b1e653f | C# | mclellsk/capturedflag | /columbus/CapturedFlag/Localization/LocalizeText.cs | 2.75 | 3 | using UnityEngine;
namespace CapturedFlag.Localization
{
public class LocalizeText : MonoBehaviour
{
/// <summary>
/// Key to lookup in localization table.
/// </summary>
public string key = "";
private string _text = "";
public string Text
... |
4dabc8d52466db5db44502192c5fcd776c57a8e6 | C# | J511Y/GD_algostudy | /[1주차]While, For, If 조건문/신소연/Baekjoons/Baekjoons_02/2주차_문자열_크로아티아알파벳_2941.cs | 3.09375 | 3 | using System;
namespace Baekjoons_2
{
class _2주차_문자열_크로아티아알파벳_2941
{
static void Main(string[] args)
{
string[] croa = new string []{"c=", "c-", "dz=", "d-","lj","nj","s=","z=" };
string str = Console.ReadLine();
for (int i = 0; i < croa.Length; i++)
... |
01fe478f97039aefa3d331d91905c2ecd75ace39 | C# | Ravlikus/Ravlik | /Basic coding/InsertNumber/InsertNumber/Program.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InsertNumber
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(NumberInserter.InsertNumber(8,15,3,8));
Console.ReadKey();
... |
cec8298181b4009655d177cacb16fe4840c9fded | C# | Mijalski/CategoriesGame | /GameLogic/Logics/RoundAnswer.cs | 2.921875 | 3 | using System.Collections.Generic;
using System.Linq;
namespace GameLogic.Logics
{
public class RoundAnswer
{
public RoundAnswer(string category, string answer, string playerUserName)
{
Category = category;
Answer = answer;
PlayerUserName = playerUserName;
... |
0f381dcb2908a712c27da24443192798ef848acb | C# | donrolling/project-template | /Data/Dapper/Models/PageInfo.cs | 2.65625 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Data.Dapper.Models {
public class PageInfo {
public List<SearchFilter> Filters { get; set; } = new List<SearchFilter>();
public string GroupBy { get; set; } = string.Empty;
public string OrderBy { get; set; } ... |
de3967eb8dca737ef807dc557933838577226599 | C# | LinaHelina/GhostPopPrototype | /GhostPopPrototype/Assets/Scripts/GamePool/SimplePoolHelper.cs | 3.328125 | 3 | using System.Collections.Generic;
namespace GamePool
{
public static class SimplePoolHelper
{
// Pool container for given type
private static class PoolsOfType<T> where T : class
{
// Pool with poolName = null
private static SimplePool<T> defaultPool = null;
... |
be66933c3a822decb384bed57f5175d38763f200 | C# | kuncetto/RabbitMQ.Learning.Tests | /RabbitMQ.Learning.Tests/ConnectionTests.cs | 2.578125 | 3 | using RabbitMQ.Client;
using RabbitMQ.Client.Exceptions;
using Xunit;
namespace RabbitMQ.Learning.Tests
{
public class ConnectionTests
{
[Fact]
public void OpenAConnectionUsingTheDefaultConnectionFactory()
{
new TestBuilder<IConnection>()
.Given(() => new Co... |
0668600ca9da51114d10f5cac1897564e9ec0954 | C# | Nightwolf84983/SeLogerExtractor | /SeLogerExtractor.WindowsService/Service1.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using SeLogerExtractor.DataAccess;
using System.Threading;
namespace SeLogerExtractor.WindowsServic... |
10968ed5313ef30e1ef6dacf3dd2e14125c93e1a | C# | shendongnian/download4 | /first_version_download2/172448-12927949-30582885-2.cs | 2.546875 | 3 | public string Index()
{
return GetType().FullName + GetMemberName();
}
static string GetMemberName([CallerMemberName] string memberName = "")
{
return memberName;
}
|
c430f35ed8610f50fe345b53a40670b7ea294a7f | C# | Tiger66639/code-0 | /Designer/Tools/Thesaurus/items/ThesaurusLinkedItem.cs | 2.625 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ThesaurusLinkedItem.cs" company="">
//
// </copyright>
// <summary>
// A wrapper class for a relationship between a thesaurus item and a related
// part of speech item or c... |
237d33a0d9fdc7d0a25ade67d9ecb732b97e8c64 | C# | FoxSilou/Spending | /Spending.Domain.Tests/Mocks/MockSpendingRepository.cs | 2.5625 | 3 | namespace Spending.Domain.Tests.Mocks
{
using Moq;
using Spending.Domain.Contracts;
using Spending.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
public class MockSpendingRepository : Mock<ISpendingRepository>
{
private static readonly Random ... |
b413a7ed15d9d67e1cfc1e1ddf6df8c3a1f38081 | C# | Jaryli/WCFStudy | /WCFClient/Program.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
namespace WCFClient
{
class Program
{
static void Main(string[] args)
{
//basic 方式
ChannelFactory<WcfServiceLib.IService1> factory = new ChannelFactory<WcfSe... |
ad02bea689b85b9070219eb1e68fa2281963bc5d | C# | shifatkhan/Mario64-Unity | /Assets/_Scripts/Camera/CameraMovement.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// This script takes care of the camera's follow movement + rotation
/// based on mouse movement.
///
/// @author ShifatKhan
/// @special thanks to https://sharpcoderblog.com/blog/third-person-camera-in-unity-3d
/// </summa... |
a714efd3c49651bb7bbea987a07d4b7194dafded | C# | MorrisMuuoMulitu/C- | /IT_Service_Company/ItServiceComp/ItServiceComp/HelpDesk.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ItServiceComp
{
class HelpDesk:Employee
{
//properties
public string Language { get; private set; }
public string LanguageCertCode { get; private se... |
aa1f78383daff7bb124b3668eb38a5d828863c4b | C# | shanxifentengproject/project_unity3d2017.4.2 | /KillVirus_ott/Assets/ftproject/script/LibraryScript/UniCommand/math/Logarithmf.cs | 3.5 | 4 | using System;
/*
* ̱ʽ:a*Log(x)+b=y
* :x
* :y
* */
struct Logarithmf
{
public float m_a;
public float m_b;
public Logarithmf(float a, float b)
{
m_a = a;
m_b = b;
}
public float GetValue(float x)
{
//xΪ0x0
if (UnityEngine.Mathf.Abs(x - 0.0f) <= UnityEngine... |
1367930ad07eddb13a98c50244e7df2c224f2f2b | C# | Oshchenkov/moss | /EC.Library/ThreadedBindingList.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
using System.Threading;
namespace EC.Library
{
public class ThreadedBindingList<T> : BindingList<T>
{
public delegate void SortedHandler(ListSortDirection sortDirection, string sortP... |
c4de17adaac80229eba22df5a99bf03642402f3a | C# | marcelooliveira/alura-linq | /AluraLinq.Console/Problemas/12. ordenar os álbuns do led zeppelin por nome/Problema12.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace alura_linq.Problemas.Problema12
{
/// <summary>
/// 12. ordenar os álbuns do led zeppelin por nome
/// </summary>
class Problema12 : ProblemaBase
{
pub... |
7f09ddc00266f7beac94b243058baaf603cef790 | C# | ckittel/HoiPolloi | /src/HoiPolloi/Guard.cs | 3.421875 | 3 | using System;
namespace HoiPolloi
{
/// <summary>
/// Contains common validations used to guard against bad data in methods
/// </summary>
public static class Guard
{
/// <summary>
/// Check that the value of the string is not null or empty, otherwise throw.
/// </summary... |
8752d3d0e27827d07726f66a8306a5a489565f9c | C# | CnCFPS/TF2Bot | /Atlantis/Atlantis/Linq/EnumExtensions.cs | 2.796875 | 3 | // -----------------------------------------------------------------------------
// <copyright file="EnumExtensions.cs" company="Zack Loveless">
// Copyright (c) Zack Loveless. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------------
namespace Atlan... |
5296cf0057d283de6e33416ab5295075e672b1d4 | C# | jmaBranquinho/hackathon | /WordLadderChallenge/Extensions/GuardClauses/InvalidWordLengthGuard.cs | 2.734375 | 3 | using WordLadderChallenge.Exceptions;
namespace Ardalis.GuardClauses
{
public static class InvalidWordLengthGuard
{
public static void InvalidWordLength(this IGuardClause guardClause, string word1, string word2)
{
if (word1?.Length != word2?.Length)
{
th... |
c8be2eaf35b22c3359e0ccfa3966771e11616b78 | C# | AleksandarGit/dotnet-comic-book-gallery-model | /src/ComicBookLibraryManager/ComicBookLibraryManager/Program.cs | 3.25 | 3 | using ComicBookLibraryManager.Data;
using ComicBookLibraryManager.Helpers;
using ComicBookLibraryManager.Models;
using System;
using System.Collections.Generic;
namespace ComicBookLibraryManager
{
class Program
{
// These are the various commands that can be performed
// in the app. Each comm... |
99fc4e42af2b6631760203634fae466c13d2ddac | C# | tlisek/T_Lisek_VisualStudio | /Lab3/Lab3/Zadanie9.cs | 3.6875 | 4 | using System;
namespace Lab3 {
public class Zadanie9 {
public void Run() {
char[] delimiterChars = {'+','-'};
Console.WriteLine("Podaj dzialanie (wspierane operacje: +,-)");
string input = Console.ReadLine();
string mathExpr = input.Replace(" ", "");
string[] nums = mathExpr.Spl... |
06b36c19bdd8ddf1f4da525ac3304c68414bd2e3 | C# | aakamenov/Rila-Lang | /RilaLang/Compiler/Ast/ContinueStatement.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace RilaLang.Compiler.Ast
{
using DLR = System.Linq.Expressions;
public class ContinueStatement : Statement
{
public override DLR.Expression Gen... |
299b245169f0ccf2bf94a809eb1e4e209bd042f9 | C# | mattnischan/evelib | /EveLib.Core/EveLib.cs | 2.578125 | 3 | using System;
using System.Threading.Tasks;
using eZet.EveLib.Core.RequestHandlers;
using eZet.EveLib.Core.Serializers;
using eZet.EveLib.Core.Util;
namespace eZet.EveLib.Core {
/// <summary>
/// This is a class for general EveLib utilities and methods
/// </summary>
public class EveLib : EveLibAp... |
4404a80d1cac23fdde5b98cfd10ce7909e3bcec3 | C# | chenrensui/ScottPlot | /demos/WinForms/Demos/FormPadding.cs | 2.6875 | 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 ScottPlotDemos
{
public partial class FormPadding : Form
{
public FormPadding(... |
e2a74d7a704d90bf167822bfec276431e973dae2 | C# | adhikari-chayan/dotnetcore | /KafkaDemo/WeatherApp/WeatherConsumer/WeatherConsumer/Program.cs | 2.765625 | 3 | using Confluent.Kafka;
using Newtonsoft.Json;
var config = new ConsumerConfig
{
GroupId = "weather-consumer-group",
BootstrapServers = "localhost:9092",
AutoOffsetReset = AutoOffsetReset.Earliest,
};
using var consumer = new ConsumerBuilder<Null, s... |
a4547035537c329ae9baba86a51d66b007750985 | C# | HillDavin012/Project_Alpha | /Project_Alpha/Project_Alpha/MainForm.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Recognition;
using System.Speech.Synthesis;
using System.Data.SqlClient;
... |
a975f7f76067134a7e293015ce3d38987e3c5f90 | C# | milicamedic5/WEB2 | /backend/Web2/Web2/Controllers/TeamController.cs | 2.546875 | 3 | using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Web2.DTOs;
using Web2.Models;
using Web2.Repository;
na... |
e933df742130ce309c80ed72c6792f61a5138067 | C# | asavinov/dce-csharp | /Test/CsvTest.cs | 2.625 | 3 | using System.Globalization;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.Schema;
using Com.Schema.Csv;
using Offset = System.Int32;
namespace Test
{
[TestClass]
public class CsvTest
{
public st... |
23077b9e99e4d4b9839f30f893d54e0e0e79005a | C# | sambarksdale/mailchimp | /MarkdownConverter/HtmlConverter.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using MarkdownConverter.Converters;
using MarkdownConverter.TagUtilities;
namespace MarkdownConverter.Converter
{
public class HtmlConverter
{
#region Convert 2... |
28233413319a900eb078c8cad096760c7dfe6321 | C# | bcary/Vestn_Backend | /Accessors/LogAccessor/LogAccessor.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using System.Data.Entity;
using System.Data;
using System.Data.Linq;
namespace Accessor
{
public class LogAccessor
{
public Log CreateLog(DateTime eventTime, string location, string exception)
... |
4e8c5752edeaf428a00f33cd61aa45f5547c631b | C# | JorisAlbers/Stella | /StellaServerLib/Animation/Mapping/PiMaskItem.cs | 2.828125 | 3 | using System.Diagnostics;
namespace StellaServerLib.Animation.Mapping
{
/// <summary>
/// Points to a pi and pixelIndex on that pi.
/// </summary>
[DebuggerDisplay("Index = {PixelIndex}, piIndex = {PiIndex}")]
public class PiMaskItem
{
/// <summary> The index of the pi </summary>
... |
335ef5bb71f4821cd2b0feb561d32292f9bdd017 | C# | PizzaCutter/Fobble | /Assets/Scripts/Projectile/ProjectileManager.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProjectileManager : MonoBehaviour
{
[SerializeField]
private List<GameObject> ProjectilePrefabs = new List<GameObject>();
[SerializeField]
private int AmountToSpawn = 1;
private Dictionary<GameObject, List... |
ab8707a0d38e715c6e4d88d191676659cbb63d7e | C# | kerolon/rabbitMQ_TEST | /Consumer/Program.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using System.Threading;
namespace Consumer
{
class ReceiveLogs
{
static void Main(string[] args)
{
var factory = ... |
85c6c76b9b0823d1554b09f1ebeb62930f2daa44 | C# | paidisettyv/LMPortal | /LM.API/LM.Data/Models/Mapping/CompanyMap.cs | 2.71875 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace LM.Data.Models.Mapping
{
public class CompanyMap : EntityTypeConfiguration<Company>
{
public CompanyMap()
{
// Primary Key
this.HasKey(t => t.CompanyId);
... |
8315d9589400343307e34bc2f590d36b293d2ef5 | C# | dcx2202/Home-Assistant-YAML-Editor | /YAMLEditor/SFTPManager.cs | 2.953125 | 3 | using Renci.SshNet;
using System.IO;
namespace YAMLEditor
{
static class SFTPManager
{
/// <summary>
/// Downloads the files in a given directory in the remote machine to a given local directory
/// </summary>
/// <param name="address"></param>
/// <param name="username... |
75f3adbf9b7745e084c73bc9cac358726c799ed7 | C# | dogiaplinh/speech-processing-project | /SpeechProcessing/WpfApp/MainWindow.xaml.cs | 2.71875 | 3 | using System;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace WpfApp
{
public partial class MainWindow : Window
{
private MainViewModel mainViewModel;
public MainWindow()
... |
aa36dc2e934f594d0069ff46cd338bb0f6eb0810 | C# | AnotherEpigone/novalia | /Entities/UnitAtlas.cs | 2.6875 | 3 | using Novalia.Fonts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Novalia.Entities
{
public static class UnitAtlas
{
private static readonly Lazy<Dictionary<string, UnitTemplate>> _byId;
static UnitAtlas()
{
_byId = ... |
507c458e7df9f1158cdf4be36bebd2ace372faa6 | C# | guoyun911/MvMSocket | /Client/Program.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Client
{
class Program
{
static void Main(string[] args)
{
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolTyp... |
759b18a46a10dfcdb48d057dcd773dde7c599325 | C# | Zingabopp/BeatSaberCustomAvatars | /Source/CustomAvatar/Avatar/AvatarInfo.cs | 2.9375 | 3 | using System;
using System.IO;
using UnityEngine;
namespace CustomAvatar.Avatar
{
internal class AvatarInfo
{
/// <summary>
/// Name of the avatar.
/// </summary>
public readonly string name;
/// <summary>
/// Avatar author's name.
/// </summary>
... |
6b02c3f69d97f6a341e0dfc9087014537711506e | C# | DariaTimofte/BookStore | /Services/AuthorService.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BookStoreApp.IServices;
using BookStoreApp.IRepositories;
using BookStoreApp.Entities;
using Microsoft.Extensions.Options;
namespace BookStoreApp.Services
{
public class AuthorService : IAuthorService
{
... |
c6c14e72863db6529982f07c0f0372a702cc6a9c | C# | GFStealer-666/MidTerm_2ndYear | /Library.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Collections;
namespace Library
{
enum Mainmenu
{
Login = 1,
Register
}
class Program
{
static PersonList personList;
static void Main(string[] args)
{
Program.personList = new Perso... |
feca56ae06a0934818088ea3b1f447ca83951f0f | C# | jyurkiw/Unity3D-prpg | /Assets/Scripts/Classes/ICombatClassDefinition.cs | 2.6875 | 3 | /**
* Implementation contract for a Class Singleton.
*
* All interface members take the Actor's level as
* an input, and return an integer or float value
* depending on the stat being returned.
*/
public interface ICombatClassDefinition {
int GetHits(int level);
int GetEnergy(int level);
int GetAttack(int lev... |
2b09924f2fcaedecf87ffcec800f27075c01478f | C# | jt222ii/Workshop3Blackjack | /model/Dealer.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace BlackJack.model
{
class Dealer : Player
{
private Deck m_deck = null;
private const int g_maxScore = 21;
private rules.INewGameStrategy m_newGameRule;
... |
45912fdbd9e49bcd31521e00f3ce2ca7e9fd9819 | C# | BlueChilli/ChilliSource.Mobile.Location | /src/ChilliSource.Mobile.Location/Google/Maps/Roads/Models/SnappedPoint.cs | 2.640625 | 3 | #region License
/*
Licensed to Blue Chilli Technology Pty Ltd and the contributors under the MIT License (the "License").
You may not use this file except in compliance with the License.
See the LICENSE file in the project root for more information.
*/
#endregion
using System;
namespace ChilliSource.Mobile.Location.... |
5827f657686fe54222ebccf689f2c1bb441f15f6 | C# | vatioz/AdventOfCode | /AdventOfCode/Day14/Track.cs | 3.421875 | 3 | using System.Collections.Generic;
using System.Linq;
namespace AdventOfCode.Day14
{
public class Track
{
private List<Reindeer> Reindeers { get; set; }
public Track()
{
Reindeers = new List<Reindeer>();
}
public void Commit(Reindeer reindeer)
{
... |
ee977905ba3c1e6a97184103ba84f1eda15616f4 | C# | CloudNStoyan/homework | /ConsoleApp1/Extensions/Program.cs | 3.078125 | 3 | using System;
using System.CodeDom;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
namespace Extensions
{
public class Program
{
public class Group
{
public ... |
7fd7fa285066639215754f55da53e31cd686f896 | C# | RiyazKhan87/petulant-ninja-C- | /CheckBook Organizer Extended- Batch Mode/CheckBook Organizer Extended- Batch Mode/Relations.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Checkbook_Organizer__BASIC
{
class Relations
{
private static double credit;
private static double debit;
private static double acct;
public static Double CREDIT
{
... |
45a4541a422d1344e88a605ba2e35f4f238c36db | C# | boostNode/IN2017_Module11 | /DisplayFile/DisplayFile/Program.cs | 3.296875 | 3 | /*
* Author: Troy Davis
* Project: Module11 - DisplayFile
* - Software Development Fundamentals Lesson 5
* -- Understanding Console Base Applications - exercise p130
*
* NOTE: Drive letter in command line arguments must be correctly set (see Debug Start Options)
* - this sets correct path to... |
19de9ac6c19caa628061c27288f2bcf158a9ba53 | C# | jVanZwieten/lab | /cSharpLab/cSharpLab/CheckDigit.cs | 3.5625 | 4 | using System;
namespace cSharpLab
{
internal static class CheckDigit
{
const decimal sampleDecimal=1.25M;
const int decimalPlace = 1;
internal static void Run()
{
Console.WriteLine($"Argument: {sampleDecimal} has n={decimalPlace} decimal place: {CheckDecimalPlace(s... |
471d29ef9e4ba89aa2a0a5a689fd57a349357a43 | C# | sourav110/DotNet-Practice | /StudentRegistrationWebApp/StudentRegistrationWebApp/DAL/DepartmentGateway.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Data.SqlClient;
using StudentRegistrationWebApp.Models;
namespace StudentRegistrationWebApp.DAL
{
public class DepartmentGateway
{
public List<Department> GetDepartments()
... |
6b18d38cc671ee5862513f691082a76000177992 | C# | 5l4y3r/LabaidHealthKiosk | /BusinessLayer/QuestionClass.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using EntityClasses;
namespace BusinessLayer
{
public class QuestionClass
{
public static void AddQuestionGroup( string qname)
{
var context = ... |
737e8e7ffa8dca0b1b0a536707832f6a480a364d | C# | dixon01/Dev-Jasper | /backend/Motion/Update/Source/Luminator.MultiCast.BroadCast/Program.cs | 2.71875 | 3 | // This sender example must be used in conjunction with the listener program.
// You must run this program as follows:
// Open a console window and run the listener from the command line.
// In another console window run the sender. In both cases you must specify
// the local IPAddress to use. To obtain this address... |
fd46267b1eecb373516e60df8c7bf6fc7b145e20 | C# | Zera57/PiscineC-Sharp | /Day01/Ex01/Tasks/Task.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Ex01.Events;
namespace Ex01.Tasks
{
public class Task
{
List<Event> _state = new List<Event>();
string _title;
string _summary;
DateTime? _dueData;
TaskType _type;
TaskPriority _priority = TaskPriority.Normal;
public TaskState S... |
16d1c383b92d07aea560273dd8d9f386f1eafca0 | C# | xushouqi/MoneyMoat | /MoneyMoat/Schedule/HistoricalJob.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentScheduler;
using MoneyMoat.Services;
namespace MoneyMoat
{
class HistoricalJob : IJob
{
private readonly IServiceProvider _services;
private readonly object _lock = new object();
... |
edc9bc3c0ca3b4676ca3c776c4294ce97b75f1ac | C# | ozyureklikaan/Vehicle_Rental_System_App | /VehicleRentalSystem.BusinessLogic/Concretes/VehiclesBusiness.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VehicleRentalSystem.Commons.Concretes.Helpers;
using VehicleRentalSystem.Commons.Concretes.Logger;
using VehicleRentalSystem.DataAccess.Concretes;
using VehicleRentalSystem.Models.Concretes;
names... |
8044fa50eb8a508f0bde4d8508f621ed40cfb762 | C# | pgeorge0388/MVVMcharacter | /MVVMCharacters/DataCreators/CreateSomeSuperHeros.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
namespace MVVMCharacters
{
public class CreateSomeSuperHeros
{
//public ObservableCollection<ComicBookCharacter> CreatingSomeHeros()
//{
... |
bfc74da0e0104c9be80682cfc386e6c5646e5a77 | C# | josivanSilvaCodes/Csharp_with_UnityEngine | /Basics/Programa03.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Programa03 : MonoBehaviour
{
/*
Estrutura Condicional
IF (SE)
Else (Senão)
*/
string nome = "João";
float nota1 = 3.4f;
float nota2 = 6.6f;
float media = 0.0f;
... |
48bd90d8fd37ed87eba5dbcd49fe72b9c0058a7b | C# | Excalib88/EnglishVkBot | /src/EnglishVkBot.Translator/DirectionHelper.cs | 3.015625 | 3 | using System.Collections.Generic;
using System.Linq;
using EnglishVkBot.Abstractions.Models;
namespace EnglishVkBot.Translator
{
public class DirectionHelper
{
private readonly TranslatorContext _translatorContext;
public DirectionHelper()
{
_translatorContext = new... |
035d6b2bbf069c7387eaab61c9d2028305a2b061 | C# | ocarizr/UnityStudies | /ObstacleCourse/Assets/_Scripts/Monobehaviours/BaseClasses/SingletonBase.cs | 2.6875 | 3 | using UnityEngine;
namespace Monobehaviours.BaseClass
{
public class SingletonBase<T> : MonoBehaviour where T : SingletonBase<T>
{
// Instance manager
private static T _instance;
public static T GetInstance() => _instance;
protected void Awake()
{
if (_insta... |
491c84b9871a15317bba4da77605d47ecb69c186 | C# | NahuelOvejero/Sistema-de-Cochera | /Solucion - Proyecto C#/MisClass/clsTarifa.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace MisClass
{
public class clsTarifa:clsArchivos
{
//BOOL[] TIPO 0-AUTO 1-MOTO 2-CAMIONETA -3CAMION
int id;
string nombre;
string descripcion;
decimal precio;... |
97fed6afeb5b242709c6a9e669d4185aafb8b672 | C# | cyranothedaft/AdtLib | /src/adt.lib/Graphs/GraphEdge.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace adt.lib.Graphs {
[DebuggerDisplay("{From.Value} - {To.Value}")]
public partial class GraphEdge<T> {
public GraphVertex<T> From { get; private set; }
public GraphVertex<T> To { ge... |
96c5e60de4afee5fa76d0f01ac1067a0cfabdcbe | C# | timMoran1990/clase-martes | /martes/martes/Form1.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using operaciones;
namespace martes
{
public partial class Form1 : Form
{
... |
91bb92a1792d7adaea1dced43221e7bb48bcbc33 | C# | Ondre456/ServiceStation | /Application/SqlExecuter.cs | 2.734375 | 3 | using ServiceStation;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ApplicationLayer
{
public static class SqlExecuter
{
private static string connectionString =... |
da655b3961acadde12f7f6c9989aa839f4a79dbc | C# | yuto1492/mon_rogelike | /Scripts/Utils/Container/SubjectContainer.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using UniRx;
using UnityEngine;
namespace Container
{
public class SubjectContainer
{
private List<AsyncSubject<Unit>> _subjects = new List<AsyncSubject<Unit>>();
private int _count;
public void Add(AsyncSubject<Unit> subject)
... |
be09990af570ba6aafae610221809c83232337cc | C# | DefectBuster/MvvmPrism | /WPF/ComboboxRedBorderValidation/ComboboxRedBorderValidation/ViewModel.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace ComboboxRedBorderValidation
{
public class ViewModel : ViewModelBase
{
public ViewModel()
{
... |
ecffc0a53fcae1944cd7edd38e01823e85be267c | C# | tangruixing/Ucoin-2.0 | /Framework/Ucoin.Framework.Serialization/SerializerExtensions.cs | 2.734375 | 3 |
namespace Ucoin.Framework.Serialization
{
public static class SerializerExtensions
{
public static string SerializeToString(this ISerializer serializer, object data)
{
var res = serializer.Serialize(data);
var format = serializer.Format;
if (format == Serial... |
8e5bed688deba32cfdb62ea73784cea0721eaea6 | C# | MyBug18/To-The-Infinity-Abandoned | /Assets/Scripts/Model/Game/ResourceModifier/GlobalResourceChanges.cs | 3.0625 | 3 | public abstract class GlobalResourceChanges
{
public ChangeType changeType { get; private set; }
public GlobalResourceType resourceType;
public float amount; // must be positive.
public abstract float GetModifier();
public (GlobalResourceType type, float amount) value => (resourceType, amount * Ge... |
cb91ac125b34626bcd6e0cbb6795729a2f957e52 | C# | HaKDMoDz/baro-corelibrary | /Baro.CoreLibrary/Collections/ArraySegmentSeamlessBuffer.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Baro.CoreLibrary.Collections
{
public sealed class ArraySegmentSeamlessBuffer<T>
{
private int m_bufferSize = 0;
private object m_synch = new object();
private List<A... |
a56c7b25d1e77cec70b840ede04e1a4a5965df22 | C# | fstleo/castle | /Assets/Scripts/Crypto.cs | 2.75 | 3 | using UnityEngine;
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Assets.Crypto
{
public class MemoryCrypto
{
public static byte[] Key
{
get
{
if (PlayerPrefs.HasKey("aaaa"))
return Enc... |
ca0111b29b448820bd4f519fc475722dc8844d80 | C# | yotkoKanchev/CSharp-Fundamentals-jan2019 | /C# OOP/05.Polymorphism/Exercise/02.VehiclesExtension/Vehicle.cs | 3.515625 | 4 | namespace VehiclesExtension
{
using System;
public abstract class Vehicle
{
private static double InitialFuelLossCoef = 1;
private double fuelQuantity;
private double tankCapacity;
private double fuelConsumption;
protected Vehicle(double fuelQuantity, double fuelCo... |
56960e6d235403e2bdf0ceb92613fcff1f16aaf8 | C# | Alexr03/FinalSDLC-ADA | /DigitalProject/Models/Question.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlKata.Execution;
namespace DigitalProject.Models
{
class Question : Category
{
public int QuestionId;
public int CategoryId;
public string question;
pu... |
19834f4d5f231efabe4914d93b66d7e1e868bc29 | C# | hellocome/Leetcode.Net | /Leetcode.Net/Solutions/Solution_10_RegularExpressionMatching.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Leetcode.Net.Solutions
{
class Solution_10_RegularExpressionMatching
{
public void Run()
{
Console.WriteLine(IsMatch("aa", "a"));
Console.WriteL... |
04b116166740d686b8ca62a305c6689d3609c6b4 | C# | ViktorioK/BinarySearch | /BinarySearchCSharp/Program.cs | 4.1875 | 4 | using System;
namespace BinarySearchCSharp
{
class Program
{
public static void Main()
{
int[] arr = { 2, 4, 6, 8, 10, 20, 40, 80 };
int x = 10;
int index = BinarySearch(arr, 0, arr.Length - 1, x);
Console.WriteLine(index == -1 ? "Element is not present." : "Element is present at ... |
d8c73c5d5bdae89e16299f48555dd74237fa9a33 | C# | freeradius-xx/efwplus_cloudhospital | /efwplus_wcfframe/WCFHosting/TimeCDKEY.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Management;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace WCFHosting
{
public class TimeCDKEY
{
public static int InitRegedit(out str... |
db092f0c3f556c27ef2b5148ff78d113909f4a96 | C# | wcatykid/GeoShader | /Main/GeometryTutorLib/HardCoded/Problems/ProofProblems/Jurgensen Geometry (Orange)/Quadrilaterals/Page169Theorem413.cs | 2.625 | 3 | using GeometryTutorLib.ConcreteAST;
using System.Collections.Generic;
using GeometryTutorLib.Precomputer;
namespace GeometryTutorLib.GeometryTestbed
{
class Page169Theorem413 : QuadrilateralsProblem
{
// Geometry; Page 169 Theorem 4-13
// Demonstrates usage of:
// Definition of a rectan... |
04de981771c268f04e9f00262475fea2f97b9a1b | C# | shendongnian/download4 | /code1/171498-3215281-6665998-2.cs | 3.265625 | 3 | public virtual void Push(object obj)
{
if (this._size == this._array.Length)
{
object[] destinationArray = new object[2 * this._array.Length];
Array.Copy(this._array, 0, destinationArray, 0, this._size);
this._array = destinationArra... |
f67096b4ad626f0cc125abdb742bf10e28186c82 | C# | GeneratorMotor/VipNet2021 | /VipNet2021/Classess/ProcessGetDoc.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace RegKor.Classess
{
public class ProcessGetDoc:IProcessGetDoc
{
#region IProcessGetDoc Members
public List<string> GetDoc()
{
List<string> listDoc = ne... |
003c6b1dd5eeb05a373b53afb16c4313e0a099df | C# | stephandotgarrett/Ocarina_Quest | /Ocarina_Quest/Song.cs | 2.671875 | 3 | using System;
using System.IO;
using System.Net;
using System.Linq;
using System.Collections.Generic;
namespace Links
{
class Song //Song class to hold values for making a list of songs
{
public string _songTitle { get; set; } //Holds value for song title
public string _songNotes { get; set; }... |
4b45793cb6f1039e1c391ce1808ce0919bef8ca9 | C# | unicaes-ing/practica-03-MaximoZM77 | /Practica_Num3/Ejercicios/Ejercicio6.cs | 3.359375 | 3 | using System;
namespace Practica_Num3.Ejercicios
{
class Ejercicio6
{
static void Main(string[] args)
{
//Variables
string nombreProducto;
decimal precioProducto;
int cantidad;
decimal precioXcantidad;
decimal aplicacionD... |