Datasets:

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
c01ee8d5a8f396d958089afd84ac3db3d3a50cee
C#
barnettr/Corbis
/Utilities/Corbis.Web.Utilities/src/CheckSum.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; namespace Corbis.Web.Utilities { public static class CheckSum { private static byte[] saltBytes = new byte[] { 243, 80, 22, 127, 93, 162, 175, 180, 192, 71, 96, 43, 37, 212, 160, 1...
127801613a4ebab8020d868308f4677e24e3f5fb
C#
adteven/alabo
/src/01.framework/01-Alabo/Extensions/EnumExtensions.cs
2.78125
3
using Alabo.Cache; using Alabo.Exceptions; using Alabo.Helpers; using Alabo.Reflections; using Alabo.Web.Mvc.Attributes; using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Convert = System.Convert; namespace A...
da12da9644c883f35c383103d90d8c99e44f7425
C#
tobster-de/DigitalSimulator
/DigitalSimulator/DigitalSimulator/MacroForm.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Windows.Forms; using DigitalClasses.Logic; using DigitalClasses.Graphic; namespace DigitalSimulator { /// <summary> /// With this Form the user can select the macro ...
59c660062a969e36c42f8bd5c57dc588f8e888a3
C#
annaladewig/exercicios-logica-de-programacao-unibratec
/1º Unidade/Prova1ºUnidade-Questão01/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Prova1ºUnidade_Questão01 { class Program { static void Main(string[] args) { string matricula; int ano, mes, numSequencial; Console...
7bf243e02caf09d39638a953566566fedaef488d
C#
JoshuaSteward1193/ArrayWorld
/ArrayWorld/ArrayWorld/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArrayWorld { class Program { public static Room[,] world = new Room[10, 10]; static void Main(string[] args) { for(int i = 0...
25d7de065bc095ee83353855bd76cfab3bc0701e
C#
ahmadnb/InventoryManager
/InventoryManager/Program.cs
3.53125
4
using System; using System.Linq; using System.IO; namespace InventoryManager { class Program { static void Main(string[] args) { // Retrieve input arguments; there must be 1 int numArgs = args.Count<string>(); if (numArgs != 1) { ...
2694f0ef0e9804b46ea603f21436360e8a93eafb
C#
bojanVlasonjic/MonumentMap
/MonumentMap/WindowConstants.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Runtime.CompilerServices; namespace MonumentMap { public class WindowConstants: INotifyPropertyChanged { private double _header_font_size; ...
8f527afc6abc6b0072ef1424192a9a1ec2295192
C#
cfe12/WakeOnLan
/WakeOnLan/WakeLan.cs
2.984375
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Net.Sockets; namespace WakeOnLanLibrary { public class WakeLan { static List<string> macAdresses = new List<string>(); static string ApplicationPath ...
c9ff5ead4c6a18c4ddf37805f74e68b12a4a2d26
C#
codemonkey76/BJJCompInfo
/BJJCompetitionInfo/BJJCompetitor.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace BJJCompetitionInfo { public class BJJCompetitor { string name; string id; string academy; compbracket brackets; ...
3512c3e96eb4aef93b423357b18eda3843edc95f
C#
lhp9916/school-code
/teaching-information-management-system/教学信息管理系统/adminCouseAdd.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace 教学信息管理系统 { public partial class adminCouseAdd : Form { public adminCouseAdd() ...
455fdcc3cd43c249cd03dab53476e06726b9e7dd
C#
K1755/malli
/CarStaticApplication/Car.cs
3.1875
3
/* * Copyright (C) 2016 PTM * * Object Oriented Programming Course Example File. * * Created: 17/01/2016 * Authors: Pasi Manninen */ namespace CarStaticApplication { /// <summary> /// Car class... /// </summary> class Car { public string Name; private static int MaxSpee...
509812b1341b4f776a75ca067b9309e613165ce2
C#
komunre/btag
/btag/Writer.cs
3.328125
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace btag { public class Writer { BufferedStream stream; public void OpenStream(string path) { if (File.Exists(path)) { File.Delete(path); } ...
df9e87a98fd5bd38566dfcac698617e8b4ba15e1
C#
algalg/Aspose.Words-for-.NET
/Examples/CSharp/Programming-Documents/Find-Replace/UsingLegacyOrder.cs
2.859375
3
using Aspose.Words.Replacing; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Aspose.Words.Examples.CSharp.Programming_Documents.Find_and_Replace { class UsingLegacyOrder ...
f6230f0fc56b4c428cb0fb3a89a5f2f42e25870e
C#
bubdm/mechaview
/MechaView/Mecha.Core/Helpers/Utils.cs
3.25
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Mecha.Helpers { internal static class Utils { public static IEnumerable<string> NameToDisplay(string value) { var fullWo...
2d2aa108e57774da617ad3ccc77a8ceff96586e1
C#
tiramisuzie/Zoo
/Zoo/Abstract/Carnivore.cs
2.734375
3
using Zoo.Abstract; namespace Zoo.Classes { // abstract class public abstract class Carnivore : Animal { public abstract int Teeth { get; set; } public abstract int Aggression(); public string Eat() { return "I eat meat"; } } }
2982c45f0fef563643337b36d6db9c8aa6499528
C#
kazheko/examples
/Examples.Auction/Examples.AuctionApi/Models/Lot.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; namespace Examples.AuctionApi.Models { public class Lot { public Lot() { Bids = new List<Bid>(); } public Lot(ICollection<Bid> bids) { Bids = bids; } pub...
8249cd1f78fd2c05bbe0a458a2229139e44f363b
C#
qmandou/2DToolsKitUnity
/Scripts/Utils/Grid/GridTools.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; namespace FourXUtilities { public class GridData { public class TwoDimGridData { Vector2 m_wordlPosition; Vector2Int m_cellPosition; int m_ID; ...
4385cd90b3702d2dbd256214e6fbc2d76b2c6f20
C#
ElviraV97/Academy-B-Week4-Demo
/Week4.Core.EF/Configuration/BookConfiguration.cs
2.703125
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Week4.Core.Model; namespace Week4.Core.EF.Configuration { public class BookConfiguration : IEntityTypeConfiguration<Book> { public void Configure(EntityTypeBuilder<Book> builder) { bui...
ef55bd980ed35fc605337109de3de9e8e63d0dbc
C#
MichaelSurgeon/ReversingStringUnitTest
/ReversingString/Program.cs
2.5625
3
using System; namespace ReversingString { class Program { static void Main(string[] args) { Console.WriteLine(StringUtilities.Reverse("BarBazQux")); } } }
b6e1505ecc68c617646293038cfc80526c64012e
C#
fichorka/asp-net-fullstack-app
/Services/AppAuthentication.cs
2.71875
3
using App.Data; using App.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace App.Services { public class AppAuthentication { CompanyContext _context; public AppAuthentication(CompanyContext cont...
a97ed7a744cae2a4d0fa6f3b5e553bf05718a189
C#
AlejandroDaza/System
/SystemTask/BDHelper/BDHelperTask.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Data.SqlClient; using SystemTask.Models; namespace SystemTask.BDHelper { public class BDHelperTask { private static String ConnectionString = @"Data Source=(LocalDB)\MSSQLLoca...
5f534bf146e2b3649834988fec78f78b47a02fb2
C#
bingxue102685/DesignPattern
/Observer/ConcreteObserver.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Observer { class ConcreteObserver : Observer { public void Update(object obj) { Console.WriteLine("Observer Recived:" + obj); } } }
b94288c69b7b77ace15d58954d427c831ddccfc5
C#
cjwang/NRules
/src/NRules/NRules.RuleModel/SymbolTable.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; namespace NRules.RuleModel { internal class SymbolTable { public const string ScopeSeparator = ":"; private readonly HashSet<Declaration> _symbolTable; private int _declarationCounter = 0; public SymbolTable P...
9d87072e8a86eaa77b20c399b75bff44398bb17b
C#
GuilhermeMatheus/BasicSharp
/src/BasicSharp.Compiler/Analyzer/CodeLens.cs
2.703125
3
using BasicSharp.Compiler.Parser.Syntaxes; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BasicSharp.Compiler.Analyzer { public class CodeLens { Dictionary<SyntaxNode, List<CodeInfo>> syntaxesInfo = new Dictionary<SyntaxNode, List<CodeInfo>>(); ...
2ff6d9e056914d0324b4c678295e2f0e0d7a070d
C#
romanesco/Pcx4D
/Examples/Axes.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Pcx4D { public class Axes : MonoBehaviour { public int numPoints = 100; public Color color1 = Color.HSVToRGB(0, 1, 1); public Color color2 = Color.HSVToRGB(0.25f, 1, 1); ...
456d823fb7fb5f2113c3a7542f23eeb657b1bb4d
C#
gvmikhailov/NET
/GeekBrains/Algorythms/Vebinar8/Vebinar8/MergeSort.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; namespace Vebinar8 { public static class MergeSort { public static List<int> MergeSortArray(List<int> numbers) { if (numbers.Count == 1) return numbers; int middlePoint = numbers.Count / ...
7c48f70a16c7bf9601a5ad9897ab3a7bb06117ea
C#
wpmapat/C-sharp-Programming-questions
/Longest_Palindrome/Longest_Palindrome/Program.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Longest_Palindrome { class Program { static void Main(string[] args) { int result = 0; string str = ("racecar"); result = isPalindr...
63e0a163fdd94cba40c5dae0da99b31e3cb6d272
C#
danibaas/PAD-2020-2D
/sprites shop/Assets/money.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class money : MonoBehaviour { public static int moneyAmount; public Text moneyText; void Start() { moneyAmount = 9000; updateMoneyUI(); } public void addMoney(int xAmou...
51b78e0c886decdd6ca354c524cb1b7a67324875
C#
altunbas-huseyin/Identity
/Identity/MongoDbRepository/MongoDbRepository.cs
2.5625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using MongoDB.Driver; using MongoDB.Driver.Builders; using MongoDB.Driver.Linq; using MongoDB.Bson; using System.Reflection; using IdentityModels...
b80f70c366fe5617859d6bf5ab849f3807cac381
C#
lucaskranz/CadmusAPI
/Cadmus.Servicos/Servicos/ClienteServico.cs
2.765625
3
using Cadmus.Dominio; using Cadmus.Dominio.Entidades; using Cadmus.Dominio.Interfaces.Repositorios; using Cadmus.Dominio.Interfaces.Servicos; using Cadmus.Dominio.DTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cadmus.Servicos.Servicos...
65fdf65c1b21864f6162e62937d3d9c8ffa18302
C#
moisesneto23/Primeira_Api_RestFull
/ApiGama/Controllers/AulaController.cs
2.640625
3
using Entity; using Microsoft.AspNetCore.Mvc; using Service; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ApiGama.Controllers { [ApiController] [Route("[controller]")] public class AulaController : ControllerBase { private AulaServi...
a74b26269bcd66c38365cf2b3a938f0f702f3027
C#
neochen168/Algorithm
/Coding/Coding/DP/HouseRobber.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Coding.DP { public class HouseRobber { public int Rob(int[] nums) { int[] ret = new int[nums.Length]; if (nums.Length == 0) return 0; ...
dc1f05cb988c9261af169e11f28dd25721e0cca6
C#
thirtyspokes/advent-of-code-2017
/day-07/Day7/Factories/DiscTowerFactory.cs
3.421875
3
using Day7.Services; using Day7.Models; using System; using System.Collections.Generic; using System.Linq; namespace Day7.Factories { public class DiscTowerFactory { private readonly IInputReader _reader; public DiscTowerFactory(IInputReader reader) { _reader = reader; ...
03497ec7dfa41b623902da4a92bfbbcd9120c1cb
C#
BrandonRayfield/IGB321---Dark-Waters
/Assets/Scripts/Enemy.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class Enemy : MonoBehaviour { NavMeshAgent agent; public GameObject player; public float health = 10.0f; public float agroRange = 10.0f; public float damage = 5.0f; private float da...
05c1bf83c98d0d72ffb35bfa22598368b9412bfc
C#
slampy97/LexerIde
/ConsoleApp1/LexerTest.cs
2.765625
3
using System; using System.Collections.Generic; using NUnit.Framework; namespace ConsoleApp1 { [TestFixture] public class LexerTest { [Test] public static void Test() { var lexer = new Lexer(); var tableTest = new List<(string, string, TokenType)>() ...
b65a5c098ace69642f6f29a53976ff740568fc6f
C#
Diamur/C-
/04/TextEditor/TextEditor/MainForm.cs
2.90625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace TextEditor { //Интерфейс public interface IMainForm { //Поля для управляющего кода string FilePath{get;} string Content{get;set;} //Методы для управляюще...
1e7b883aa2ecc9531bbf51d5a9600b2911db2844
C#
jransome/ml-cars
/Assets/Scripts/Persistence.cs
2.78125
3
using RansomeCorp.AI.Evolution; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using UnityEngine; public static class Persistence { private static readonly string saveDirectory = Application.persistentDataPath; private static readonly DirectoryInfo dirInfo =...
b753864e2d4f7a3db25791856ee965eb93bd5859
C#
LogicAndTrick/thor
/thor/Rendering/Util/BoundingBox.cs
2.75
3
/* * Created by SharpDevelop. * User: Dan * Date: 1/01/2009 * Time: 6:49 PM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Drawing; using OpenTK.Graphics.OpenGL; namespace thor { /// <summary> /// A basic Axis-Aligned Bounding Box. /// </summa...
fe8cf96fc10b2717b3267cce7074756f6daeadfe
C#
asudhakar/xhack
/OhMother/ViewModels/ItemVM.cs
2.671875
3
using OhMother.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Runtime.Serialization.Json; using System.Text; using System.Threading.Tasks; using Windows.Storage; using System.IO; using System.Diagnostics; namespace OhMother.ViewModels { ...
3b5a1e6684337f5e4b554bbd2ab762612d35afad
C#
Sossenbinder/Screenshotautoupload
/Screenshotautoupload/ScreenshotCreator.cs
2.78125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Screenshotautoupload { class ScreenshotCreator { ...
1fe50f97cd5cb31414a89872d3aa4035b5ef2a49
C#
YorkCodeDojo/Sept19_SnakeGame
/David_C#/Snake.Tests/MockBoard.cs
3.109375
3
namespace Snake.Tests { public class MockBoard { private Board _board; public MockBoard(Snake snake) { var food = new Food() { X = 7, Y = 7 }; _board = new Board(DrawSnakeHead, RemoveSnakeTail, DrawFood, DrawBoard, snake, food); } private void D...
f2f6bfd5daaf079e0d010dbd71e7f942c75d27be
C#
michal-franc/DevAdventCalendar
/src/DevAdventCalendarCompetition/DevAdventCalendarCompetition/Controllers/AdminController.cs
2.59375
3
using DevAdventCalendarCompetition.Services.Interfaces; using DevAdventCalendarCompetition.Services.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; namespace DevAdventCalendarCompetition.Controllers { [Authorize(Roles = "Admin")] public class AdminController : C...
cdd9a18eb35c45a7dea52b75e6189dc320c1da4c
C#
TransientEnigma/Masiano-Medical-Consultancy
/JMConsultantsDB/frmGPList.cs
2.703125
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 JMConsultantsDB { public partial class frmGPList : Form { public frmGPList() ...
a92a01d7cf287e073e4081d2f8836200eb8f2a18
C#
Kuromu/BackpackWebAPI
/BackpackWebAPI/BackpackWrapper.cs
2.859375
3
namespace BackpackWebAPI { using System; using System.Threading.Tasks; using Models; using System.Net.Http; using Newtonsoft.Json; using Exceptions; using System.Collections.Generic; using System.Linq; /// <summary> /// Used for creating a wrapper for backpack.tf's web API. ...
e461d47a212617898de686aeaa1f6f32e1a4635b
C#
lucasdetoffollemos/Equipamentos-OO
/Equipamentos-OO.Console/Equipamento.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Equipamentos_OO { class Equipamento { private string nome; private double precoAquisicao; private int numeroserie; private DateTime dataFabricacao; ...
6b1bc87cba16ddb4bbe86bcb477e31d9b377904f
C#
Bruno125/Plataforma-Web
/PC2/Northwind/NorthwindDao/Dao/Framework/ProductsFramework.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Importaciones using NorthwindEntity.Entity; using NorthwindUtil.ExceptionPer; using NorthwindDao.Base; using System.Data; namespace NorthwindDao.Dao.Framework { public sealed class Pr...
1fc32ec80bd2429ad5d9598070007e79fc7addf0
C#
shendongnian/download4
/latest_version_download2/238928-53528942-186771224-2.cs
3.8125
4
static void Main(string[] args) { while (true) { // This is loop constantly occurs. //variables; string UserInput; int count = 0; //Where I ask for user inout then convert to text file. Console.WriteLine("Enter a text file i...
17d7fc96a39eb12007492b4d29c45bb1d847720d
C#
Bihshtein/Ranker1
/EatRight/RecommendationBuilder/Graders/MealGraders/MealGrader.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RestModel; namespace RecommendationBuilder.Graders.MealGraders { abstract class MealGrader : Grader { public override double Grade(RecommendationObject obj) { i...
38f4b7ad61331394692bbec8c1486e6623eaf72c
C#
jmcmanusx47/game-programming-final
/Assets/Scripts/ConeOfColdFunctionality.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ConeOfColdFunctionality : MonoBehaviour { public int damageAmount = 30; public float slowAmount = 0.5f; // Start is called before the first frame update void Start() { } // Update is calle...
f54210b33a5b12638b105f38caad6a3302f4d08e
C#
knnithyanand/elrond-sdk-dotnet
/src/Domain/Codec/AddressBinaryCodec.cs
2.65625
3
using System.Linq; using Elrond.Dotnet.Sdk.Domain.Exceptions; using Elrond.Dotnet.Sdk.Domain.Values; namespace Elrond.Dotnet.Sdk.Domain.Codec { public class AddressBinaryCodec : IBinaryCodec { public string Type => TypeValue.BinaryTypes.Address; public (IBinaryType Value, int BytesLength) Dec...
6239f27e1d94798e1bc9eee27575471b073ac51f
C#
obanetty/jog-the-world
/src/Record/SkeletonRecorder.cs
2.75
3
using System; using System.IO; using Microsoft.Kinect; using System.Runtime.Serialization.Formatters.Binary; namespace Kinect.Toolbox.Record { public class SkeletonRecorder { Stream recordStream; BinaryWriter writer; DateTime referenceTime; public void Start(Stream stream) ...
14c182569c3f2a930c294e860330347474210d81
C#
CliveBanner/DarkPlanet
/Assets/Custom/Scripts/Actors/Components/ScanResult.cs
2.6875
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace RTS2D { [System.Serializable] public class ScanResult : IComparable<ScanResult> { Actor2D m_Actor; float m_Distance; public ScanResult(Actor2D a_Actor, float a_Distance) { ...
932f80f22115e9be2b3e34e8c05287466b0d5fc1
C#
wholroyd/n-act
/NActTests/SystemTests/PingPong.cs
2.59375
3
using System; using System.Threading; using NAct; using NAct.Utils; using NUnit.Framework; namespace NActTests.SystemTests { [TestFixture] public class PingPong { private static int s_Count = 0; [Test] public static void Main(string[] args) { IP...
d0e5f01eb29cc5a4253380b476ecd0b52f203876
C#
dylolemu/xamarin
/ShooterPage.xaml.cs
2.765625
3
using Xamarin.Forms; using System; namespace Shooter { public partial class ShooterPage : ContentPage { public ShooterPage() { InitializeComponent(); //sets the color of the buttons leftButton.BackgroundColor = Color.Transparent; rightButton.BackgroundColor = Color.Transparent; fireButton.Backgr...
fab20833ef6e982a34d486bf23d56b68d2569105
C#
johanjvr/better-task-list-1-1-progress
/Areas/Projects/Models/TicketRepository.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BetterTaskList.Models.Tickets { public class TicketRepository { private BetterTaskListDataContext db = new BetterTaskListDataContext(); public Ticket GetTicket(int ticketId) { ...
ac6d441c328501a6861187edc618799fa54e3b89
C#
pavel561/EP
/EntertainmentPortal/EP.WordsMaker/EP.WordsMaker.Logic/Validators/AddNewPlayerValidator.cs
2.609375
3
using EP.WordsMaker.Logic.Commands; using FluentValidation; namespace EP.WordsMaker.Logic.Validators { public class AddNewPlayerValidator : AbstractValidator<AddNewPlayerCommand> { public AddNewPlayerValidator() { RuleFor(x => x.Name) .NotEmpty() .Wi...
5809d54500b21879f4446863f2bb7ca1eb11b09f
C#
wesnerm/CompetitiveProgramming
/ProjectEuler/1-50/#23 Non-abundant sums.cs
3.375
3
using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { int[] sod = new int[28200]; for (int i=1; i<sod.Length; i++) for (int j=2*i; j<sod.Length; j+=i) sod[j] += i; ...
7f9232dd7fdc9a2cc1deb57743731fd5fc964274
C#
npolyak/NP.Concepts.Bindings
/PathLinks/PathLinkHelpers.cs
2.84375
3
using NP.Concepts.Binding.GettersAndSetters; using NP.Utilities; using System; using System.Collections.Generic; namespace NP.Concepts.Binding.PathLinks { public static class PathLinkHelpers { public static IObjWithPropGetter<PropertyType> CreateGetter<PropertyType>(this IEnumerable<IBind...
ff272923929a82ecd61a46640cee571c2813727e
C#
s00190970/RADMockExam2Validators
/Exam2/Migrations/StudentMigrations/Configuration.cs
2.6875
3
using Exam2.Models; namespace Exam2.Migrations.StudentMigrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<Exam2.Models.StudentDbContext> { public Configuration() ...
29e7ce78181c8c39bb25af6ac9ed6d8135b20083
C#
vipstar555/OldSQLServerFromYahooFinanceScraping
/FinanceEntityFramework/YahooFinance.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HtmlAgilityPack; using System.Net; using FinanceEntityFramework.Finance; using System.Text.RegularExpressions; namespace YahooFinance { class YahooFinance { string htmlText; ...
8f03c6860db6e7c0b0d4b4f5d80e56e266b85bc0
C#
ethankennerly/effective-altruism-simulation
/PoorFamilySimulator/Assets/Scripts/Simulation/Donation/Donor.cs
2.6875
3
using System; using System.Collections.Generic; using System.Globalization; using UnityEngine; namespace PoorFamily.Simulation.Donation { [Serializable] public sealed class Donor { [Range(0f, 100000f)] public float DisposableIncome = 30000f; public string Culture = "en-US"; public f...
f4c8f5f16b116d0fb3bb243aac1b1e3ef51ba914
C#
tramanz/FantaAsta
/FantaAsta/Views/ModificaView.xaml.cs
2.78125
3
using System; using System.Collections.ObjectModel; using System.Linq; using System.Timers; using System.Windows.Controls; using System.Windows.Input; using FantaAsta.Models; namespace FantaAsta.Views { /// <summary> /// Interaction logic for ModificaView.xaml /// </summary> public partial class ModificaView : Us...
751a49eba64ffac18019be923e3f2e06f055fb82
C#
darmangerd/pong-game
/PongGame/SocketMethods.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Net.Sockets; using System.Net; using System.Diagnostics; namespace EZSocket { #region SocketMethode abstract public class SocketMethode { #region Déclaration des constante ...
4b8c479d95b6291df710f1ef63e1a20495fa1920
C#
rogerfbatista/LojaWebApi
/Loja.Common/Validation/PasswordAssertionConcern.cs
2.9375
3
using System; using System.Security.Cryptography; using System.Text; using Loja.Common.Resources; namespace Loja.Common.Validation { public class PasswordAssertionConcern { public static void AssertIsValid(string password) { AssertionConcern.AssertArgumentNotNull(password, Errors.I...
ef1f219939e3a3c603669f3d446b9e271baaf7ed
C#
polytronicgr/Axiverse
/Source/Libraries/Axiverse.Computing/Fibers/Fiber.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Axiverse.Computing.Fibers { public abstract class Fiber { public bool HasState { get; } public FiberPool Pool { get; internal set; } public FiberThread Thread {...
898864dabd0f1ace259324dc6914791babbdeede
C#
lyalka/Roslyn
/FactoryAnalyzer/FactoryAnalyzer/FactoryAnalyzer.Test/FactoryAnalyzerUnitTests.cs
2.640625
3
using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using TestHelper; namespace FactoryAnalyzer.Test { [TestClass] public class UnitTest : CodeFixVerifier { //Diagnostic and CodeFix both triggered and checked for [TestMethod] public void TestMethod2() ...
9b9a3e5a717493ba9113ad80f02c57682953f0d8
C#
shendongnian/download4
/first_version_download2/304553-25052625-70488840-2.cs
3.71875
4
class Program { static void Main(string[] args) { ListDemo _list = new ListDemo(); List<String> Str=new List<String>(); Str.Add("string1"); Str.Add("string2"); Str.Add("string3"); _list.Str=Str; ...
c69831ef7f282e76a89b81cf8c8975d8f4b47bee
C#
TripleView/SummerBoot
/SummerBoot/Repository/ExpressionParser/Parser/JoinExpression.cs
2.734375
3
using System; using System.Linq.Expressions; namespace SummerBoot.Repository.ExpressionParser.Parser { /// <summary> /// Join 表达式 /// </summary> public class JoinExpression : QueryExpression { public JoinExpression(Type type, QueryExpression left, QueryExpression right, Expression leftKey,...
865a6b55c4366499468a618691807bf81b01819c
C#
Decadeeeee/NewWayLibrary
/.NET图书项目实战/Library.DAL/DBHelper.cs
3.109375
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; namespace Library.DAL { public class DBHelper { private static string conStr = ConfigurationManager.ConnectionS...
48ef476d55a0782d7ad4cd3496812f77489d50a0
C#
EdiCasi/Checkers
/Dame 2/Services/GameBusinessLogic.cs
2.796875
3
using Dame_2.Models; using Dame_2.ViewModels; using Dame_2.Views; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using Type = Dame_2.Models.Type; namespace Dame_2.Services { class GameBusinessLogic { private Square selectedSquare = null; ...
3598f1bb079230a4d75dcc889ebfb0d63349335f
C#
RobinKumar963/BridgeLabz
/FunctionalProgram/Stopwatch.cs
3.265625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file=Stopwatch.cs" company="Bridgelabz"> // Copyright 2019 Company="BridgeLabz" // </copyright> // <creator name="Robin Kumar"/> // ---------------------------------------------------...
8f92e6ee336fb0ac3085bd9554fcecae45a56f42
C#
maheshdharhari/flash-sim
/Buffers/Program/GroupOp.cs
2.625
3
using System; using System.Collections.Generic; using System.IO; using Buffers.Devices; using Buffers.Managers; using Buffers.Utilities; namespace Buffers.Program { static class GroupOp { public static ManagerGroup InitGroup(uint[] npageses, AlgorithmSpec[] algorithms, RunModeInfo mode) { if...
4b222e544f5858dadb086d26f4dd28a57e64eca1
C#
Robert-Gunther/EMud
/Entities/ClassCreation.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; //This class governs the creation of player character classes including name and stats namespace EMudEntityCreationMenus { public class ClassCreation { string AnotherClass = null; private string nmspc; private void writeCl...
87cd79855efa99b9217ee990e89ddb8e18adb8a3
C#
achmand/Solving-TSP-using-GA-ACO
/TravellingSalesmanProblem/EvolutionaryComputation/GeneticAlgorithm/Common/GAOptions.cs
3.125
3
using EvolutionaryComputation.EvolutionaryComputation; using EvolutionaryComputation.GeneticAlgorithm.Opertators.Crossover; using EvolutionaryComputation.GeneticAlgorithm.Opertators.Mutation; using EvolutionaryComputation.GeneticAlgorithm.Opertators.Selection; namespace EvolutionaryComputation.GeneticAlgorithm.Common...
b6347d78fce7834816d08b6b542f738710219a5e
C#
stambi4a/AdvancedOOP
/AdvancedOOP/Theme03.Iterators And Comparators/Exercises/Проблем 03. Stack/Program.cs
3.3125
3
namespace Проблем_03.Stack { using System; public class Program { private static void Main(string[] args) { var commandExeecutor = new CommandExecutor(); var stack = new Stack<int>(); while (true) { try { ...
99bb3313ffe962d66c77113f88b7319b1b8c554f
C#
woochica/trachacks
/tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/templates/admin_tracforge_configset.cs
2.578125
3
<h2>TracForge Config Sets</h2> <form class="addnew" method="post"> <fieldset> <legend>Add Entry</legend> <div class="field"> <label>Tag: <input type="text" name="tag" class="textwidget" /></label> </div> <div class="field"> <label>Section: <input type="text" ...
187813c9205eaf32fd72ae3346c9891d2c6d797f
C#
johnziss9/My-Garage
/My-Garage/frmCustomerRegistration.cs
2.828125
3
using System; using System.Globalization; using System.Windows.Forms; using System.Data.SQLite; namespace My_Garage { public partial class frmCustomerRegistration : Form { SQLiteConnection conn = new SQLiteConnection(@"Data Source=C:\Users\jzissimou\Downloads\GarageDB.db;Version=3;datetimeformat=Curre...
c43e423d22af85d5b09b408a18a3940a5548efc2
C#
rantunes94/ISI_ruben_carla
/eNutrideal_desktop/eNutrideal_desktop/CalculadoraPesoIdeal.cs
2.75
3
using eNutrideal_desktop.ServiceReference1; 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 eNutrideal_desktop { public partial class Calc...
7567f8c3603fe7c48f01a94ca953f9336a3c9d05
C#
Marran2/Nat1
/Nat1/Assets/Scripts/HexGenerator.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HexGenerator : MonoBehaviour { // Start is called before the first frame update void Start() { GenerateMap(); } public GameObject HexPrefab; public int side; public void GenerateMap() { ...
1265bf082eba8c7c692530e2a0b0ea11325bfef1
C#
FMSC-Measurements/TwoTrails
/TwoTrails/PointSorter.cs
2.875
3
using System.Collections; using TwoTrails.Core.Points; namespace TwoTrails { public class PointSorter : IComparer { public bool SortPolysByName {get; private set;} public PointSorter(bool sortPolysByName = true) { SortPolysByName = sortPolysByName; } publi...
30a0c8db9a32ab4d0c9baf12b31e2a28f91a1e47
C#
Smalldeviltk/open-ones-edu
/Add2N-Console/SourceCode/28CSharp/[28]MaiTrongKhang_Add2N/Cong 2 so nguyen duong lon/Logic.cs
3.9375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cong_2_so_nguyen_duong_lon { class Logic { /// <summary> /// This method is used for caculating sum of 2 very big value numbers; /// </summary> /// <param name="first">Th...
5a177df9cd515d6c7c7f302604ec8e12a517531f
C#
star-re/star-grasshopper
/star/star/M1/To Meters.cs
2.5625
3
using System; using System.Collections.Generic; using Grasshopper.Kernel; using Rhino.Geometry; namespace star.M1 { public class To_Meters : GH_Component { /// <summary> /// Initializes a new instance of the To_Meters class. /// </summary> public To_Meters() : base("...
243106ad2312ec263b6edf01d213011e9494fa88
C#
yn919/KingdamScheduleWriter
/WriterCore/Models/PropertyChangeObj.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text; namespace WriterCore.Models { public class PropertyChangeObj : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void ...
17db65859b179a162fe4546341449d46c8775af7
C#
philipwolfe/Samples
/WPF/Windows SDK WPF Samples/Demos/FontDialog/CSharp/WPFFont.cs
2.796875
3
#region Using directives using System; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Media; using System.Collections; using System.Windows.Shapes; #endregion namespace FontDialog { /// <summary> /// This class defines the W...
55d43c8be7dc0df4a521055d86f9f0ddc2f835f8
C#
hitsz-ldjam/Era-of-Revival
/Assets/Scripts/Turn/Buff/BuffBase.cs
3.140625
3
using System; namespace Turn.Buff { public abstract class BuffBase : IBuff, IEquatable<BuffBase>, IComparable<BuffBase> { protected BuffBase(int activeTurns) { this.guid = Guid.NewGuid(); this.activeTurns = activeTurns; } private readonly Guid guid; private...
28320512035826c1244f47129919092f4a8660df
C#
Baltasarq/C-Sim
/C-Sim/Core/Types/Ptr.cs
2.8125
3
// CSim - (c) 2014-17 Baltasar MIT License <jbgarcia@uvigo.es> namespace CSim.Core.Types { using System.Linq; using Variables; /// <summary> /// Represents the pointer type. /// </summary> public class Ptr: Indirection { /// <summary>The ptr's type name part.</summary> public const string PtrTyp...
578a29edcf2217e28daa56216285396b048702b8
C#
iamkrish/DataStructuresAndAlgorithms
/Trees/ConsoleApplication1/ConsoleApplication1/ArrayInformationOfBSFT.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class ArrayInformationOfBST { public List<List<int>> ArrayTreeSequence(Node n) { if(n==null) { return new ...
89f2c60e1e4658b175e140e91de0c79bef802692
C#
MihailPA/Object-Oriented-Programming
/Common Type System/04.PersonClass/Main.cs
3.890625
4
//Problem 4. Person class //Create a class Person with two fields – name and age. Age can be left unspecified (may contain null value. Override ToString() to display the information of a person and if age is not specified – to say so. //Write a program to test this functionality. using System; using System.Collection...
2b96d6f82dc1ee21c4389ccd2637a5bf41a81958
C#
bubdm/Birch
/Birch.Core/Components/StandardAttributes.cs
2.515625
3
using System; using System.Collections.Generic; using Birch.Reflection; using Birch.Shadows; using static Birch.Components.Attribute; namespace Birch.Components { /// <summary> /// Standard set of attributes. /// </summary> public static class StandardAttributes { /// <summary> //...
4d6e2a97d355bfdc58cbd50804f260d0010b19f9
C#
Artifact282/Imagger
/Imagger/Mathematics/Statistics.cs
3.90625
4
namespace Imagger.Mathematics { using System; /// <summary> /// Statistics contains most commonly used methods simple methods /// </summary> public class Statistics { /// <summary> /// In statistics, the standard deviation is a measure that is used to quantify the amount of var...
2856ad38ac76b1075ef745e1cd5ec3eca98872a9
C#
LucBos/XmasChapterCQRS
/QFappStore/Core.Unit.Tests/GetDemoData/Given_a_GetDemoDataQueryHandler.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using Core.GetDemoData; using Domain; using Moq; using NUnit.Framework; namespace Core.Unit.Tests.GetDemoData { public class Given_a_GetDemoDataQueryHandler { private Mock<IGetReviewsWithPersonNameQuery> _getReviewsQuery; priva...
88d90866d31b54baac69dac373fc4f24d6d2bc47
C#
liuyongsz/bmobdemo
/bmobdemo/Assets/Scripts/Scripts/Utils/AssetFileUtils.cs
2.890625
3
/// 作者 wanglc /// 日期 20140923 /// 实现目标 资源包文件操作辅助 using System.IO; /// <summary> /// 资源包文件操作辅助 /// </summary> public class AssetFileUtils { /// <summary> /// 删除资源 /// </summary> /// <param name="strFilePath"></param> /// <returns></returns> public static bool DeleteAsset(string strFilePath) ...
f41c342c2dc78707a290d72850733cd60acf405a
C#
minhquang19/hotelmanger
/DTO/CSVC_DTO.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DTO { public class CSVC_DTO { private string temp; private string id; private string name; private string idloaiphong; private string idcsvc; ...
c188a9eba64cad89d3a7360d99100b9089e7f98c
C#
arunnmkl/ExcelExport
/ExcelDataMerge/StyleSheetSetting.cs
2.671875
3
using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Spreadsheet; namespace ExcelDataMerge { /// <summary> /// Excel style sheet settings. /// </summary> public class StyleSheetSetting { /// <summary> /// Gets the fonts. /// </summary> /// <value> /// ...
114a90bc7caecc078fde16cf3798aea539945956
C#
Thrapis/URBANOVICH_LABS
/6_semestr/LAB_12/LAB_12/LSB.cs
3.234375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LAB_12 { public static class LSB { private static string ToEditableByte(byte theByte) { return new string(Convert.ToString(theByte, 2).PadLeft(8, '0').Reverse()....
f6397bbe43068e526513c1475a37c992edb3700a
C#
lysandroc/robust-dotnet-application
/negocio.Intermediario/Cliente/ClienteIntermediario.cs
2.734375
3
using System; using System.Collections.Generic; using negocio.Dominio; using negocio.Repositorio.Repositorio.Generico; namespace negocio.Intermediario.Cliente { public class ClienteIntermediario : ICrud<ClienteDTO> { private readonly Repositorio<ClienteDTO> repositorio; public ClienteIntermed...
afd55e32e9714d11ed25d33580c432f03bb39f57
C#
poohpaintii/book-source-codes
/c#/C_2523. _25d1_25e1_25ee_25f0_25ed_25e8_25ea _25f0_25e5_25f6_25e5_25ef_25f2_25ee_25e2/Chapt 01-12/Interfaces/Class1.cs
3.515625
4
using System; namespace Interfaces { interface I1 { void PrintName(); } interface I2 { void PrintName(); } class BaseTest { public void PrintName() { Console.WriteLine("BaseTest.GetName"); } } class Test : BaseTest, I1, I2 { void I1.PrintName() { Console.WriteLine("I1.PrintName"); ...
fca696fc1810e2880a97fd9b4178020d6dddb52d
C#
cauevds/3Con
/Teste3Con/Controle/Controller.cs
2.90625
3
using System; using System.Collections.Generic; using Teste3Con.Entidade; using System.Linq; namespace Teste3Con.Controle { public class Controller : IController { private API.IObtemAmigos iObtemAmigos; public List<Amigo> BuscarAmigos() { try { i...
b4a20f16a7ec5260f7c392f8b16d3201ce003f99
C#
a-h/the-flying-gentleman
/FlyingGentleman.Agent/Program.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FlyingGentleman.Agent.Properties; using System.ServiceProcess; using System.IO; namespace FlyingGentleman.Agent { /// <summary> /// The main entry point for the application. /// </summary> class Program { /// <summary> ...
742b3df0d672d5e5cf86f19a0815e2bd2b500b99
C#
pekkahe/bitmap-compressor
/BitmapCompressor.Tests/UnitTests/Compressor/Formats/BC1BlockDataTests.cs
2.9375
3
using System; using BitmapCompressor.Formats; using BitmapCompressor.Tests.Helpers; using NUnit.Framework; namespace BitmapCompressor.Tests.UnitTests.Compressor.Formats { [TestFixture(Category = "Formats")] public class BC1BlockDataTests { [Test] public void ConversionToBytesReturnsArrayOf...