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 |
|---|---|---|---|---|---|---|
bf5bf3604bbdf8bc86e86ee160f5cd4e86f328e4 | C# | rynowak/opulence | /src/dotnet-opulence/TempDirectory.cs | 3.046875 | 3 | using System;
using System.IO;
namespace Opulence
{
internal class TempDirectory : IDisposable
{
public static TempDirectory Create()
{
var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Directory.CreateDirectory(directoryPath);
r... |
b9605d8ac43b5a278e2e861c96f37d6d3d8f4f51 | C# | VladPrn/Decision-Theory-1 | /GUI.cs | 2.8125 | 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 TP1
{
public partial class GUI : Form
{
public GUI()
{
Ini... |
23b6cd5632cdd675a71046d386178c42ee5f288f | C# | 27xx/ypau | /unity/Assets/Scripts/Heights.cs | 2.71875 | 3 | using System.Collections.Generic;
using UnityEngine;
using CoastlinesGen;
using System.Linq;
public class Heights
{
private Graph graph;
Dictionary<Vector3, float> heights;
float decay;
float sharpness;
ISet<Vector3> visited;
float waterLevel;
public Heights(Graph graph, float decay, floa... |
410681c2e0ead62eadd1783e3739b6cba8f30a6d | C# | DD898989/TPAPI | /TPAPI/Provider/Telesign.cs | 2.546875 | 3 | using System;
using System.Configuration;
using TPAPI.Models;
using TPAPI.Models.Table;
using Telesign;
using Newtonsoft.Json;
namespace TPAPI.Provider
{
public class Telesign
{
public static string CustomerId = ConfigurationManager.AppSettings["Telesign_CustomerId"];
public static string ApiK... |
3c41e4fd34496bbed01c19f7b504ce805eca9ed8 | C# | mtanksl/OpenTibia | /mtanksl.OpenTibia.Network/Packets/Outgoing/NpcTrade/InviteNpcTradeOutgoingPacket.cs | 2.65625 | 3 | using OpenTibia.IO;
using System.Collections.Generic;
namespace OpenTibia.Network.Packets.Outgoing
{
public class InviteNpcTradeOutgoingPacket : IOutgoingPacket
{
public InviteNpcTradeOutgoingPacket(List<OfferDto> offers)
{
this.Offers = offers;
}
private List<Offe... |
85e1eb6ba09ad9415582a7a6faf5778ac979cfde | C# | radiodio/ReviewCounter | /ReviewCounter/ReviewCounter/Controllers/ReviewsController.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using ReviewCounter.Models;
using Microsoft.AspNetCore.Http;
namespace ReviewCounter.Controllers
{
public c... |
d033da333b32e5486ec217f7f1d6ce0b3bf1a96f | C# | pomazafa/KP_DB | /MyProject/MyProject/Controller.cs | 2.84375 | 3 | using Oracle.DataAccess.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace MyProject
{
public static class Controller
{
public static bool InsertAll(Train train, List<TrainStop> stops, OracleConnec... |
cb4505b1908f4bbed3dd84c8b6c85fc512124686 | C# | colinmxs/CodenameGenerator.Lite | /src/CodenameGenerator.Lite/FileBackedWordBank.cs | 3.0625 | 3 | namespace CodenameGenerator.Lite
{
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
public class FileBackedWordBank : WordBank
{
private readonly string fileName;
private const string folderName = "Data";
internal FileBackedWordBank(strin... |
7da37f7d7b86b0622c20deb24547fdccd0599e84 | C# | MetSystem/FastGithub | /FastGithub.Scanner/GithubContextCollection.cs | 3.09375 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace FastGithub.Scanner
{
sealed class GithubContextCollection
{
private readonly object syncRoot = new();
private readonly HashSet<GithubContext> contextHashSet = new();
private readonly Dictionary<string, IPA... |
3961ef08aae98879e4bc0dad660b9b65329f06c5 | C# | oclockvn/businessexecutor | /FnExecutor/BusinessException.cs | 2.734375 | 3 | using System;
namespace FnExecutor
{
public class BusinessException : Exception
{
/// <summary>
/// The exception code
/// </summary>
public string Code { get; set; }
/// <summary>
/// The exception date
/// </summary>
public DateTimeOffset Exce... |
2d2499dbb4f69611b7884f50951d7983ef16b65b | C# | momsspaghettti/stepik-design-in-csharp | /PS/Filters/Transform/RotateTransformer.cs | 3.046875 | 3 | using System;
using System.Drawing;
namespace MyPhotoshop {
public class RotateTransformer : ITransformer<RotationParameters> {
public void Prepare(Size oldSize, RotationParameters parameters) {
_oldSize = oldSize;
_angle = Math.PI * parameters.Angle / 180;
ResultSize =... |
b5afe09f5bded9bf661d80ddc71c359aa560723c | C# | mizhhieuIT/HUMGNEWSAPI | /Controllers/CategoryController.cs | 2.671875 | 3 | using HumgNewsAPI.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HumgNewsAPI.Controllers
{
[Route("api/[controller]")]
[ApiController]
p... |
14260ec8ddff6b05aada6e67c7b54e628061c910 | C# | smzerehpoush/hedwig | /src/infrastructure/Persistence/Configurations/UserConfiguration.cs | 2.546875 | 3 | using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Persistence.Configurations
{
public class UserConfiguration : IEntityTypeConfiguration<User>
{
public void Configure(EntityTypeBuilder<User> builder)
{
build... |
2afc5e62fb4c5cf2406d6e7fe6be769f51ef3667 | C# | fereshte3578/DigiService | /DigiService.DAL/DepartmentDao.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DigiService.Entities;
namespace DigiService.DAL
{
public class DepartmentDao
{
public List<Department> SelectDepartment()
{
List<D... |
80120d26a288f304d7539e061743f80178c24b9d | C# | shendongnian/download4 | /code5/917812-22958384-62457948-2.cs | 3.171875 | 3 | static void Main()
{
var lines = System.IO.File.ReadAllLines(@"c:\temp\log.txt");
Parallel.ForEach(lines,line => processLine(line));
}
private static void processLine(string line)
{
Console.WriteLine(line);
}
|
73438eaa032ea976adc281a4c411423682451390 | C# | nvellela/3tierExample | /BusinessLogicLayer/Services/CategoryService.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BusinessLogicLayer.Intefaces;
using CommonLayer;
using DataAccessLayer;
using DataAccessLayer.Services;
namespace BusinessLogicLayer.Services
{
public class CategoryService : ICategoryService
... |
9cec7aaddcabb99e4bd633bf1db1d84c4bc225ea | C# | mickmick117/UnityGuitar | /UnityGuitar/Assets/Scripts/Recording.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Recording : MonoBehaviour {
// public Chord tempChord;
private List<List<Note>> chords;
private List<float> silencesTime;
private bool isRecording = false;
private bool playOnce = false;
private float ... |
6c295feb507015309de56484b2c1e8adcc90ad9e | C# | s-laugh/babel-simulation-engine | /maternity-benefits/Storage/Mock/MockCreator.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
namespace maternity_benefits.Storage.Mock
{
public static class MockCreator
{
private static readonly int MINIMUM_AGE = 16;
private static readonly int MAXIMUM_AGE = 36;
public static List<MaternityBenefitsPerson> GetMockPersons(int amoun... |
c7c73dfcd028d6f09648ecc6d9e63e24e60e7472 | C# | JosephSnedeker/SeniorYearCodingClass | /Semester2/stringSplosion/stringSplosion/Program.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace stringSplosion
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(StringSploder("Hello"));
Console.ReadKey();
}
... |
ef530d343a946739db7dd3708993818c699e1c39 | C# | Dariush-Tasdighi/Learning-Event-Sourcing-Simple | /Application/Events/ProductReceived.cs | 3.03125 | 3 | namespace Application.Events
{
//public record ProductReceived(string Sku, int Quantity, System.DateTime Timestamp) : IEvent;
public class ProductReceived : object, IEvent
{
public ProductReceived(string sku, int quantity) : base()
{
Sku = sku;
Quantity = quantity;
Timestamp = System.DateTime.UtcNow;... |
adfc2b482238c091128e9c0d4f55fb3fc0789dfe | C# | Florent0589/HelloWorldCs | /Program.cs | 3.328125 | 3 | using System;
namespace HelloWorldCs
{
class Program
{
static void Main(string[] args)
{
// setting used variables
string name = "Florent Shomora";
string appName = "Welcome To C# Programming";
string version = "1.1.2";
string appYear... |
baff2db978b8c03e6aa097887ba839098f84774d | C# | DovetailSoftware/bottles | /src/Bottles/Commands/AssemblyPackageCommand.cs | 2.53125 | 3 | using System;
using System.ComponentModel;
using System.Xml;
using Bottles.Zipping;
using FubuCore;
using FubuCore.CommandLine;
using System.Linq;
using System.Collections.Generic;
namespace Bottles.Commands
{
public class AssemblyPackageInput
{
[Description("The root folder for the proje... |
8a7a706b2ec74753b09c1c07aa7451089eca3686 | C# | Amira-Yousry/Inventory-System-using-Entity-Framework-C- | /type_Form3.cs | 2.828125 | 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 project_EF
{
public partial class type_Form3 : Form
{
public type_Form3()
... |
556f7f4edfffe967c0379759d9ecf12b71f683a0 | C# | Belal13ify/CandyConquer | /Source/CandyConquer/CandyConquer.Drivers/Repositories/Safe/IdentityGenerator.cs | 2.8125 | 3 | // Project by Bauss
using System;
using System.Collections.Generic;
namespace CandyConquer.Drivers.Repositories.Safe
{
/// <summary>
/// An identity creator.
/// </summary>
public static class IdentityGenerator
{
/// <summary>
/// Client ids.
/// </summary>
private static SortedSet<uint> clientIds;
... |
da5a5d53184c596fa635139bb417d2287ac890c4 | C# | ConnectionMaster/botbuilder-dotnet | /libraries/Microsoft.Bot.Builder/ActivityHandler.cs | 2.578125 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Bot.Schema;
namespace Microsoft.Bot.Builder
{
/// <summary>
... |
310d067b526c6eeb2e27851558e0d3190239c731 | C# | SarvadiDarina/cs_labs | /lab14/TBall.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace task
{
class TBall : TBody
{
public TBall(int r) : base(r) { }
public override double Area()
{
return 4 * Math.PI * Math.Pow(Data, 2);
}
public override double Volume()
{
... |
9c76f1362b4e758b9435408ef369ab3e684385dd | C# | AlekseyMyalick/LearnPartOne | /MailTestAutomationFramework/Mail/MailServices/MailRu/Inbox/InboxPage.cs | 2.578125 | 3 | using OpenQA.Selenium;
using NLog;
using Mail.Base;
using Waiter;
using Mail.Util;
namespace Mail.MailServices.MailRu.Inbox
{
/// <summary>
/// It is a page describing the inbox page.
/// </summary>
public class InboxPage : BasePage
{
public IWebElement LastIncomingLetter => Driver.FindEle... |
92aaab04355832727fa7d1763c1552af904953f0 | C# | Ayaanhsnn/Skeleton | /ClassLibrary/clsOrder.cs | 3.171875 | 3 | using System;
namespace ClassLibrary
{
public class clsOrder
{
//private data member for active
private Boolean mClothesAvailable;
//public property for active
public bool ClothesAvailable
{
get
{
//return the private data
... |
9aa86f02f61ad258e46a069519822649b552c1d3 | C# | nirmal0894/KafkaProducerApp | /KafkaProducerApp/ConsumerWrapper.cs | 2.59375 | 3 | namespace KafkaProducerApp
{
using Confluent.Kafka;
using System;
using System.Threading;
public class ConsumerWrapper
{
private string _topicName;
private ConsumerConfig _consumerConfig;
private ConsumerBuilder<string,string> _consumer;
private static readonly Random... |
7dca8a7e46f7cb18ae179e084766533a36f29dcf | C# | vasildimov98/softuni-tutorials | /04.DataStructure/2.Fundamentals2020/Projects/4.BinarySearchedTreeAndHeaps/2.Exercise/07.Heaps-BST-Exercise-Exercises-Skeleton/03.MinHeap/MinHeap.cs | 3.828125 | 4 | namespace _03.MinHeap
{
using System;
using System.Collections.Generic;
public class MinHeap<T> : IAbstractHeap<T>
where T : IComparable<T>
{
private readonly List<T> elements;
public MinHeap()
{
this.elements = new List<T>();
}
public int ... |
1356bbde20531946f0dd99800c7e36b52d99a758 | C# | GerbilSoft/puyotools | /Libraries/VrSharp/Core/VpPalette.cs | 3.03125 | 3 | using System;
using System.IO;
namespace VrSharp
{
public abstract class VpPalette
{
#region Fields
protected bool initalized = false; // Is the palette initalized?
protected ushort paletteEntries; // Number of palette entries
protected byte[] encodedData; // Encoded palette ... |
24c8a4f0b3185f2df5fd03c18a4f892bf85562b9 | C# | nikolaydechev/Programming-Basics | /09 Coding 101 - Exams/Exam-Preparation/03-Flowers.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03_Flowers
{
class Program
{
static void Main(string[] args)
{
var numberChrysantemum = int.Parse(Console.ReadLine());
var numberRoses = int.Pa... |
97da7d12f34c4b9aa5f5d61a44583f940b542202 | C# | KDSBest/service-fabric | /src/prod/src/managed/Microsoft.ServiceFabric.Data.Impl/Replicator/LockContext.cs | 2.59375 | 3 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.ServiceFab... |
1e78e6591b2059ec3de52bf730aec53454e47f62 | C# | OsaMichael/CyberKitchen | /Cyber_Kitchen/Entities/EntityRepository.cs | 2.765625 | 3 | using Cyber_Kitchen.Interface;
using Cyber_Kitchen.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.Validation;
using System.Linq;
using System.Web;
namespace Cyber_Kitchen.Entities
{
public class EntityRepository :... |
23124f7719934d4a38cb73722e13c5d9db741eed | C# | koson/RS_Csharp | /RSCsharpClient/UDPsocketClient.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using FEC;
namespace RSCsharpClient
{
class UDPsocketClient
{
// chuyển đổi chuỗi ký tự thành object thuộc kiểu IPAddress
//static IP... |
fe4393be6f54c39cd168a0cc2e26a25eafa2a44a | C# | AllenConway/SpackleNet | /Spackle.NET/Extensions/ICommunicationObjectExtensions.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
namespace Spackle.Extensions
{
/// <summary>
/// Provides extension methods to close/abort a <see cref="ICommunicationObject"/>-based reference correctly.
/// </summary>
/// <remarks>
/// The followin... |
bd3d7c32b3f536dfb8a762141096ef731c9fa3e0 | C# | ThiagoBottacin/Cadastro-Cliente | /DAL/ClienteDAL.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using DTO.Entities;
namespace DAL
{
public class ClienteDAL
{
public void Insert(Cliente cliente)
{
try
{
var dataBase = DatabaseHelper.Create();
... |
2c2acd5a070b69b0fee1cd15bc9786a46f1d0d74 | C# | duhowise/learn-csharp-by-building-applications | /SimpleCalculator.Test.Unit/InputConverterTests.cs | 3.15625 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace SimpleCalculator.Test.Unit
{
[TestClass]
public class InputConverterTests
{
private readonly InputConverter _inputConverter=new InputConverter();
[TestMethod]
public void ConvertValidIntStringToDouble()
... |
8160537f2dafb0f8d90e15f942ef5ae37d3cd4fc | C# | LincolnLink/Projeto13-.NET-WEBForms | /Projeto13/Proejto.Util/Criptografia.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;
namespace Projeto.Util
{
public class Criptografia
{
//método para receber uma senha e retornala
//encriptada no padrão MD5
public st... |
9ca054df38c9bfbc3650f9e926fb6a669220eeef | C# | Danich9/12 | /Repair_DB/objects.cs | 2.53125 | 3 | using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
namespace Repair_DB
{
public partial class objects : Form
{
private OleDbConnection db_connection;
private DataSet ds;
private OleDbDataAdapter adapter_Objects;
private OleDbDataAdapter adapter_Customers;
... |
418ebca255dcbc8bd7b8e1f965b2bdacf6cac39b | C# | weedkiller/tfs2.com | /TFS.Common/OpCenter/Forms/FieldMetadata.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TFS.OpCenter.Serialization;
namespace TFS.OpCenter.Forms
{
/// <summary>
/// The field metadata is used to store values used for validation and UI
/// </summary>
/// <remarks>
/// Internally i... |
91d46fb3a2d9b00c952404fcae1091e53d6785c6 | C# | bozkurtismail/ReCapProject | /DataAccess/Concrete/EntityFramework/EfRentalDal.cs | 2.546875 | 3 | using Core.DataAccess;
using DataAccess.Abstract;
using Entities.Concrete;
using Entities.Dtos;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Linq.Expressions;
namespace DataAccess.Concrete.EntityFramework
{
public class EfRentalDal : EfEntityRepositoryBase<Ren... |
9ce7d5359cde9c951331bd361539d333eaab0de9 | C# | ShuIly/SoftUni | /Programming Fundamentals Extended/07. Array and List Algorithms/More Exercises/04. Japanese Roulette/Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _04.Japanese_Roulette
{
class Program
{
static void Main(string[] args)
{
int[] cylinder = Console.ReadLine().Split().Select(int.Parse).ToArray();
string[] moves = Console.ReadLine... |
d05357d67ccaad929143de06e9952a6ca0f1cf16 | C# | lihach54nsk/ALG2_EXP | /ALG_LAB2/Road.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ALG_LAB2
{
struct Road
{
public const int Size = 21;
public int City1;
public int City2;
public int Distance;
public Road(int IdCity1, int IdC... |
41c1d5fc9fa2dcad4e35e3d79379a71feaa4cdaa | C# | tienvd1994/DifferenceInCSharp | /Iterators/Program.cs | 3.984375 | 4 | using System;
using System.Collections.Generic;
namespace Iterators
{
internal class Program
{
public static void Main(string[] args)
{
// using (var enumerator = GetArrayAnimal().GetEnumerator())
// {
// while (enumerator.MoveNext())
// ... |
5c41ae6eea5800d17bd3acdf8d8ee09a4543fabb | C# | dotnetcore/DotnetSpider | /src/DotnetSpider/DataFlow/Parser/Formatters/TimeStampFormater.cs | 3.09375 | 3 | using System;
namespace DotnetSpider.DataFlow.Parser.Formatters
{
/// <summary>
/// 把Unix时间转换成DateTime
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class TimeStampFormatter : Formatter
{
/// <summary>
/// 实现数值的转化
/// </summary>
/// <param name="value">数值</param... |
6bb796241d4dd6e1879a330fd3ac658769ead480 | C# | ProjetVoituresPGM/ProjetVoitures | /Presentation/FrmSuppVoiture.cs | 2.515625 | 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 Metier;
namespace Presentation
{
public partial class FrmSuppVoiture : Form
{
pri... |
e07123c11329f8682206dc1204a376e7ae4f6ca4 | C# | Jakawardana/ResponsiUAS | /Praktikum9/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using prak8.ClassInduk;
using prak8.ClassAnak
namespace prak8
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Tugas Lab 9 - Polymorphsim, Inherita... |
7200cf6be819eaa206c4d1a622734b5e6fae8b7e | C# | sdasilva/LinqStatistics | /LinqStatistics/Bin.cs | 3.453125 | 3 | using System;
namespace LinqStatistics
{
/// <summary>
/// A discrete count of items which fall into a given range
/// </summary>
public class Bin : ItemCount<double>
{
private readonly Range _range;
/// <summary>
/// ctor
/// </summary>
/// <param name="v"... |
f2ff30f5329c70f0608451ad07e00a96292d90ba | C# | jarek93pl/NaukaAspNetCore | /Client/Program.cs | 3.21875 | 3 | using DTO;
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Client
{
class Program
{
static HttpClient client = new HttpClient();
static void Main(string[] args)
{
Console.WriteLine("kliknij by rozpocząć");
Cons... |
e4df88c08e52a11c499b27313909e6af8e899d14 | C# | chawin-tree-cko/SNSSQSDemo | /SNSSQSDemo.SQS/SqsSettings.cs | 2.734375 | 3 | namespace SNSSQSDemo.SQS
{
public class SqsSettings
{
/// <summary>
/// URL of the queue to read messages.
/// In the format "https://sqs.{REGION}.amazonaws.com/{ACCOUNT_ID}/{QUEUE_NAME}".
/// </summary>
public string QueueUrl { get; set; }
/// <summary>
... |
574b2e43300ca2116689fab89b3db4271e7099de | C# | Garbled-Tutors/CSharpMaze | /WindowsFormsApplication1/MazeGenerator.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace WindowsFormsApplication1
{
class cMazeGen
{
public readonly int I_TOTAL_CELLS;
public readonly int I_MAZE_SIZE;
private Point pCurrentCell;
private Random rando... |
4858197134644aed41b038ba30809ae6104e67d1 | C# | MarioHewardt/diagnostics | /src/Microsoft.Diagnostics.TestHelpers/LoggingListener.cs | 2.9375 | 3 | using System;
using System.Diagnostics;
using Xunit.Abstractions;
namespace Microsoft.Diagnostics.TestHelpers
{
public class LoggingListener : TraceListener
{
private readonly CharToLineConverter _converter;
public static void EnableListener(ITestOutputHelper output, string name)
{
... |
3dcbe8d123b7d3de1709da2f4383a24be5214390 | C# | emmanuelbenitez/BigSolution.Validation | /src/BigSolution.Validation/Constraints/StringConstraints.cs | 2.515625 | 3 | #region Copyright & License
// Copyright © 2020 - 2022 Emmanuel Benitez
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... |
cff54a0cee742c04fb43aa879b2a49fab05b5773 | C# | shendongnian/download4 | /first_version_download2/78283-5042271-10721124-2.cs | 2.796875 | 3 | public static string MakeFilename(this DateTime dt)
{
return dt.ToString("yyyyMMdd-HHmmss");
}
}
|
86f03487e1c986754b03e463a28c7d8b11991ae4 | C# | stephenpatten/cavity | /src/Cavity Core/Class Libraries/Core.Facts/ICalculateDateTimePeriod`1.Facts.cs | 2.53125 | 3 | namespace Cavity
{
using Moq;
using Xunit;
public sealed class ICalculateDateTimePeriodFacts
{
[Fact]
public void a_definition()
{
Assert.True(new TypeExpectations<ICalculateDateTimePeriod<Date>>().IsInterface()
... |
0b9d3422d58f8dd197210c69a7d90151b5b6d733 | C# | LunaMultiplayer/LunaMultiplayer | /LmpClient/Base/RoutineDefinition.cs | 3.03125 | 3 | using System;
using System.Diagnostics;
using UnityEngine.Profiling;
namespace LmpClient.Base
{
public enum RoutineExecution
{
FixedUpdate,
Update,
LateUpdate
}
/// <summary>
/// This class defines a routine that must be executed during an update or a fixed/late update
... |
d7a253b95650d0bf5470e5c8ba3f05af99501449 | C# | Djohnnie/SwmSuite-Original | /SwmSuite.Presentation.Common/BrowserView/BrowserViewRenderer.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
namespace SwmSuite.Presentation.Common.BrowserView {
public class BrowserViewRenderer : IDisposable {
#region -_ Private Members _-
private SolidBrush _rowNormal... |
62ec089b36cd0abcd4c24e705211da83d5ec67b8 | C# | NovaDA/Fitness_Model | /Assets/_Scripts/CharacterController.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FitnessModel
{
public class CharacterController : MonoBehaviour
{
public float _RotationSpeed;
UserInput _UserInput;
AnimationState state;
private void Awake()
{
_UserInp... |
9ec126b6c6b44000ce048d49ec962e8ce3e4fb3b | C# | Jay2645/UnityHelperFunctions | /Scripts/Achievements/Acheivement.cs | 3.15625 | 3 | using HelperFunctions.ObserverSystem;
namespace HelperFunctions
{
namespace AchievementSystem
{
/// <summary>
/// A simple class referencing an achievement.
/// Inherit from this class to specify things like award conditions.
/// </summary>
public class Achievement : Observer
{
/// <summary>
/// De... |
d6ef5937f16a15ca84e00365663d96d43250b8d7 | C# | leemcknight/Similization | /src/McKnight.Similization.Core/terrain.cs | 2.703125 | 3 | using System;
using System.Data;
using System.Globalization;
namespace McKnight.Similization.Core
{
/// <summary>
/// A Terrain for a grid cell.
/// </summary>
public class Terrain : NamedObject
{
private int commerce;
private int defense;
private int food;
private int shields;
... |
786e0075e65044d8c98533641984562c3f876af6 | C# | Stalis/brainfuck-dotnet | /Brainfuck.Compile/CompilerProgramProvider.cs | 2.8125 | 3 | using Brainfuck.VM;
using System.Collections.Generic;
using System.Linq;
namespace Brainfuck.Compile
{
public class CompilerProgramProvider : IProgramProvider
{
private readonly IProgramCompiler _compiler;
private List<byte> _program;
public CompilerProgramProvider(IProgramCompiler co... |
1e828bf1bed01522d87c6210edb51bd175a29f8c | C# | zehro/Projects | /Unity/VGDev/2016/Bardmages/Assets/Scripts/Tune.cs | 2.671875 | 3 | using UnityEngine;
using System.Collections;
public class Tune : MonoBehaviour {
/// <summary>
/// The keys that need to be pressed to perform this tune.
/// </summary>
public ControllerInputWrapper.Buttons[] tune;
/// <summary>
/// What object will be spawned when this tune is complete?
/// </summary>
publ... |
6820311e9d7c1a7e87ed405c934f42665b2cc348 | C# | MadalinaMircea/MLCharacterRecognition | /MLProject1/CNN/ConvolutionalNeuralNetwork.cs | 2.8125 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MLProject1.CNN
{
[Serializable]
public class ConvolutionalNeuralNetwork
{
public Input... |
bf36dd7932728d68ad8140fb694d35eaeec48f2b | C# | Skripa87/ReportRedaktor | /Reporter/ManagerReport.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Windows.Controls;
using OfficeOpenXml;
using ClosedXML.Excel;
namespace Reporter
{
public class ManagerReport
{
private static List<string> FiveClockWorkers { get; set; }
private static bool CheckW... |
acfdd44e35a8f525a11474a6320939eace0cb56b | C# | 15831944/Projects-1 | /BibleVerses/BibleVerses/Models/BibleVerse.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace BibleVerses.Models
{
public class BibleVerse
{
[Key]
[DatabaseGenerated... |
d8fcda8d66527b0d69b1c578568713819d4b123c | C# | oneheed/aw-common-util | /AWCommonUtil/HttpUtility/HttpUtil.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using AWCommonUtil.HttpUtility.ParamGenerator;
using Newtonsoft.Json;
namespace AWCommonUtil
{
/// <summary>
/// a wrapper function for http ... |
a8ad0be6a1253998fbebf8dc2f7c7ec7fc832596 | C# | givikogo/CRUD | /Examples/Crud/Read.cs | 3.015625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.SqlClient;
using System.Text;
namespace Examples.Crud
{
public class Read
{
private readonly int id;
string conStr = @"Data Source=localhost; Initial Catalog=Test; Integrated ... |
34fd73a8b211e5d321d29e33c62d4fce513a3f3f | C# | Rhenin/Zlozonosc-Obliczeniowa | /Zlozonosc/BST.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
[assembly: InternalsVisibleTo("Lab2.cs")]
namespace Zlozonosc
{
class BST
{
internal class Node
{
public dList value;
... |
4ce4b64c9f3e3607313486bf20e182587e04a07b | C# | drewburton/ProjectEuler | /C#/Problem8/Problem8/Program.cs | 3.75 | 4 | namespace Problem8
{
class Program
{
static void Main(string[] args)
{
string input = GetInput();
Console.WriteLine(MaxProduct(input, 13));
}
private static string GetInput()
{
string path = @"C:\Users\aburton2\source\repos\Problem8\P... |
a6ab90e682b42c76fba3fbe0f8ba10578f49888a | C# | EduardBargues/CandleTimeSeriesAnalysis | /Indicators/AverageDirectionalMovementIndex.cs | 2.609375 | 3 | using CommonUtils;
using System;
using System.Linq;
namespace CandleTimeSeriesAnalysis.Indicators
{
public class AverageDirectionalMovementIndex : Indicator
{
public AverageDirectionalMovementIndex( Func<CandleTimeSeries, DateTime, double> function ) : base ( function )
{
}
p... |
a67172c29bf0ca8b2fffd49af420a2f23dfad187 | C# | nckurt/CarRentalWebSiteProject | /CarRental.BLL/Concrete/ContractManager.cs | 2.84375 | 3 | using CarRental.BLL.Abstract;
using CarRental.DAL.Abstract;
using CarRental.Entity.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace CarRental.BLL.Concrete
{
public class ContractManager : IContractService
{
IContractDal _contractDal;
public ContractManager(IC... |
1e053499587502c1c975ca604c33803aee369510 | C# | davrivas/Sena2018 | /Fase V/C#/Actividad2/Actividad2/TienditaVenezolana.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Actividad2 {
class TienditaVenezolana {
private object[,] productos;
private object[,] factura;
private string buscar;
private string cant;
private ... |
10081ee248681750c64f7d9c5c8b54a012ed597d | C# | andrewheumann/Elements | /src/Revit/Hypar.Revit.Converters/RevitExtensions.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;
using Elements.Geometry;
namespace Hypar.Revit
{
internal static class RevitExtensions
{
/// <summary>
/// Convert the Revit XYZ to an Elements Vector3, with an option to scale the
/// Vector3 f... |
8949c99eb0c5166026c8d982a5dbcd0bff97b2c9 | C# | liebasam/LiebasamUtils | /test/LiebasamUtils.Tests/Random/TRandomProvider.cs | 2.8125 | 3 | using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LiebasamUtils.Random.Tests
{
[TestClass]
public class TRandomProvider
{
[TestClass]
public class GetSetRNG
{
[TestMethod]
public void SetNullSeed()
... |
b3a999847de1ae02e658c9b8ba19bc36d0bc1233 | C# | JoannaMadNat/ARMSim | /src/Model/Memory.cs | 3.875 | 4 | using System;
/// <summary>
/// File: Memory.cs
/// A class that acts as a simulated RAM.
/// </summary>
///
namespace armsim.Model
{
//This class simulates memory with an array of bytes organized in Little Endian.
public class Memory
{
byte[] memory_array; //The simulated RAM space
publi... |
d9a75eaa895431f3bf7ab514596534d994bac78f | C# | KarabaevMaxim/uedi | /EdiModuleCore/Model/Waybill.cs | 2.734375 | 3 | namespace EdiModuleCore.Model
{
using System;
using System.Collections.Generic;
using System.Linq;
using DAL.DomainEntities.Spr;
/// <summary>
/// Класс накладной слоя бизнес-логики.
/// </summary>
public class Waybill
{
/// <summary>
/// Номер накладной.
/// </summary>
... |
8f81a814564e4424e130ca30d33ce256f60befc5 | C# | FatimaAU/DAB | /HandIn2.1/HandIn2.1/City.cs | 2.546875 | 3 | namespace HandIn2._1
{
class City
{
public City(string name, string zipcode)
{
CityName = name;
ZipCode = zipcode;
}
public string CityName { get; set; }
public string ZipCode { get; set; }
}
} |
dd3da0e72e19d8cb17cb6e1ea804826ce9481da0 | C# | Thinking-Beard/civilsalary | /civilsalary.datasync/JsonNetExtensions.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using System.IO;
using Newtonsoft.Json.Linq;
namespace civilsalary.datasync
{
public static class JsonNetExtensions
{
public static dynamic AsDynamic(this JObject target)
{
... |
ce5192c0148f8dcfebb504a96977342eab14668b | C# | Alan-Baylis/Fantasy-Project | /Assets/Scripts/Procedural Terrain/Data/TextureData.cs | 3.09375 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
//Create asset menu allows us to create a new TextureData from right clicking in the inspector
[CreateAssetMenu()]
//TextureData inherits from UpdatabelData so that it can notify objects when a value is cha... |
1540d579707926a2d3d9f812b635e165c8992ef4 | C# | shendongnian/download4 | /code7/1298347-34851942-108688821-4.cs | 2.75 | 3 | private void txtEmail_LostFocus(object sender, RoutedEventArgs e)
{
SqlConnection mySC = new SqlConnection();
SqlDataReader reader;
mySC.ConnectionString = ("Data Source=localhost;Initial Catalog=RCA;Integrated Security=True");
mySC.Open();
string sql = @"SELECT * FROM RC... |
37b2987473d7376be013827265fd2483b4d1345a | C# | UntilNick/R6SAdapter | /R6SAdapter/Config.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using Newtonsoft.Json;
namespace R6SAdapter
{
static class Config
{
public static Configuration Configuration;
public static void SaveConfiguration()
{
... |
2ebf60acffde9a9684b81e4bd7d1d019459109af | C# | henrylawson/SpecAssistant | /SpecAssistantExampleTest/LogicalOrSpecificationTest.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using SpecAssistant;
using SpecAssistantExample;
namespace SpecAssitantTest
{
[TestFixture]
public class LogicalOrSpecificationTest
{
private Specification<Person> _minAgeOrHeightSpecificat... |
2b26376a8eb8dcf7a1cb913d8d912278fce193cd | C# | thiagoromam/WpfExperiments | /DragAndDrop/DragAndDrop/GameObject.cs | 2.71875 | 3 | using System;
using System.Collections.ObjectModel;
using DragAndDrop.Components;
namespace DragAndDrop
{
public class GameObject : IDraggable, IDroppable
{
public GameObject(string name)
{
Name = name;
Children = new ObservableCollection<GameObject>();
}
... |
f3051ef8840955708dbd564cf7053aedc35ff0e2 | C# | Tomcariello/Squids | /Assets/Scripts/VultureEnemyController.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VultureEnemyController : MonoBehaviour {
private int PowerLevel = 3;
private Vector3 StartPosition;
private bool attackPlayer = true;
private bool isMoving = false;
private Vector3 targetPosition;
[SerializeField]
p... |
6be0c9dbd9d60c5972aac01fdf7d26b31442f7b9 | C# | TatianaGantievskaya/TAT_2018 | /ListOfGoods.Tests/PositiveTests.cs | 2.90625 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ListOfGoods.Tests
{
[TestClass]
public class PositiveTests
{
[TestMethod]
public void TestStoreTheProduct()
{
Product myProduct = new Product("Biscuits", "Tuc", 1, 2);
GoodsStorage storage = new GoodsStorage();
storage.S... |
7e1119c2f633a63641a9d220daaf99bddf133265 | C# | LBarcelosM/ProvaMedGrupo | /Prova.MedGrupo.Data/UnitOfWork/ProvaMedGrupoUnitOfWork.cs | 2.65625 | 3 | using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Prova.MedGrupo.Data.Contexts;
using Prova.MedGrupo.Framework.Interfaces.Data;
namespace Prova.MedGrupo.Data.UnitOfWork
{
public class ProvaMedGrupoUnitOfWork : IUnitOfWork
{
private readonly ProvaMedGrupoDbConte... |
af9da92b3382fbc017ea94665754ece34f55690b | C# | Jangelovski91/CSharp---Homeworks | /Basic/Class 04 Homework/Project02/Program.cs | 3.84375 | 4 | using System;
namespace Project02
{
class Program
{
static double Sum(double number1, double number2)
{
return
number1 + number2;
}
static double Subtract(double number1, double number2)
{
return
number1 - numbe... |
b17d995d7364f05343fd7bd6eb0a197395804459 | C# | Subwolfer/CollegeApplicationApp | /StudentApplicationApp/StudentApplicationApp/StudentApplicationApp/Person.cs | 3 | 3 | using SQLite;
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace StudentApplicationApp.Persistence
{
public class Person : IPerson
{
[PrimaryKey, Unique, MaxLength(255)]
public string Email { get; set; }
[MaxLength(255)]
public st... |
3110ade8180c282065b6baf2ab22f384bbdafea4 | C# | oggg/ASP.NET-MVC-Project | /ApplicationStore/Web/ApplicationStore.Web/Controllers/ApplicationController.cs | 2.65625 | 3 | namespace ApplicationStore.Web.Controllers
{
using System.Net;
using System.Web.Mvc;
using ApplicationStore.Services;
public class ApplicationController : BaseController
{
private readonly IApplicationsService applications;
public ApplicationController(IApplicationsService applica... |
ef715d7209b578e53cbb76e983c05ba43948a8c5 | C# | shendongnian/download4 | /first_version_download2/303479-30150819-90126942-6.cs | 3.203125 | 3 | public class CommonBaseClassValidator : AbstractValidator<BaseClass>
{
public CommonBaseClassValidator()
{
//common rule for all BaseClass types
RuleFor(x => x.Name)
.NotEmpty();
// special rules for base type
When(model => model.Ge... |
c79d9f6fb95abe7830bd5562c6bcff13ae4d9397 | C# | altseed/Altseed2-csharp | /NodeEditor/GuiTool/Element/IntToolElement.cs | 2.703125 | 3 | using System;
namespace Altseed2
{
/// <summary>
///
/// </summary>
public class IntToolElement : ToolElement
{
/// <summary>
///
/// </summary>
public float Speed { get; }
/// <summary>
///
/// </summary>
public int Min { get; }
... |
a6d72c941996d3baa55767060da2b1ea5c2d8f88 | C# | liiabutler/Refazer | /Code-Hunt-data/users/User050/Sector2-Level4/attempt014-20140920-160307.cs | 2.671875 | 3 | using System;
public class Program {
public static int Puzzle(int a, int b) {
if (a%b == 0 || b%a == 0) return a>b ? a : b;
return a == 17 ? 1:
a == 19 ? 1:
1;
}
} |
6b39084eb1e09c774d2a6506372a1d00ef8b4a0c | C# | JorinTielen/LoxSharp | /src/LoxSharp/Parser.cs | 3.015625 | 3 | using LoxSharp.Exceptions;
using System.Collections.Generic;
using static LoxSharp.TokenType;
namespace LoxSharp
{
class Parser
{
private readonly List<Token> tokens;
private int current = 0;
public Parser(List<Token> tokens) => this.tokens = tokens;
public List<Stmt> Parse()... |
0d7b6df920aff33df5a7cf7ecbb0263ab0eaea09 | C# | Snehil488/DS-LinkedList | /DS-LinkedList/Program.cs | 2.796875 | 3 | using System;
namespace DS_LinkedList
{
class Program
{
static void Main(string[] args)
{
LinkedList linkedList = new LinkedList();
linkedList.Append(56);
linkedList.Append(30);
linkedList.Append(70);
linkedList.InsertNodeAfterParticu... |
cfe76c12436efbf0740b9ec6f6acfcfed4bd289a | C# | ClayDowling/validationdoc | /c-sharp/gameoflife/Board.cs | 3.75 | 4 | using System;
using System.Runtime.CompilerServices;
namespace gameoflife
{
public class Board
{
private Cell[,] _cells;
/// <summary>
/// Initializes the board to a given size.
/// </summary>
/// <param name="x"></param>
/// <param name="y"></para... |
d47abd982b8c29d72001f2fe955aa63866be71da | C# | glennychen/HappyHacking | /c#/cookbook/chapter2-string/chapter2-string/Class1.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace chapter2_string
{
public class Class1
{
static void Main()
{
Console.WriteLine(Char.IsLetter('a')); //true
Console.WriteLine(Char.IsNumber("123412",2)); //treu... |
91fff7c633ed8befb6f1c5a1dd49a0cad2f67c2c | C# | CatLib/Core | /src/CatLib.Core/Util/SortSet.cs | 2.609375 | 3 | /*
* This file is part of the CatLib package.
*
* (c) CatLib <support@catlib.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Document: https://catlib.io/
*/
using System;
using System.Collections;
using System.Collections.... |
80cdaa1c1550212326c88833f4b0c8ae8fc73910 | C# | jcambert/Webcorp.Erp | /Webcorp.lib.Dal/DbContext.cs | 2.546875 | 3 | using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using Ninject;
using Webcorp.Model;
namespace Webcorp.Dal
{
public class DbContext : IDbContext
{
private readonly IMongoDatabase database;
... |
ba74126614adf60b228050d30580a2d3f7379d62 | C# | LeCoyotus/CSharp_Console_Monopoly | /Monopoly/TerrainBuildAble.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Monopoly
{
public class TerrainBuildAble : AbstractTerrain
{
public List<AbstractBatiment> ListePropriete;
public TerrainBuildAble(string nom, int cost) : base(nom, cost)
{
ListePropriete = new Lis... |