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 |
|---|---|---|---|---|---|---|
efd0f2f476178ab891c9c60b5878f9657dc9edc4 | C# | swkMagdeburg/2015-06-08_LicenseLottery | /src/LicenseLottery.Infrastructure.Database/ParticipantRepository.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using LicenseLottery.Core.Entities;
using LicenseLottery.Core.UseCases.Implementations;
namespace LicenseLottery.Infrastructure.Database
{
public class ParticipantRepository : IParticipantRepository
{
private static readonly List<Parti... |
d7f24339b0c0fad167432980ecd97cbb4e67be98 | C# | dariosoltani/FlatFiles | /src/FlatFiles/SeparatedValueComplexColumn.cs | 3.265625 | 3 | using System;
using System.IO;
using System.Text;
namespace FlatFiles
{
/// <summary>
/// Represents a string column that has contains multiple, nested values
/// </summary>
public class SeparatedValueComplexColumn : ColumnDefinition
{
private readonly SeparatedValueSchema schema;
... |
471c4fb44b56b292e844c1dcc8dbc6e733145f04 | C# | dayhi/Pool | /Program.cs | 2.640625 | 3 | using System;
using System.Data;
using System.Diagnostics;
using MySql.Data.MySqlClient;
using MySql_Pool.Helper;
namespace MySql_Pool {
class Program {
static void Main (string[] args) {
const int count = 10000;
//测试机配置:2c3g
test (count);
test... |
00ce3be8b8278597584931885a34790aa096f7ef | C# | tnimas/TicTacToe | /src/Factory.cs | 2.546875 | 3 |
namespace TicTacToe
{
/// <summary>
/// Реализация singleton фабрики классов для приложения
/// </summary>
public class Factory
{
public static Factory Instance { get; private set; }
static Factory()
{
Instance = new Factory();
}
... |
fab98a8216ce5eded72c5e7374d6c9c5effbb02e | C# | Zalzadip/Brush-up-Student-exercise | /Tester/Program.cs | 3.203125 | 3 | using System;
using Brush_up__Student;
namespace Tester
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
CreateStudent();
//Console.WriteLine(student.Name);
//Console.WriteLine(student.Address);
}
... |
70f71d667db3ecf50842be019480e9fe79af71db | C# | qlalberta/OtherLabTLG | /otherLabsTLG/OIC/CSharp/Labs/Lab7/Part3/TestContact/TestContact/TestContact.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class TestContact
{
public static void Main(string[] args)
{
Contact cont;
cont = new Contact(7, "testetstetsetetsteatetstestetewtwetertetetet", "testetestetestaetetetaewt... |
bd64ce4748809215c4a29cd6f2d38a8ae7363057 | C# | tzieba1/.NETProjects | /Sorting/LambdaSorting/Sorting/Form1.cs | 3.5 | 4 | 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 Sorting
{
public partial class Form1 : Form
{
List<Student> students;
... |
787b0923c1cef5d7d5f5ff219d539ce988dc7cbb | C# | t-ondrej/ShiftScheduling | /ShiftScheduleUtilities/SingletonFactory.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
namespace ShiftScheduleUtilities
{
public static class SingletonFactory
{
private static readonly IDictionary<Type, object> Instances = new Dictionary<Type, object>();
public static object GetInstance(Type type)
{
if (Instanc... |
3b29203381ccdfe49494acbc95648fd85d2c9907 | C# | nnaidenov/TelerikAcademy | /WebDevelopmentExams/WebServices/BlogSystem/BlogSystem.Repositories/DbUserRepository.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlogSystem.Models;
namespace BlogSystem.Repositories
{
public class DbUserRepository : IRepository<User>
{
private readonly DbContext dbContext;
p... |
bd6fb50f3c00c8dcdc2e66cba9f461b85914fc8a | C# | paddyb/edge_case | /proxy/DataProxy.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace proxy
{
public class DataProxy
{
private readonly IEnumerable<string> data = new[] { "s1", "s2", "s3" };
public async Task<object> GetProxy(object args)
{
return new { getData... |
36cc062d6a2275edec6008aa7f0a1d56f6a665fb | C# | SilentWave/ObjConvert | /src/Obj2Gltf/Gltf/Extensions.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace SilentWave.Gltf
{
static class Extensions
{
// TODO: lock all those add operations in a way that is per model (eg add a static dictionary of model / lock )
public static Int32 AddBuffer(this GltfModel model, Buffer bu... |
1da02298ce8824e0c365c1641d5abc34808025b8 | C# | CsegodiCsongor/PentruFaculta | /ProiectArhitecturaCsegodiCsongor/ProiectArhitecturaCsegodiCsongor/Program.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProiectArhitecturaCsegodiCsongor
{
class Program
{
public static string nrCitit;
public static int lungimeZecim = 0;
public static string nrInZec... |
b71217927fae351e7b7c971cf762b6fdfc442925 | C# | AmbientActivity/R2G2V1 | /APIClient/Keebee.AAT.ApiClient/Clients/InteractiveActivityTypesClient.cs | 2.5625 | 3 | using Keebee.AAT.ApiClient.Models;
using System.Collections.Generic;
using Newtonsoft.Json;
using RestSharp;
namespace Keebee.AAT.ApiClient.Clients
{
public interface IInteractiveActivityTypesClient
{
IEnumerable<InteractiveActivityType> Get();
}
public class InteractiveActivityTypesClient : ... |
f6f4df863ebb0734376b3c912f8152531493facc | C# | onestow/LeetCode | /LeetCode/problems/344.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace LeetCode.problems
{
class _344 : BaseClass
{
public override void Run()
{
throw new NotImplementedException();
}
public void ReverseString(char[] s)
{
int m = s.Length ... |
6d66dcc24ef6fe0350f1cdd297c904002a338c2a | C# | georgeSoton/jam | /Assets/Scripts/Conversation.cs | 2.890625 | 3 | using UnityEngine;
using System.Collections;
public class Conversation {
ArrayList sentances = new ArrayList();
int sentance = 0;
public Color person1;
public Color person2;
bool isperson1 = true;
public void addSentance(string str)
{
Debug.Log ("ConvCount:" + sentances.Count);
sentances.Add (str);
//s... |
3d2cc495d65d9f1739f7b3daca5f31e4417b6576 | C# | SinaC/TetriNET | /TetriNET.Client.Achievements/Achievements/SomeLikeItHot.cs | 2.53125 | 3 | using TetriNET.Client.Achievements.Achievements.Base;
namespace TetriNET.Client.Achievements.Achievements
{
internal class SomeLikeItHot : TetriminoCountBase
{
public SomeLikeItHot()
{
Id = 25;
Points = 50;
Title = "Some like it hot";
Description... |
5170174c26c333ae887d9a586ce0fcedcfa643d4 | C# | danielmarbach/bbv.Common | /source/bbv.Common.Data/DatasetHelper.cs | 2.828125 | 3 | //-------------------------------------------------------------------------------
// <copyright file="DatasetHelper.cs" company="bbv Software Services AG">
// Copyright (c) 2008-2011 bbv Software Services AG
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... |
95271548476ea9ef761806f9c872693d6f14f508 | C# | gleblebedev/ImageSharp.Textures | /src/ImageSharp.Textures/Formats/Dds/Processing/BlockFormats/Dxt3.cs | 2.765625 | 3 | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Textures.Formats.Dds.Processing
{
using System;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Textures.Formats.Dds;
using SixLabors.ImageSharp.Textures.F... |
074502a946ecedff01355a302efa0006f20f8362 | C# | domejuanan/club | /club/Services/MemberService.cs | 2.875 | 3 | using System;
using AutoMapper;
using System.Collections.Generic;
using System.Threading.Tasks;
using club.Models;
using club.Repositories;
using club.Resources;
using club.Responses;
namespace club.Services
{
public interface IMemberService
{
Task<MemberListResponse> ListAsync(int pageNum = 1, int pa... |
d997934ebadb8f08ca58f295aee3d2202f4ebfc6 | C# | jansierakowski/CarTryApplication | /CarTry.Domain/Entity/Item.cs | 2.515625 | 3 | using CarTry.Domain.Common;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace CarTry.Domain.Entity
{
public class Item : BaseEntity
{
[XmlElement("Car brand")]
public string CarBrand { get; set; }
[XmlElement("Car model")]
... |
593813dafc432695f1ccaf7ac25def4db81da5d6 | C# | SnakyBeaky/dd-trace-csharp | /src/DataDog.Tracing/TraceSource.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Reactive.Subjects;
using System.Text;
namespace DataDog.Tracing
{
/// <summary>
/// For creating new traces.
/// </summary>
public class TraceSource : IObservable<Trace>, ISpanSource
{
readonly Subject<Trace> _subject = new Subje... |
05dae0a38c787484873891dbca38ff863061fc07 | C# | umb16/EBConsole | /Runtime/Scripts/Utils/CircularBuffer.cs | 3.109375 | 3 | namespace ExpressoBits.Console.Utils
{
public class CircularBuffer<T>
{
public readonly T[] Array;
private int m_StartIndex;
public int Count { get; private set; }
public T this[int index] => Array[(m_StartIndex + index) % Array.Length];
public CircularBuffer(int capaci... |
9def5de9e0c50091d32a0faf0dc15274111354a2 | C# | zackwag/DotNetHelper | /Extensions/IEnumerableExtensions.cs | 3.515625 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Helper.Extensions
{
public static class EnumerableExtensions
{
public static bool HasItems(this IEnumerable value)
{
if (value.IsNull())
return false;
... |
2ae78298fde58b43df687e712d77e8bbfdc0ca6c | C# | shendongnian/download4 | /code2/302928-6303894-13701094-6.cs | 2.546875 | 3 | Private mUsings As New HashSet(Of String)
Sub InitializeAllMembers()
Try
Dim assignmentPattern As New Regex("(?<Indent>\s*)(?:(?<DeclaredType>\S+)\s+)?(?<VariableName>[\S=]+)\s*=\s*(?<new>new)?\s*(?<CreatedType>[^\s\(]+)")
Dim selection As EnvDTE.TextSelection = CType(DTE.ActiveD... |
e345ca3ebf969a1dea9b35dd955d1ad46527c753 | C# | gbortnikov/TaskManagerServer | /Ws/WebSocket.cs | 2.953125 | 3 | using SuperSocket.SocketBase;
using System;
using SuperWebSocket;
namespace Ws
{
class WebSocket
{
private static WebSocketServer wsServer = new WebSocketServer();
/// <summary>
/// Инициализация websocket
/// </summary>
public void WSInit(int port)
{
... |
96358e763825b041fe2572e67a48e230e06976a8 | C# | walkerscott6482/ScanResultsPractical | /ScanResults/Services/WhoisService.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Threading.Tasks;
using ScanResults.Models;
using Serilog;
using Whois.NET;
namespace ScanResults.Services
{
public class WhoisService
{
public WhoisService()
{
Log.I... |
4af9f4c2118abac8533e4c87a6659d3f861870ac | C# | marianafcruz17/Introducao-ao-C- | /lacos_condicionais.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Ling;
using System.Text;
using System.Threading.Tasks;
namespace LacosCondicionais{
class Program{
static void Main(string[] args){
//laço if/else
int hora = 16;
if(hora<=15)
Conso... |
e87a697790a38fa3cd88a3334c43f5a4d4fdd137 | C# | nefdulin/ColorFill | /Assets/Scripts/State/BlockState.cs | 3.015625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ColorFill.States
{
[System.Serializable]
public class BlockState : IState
{
[System.Serializable]
public struct CollisionAction
{
public BlockStateType type;
... |
6645c0b369fc459a87ebae2a80dac764c7392ba9 | C# | BlueDress/School | /C# OOP Advanced/Enumerations and Attributes Exercises/Card Game/Card.cs | 3.9375 | 4 | using System;
namespace Card_Game
{
public class Card : IComparable<Card>
{
private CardSuit cardSuit;
private CardRank cardRank;
public Card(string cardSuit, string cardRank)
{
this.cardSuit = (CardSuit)Enum.Parse(typeof(CardSuit), cardSuit);
this.card... |
10809258dda3cefd7038a2e48e3ef032237d0cd2 | C# | VhenBongbonga/CasebookAutomatedTesting | /CasebookAutomation/SubscriptionExpirationDate.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using CasebookAutomation;
namespace CasebookAutomation
{
public class SubscriptionExpirationDate
{
public static void Save(string expirationdate)
{
s... |
dc9eab101f757142e7de8901080f23fb2ad59ae1 | C# | PlamenYordanov/C-_Advanced | /FilesAndStreams/SlicingFile/Program.cs | 3.296875 | 3 | namespace SlicingFile
{
using System;
using System.IO;
public class Program
{
public static void Main()
{
int numSplices = int.Parse(Console.ReadLine());
using (FileStream readStream = new FileStream(@"..\OddLines\Files\sliceMe.mp4", FileMode.OpenOrCreate))
... |
122e032e64d5be90e63ca14c6ec0cae7c6e611fe | C# | fabricioborges/ProjetoCinema | /Server/Projeto_Cinema/Projeto_Cinema.Domain/Features/Base/Exceptions/DomainException.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Projeto_Cinema.Domain.Features.Base.Exceptions
{
public class DomainException : Exception
{
private string v;
public DomainException(ErrorCode errorCode, s... |
5b099187ffe95a2607f5fc69b1617bb972ad612a | C# | mxashlynn/Parquet | /ParquetClassLibrary/Items/InventoryConfiguration.cs | 2.828125 | 3 | using System.IO;
using System.Text;
namespace Parquet.Items
{
/// <summary>
/// Provides rules for working with an <see cref="InventoryCollection"/>.
/// </summary>
public static class InventoryConfiguration
{
#region Class Defaults
/// <summary>The capacity to use for an <see cref=... |
5023b1e039d5f0df8f235b6541377db7c7aeb714 | C# | CameronBell1337/ATProject03 | /AT_Open_World/Assets/Scripts/OW/TreeManager.cs | 2.765625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TreeManager
{
public static List<Vector2> Create(float r, Vector2 bound, int s = 15)
{
float gridS = r / Mathf.Sqrt(2);
int[,] grid = new int[Mathf.CeilToInt(bound.x / gridS), Mathf.CeilToInt(bound.y / gridS)];
List<V... |
6ba99a1b156fe312f027dfc027a434d4aaf66f65 | C# | GinaKonidaris/3Task2019 | /Task1_18013130GADE/Map.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
namespace Task1_18013130GADE
{
class Map
{ //makes map
int numUnits = 0;
TextBox txtInfo;
Random r = new Random();
... |
b82570a63764a905ff52021d671e69e8c0f00699 | C# | IceVenOm98/UnifiedSystemofAbiturient | /UnifiedSystemofAbiturient/UserDecorator.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UnifiedSystemofAbiturient
{
public abstract class UserDecorator : User
{
protected User User;
public void setUser(User user)
{
User = user;
Name = User.Name;
... |
0c2b317da54227d354b2594c90af66e2de34db65 | C# | Vailucory/LifeStat | /LifeStat.Application/UseCases/DailyPlanTemplates/Commands/UpdateDailyPlanTemplate/UpdateDailyPlanTemplateCommandHandler.cs | 2.515625 | 3 | using Domain.Models;
using LifeStat.Application.Interfaces;
using LifeStat.Domain.Interfaces.Repositories;
using LifeStat.Domain.Interfaces.UnitOfWork;
using LifeStat.Domain.Shared;
namespace LifeStat.Application.UseCases.DailyPlanTemplates;
public class UpdateDailyPlanTemplateCommandHandler : ICommandHandler<UpdateD... |
c4cdcc0c4d60d55fc6fae8baa62a894fa92671e9 | C# | de3key/amd | /Project/ConsoleApplication3/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Привет мир,а я сережа");
Console.ReadKey();
... |
fd930a503072968a1a63c2adba9792778a5ce433 | C# | bgertonson/CogsDB | /src/CogsDB.Engine/Indexing/IndexMap.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
namespace CogsDB.Engine.Indexing
{
public class IndexMap
{
private IList<IndexMapEntry> _entries = new List<IndexMapEntry>();
public void AddEntry(IndexMapEntry entry)
{
_entries.Add(entry);
}
public ... |
bfd947f5e80a7f39e05bdcfee6c2451db5343c89 | C# | JakeM321/todo-list-backend | /todo-list-backend/Repositories/NotificationRepository.cs | 2.6875 | 3 | using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using todo_list_backend.Models.Notification;
using todo_list_backend.Services;
namespace todo_list_backend.Repositories
{
public class NotificationRepository: INotificationRepositor... |
9c01a66366da513c973445cfa8807e90277a05e4 | C# | pwyszynski/TextToXmlParser | /Parser.API/Services/XMLParserService/Models/Sentence.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml.Serialization;
namespace Parser.Models
{
/// <summary>
/// Class representing a sentence.
/// </summary>
public class Sentence
{
/// <summary>
/// Default parameterless constructor f... |
d3387b3345ec482a55e4b4aec0bf07cdf9f5f7bd | C# | Jonathan-Treloggen/The_Tech_Academy_Basic_C-Sharp_Projects | /Basic_C#_Programs/Notes and practice on C#/String/String/Program.cs | 3.875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace String
{
class Program
{
static void Main(string[] args)
{
string name = "Jon";
string quote = "The man said, \"Hello\", Jon. \nHello on a new l... |
7c032b73893939761e220838cfd2fe6784453fc6 | C# | lavn0/CodeAnalysis | /FxCopCustom/Rules/LinqResultComparedByNull.cs | 2.734375 | 3 | using Microsoft.FxCop.Sdk;
using System.Collections.Generic;
namespace FxCopCustom.Rules
{
/// <summary>LINQのクエリ結果がnullと比較されている場合を検出する</summary>
public class LinqResultComparedByNull : BaseRule
{
private readonly Dictionary<Local, Node> assignmented = new Dictionary<Local, Node>();
public LinqResultComparedBy... |
4d926e0c3c34e81f6559e754ebbc530390e96e0e | C# | jovanemarques/JustEatItProject | /src/JustEatIt/Data/Entities/MockDishRepository.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using JustEatIt.Data.Entities;
namespace JustEatIt.Models
{
public class MockDishRepository : IDishRepository
{
//private User partner => new User { Id = 1, FirstName = "John", LastName = "Lennon" };
private static IQueryable<D... |
74837ed6babd9a0e0080116cd2a20d0ee0e1912e | C# | camillaryskjaer/H2Opgaver | /KaffeMaskinen Del1/DataClasses/Grinder.cs | 2.875 | 3 | using KaffeMaskinen.Interface;
using System;
using System.Collections.Generic;
using System.Text;
namespace KaffeMaskinen.DataClasses
{
public class Grinder : Machine, IPower
{
private IngredientContainer ingredientContainer;
public IngredientContainer IngredientContainer
{
... |
9bb076a8c10e1c9bcd92310e70f1621f79a53385 | C# | DigitalOxCanada/MonoTarget | /Day4/Background.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace MonoTarget
{
public class Background
{
public Background()
{
... |
a6760ec412d98a48761daf4407ddfe761a4a8699 | C# | HJBell/TRL | /TRL_Source/Assets/Scripts/World/DeckOverride.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeckOverride : MonoBehaviour {
[SerializeField]
private bool Override = false;
[SerializeField]
private List<string> Cards = new List<string>();
//-----------------------------Unity Functions... |
35d02fd1ac2e4a6e8754a54fcb1671f67c5e5fb8 | C# | AkinSabriCam/AracKiralamaSistemi | /AracKiralamaApp/Business/BLLs/MusteriBilgileriBLL.cs | 2.546875 | 3 | using DAL.Concretes;
using Model.DTOs;
using Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business.BLLs
{
public class MusteriBilgileriBLL
{
public void Add(MusteriBilgileri model)
{
usin... |
96821fe2da40c5a3e067788a166a2d16e0baee45 | C# | Manotech-272/HaloOnRails | /Assets/Scripts/ScoreBoard.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreBoard : MonoBehaviour
{
int score = 0;
Text scoreText;
public static ScoreBoard instance;
private void Awake()
{
if (instance == null)
{
instan... |
f176a17bde73f2e35ca5d9bb6aea8ad4e6383250 | C# | Jake33rus/UniversityProjects | /Testing/Testing/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;
namespace KursachSerg
{
public partial class Form1 : Form
{
public Form1()... |
a31a82f002e775132ac19a7dcdf19281086b5c03 | C# | CodePenguin/pinspaces | /Pinspaces/Extensions/DebouncedAction.cs | 2.796875 | 3 | using Pinspaces.Core.Interfaces;
using System;
using System.Windows.Threading;
namespace Pinspaces.Extensions
{
public class DebouncedAction : IDelayedAction
{
private readonly Action action;
private readonly Dispatcher dispatcher;
private readonly int intervalMilliseconds;
priv... |
115657b3561abba1a103033bb923afd0976fe0c3 | C# | shendongnian/download4 | /first_version_download2/37299-2044693-24741703-2.cs | 2.984375 | 3 | [DllImport("kernel32.dll", SetLastError = true)]
static extern SafeFileHandle CreateFile(string lpFileName, FileAccess dwDesiredAccess,
uint dwShareMode, IntPtr lpSecurityAttributes, FileMode dwCreationDisposition,
uint dwFlagsAndAttributes, IntPtr hTemplateFile);
private void Print()
{
... |
a45f1a51e5d1dee264d1056f97136471d0d4beab | C# | LaymanHacks/LucentDb | /LucentDb.Common/IO/DefaultFileService.cs | 2.546875 | 3 | using System.IO;
namespace LucentDb.Validator
{
public class DefaultFileService : IFileService
{
private readonly FileInfo _fileInfo;
public DefaultFileService(string fileFullPath)
{
_fileInfo = new FileInfo(fileFullPath);
}
public bool Exists()
{
... |
634f0053195e0699a6c5a9cb2d19c4ff45ac716d | C# | zhangdinet/DotSpatial | /Source/DotSpatial.Positioning/PointD.cs | 2.546875 | 3 | // ********************************************************************************************************
// Product Name: DotSpatial.Positioning.dll
// Description: A library for managing GPS connections.
// ********************************************************************************************************
... |
9d052095728506faf940cc87794a46fe0e63361e | C# | pedul/KenKen | /LearnKenKen/UserControls/KenCell.ascx.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using LearnKenKen.UIModels;
namespace LearnKenKen.UserControls
{
public partial class KenCell : System.Web.UI.UserControl
{
internal CellVie... |
157e21acc886b60532bd79c39ddc909134cd77e3 | C# | KomilzodaHusnoro/Player | /Program.cs | 3.046875 | 3 | using System;
namespace interface234
{
class Program
{
static void Main(string[] args)
{
Player Fayzullo = new Player();
Fayzullo.Play();
Fayzullo.Pause();
Fayzullo.Record();
Fayzullo.Stop();
Fayzullo.Stop2();
... |
750b69f8f4b78969685d276ad9ffd08084ff7145 | C# | AtWinner/CSharp_Project | /Random_/Random_/Program.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Random_
{
class Program
{
static void Main(string[] args)
{
string a[,,,]=new string[7,7,7];
Random rd = new Random();
for (int i = 0; i <= 10; i++)
{... |
5e09f7c93f107f87c323a7fd3b9b211d93b09b2c | C# | AuroraStefanova/BasicSoftUni2017 | /homework/SimpleConditionStatement/06.01.BonusScore/BonusScore.cs | 3.703125 | 4 | using System;
class BonusScore
{
static void Main()
{
int number = int.Parse(Console.ReadLine());
double bonusScore = 0;
if (number <= 100)
{
bonusScore += 5;
}
else if ((number > 100) && (number <= 1000))
{
bonusScore += 0.2 * n... |
e9dde27d07d09560645b8b168ef8d4d9b3d9b37e | C# | broadcastzero/swe2_backoffice | /EPU-Backoffice/EPUBackofficeTests/PositiveIntOrMinusOneValidatorTest.cs | 2.671875 | 3 | namespace EPUBackofficeTests
{
using EPU_Backoffice_Panels.Rules;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
/// <summary>
///This is a test class for PositiveIntOrMinusOneValidatorTest and is intended
///to contain all PositiveIntOrMinusOneValidatorTest Unit Tests
... |
0243aeda8170dff1aa18a2a002ad065ef2bfdbed | C# | AlbertoMoreta/Dr.Handy | /DrHandy/Model/SintromTreatmentItem.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace DrHandy.Model {
public class SintromTreatmentItem : SintromItem {
public string UserId { get; set; }
public DateTime Date { get; set; }
private string _imageName;
public string ImageName {
ge... |
2705a5353337a4a7bfc6a281af2d2f70a19eea77 | C# | ravenboilinux/testEFcore | /TestEFcore/Program.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace TestEFcore
{
class Program
{
static void Main(string[] args)
{
BloggingContext context = new BloggingContext();
... |
7b138d61979f03de74cacc7e442999e03abb5dfc | C# | nurefexc/Perfomance-Viewer | /PrefomanceViewer/Battery.cs | 2.703125 | 3 | using System.Windows.Forms;
namespace SystemManager.SystemInformations
{
static class Battery
{
private static PowerStatus status = SystemInformation.PowerStatus;
private static string LastPercent = "";
private static string percent = "";
public static string Percent
{
... |
a82c57abfb88ff48a31d4fe901f016c9c2908907 | C# | Adexandria/LAMS | /BookData/Model/SignupRepository.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BookData.Model
{
public class SignupRepository : ISign_up
{
private readonly AppDbcontext db;
public SignupRepository(AppDbcontext db)
{
this.db = db;
}
... |
a526cbcacffbe0a2c8159f8b95cc074d3f17a71d | C# | Austin-Derrick/-Nature-of-Code-Unity-Remix-Excercises | /Assets/Scripts/IntroExcercise3ADerrickson.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IntroExcercise3ADerrickson : MonoBehaviour
{
public GameObject walkerPrefab;
private GameObject walkerGO;
private WalkerEx3 walker;
// Start is called before the first frame update
void Start()
{
... |
0069ac1bb3840c0c9137ccd110d0a744ed08f354 | C# | woshizuoyue/Design_Pattern_Practice | /Decorator/Program.cs | 3.21875 | 3 | using System;
namespace Decorator
{
class Program
{
static void Main(string[] args)
{
Beverage beverage = new Espresso();
Console.WriteLine($"{beverage.GetDescription()} ${beverage.Cost()}");
Beverage beverage1 = new Decat();
beverage1 = new Moc... |
d997c597b58385ecd8174e5c7e8f626444c60448 | C# | RickStrahl/markdig | /src/Markdig.Tests/Specs/DefinitionListSpecs.cs | 3.015625 | 3 | // Generated: 21. 01. 2019 14:26:34
// --------------------------------
// Definition Lists
// --------------------------------
using System;
using NUnit.Framework;
namespace Markdig.Tests.Specs.DefinitionLists
{
[TestFixture]
public class TestExtensionsDefinitionLists
{
// # Extensions
... |
a3c72bd128e8e6b9da4c4e8a76d98626bfc9d155 | C# | ruzyqwerty/RegOnlineSchoolKursach | /App1/Forms/KursForm.cs | 2.546875 | 3 | using App1.SQL;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace App1.Forms
{
public partial class KursForm : Form
{
private SQLManager SQLManager = new SQLManager();
private int currentKurs = -1;
public KursForm()
{
... |
093a39f5b1de60d8676144637e5cc1300bd6b95c | C# | frakiec89/WSR_SAMARA_2020 | /WSR_SAMARA_2020/MethodClass.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WSR_SAMARA_2020
{
public interface IMethodClass
{
/// <summary>
/// Метод возвращает Короткую запись ФИО типа «Иванов И.И.»
/// </summary>
/// <param ... |
968e1020b789eef69d934abda1925187aadd19d4 | C# | Andrey1916/BookStoreWebApi | /BookStoreWebApp/Services/Dtos/Review.cs | 2.59375 | 3 | using BookStoreWebApp.DAL.Interfaces;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BookStoreWebApp.Services.Dtos
{
public class Review
{
public Guid Id { get; set; }
public string VoterName { get; set; }
... |
c8299920eb9984c7c16898d8d3180d5370af1f00 | C# | OneYoungMean/NeuralTank | /Assets/NeuralEvolutionaryBots/Examples/SelfDrivingCar/Scripts/ConsecutiveGeneration.cs | 2.59375 | 3 | using System.Collections;
using UnityEngine;
namespace EvolutionaryPerceptron.Examples.SelfDrivingCar
{
using EvolutionaryPerceptron.MendelMachine;
public class ConsecutiveGeneration : MendelMachine
{
[Header("Consecutive data")]
public Transform startPoint;
public float lifeTime;
... |
25630011ee59635364e7c1487f3e5d87984e26fd | C# | luhan/bhxy3 | /MoleMole/FaceEffect.cs | 2.84375 | 3 | namespace MoleMole
{
using System;
using UnityEngine;
public class FaceEffect
{
private MonoFaceEffect _effect;
private GameObject GetEffectByName(string name)
{
int index = 0;
int length = this._effect.items.Length;
while (inde... |
d9304d90be5848d33f1b7b0cc1798e4ce89fc37b | C# | SallyWW/Cash-Exchange-App | /TenmoClient/UserInterface.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using TenmoClient.APIClients;
using TenmoClient.Data;
namespace TenmoClient
{
public class UserInterface
{
private readonly ConsoleService consoleService = new ConsoleService();
private readonly AuthService authService = new AuthService();
... |
fde310063ecf223ecbaaf604dec014edeeb644ab | C# | CougTech/CustomerLogger | /CustomerLogger/CSVWriter.cs | 3.640625 | 4 | using System.IO;
namespace CSV
{
/// <summary>
/// Handler for the logger file
/// </summary>
public class CSVWriter
{
// Members ///////////////////////////////////////////////////////////////////////////////
private string m_sLine, m_sFileName;
private FileStream m_f... |
dbebe8bab64d5ea4346f5e4344aa27c8c5fbc0a3 | C# | ake698/Diary_Plus | /Diary/Extensions/AutoMapperExt.cs | 2.515625 | 3 | using AutoMapper;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Linq;
using System.Reflection;
namespace Diary.Extensions
{
public static class AutoMapperExt
{
public static void AddAutoMapperAssembly(this IServiceCollection services, string assemblyName)
{
... |
d1df0d396a63b07d41c7b59026c99f785ea2fc17 | C# | evilz/soat-challenge | /src/DroneDeliverySystem/DroneDeliverySystem/Drone.cs | 3.125 | 3 | using System.Collections.Generic;
using System.Drawing;
namespace DroneDeliverySystem
{
public class Drone
{
public Drone(Point position, int ttl)
{
_ttl = ttl;
Position = position;
}
private int _ttl;
public Point Position { get; private set; }... |
6f58e8bd634ae8757c70005ca67f0afeb0ce4865 | C# | StoyanMStoyanov/SoftUni-Projects | /CSharp Advanced - 04.05.2015/2. MultidimensionalArrays-Sets-Dictionaries/2. Maximal sum/MaximalSum.cs | 3.84375 | 4 | using System;
class MaximalSum
{
static void Main()
{
string[] sizes = Console.ReadLine().Split(new string[]{" "},
StringSplitOptions.RemoveEmptyEntries);
int n = int.Parse(sizes[0]);
int m = int.Parse(sizes[1]);
int[,] matrix = new int[n,m];
FillTheMatrix(... |
bbfd1925961e71f4c3a2345877f6be71d77f1165 | C# | zkSNACKs/WalletWasabi | /WalletWasabi/Helpers/PowerSaving/WindowsPowerAvailabilityTask.cs | 2.59375 | 3 | using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using WalletWasabi.Logging;
namespace WalletWasabi.Helpers.PowerSaving;
[SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Windows API has its own naming style. Changes would be rather detriment... |
6ff54ba4bff9a8a9bd27574169470c0c7be1629c | C# | Kousuke9000900/LeetCode | /RomanToInteger/RomanToInteger/Program.cs | 4 | 4 | using System;
using System.Collections.Generic;
namespace RomanToInteger
{
class Program
{
static void Main(string[] args)
{
String s;
int answer;
Console.WriteLine("ローマ数字を入力して下さい");
s = Console.ReadLine();
Program program = new Prog... |
5cfb2f58d9c9f05fd3df34ec8d1b0d5c3313f0ab | C# | manlsc/ESC.Core | /Helper/CheckHelper.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace ESC.Core
{
/// <summary>
/// 验证帮助类
/// </summary>
public class CheckHelper
{
/// <summary>
/// 非空验证
/// </summary>
/// <param name="argument">待验证字符串</param>
/// <param name="... |
fc4f158f6e8984185e512b65e4afcff6b33cddb2 | C# | VanchoDimitrov/ParallelProgrammingWithCSharp | /19.PLINQ-Introduction/Program.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _19.PLINQ_Introduction
{
class Program
{
static void Main(string[] args)
{
//Parallel LINQ or PLINQ is a parallel implementation of the Language-Integrated Query or LINQ pattern.
// 1. Data So... |
dc124308e8ef93cb53670f41bb349b7d17c607d3 | C# | YHDF/WebProject | /Controllers/AuthController.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Linq;
using System.Threading.Tasks;
using EFTechCommerce.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using WebApi.Entities;
using WebApi.Models;
namespace WebApi.Controllers
{
[ApiController]
... |
4368ff290ec87fec7e563256f201728556cb78ce | C# | jerryguo255/IT722_algo | /PrimsMST/Program.cs | 3 | 3 | using Priority_Queue;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrimsMST
{
class Program
{
static void Main(string[] args)
{
//Random r = new Random();
//int num = 10;
... |
0f83c2ffdf5f35089956ff120a5b5553e11272b2 | C# | definedD4/BacterySim | /BacterySim/Simulation/Bactery.cs | 2.84375 | 3 | using System;
using System.Windows.Media;
namespace BacterySim.Simulation
{
public class Bactery
{
public double Size { get; set; } = 1.0d;
public double Energy { get; set; } = 0.0d;
public double FoodAbsorbtionRatePerSize { get; set; } = 0.05d;
public double EnergyUsageRate... |
6fe6580b5beae7a9cf96bd2563f2a6a61486baa4 | C# | Sarmaad/Saxx.Storyblok | /src/Saxx.Storyblok/StoryblokStory.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Saxx.Storyblok
{
public class StoryblokStory<T> : StoryblokStory where T : StoryblokComponent
{
public StoryblokStory(StoryblokStory story)
{
if (story == null)
{
... |
5c2ca97a335baa73271450591f47698362cb6804 | C# | Brian-McG/Poppel | /Poppel/Poppel/Order/Order.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Poppel.Domain;
namespace Poppel.Order
{
public class Order
{
private Collection<OrderItem> products = new Collection<OrderItem>();
pri... |
9258d2ad8e149ca4daa9e2bb4e5c209645777dd8 | C# | luisflux/Project-Dollhouse | /Other/tools/SimsLib/SimsLib/IFF/FieldReader.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace SimsLib.IFF
{
public struct FieldEncodingData
{
public byte CompressionCode;
public byte[] FieldWidths;
public uint EncodedDataLength;
public int FieldDataCounter;
public byte[] EncodedData;
... |
db679816cd59a34fe0029584d11033c8477455f4 | C# | sqrlmn/LA583 | /LibraryAssistantDAL/reservationDAL.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
namespace LibraryAssistantDAL
{
public class ReservationDAL
{
public bool setReservationDAL(string reservationID, string rUsername, strin... |
b49153664db5a36f1c4878623278b2caf232f619 | C# | BeTheBase/ProjectVrij | /Unity_Project_Vrij/Assets/_Scripts/WaveSystem/EnemySpawner.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EnemySpawner : MonoBehaviour {
public static int EnemiesAlive = 0;
public Wave[] waves;
public static bool Spawning = true;
public static int enemiesToSpawn;
public static int wa... |
0a8e525fc922fb5f77c035f4c1e0f9ae78a4a5ce | C# | khoanguyen109/datlichbaoduong | /vdcore/ErrorMessages.cs | 3.453125 | 3 | using System;
using System.Text;
namespace Vendare.Error
{
/// <summary>
///This class provides a means of building collections of custom errors.
///The class is instantiated with the max number of errors in the collection
///Call setMesage for each possible error with its message
///call setError to indicate tha... |
0b30b396d4dbc80a3d3927ffbe22af3c207ef48c | C# | Harrimaga/LD44 | /CottonCandy/CottonCandy/Cards/Ensnare.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CottonCandy.Cards
{
[Serializable]
class Ensnare : Card
{
public Ensnare() : base(true, "Ensnare", "Stun all units in a "+CardBalance.ENSNARE_RANGE+" tile wide diamond for ... |
df43a4f90057b96f9462e8678d31b55fbc590b18 | C# | GedGonz/Capacitacion-DDD | /DatosPRG/Repositorio/BaseRepositorio.cs | 2.828125 | 3 | using NegocioPRG.Contratos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Expressions;
using System.Data.Entity;
namespace DatosPRG.Repositorio
{
public class BaseRepositorio<T> : IBaseRepositorio<T> where T : class
{
... |
be6a25188bb99215ed4e96dc63ab1c9cabf22615 | C# | Aeromg/HumanNamesExtractor | /NamesExtractor/RegexExtension/RegexFunctionExecutor.cs | 2.875 | 3 | using System.Linq;
using System.Text.RegularExpressions;
namespace IndexerLib.RegexExtension
{
public static class RegexFunctionExecutor
{
static readonly Regex QuoteRegex = new Regex(@"(?<!\\)\$");
public static string ExecuteExpression(string expression)
{
var extracted ... |
b4cb1f6430a4dc6c64d452494d777324c0481282 | C# | rohitadidam/Batch-19.4.2021- | /Module-2/ADO/HandsOnAdoUsingStoredProcedures/HandsOnAdoUsingStoredProcedures/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HandsOnAdoUsingStoredProcedures.Entities;
using HandsOnAdoUsingStoredProcedures.Repositories;
namespace HandsOnAdoUsingStoredProcedures
{
class Program
{
static void Main(string[] a... |
43b73a057f06ec7cd3ccb4029b30bd62a4f4bf00 | C# | fredsena/Design-Patterns | /DesignPatterns.Tests/CoffeeShopDecoratorTests.cs | 2.875 | 3 |
using System;
using System.Linq;
using Xunit;
using DesignPatterns.Core.Decorator.CoffeeShopDecorator.Component;
using DesignPatterns.Core.Decorator.CoffeeShopDecorator.Decorator;
namespace DesignPatterns.Tests
{
public class CoffeeShopDecoratorTests
{
[Fact]
public void Expresso_WhenInstanti... |
727401f709df5ba0d3534116133d38ed4f0dbd52 | C# | ahdde/graphite.net | /Graphite/CarbonConnectionPool.cs | 2.6875 | 3 | using System;
using System.Collections.Concurrent;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.ObjectPool;
namespace ahd.Graphite
{
/// <summary>
/// Connection pool for TCP connections to carbon
/// </summary>
public clas... |
b7d6710abe0db4fc8cabe73d02b8e1f4068de88b | C# | kevinheader/Phenix.NET7 | /Demo_ORA/Demo.Phenix.Core.Data.Schema/Program.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using Phenix.Core.Data;
using Phenix.Core.Data.Schema;
using Phenix.Core.Reflection;
namespace Demo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("**** 演示 Phenix.Core.Data.Schema 功能 ****");
Console.... |
2c6488a64eab67dc496acfedb888513faa1c949b | C# | JacobHelm36/Library-api | /Services/LibrariesService.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using library.Repositories;
using library_api.Models;
// using library_api.Repositories;
namespace library.Services
{
public class LibraryService
{
private readonly LibraryRepository _repo;
public LibraryService(LibraryRepository repo)
{
_repo = rep... |
30e8b534351afa919ce2e1b4ae70b732b0e502a1 | C# | forki/Okanshi | /tests/Okanshi.Tests/BasicCounterTest.cs | 2.75 | 3 | using System.Linq;
using FluentAssertions;
using Xunit;
namespace Okanshi.Test
{
public class BasicCounterTest
{
[Fact]
public void Initial_value_is_zero()
{
var counter = new BasicCounter(MonitorConfig.Build("Test"));
counter.GetValue().Should().Be(0);
... |
36c234832089e377251cdb3179ecb6961a409be4 | C# | GeorgiLambov/SoftwareUniversity | /07.Object-Oriented Programming/01.Defining-Classes-Homework/04.SoftwareUniversityLearningSystem/SoftUniLearningSystem.Data/SeniorTrainer.cs | 2.765625 | 3 | using System;
namespace SoftUniLearningSystem.Data
{
public class SeniorTrainer : Trainer
{
public SeniorTrainer(string fName, string lName, string id)
: base(fName, lName, id)
{
}
public void DeleteCourse(string courseName)
{
Conso... |
ec0ee0f0446cb15cdd04de3997ce997f55039173 | C# | Juli199696/ArgUrTMapManager | /ArgusLib.Controls/ProcessForm.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace ArgusLib.Controls
{
/// <summary>
/// A simple <see cref="Form"/> similar to a console window. It runs ... |