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 |
|---|---|---|---|---|---|---|
d3146d578df31b9572a8eb13dafb22731d0638fe | C# | LukasBoersma/MarkdownDocNet | /MarkdownDocNet/Program.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
namespace MarkdownDocNet
{
class Program
{
public static void PrintUsage(string error=null)
{
var version = System.Reflection.Assembly.GetExecutingAssemb... |
33604bdf96745677782ff11618a073c685d261bd | C# | GARO99/rouletteGambling | /rouletteGambling/Models/RedisCache/RedisCacheRoulette.cs | 2.59375 | 3 | using Microsoft.Extensions.Caching.Distributed;
using rouletteGambling.Models.Entities;
using rouletteGambling.Utils.Enums;
using System;
using System.Collections.Generic;
using System.Text.Json;
namespace rouletteGambling.Models.RedisCache
{
public class RedisCacheRoulette
{
private readonly IDistrib... |
a79926363532e9decd3e7ccd6bab053a3c729539 | C# | rodmjay/ScaffR-Generated | /DemoApplication/DemoApplication.Core/Services/ProductService.cs | 2.515625 | 3 | using System;
using DemoApplication.Core.Interfaces.Service;
namespace DemoApplication.Core.Services
{
using Extensions;
using Interfaces.Data;
using Interfaces.Validation;
using Model;
public class ProductService : BaseService<Product>, IProductService
{
private readonly IRepository<... |
68cc903a3730af76098ca02aca3f423ec1dc9055 | C# | connellsharp/Firestorm | /tests/Firestorm.Testing.Data/BasicDataTests.cs | 2.65625 | 3 | using System.Threading.Tasks;
using Firestorm.Data;
using Firestorm.Engine;
using Firestorm.Testing.Models;
using Xunit;
namespace Firestorm.Testing.Data
{
public abstract class BasicDataTests
{
private readonly EngineRestCollection<Artist> _collection;
protected BasicDataTests(IDataTransacti... |
6912a9f297a48dc2f5f0a380e3753941bc4124d5 | C# | GreenHair/CSharpAufbau | /PKW_XMLSerialisiert/PKW_XMLSerialisiert/ListeAuto.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klassenbibo
{
public class ListeAuto
{
public List<Auto> Liste = new List<Auto>();
public ListeAuto() { }
public void Hinzufuegen(Auto auto)
... |
fe496c2f9f9eb6ff6f65e90fbf40405388b1d8f5 | C# | Macaqu/ProcessSelection | /Intersection.Test/CastingListTest.cs | 2.765625 | 3 | using Intersection.Intersection.Lists;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Intersection.Intersection.Casting;
namespace Intersection.Test
{
/// <summary>
///This is a test class for CastingListTest and is intended
///to contain all CastingListTest Unit Tests
... |
f73a5649caf6a777521f4fe4412ff00f33586a01 | C# | Talent30/Algorithm-Study | /BuySellStock/BuySellStock/Program.cs | 3.890625 | 4 | using System;
namespace BuySellStock
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
int[] stock = new[] {20, 40, 50, 60, 10};
MaxProfit(stock);
MaxDiab(stock);
}
public static void MaxProfi... |
a036e598ece6223ad9bbcc2e31a68108a4fa6c22 | C# | shendongnian/download4 | /first_version_download2/457682-40766201-132247385-2.cs | 2.921875 | 3 | DateTime currentDate = DateTime.Now;
DateTime downInterval = DateTime.Now.AddDays(-1);
DateTime upInterval = DateTime.Now.AddDays(1);
if (currentDate.Ticks > downInterval.Ticks && currentDate.Ticks < upInterval.Ticks)
{
}
|
80cec0b7f7d736d3c50f55188e8ab1452b81b0b9 | C# | CXuesong/MwParserFromScratch | /MwParserFromScratch/Nodes/NodeCollection.cs | 3.171875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MwParserFromScratch.Nodes
{
internal interface INodeCollection
{
void InsertBefore(Node node, Node newNode);
void I... |
4c0661737a4bfd9451359e07f4c9ad91ec5f799e | C# | Drago96/softcinema-wfa | /SoftCinema/SoftCinema.Client/Utilities/CustomTools/EmployeeTools/ReservationRow.cs | 2.515625 | 3 | using SoftCinema.Client.Forms.EmployeeForms;
using SoftCinema.Models;
using SoftCinema.Services;
using SoftCinema.Services.Utilities;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace SoftCinema.Client.Utilities.CustomTools.EmployeeTools
{
internal class ReservationRow : GroupBox
{
... |
93a6e048b836af0b600588d654dc3166a755bc7e | C# | mayapeneva/C-Sharp-OOP-Basic | /01.DefiningClasses_2/CatLady/Cat.cs | 3.3125 | 3 | public class Cat
{
public Cat(string name, string breed, double info)
{
this.Name = name;
this.Breed = breed;
this.Info = info;
}
public string Name { get; }
public string Breed { get; }
public double Info { get; }
public override string ToString()
{
re... |
ff667d99129a331f25d809dc4695a647bdd64be3 | C# | NurtilekZ/Simulation | /Assets/Le Tai's Asset/TrueShadow/Scripts/Editor/EditorProperty.cs | 2.625 | 3 | using System;
using System.Reflection;
using UnityEditor;
namespace LeTai.TrueShadow.Editor
{
public class EditorProperty
{
public readonly SerializedProperty serializedProperty;
readonly SerializedObject serializedObject;
readonly PropertyInfo property;
readonly SerializedProperty dirtyFlag;
... |
867686d5acfc1816f82016568c5ed0fffc361663 | C# | sachinmahanin/ASPNetProjects | /OnlineWebstore.BusinessLayer.BusinessEntities/BusinessEntities.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineWebstore.BusinessLayer.BusinessEntities
{
public class ProductCategory
{
[Key]
public int ProductCategory... |
2c12fa2f85819c778cb6def4497e11a4d8bce134 | C# | LuizaAndres/blockbusterC-MVC | /Models/Cliente.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using Repositories;
using Controllers;
using System.Linq;
using System.ComponentModel.DataAnnotations;
namespace Models {
public class Cliente {
[Key]
public int ClienteId { get; set; }
[Required]
public string Nome { get; set; }
... |
8e4ff125334d45ee81cef02ec4a436f3175e59bf | C# | Orace/Dminator | /Dminator/Program.cs | 2.515625 | 3 | //
// This file is a part of the Dminator project.
// https://github.com/Orace
//
using System;
using System.Diagnostics;
using System.Threading;
using Dminator.Stategies;
namespace Dminator
{
public static class Test
{
private const string MineSweeperPath = @"C:\Program Files\Microsoft Games\Mines... |
025ea58669f30adecc4cabbc7e4af3c46914b252 | C# | PrimoTibalt/DotNetMentoringProgram | /ModuleThreeFirstTaskGUI/SearchRunner.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.IO.Abstractions;
using System.IO.Abstractions.TestingHelpers;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
using ModuleThreeFirstTaskConsole;
namespace ModuleThreeFirstTaskGUI
{
/// <summary>
/// Need to run se... |
acc52e6c059254e9c020d717cc5fa593c7db2420 | C# | FakeItEasy/FakeItEasy | /src/FakeItEasy/Core/ArgumentValueFormatter.cs | 2.859375 | 3 | namespace FakeItEasy.Core
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
internal class ArgumentValueFormatter
{
private readonly IEnumerable<IArgumentValueFormatter> typeFormatters;
... |
135ae92816c31c17eb10a2f03162cdc87488b116 | C# | levinhtin/aspnetcore | /src/App.Data/Repository/IRepositoryContract.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace App.Data.Repository
{
[ContractClassFor(typeof(IRepository<>))]
internal abstract class IRepositoryContract<T> : I... |
261e46e661d67319322a821145721bee27e5e219 | C# | gobotsoup/leetcode | /LeetCode/CoinChange2.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LeetCode
{
// You are given coins of different denominations and a total amount of money.Write a function to compute the number of combinations that make up that amount.
// You... |
c337b3106b729d88136eabae11639e9093a6faa7 | C# | vknez95/NullReferencesDemo | /Presentation/Views/InvalidUsernameView.cs | 2.984375 | 3 | using System;
using NullReferencesDemo.Common;
using NullReferencesDemo.Presentation.Implementation.CommandResults;
using NullReferencesDemo.Presentation.Interfaces;
namespace NullReferencesDemo.Presentation.Views
{
public class InvalidUsernameView : IView
{
private InvalidUsername Data { g... |
f6bb02e32dbf9026fc495b1b6aaa5eddafc9193d | C# | stephenpangga/programming-2.2 | /Program04/Program.cs | 3.4375 | 3 | using System;
namespace Program04
{
class Program
{
static void Main(string[] args)
{
Program myProgram = new Program();
myProgram.Start();
Console.ReadKey();
}
void Start()
{
int[,] chessboard = new int[8, 8];
... |
0093e3d86f0debb116c6b13d4b60a9929c11d6cf | C# | shendongnian/download4 | /first_version_download2/469617-42043703-137598765-2.cs | 3.296875 | 3 | class Program
{
static void Main(string[] args)
{
var o1 = new ObjectBasicFeatures();
var o2 = new ObjectBasicFeatures(o1);
System.Diagnostics.Debug.Assert(!o1.Equals(o2));
}
}
public class ObjectBasicFeatures
{
public ObjectBasicFe... |
dad39992ecc05a59ae39546fd84735347c90bf00 | C# | duraz0rz/CodeKataOCR | /CodeKataOCR/AccountNumProcessor.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeKataOCR
{
public class AccountNumProcessor
{
private const string ZERO = " _ | ||_|";
private const string ONE = " | |";
private const string TWO = " _... |
c868a81f2fbcc4022fcbc676419e98e96448ca2f | C# | daniel0ar/rfcx-espol-tutorial | /WebApplication/Helpers/PreRequestModifications.cs | 2.609375 | 3 | using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace WebApplication.Helpers
{
public class PreRequestModifications
{
private readonly RequestDelegate _next;
public PreRequestModifications(RequestDelegate next)
{
_next = next;
... |
b0249c835e320c81e74467f8b7810ecd3b0a23aa | C# | BruceHunter/HomeBrewedPoker | /src/HomeBrewedPoker/Types/CardType.cs | 3.140625 | 3 | // Copyright (c) Bruce Hunter. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace HomeBrewedPoker
{
/// <summary>
/// Represents a standard 52-card deck.
/// </summary>
public enum CardType
{
/// <summa... |
53c57dc69c54755cdf156af7abdef40305980113 | C# | kapuragu/SpchTool | /SpchTool/Program.cs | 2.640625 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Reflection;
namespace SpchTool
{
internal static class Program
{
private const string DefaultHashDumpFileName = "spch_ha... |
739c941b5730232a12701a9ab9c68c96a71c5f99 | C# | ThapaChandrika/StudentManagementSystem | /StudentManagementSystem/Controllers/StudentController.cs | 2.53125 | 3 | using Microsoft.AspNetCore.Mvc;
using StudentManagementSystem.Models;
using StudentManagementSystem.Repository;
using StudentManagementSystem.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace StudentManagementSystem.Controllers
{
public class Stu... |
e2f7a27341153f65a43a9d5c46547a2f1f310281 | C# | DimitarStoyanovVictory/CSharp-OOP | /Homework08-Delegates-Events/02.AsynchronousTimer/AsyncTimer.cs | 3.625 | 4 | using System;
using System.Threading;
namespace AsynchronousTimer
{
public class AsyncTimer
{
public AsyncTimer(Action<int> timeChanged, int ticks, int ticksInterval)
{
this.TickAction = timeChanged;
this.Ticks = ticks;
this.TicksInterval = ticksInterval;
... |
e3ea69883b8943c390d32e4b3b16e8845ab1090d | C# | ariugwu/sharpbox | /src/sharpbox.Cli/Example.cs | 3.015625 | 3 | using System;
using sharpbox.Dispatch.Model;
using sharpbox.Io.Model;
namespace sharpbox.Cli
{
class Example
{
public static void Run()
{
// The benefit of the dispatcher is being able to see all subscribed events in one place at one time.
// This centeralization is put... |
a40adebbc2afdfc31aa4e177394d6032b76fc532 | C# | RomeoKwokKeung/RestuarantMenu | /Food Menu/Form1.cs | 2.734375 | 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 Food_Menu
{
public partial class frmMenu : Form
{
private List<Product> ListOf... |
363d62a2674858d5ef1bbc933b0249f000132568 | C# | ciahmedau/AnyStore | /transactionDAL.cs | 3.140625 | 3 | using AnyStore.BLL;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AnyStore.DAL
{
class transactionDAL
{
... |
373dad836912d4852ffbc673bee9c2c28947d877 | C# | helemaalbigt/SimWheels | /Mobilityjam/Assets/#BB3_ToolBox/0. Beans/Name.cs | 2.546875 | 3 | using UnityEngine;
using System.Collections.Generic;
//using System;
//using BlackBox.Beans.Basic;
//using BlackBox.Tools.*;
#region \,,/(◣_◢)\,,/
/// Twitter description:
/// No description has been set yet.
/// Please proceed !
///
/// Proud: ?? %
/// Clean: ?? %
/// Reusable: ?? %
/// Readable: ?? %
//... |
3e220b97964565793e30d57ab79dad5c9b3071d9 | C# | fredatgithub/SiteWarmer | /SiteWarmer/SiteWarmer.Core.Test/Config/ManualConfigTest.cs | 2.84375 | 3 | using System.Collections.Generic;
using NUnit.Framework;
using SiteWarmer.Core.Config;
namespace SiteWarmer.Core.Test.Config
{
[TestFixture]
class ManualConfigTest
{
[Test]
public void ManualConfig_ImplementsIConfig()
{
var config = new ManualConfig();
Assert.That(config, Is.InstanceOf<IConfig>());
... |
1c9a3a90f836e7330e1b5a7f38961b6adbb90336 | C# | rfccambridge/rfc | /system/MessageTypes/WheelCommand.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Robocup.Core
{
[Serializable]
public class RobotCommand {
public enum Command
{
MOVE,
KICK,
BEAMKICK,
CHARGE
};
public WheelSpeeds speeds;
... |
0374932d7d9b73eea2876edf4189b540935136c0 | C# | shuheydev/UnityUDP_Practice | /UdpSender_Console/UdpSender_Console/Program.cs | 3.109375 | 3 | using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UdpSender_Console
{
class Program
{
static void Main(string[] args)
{
string remoteHost = "192.168.121.25";
int remotePort = 4602;
UdpClient udpClient = new UdpClient();
... |
2e8b9bfb1c6001ee10ddaba81779337658e7a4ee | C# | Atasabri/Wahag | /Dahab/Controllers/HomeController.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Xml;
namespace Dahab.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page";
return View()... |
61269799f5c2234259a555e33b585f15ca49978a | C# | Jan-Kruse/DotCAML | /DotCAML/Models/Expressions/ILookupFieldExpression.cs | 2.578125 | 3 | namespace DotCAML
{
/// <summary>
/// CAML Lookup Field Expression
/// </summary>
public interface ILookupFieldExpression
{
/// <summary>
/// Get Id
/// </summary>
/// <returns>Id as Number Field Expression</returns>
INumberFieldExpression Id();
/// ... |
6088529092ee55de99168278643a3c1147b7211d | C# | shishn/Algorithm | /Demo/Program.cs | 3.171875 | 3 | using System;
using System.Collections;
using Demo.BookShop;
namespace Demo
{
class Program
{
static Exercise ex=new Exercise();
static void Main(string[] args) {
//TestPerfectNum(1000000);
//TestDecryptQQ("44724302");
//TestPalindrome("abcdcba");
... |
72b80f3e977391c41080716b5f22bece60e32bcf | C# | gulapaj/Shooting_Gallery | /Assets/JeanGulapa_Assignment1/SpecialWinLoseMusic.cs | 2.546875 | 3 | using UnityEngine;
namespace Assets
{
public class SpecialWinLoseMusic : MonoBehaviour
{
public static SpecialWinLoseMusic instance;
public AudioClip winSfx;
public AudioClip loseSfx;
private AudioSource asource;
public void Awake()
{
if ... |
1327f6a5734caa5a92ee1e1d02b55a475824312b | C# | j4w0r/Testura.Mutation | /src/Testura.Mutation.Core/Creator/Filter/MutationDocumentFilterItemGitDiffCreator.cs | 2.53125 | 3 | using System.Collections.Generic;
using System.Text.RegularExpressions;
using log4net;
using Newtonsoft.Json;
using Testura.Mutation.Core.Git;
namespace Testura.Mutation.Core.Creator.Filter
{
public class MutationDocumentFilterItemGitDiffCreator
{
private static readonly ILog Log = LogManager.GetLogge... |
a9231186363628779bbf392f5de78230c3b47787 | C# | RafaelGNicoletti/QZero-Tour | /Assets/Scripts/Quiz/Pergunta.cs | 3.125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Classe que armazena uma pergunta, as alterantivas de resposta e o índice da resposta correta
/// </summary>
[System.Serializable]
public class Pergunta
{
[SerializeField] private string theme;
[SerializeField] pri... |
b0ec0c7d4f1beb6df4e2238091a34e02a9b59fdb | C# | pepinho24/TelerikAcademyHomeworks2015 | /C#2/08.TextFiles/04.CompareTextFiles/CompareTextFiles.cs | 4.15625 | 4 | /*Problem 4. Compare text files
Write a program that compares two text files line by line and prints the number of lines that are the same and the number of lines that are different.
Assume the files have equal number of lines.*/
namespace _04.CompareTextFiles
{
using System;
using System.IO;
class Compa... |
b7295349e5350d49bd6727c1f441af10babaac77 | C# | khahoangmkit/CarPark_BE | /Service/Implementation/ParkingLotService.cs | 2.65625 | 3 | using Service1.Interface;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Model.Entity;
using Model.Repository;
namespace Service1.Implementation
{
public class ParkingLotService : IParkingLotService
{
private readonly IGenericReposito... |
02c8cbe451101d2ec580bcb08a46446fd9890c10 | C# | mmonastyrskaya/ordermaker | /WpfApplication4/UpdatingWaiter.xaml.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Med... |
d03d2eb2530c2a76543bb73cce758e14a978099a | C# | Connor-Haigh1978/MidtermExam | /Classes 3/Classes 3/MainWindow.xaml.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
6ceae2824f019c1dac7915ab8607bc8e55287f56 | C# | dansiegel/Mobile.BuildTools | /src/Mobile.BuildTools.Reference/Handlers/NumericValueHandler.cs | 2.90625 | 3 | using System.Linq;
namespace Mobile.BuildTools.Handlers
{
internal abstract class NumericValueHandler : IValueHandler
{
private char _requiredSuffix { get; }
protected NumericValueHandler(char requiredSuffix)
{
_requiredSuffix = requiredSuffix;
}
public st... |
4289fca7cb564e1c03d2d8b8a527dafd936d8132 | C# | tilekuser/Homework.Farm | /Farm/Farm/Farmm.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Farm
{
class Farmm
{
List<Horses> horse = new List<Horses>();
List<Sheep> sheep = new List<Sheep>();
List<Cow> cow = new List<Cow>();
string Name;
strin... |
b6fcec4f43423a3ee97c6ab692f22e96b2a16740 | C# | GardenofSinners/Yugioh-Card-Directory | /Form1.cs | 2.890625 | 3 | using Newtonsoft.Json.Linq;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using static Yugioh_Card_Directory.JsonHandler;
namespace Yugioh_Card_Directory
{
public partial class Form1 : Form
{
#... |
9b8b5345ae667557e7a3ea252435717b9a07578d | C# | shendongnian/download4 | /code6/1135569-29912240-89189695-2.cs | 3.1875 | 3 | string[] ReadAllResourceLines(string resourceName)
{
using (Stream stream = Assembly.GetManifestResourceStream(resourceName))
using (StreamReader reader = new StreamReader(stream))
{
EnumerateLines(reader).ToArray();
}
}
IEnumerable<string> EnumerateLines(Text... |
ef1042d0dd19babcef3f9bf978f9dbbbefd098dd | C# | Xehlwan/Harbor | /Harbormodel/Port.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
namespace Harbor.Model
{
public class Port : IPort
{
private const int defaultSize = 64;
private readonly Dock[] docks;
private DockChoiceAlgorithm algorithm;
private string algorithmName... |
a84f7b2db7d6668a466d40d04b2f715493cb36e2 | C# | guzeradimazz/C_Sharp_Programs | /4LABA/04.1. ProcessInfo/ProcessInfo/ProcessInfo.cs | 3.234375 | 3 | using System;
using System.Diagnostics;
using System.Text;
namespace ProcessInfo.ProcessInfo
{
public class Info
{
public ProcessWrapper[] Processes { get; }
private Info(ProcessWrapper[] processes)
{
Processes = processes;
}
public static Info Get()
... |
d935a2e582be8163cc3cb0824aba1a53bb905ace | C# | cophfe/TankGame | /Project2D/ObjectScripts/HungerHolder.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raylib;
using static Raylib.Raylib;
using Mlib;
namespace Project2D
{
// A UI object attached to a player object that shows the hunger value
class HungerHolder : GameObject
{
Vector2 size; //... |
a528f87cfc162d6d720362153f394117751b91c4 | C# | AnastasiaKuden/PaintForKids | /MovingChange/ChangeSizeFigure.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp7.Figure;
namespace WindowsFormsApp7.MovingChange
{
public class ChangeSizeFigure : IMovingChange
{
SingleBitmap mo... |
571ba597d2719b092a649d496670a63f1d008f68 | C# | Robertorob/Algorithms | /2020/SoccerBalls/SoccerBalls/Program.cs | 2.90625 | 3 | using System;
namespace SoccerBalls
{
class Program
{
/*
* Task: you have soccer field which is rectangle with set length and width.
* You also have soccer balls with set radius. How many balls can fit on a field? Implement unit test for it
*/
static void Main(strin... |
e12b4a0eef536ffbb31d6af4a5652fff630a2827 | C# | Earlopain/2Dthing | /2Dthing/LayerManager/Util.cs | 2.5625 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Layers
{
public static class Util
{
public static Point getDrawingOffset(Rectangle drawArea, Rectangle camera, LocationOverlap overlap)
{
switch (overlap)
{
case LocationOver... |
0fce441511d15bffd413b2dcdbd653562dbd906e | C# | Oxigen2/Oxigen | /app/PlaylistAssetPicker/PlaylistAssetPicker.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OxigenIIAdvertising.AppData;
using OxigenIIAdvertising.AssetScheduling;
using System.Security.Cryptography;
using System.IO;
using OxigenIIAdvertising.LoggerInfo;
namespace OxigenIIAdvertising.PlaylistLogic
{
/// <summary>... |
86d3b3ee3eb9582dc8040b306f6332994bd5428d | C# | vanjs83/webshop | /WebShop/Models/Category.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace WebShop.Models
{
public class Category
{
public Category()
{
CategoryId = Guid.NewGuid();
}
[Key]
publi... |
3c4db2da9814f881e0228adf088098173470232e | C# | reputage/seedQuest | /Unity/SeedQuest/Assets/ThirdPartyLibraries/unity-ui-extensions/Scripts/Layout/TableLayoutGroup.cs | 2.71875 | 3 | /// Credit RahulOfTheRamanEffect
/// Sourced from - https://forum.unity3d.com/members/rahuloftheramaneffect.773241/
namespace UnityEngine.UI.Extensions
{
/// <summary>
/// Arranges child objects into a non-uniform grid, with fixed column widths and flexible row heights
/// </summary>
[AddCompon... |
1e1be32fd6c87bb5b53ae72dea72b8f2a9fc08ce | C# | SZarrow/ATBaseFX | /src/ATBase.Logging/Appenders/EmailAppender.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using ATBase.Core;
using ATBase.Net.Mail;
namespace ATBase.Logging.Appenders
{
/// <summary>
///
/// </summary>
public class EmailAppender : Appender
{
private readonly EmailLogConfig _config;
private readonly Post... |
11fb040913420133548c7aefc5d999aeb3fd2c5d | C# | will14smith/orbital-core | /src/Orbital.Models/ScoreTarget.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
namespace Orbital.Models
{
public class ScoreTarget
{
public ScoreTarget(Guid id, Guid roundTargetId, decimal score, decimal golds, decimal hits)
{
Id = id;
RoundTargetId = roundTargetId;
Score = score;
... |
6503867d85b7be11c862dd2679a119f592c8dbb2 | C# | Tuffu/curso-c- | /DateTime/Program.cs | 3.296875 | 3 | using System;
using System.Globalization;
namespace Datetime
{
class Program
{
static void Main(string[] args)
{
/*DateTime d1 = DateTime.Now;
Console.WriteLine(d1);
Console.WriteLine(d1.Ticks);*/
/*DateTime d1 = new DateTime(2018, 11, 25);
... |
02c2a2f8ed2079619358ed10926910a58038cff1 | C# | EdneySilva/FileHandlerTest | /DotNetTest/Extensions/StringFormat.cs | 3.078125 | 3 | using DotNetTest.Parsers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace DotNetTest.Extensions
{
public static class StringFormat
{
public static string RemoveFormats(this string value)
{
... |
e36df0306d94201c7a5054931b6fade5fcdad071 | C# | knysh/dashboard | /DashboardView/Utils/DashboardConfigurationManager.cs | 2.546875 | 3 | using DashboardView.CI.CIModels;
using Newtonsoft.Json;
using System;
using System.IO;
namespace DashboardView.Utils
{
public class DashboardConfigurationManager
{
public static Groups GetGroups()
{
var configAsJson = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirect... |
b5f0e16e8176025654224879d943a5350efd31e1 | C# | lordmilko/PrtgAPI | /src/PrtgAPI/Tree/Model/Visitors/Compare/CompareOrphanDefaultVisitor.cs | 2.78125 | 3 | using System.Diagnostics.CodeAnalysis;
namespace PrtgAPI.Tree.Internal
{
/// <summary>
/// Represents an abstract visitor capable of accessing the orphans of a <see cref="CompareOrphan"/> tree that
/// performs a common action for all orphans by default.
/// </summary>
[ExcludeFromCodeCoverage]
... |
2e1de758e3a2d195aee1e1eff1a726de86eb6b23 | C# | shendongnian/download4 | /code5/800894-19630453-50234146-4.cs | 3.046875 | 3 | static void SearchStackOverflow(string y)
{
var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://api.stackoverflow.com/1.1/search?intitle=" + Uri.EscapeDataString(y));
httpWebRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
httpWebReque... |
27b7057486441f4b6435958bc0d1fb5f590b65ce | C# | poulfoged/Cityline-Chat | /source/Chat.Api/Features/Users/IdentityExtensions.cs | 2.875 | 3 | using System;
using System.Linq;
using System.Security.Claims;
using System.Security.Principal;
namespace Chat.Features.Users
{
public static class IdentityExtensions
{
public static string UserId(this IPrincipal principal)
{
if (principal.Identity.AuthenticationType == "BasicAu... |
7577ae541e3b4c15b66ef33aea4a3903dbb53be5 | C# | HenroOnline/DotNet-MessageBoard | /MessageBoard.Web.Management/Models/Entities/InformationHeaderModel.cs | 2.640625 | 3 | using MessageBoard.BLL.Repositories;
using MessageBoard.Core.InformationKind;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace MessageBoard.Web.Management.Models.Entities
{
public class InformationHeaderModel
{
... |
b9013f3ea1f63215b0e2047465be66eb8ecfdb30 | C# | grizzle2101/Unit-Testing-CSharp | /Getting Started - Tutorial 6/TestNinja/TestNinja/Mocking/OrderService.cs | 3.28125 | 3 | namespace TestNinja.Mocking
{
//Tutorial 10 - Testing the Interaction between 2 objects
public class OrderService
{
private readonly IStorage _storage;
public OrderService(IStorage storage)
{
_storage = storage;
}
//Method under test, we want to make su... |
d7d8a94fc270f9123f23131f9bc2a243e95cc692 | C# | SGStoyanov/SoftUni-CSharpBasics | /CSharp-Homeworks/02. Primitives/01. DeclareVars/DeclareVars.cs | 2.890625 | 3 | using System;
class DeclareVariables
{
static void Main()
{
sbyte mySbyte = -115;
byte myByte = 97;
short myShort2 = -10000;
int myInt = 52130;
int myInt2 = 4825932;
Console.WriteLine("My first sbyte: " + mySbyte);
Console.WriteLine("My first byte: " + m... |
e516324211da24497b8dfb6f3cffd5ea016910e3 | C# | herrmannjob/quiz-game | /GUI/GUI/services/UserService.cs | 2.734375 | 3 | using GUI.models;
using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GUI.services
{
public class UserService
{
// POST
public static void SaveUser(User user)
{
... |
6e8045f44f6627731c07aae9463a450f7b58bcb4 | C# | developerprofile/Sales | /StationerySales/Date.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StationerySales
{
class Date
{
private int month;
private int day;
public int Year { get; private set; }
public Date(int theMonth, int theDay, int the... |
117dc30b04e7ee58d9dd65f71dbd0cc95d5b4267 | C# | Davidvlv/Inventory | /Assets/Scripts/InventoryManager.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
public class InventoryManager : MonoBehaviour
{
#region Singleton
public static InventoryManager instance;
private void Awake()
{
if (instance)
{
throw (new System.Exception("Singleton InventoryManager has... |
154edd5857e9692717395fbe2d46df8c0dd6f568 | C# | cyrsis/LearnCSharp | /_Basic/developing-extensible-software/8-developing-extensible-software-m7-exercise-files/Complete/Commerce/Commerce.Engine/Providers/DefaultPaymentProcessor.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Commerce.Engine.Contracts;
namespace Commerce.Engine
{
public class DefaultPaymentProcessor
{
public virtual bool ProcessCreditCard(string customerName, string creditCard, string expirationDate, double amount)
{
... |
e22d466999fdc7fccc56b48311448de8ff7116bc | C# | yehudabiz/Trading | /Utilities/RightPercent/Program.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace RightPercent
{
class Program
{
static void Main(string[] args)
{
string f1 = args[0];
string f2 = args[1];
int allA... |
af00f793d6301356d090605825acc5d7b595b274 | C# | will3/vox | /Assets/FarmVox/Scripts/Textures.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
namespace FarmVox.Scripts
{
static class Textures
{
private static readonly Dictionary<string, Texture2D> TextureMap = new Dictionary<string, Texture2D>();
public static Texture2D Load(string name)
{
if (Te... |
c9a0d5a4cc774dd3190df9ef2d48d74407780703 | C# | FerTV/Primeros_pasos | /Ejercicio_4_1_4_5/Ejercicio_4_1_4_5/Program.cs | 3.53125 | 4 | using System;
using System.Diagnostics;
namespace Ejercicio_4_1_4_5
{
class Program
{
static void Main(string[] args)
{
const int CAPACIDAD = 10;
string[] nombres = new string[CAPACIDAD];
int cantidad = 0, posicion;
char opcion;
strin... |
42d6d721bf34236c3a21f3e5912c15d542407b34 | C# | guigabr11/ifsp-technical | /LP3/Class3/Class3/ExerciseManager/Exercises/Exercise1.cs | 3.515625 | 4 | using Class2_Exercises.Exercises;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Class3.ExerciseManager.Exercises
{
public class Exercise1 : IExercise
{
public void Run()
{
var actions = new Dictionary<S... |
3baf3d48db5a532b7074ddefa329d1ab6cf1d0f1 | C# | harshack/record | /RecordInfo/Record.Data/Data/RecordData.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RecordInfo.DTO;
namespace RecordInfo.Data
{
/// <summary>
/// Static data layer
/// </summary>
public class RecordData : IRecordData
{
public static RecordData Current { get; } = new Rec... |
dd3083f1270e7cfc8d3550ee982264caa980972c | C# | slamj1/MxNet.Sharp | /src/MxNet.OpGenerator/MxOp.cs | 2.625 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Text;
namespace MxNet.OpGenerator
{ /// <summary>
///
/// </summary>
enum OpNdArrayOrSymbol
{
Symbol,
NDArray
... |
4fcb0ef053c149027609ed2d287dcd99cf8f628b | C# | TimArling/BKE | /BKE/BKE.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BKE
{
class BKE
{
//initialisatie globale variabelen
Bord Bord = new Bord(3);
int Ronde = 1;
String EindTekst = "Niemand";
/*
* Start ... |
c9a3045e06fd5e60051ba9ed2af33a5663419a05 | C# | OfficeDev/Interop-MailSim | /MailSim/MailSim.ProvidersOM/MailFolderProviderOM.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Outlook = Microsoft.Office.Interop.Outlook;
using MailSim.Common.Contracts;
using MailSim.Common;
namespace MailSim.ProvidersOM
{
class MailFolderProviderOM : IMailFolder
{
priva... |
b9e445d1a216525b9a4fa6d9c3f0e1c40ac15bb9 | C# | florin141/ef-applications-integration-testing | /Globalmantics.Domain/CartItem.cs | 2.515625 | 3 | using Highway.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Globalmantics.Domain
{
public class CartItem : IIdentifiable<int>
{
int IIdentifiable<int>.Id
{
get { return CartItemId; }
set { CartItemId = value; }
}
pr... |
222c74d90329920b0d74a5c6771327f831d8d1e8 | C# | GJSoftware/Tool | /GJ.TOOL.WND/Import/GJ.COM/GJ.COM/CEvent.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GJ.COM
{
/// <summary>
/// 定义触发事件类
/// </summary>
/// <typeparam name="T">泛类事件类</typeparam>
public class COnEvent<T> where T : EventArgs
{
/// <summary>
/// 定义事件委托
/// </summ... |
c18d72a805dcbb056926e576ab645317646bfb61 | C# | Commkeen/Archmage | /Archmage/src/Engine/Turns/ITakesTurns.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Archmage
{
public enum TurnResult { IGNORE_TURN, GOTO_STARTTURN, GOTO_TAKETURN, GOTO_ENDTURN, TURN_OVER };
interface ITakesTurns
{
int GetPriority();
boo... |
47460ad52d55eafa926f0d13bb1205da6032e714 | C# | shendongnian/download4 | /code3/445721-10174083-23329141-2.cs | 2.828125 | 3 | string query = @"INSERT INTO session (PK_Id, user_id, login_time, machine_ip, machine_fingerprint)
VALUES (UUID(), @UId, @LogInTime, @MIp, @MFingerPrint);
SELECT PK_Id FROM session WHERE login_time=@LogInTime AND machine_fingerprint=@MFingerPrint; //or somethi... |
8102672a5cb60aeac53abd4590cf3c7ada2369f5 | C# | OlegPetrenkoGit/GridComponent | /GridComponent/GridComponent.DataAccess/Repository/Repository.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace GridComponent.DataAccess.Repository
{
public class Repository
{
public List<T> GetEntities<T>() where T : class
{
using (var context = new EntitiesContext<T>())
{
var entities =... |
0eb26b47bfa88326e43f2d3b0b86444e619f84e1 | C# | NekIP/PredictionOfCurrencyNeuralNetworks | /DataAssistants/Structs/Table.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DataAssistants.Structs {
public class Table {
public Dictionary<string, int> Names { get; set; }
public Matrix Matrix { get; set; }
public double this[int i, int j] {
get {
... |
1122a24699bd3a5151e0fff0d095c158ec05e77c | C# | AngierRomain/CSharp | /Motus/Motus/Form1.cs | 2.578125 | 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.IO; //gère les acces aux fichiers
namespace Motus
{
public partial class M... |
df6c7aeb89b4893b37e816447e8b0f3cf61e9a9e | C# | 0306181100/QuanLyThuVien | /doan2/BEL/BEL_Hoadonnhap.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BEL
{
public class BEL_Hoadonnhap
{
private string _MaHD;
private string _MaNCC;
private DateTime _Ngaylap;
private bool _Daxoa;
public BEL_Hoado... |
64b7b25c1a79332eaf5f7cb30efb82cd6528b7f2 | C# | Hemachandranhj/flight | /FlightBooking.Console/Program.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using FlightBooking.Core.Data;
using FlightBooking.Core.Models;
using FlightBooking.Core.Report;
using FlightBooking.Core.RulesEngine;
using Microsoft.Extensions.DependencyInjection;
namespace FlightBooking.Console
{
internal class Program
{
private stat... |
38e5e35ef74ae07efd4eef269cabc1febb5fe8be | C# | ninjapretzel/zsharp2 | /Exensions/MarkdownReplacements.cs | 3 | 3 | using UnityEngine;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
public static class MarkdownReplacements {
static Regex glyphs = new Regex( @"\[\w+\]" );
/// <summary>
/// Replaces glyph placeholders with the appropriate TextMeshPro sprite XM... |
240bad645e1e9155f3bc55d4600087010cf63494 | C# | Nachev/Telerik | /QA/TeamWork/TestingFramework/QA.TILS.Modules.Users/QA.Framework.Core/Extensions/BrowserExtensions.cs | 2.703125 | 3 | namespace QA.Framework.Core.Extensions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Cont... |
c66c753b9581af38bc28fcf078aa289a168ce632 | C# | Xarlot/DXVcsTools | /src/DXVcsTools.Core/FileDiff.cs | 2.59375 | 3 | using System;
using System.IO;
using SharpSvn.Diff;
namespace DXVcsTools.Core {
public class FileDiffException : Exception {
public FileDiffException() : this(null) {
}
public FileDiffException(string message) : base(message) {
}
}
public abstract class FileDiffBase {
... |
ed781a022ddb99c75eb62e507823ea55a38ffe0f | C# | shendongnian/download4 | /code3/421556-9388706-21334984-2.cs | 3.515625 | 4 | class WordSet {
public WordSet(IEnumerable<string> words) {
m_OriginalWords = new SortedSet<string>(words);
m_ReverseWords = new SortedSet<string>(words.Select(ReverseString));
}
/// <summary>
/// Finds all words that start with given prefix.
/// <... |
aaeea8f3bf60dedacc059b437244ee9693df2ae0 | C# | vurf/xamarin-charts | /scrolling/Charts/Data/Implementations/Standard/BarChartData.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using Foundation;
namespace scrolling
{
public class BarChartData : BarLineScatterCandleBubbleChartData
{
public BarChartData() : base()
{
}
public BarChartData(List<string> xVals, List<IChartDataSet> dataSets) : base(xVals, da... |
065c5952b311312451404aabacffc9635a452fcb | C# | shendongnian/download4 | /code3/534922-12371357-29074469-2.cs | 3.390625 | 3 | static class SortedListExtensions
{
public static TValue GetNextValueOrDefault<TKey, TValue>(this SortedList<TKey, TValue> list, TKey key)
{
var indexOfKey = list.IndexOfKey(key);
if (indexOfKey == -1)
return default(TValue);
if (++indexOfKey =... |
8c93f514b3e1c963a0ea254ae885829dbfd2ce4f | C# | CyberSaur/Inventory-Control-System-House-of-Furniture- | /Inventory Control System (House of Furniture)/Forms/Customer_Registration_Form.cs | 2.734375 | 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 MetroFramework.Forms;
namespace Inventory_Control_System__House_of_Furniture_
{
public partial... |
528859da24730db328f448b37d77a07f3ce52ab7 | C# | abjiniya/SalesPortal | /SalesPortalAPI/Core/Repository/DataGeneratorService.cs | 2.828125 | 3 | using GenFu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SalesPortalAPI.Core.Repository
{
public class DataGeneratorService<T> : IDataGenerator<T>
where T : class, new()
{
/// <summary>
/// Generates a collection of type ... |
db2ca294bddc56c47a031d2c6e8bad498baa98f9 | C# | Elmion/MouseTest | /PathToSky/MathCore/Core.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MathCore
{
public class Core
{
public static Random rnd = new Random();
public string Field
{
get
{
return data.GameFi... |
1aa4a197b04899b49824a65db62758d689917243 | C# | felipebenevides/netcore-test | /Einstein.AppointmentScheduling.Backend/Domain/Service/PatientService.cs | 2.65625 | 3 | using Domain.Entities;
using Domain.Interfaces.Repository;
using Domain.Interfaces.Service;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Domain.Service
{
public class PatientService : IPatientService
{
private readonly IPatientRepository _p... |