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
bd1f9dae0ec8093ddea43583cdb98e82c8356f26
C#
hhy5277/savagesvg
/test/SharpVectors/Dom/Svg/Util.cs
2.578125
3
using System; using NUnit.Framework; using SharpVectors.Dom.Svg; using System.Xml; using System.Xml.XPath; using System.Drawing; using System.Collections; namespace SharpVectors.UnitTests.Svg { public class Util { public static SvgDocument GetXmlDoc(string content, string style) { SvgWindow wnd = new SvgWindo...
bd165a10b1dc6f08cddd04ad402509a3e813b1af
C#
RHOLOD/28-tasks
/Level17.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Level1Space { class Level17 { static bool MisterRobot(int N, int[] data) { int[] massiv = new int[N]; int[] mus = new int[3] { 0, 0, 0 }; massiv = da...
a2e3f8457cfd924b5afb3a969a00f35bc1185d97
C#
mobinhassani9374/Chargoon.Core
/Chargoon.Utility/Identity/JwtTokenGenerator.cs
2.609375
3
using Chargoon.DomainModels.Entities; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; namespace Chargoon.Utility.Identity { public class JwtTokenGenerat...
808c4d8c154d2d25c33ac94c336f46d1c51d2163
C#
discord-csharp/MODiX
/Modix.Services/Core/Messages/UserLeftNotification.cs
2.96875
3
using System; using Discord.WebSocket; namespace Discord { /// <summary> /// Describes an application-wide notification that occurs when <see cref="IBaseSocketClient.UserLeft"/> is raised. /// </summary> public class UserLeftNotification { /// <summary> /// Constructs a new <see c...
a7c07c64327bb62c0b414874f3b6308e4d367b1a
C#
sebas77/Svelto.MiniExamples
/Example3-Unity Hybrid-GUI/Packages/com.sebaslab.svelto.common/DataStructures/Dictionaries/FasterDictionary.cs
2.71875
3
using System; using System.Diagnostics; using System.Runtime.CompilerServices; using Svelto.Common; using Svelto.Utilities; namespace Svelto.DataStructures { sealed class FasterDictionaryDebugProxy<TKey, TValue> where TKey : struct, IEquatable<TKey> { public FasterDictionaryDebugProxy(FasterDictionary...
f6172d317eb86051f50e3581b4402acfba9b7a9c
C#
vcpsh/single-sign-on
/sh.vcp.ldap/LdapAttr.cs
2.953125
3
using System; using System.Collections.Generic; using Novell.Directory.Ldap; namespace sh.vcp.ldap { /// <summary> /// Configures the backing ldap property of an object in a model. /// </summary> /// <remarks> /// Currently supported are: int(?), bool, DateTime(?), string, List(string) /// </r...
5a0a5db7ded0139364be7bae799590b0666fa24e
C#
AlpMehmet/aossApi
/Controllers/AossOnlineSinavOgrenciController.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using AossAPI.Models; using AossApi.Models; namespace AossAPI.Controllers { [Route("api/[controller]")] [ApiCon...
6740772ff198502e02e8bacbd179bfcb217c793b
C#
TihomirIvanovIvanov/SoftUni
/C#Fundamentals/C#Advanced/02MultidimensionalArrays/MoreExercises/StringMatrixRotation/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Versioning; using System.Text.RegularExpressions; using System.Threading.Tasks.Dataflow; namespace StringMatrixRotation { class Program { static char[][] matrix; static List<string> words; static ...
60c69b238f1d2330302f179db469e863cb7bdeb1
C#
SaurabhDev338/aspnet-api-versioning
/src/Microsoft.AspNet.WebApi.Versioning/Routing/ApiVersionRouteConstraint.cs
2.578125
3
namespace Microsoft.Web.Http.Routing { using System; using System.Collections.Generic; using System.Net.Http; using System.Web.Http; using System.Web.Http.Routing; using static Microsoft.Web.Http.ApiVersion; using static System.String; using static System.Web.Http.Routing.HttpRouteDirec...
a21c86ecc298d009b019d2765b75a205e8e8a79e
C#
dsshimel/unity-projects
/vr-starry-background/VR Starry Background/Assets/Helper/MathHelper.cs
2.890625
3
public static class MathHelper { public static bool IsBetween(float value, float minInclusive, float maxExclusive) { return minInclusive <= value && value < maxExclusive; } }
aed4eb88f2924fff55ee2b322ff6b0e8b2447455
C#
UncleFirefox/RiemersTutorials
/RiemersTutorials.DirectX.CSharp.Terrain/RiemersTutorials.DirectX.CSharp.Terrain.DrawingATriangle/RenderForm.cs
3.171875
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="RenderForm.cs" company="AlFranco"> // Albert Rodriguez Franco 2013 // </copyright> // <summary> // Riemers Tutorials of DirectX with C# // Chapter 1 Terrain // SubChapter ...
ba05eb226da67c7045e1c8ff7bab78749e08e3f3
C#
analyzethat/BigDataIngestion2
/src/ServiceBusUI.WebJob/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Web; using Microsoft.Azure.WebJobs; using Newtonsoft.Json; namespace ServiceBusUI.WebJob { // To learn more about Microsoft Azure WebJobs SDK, please see https://...
189457fc3403123e9c9131cbfac866002a52e73f
C#
dingxuanwei/MUERP
/MU.Push/PushServer.cs
2.625
3
using Fleck; using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Text.RegularExpressions; using System.Threading; namespace MU.Push { public class PushServer { #region 单例模式 private static readonly PushServer _instance = new...
04dc3bd4de085c72eb4c3487596028f8e3573bf2
C#
shendongnian/download4
/code7/1247273-33283837-102421363-2.cs
3.15625
3
DataTable dt = new DataTable(); var sums = new Dictionary<DateTime, int>(); foreach(DataRow dr in dt.Rows) { int sum = 0; for(int i = 1; i < dr.ItemArray.Length; i++) { sum += (int)dr.ItemArray[i]; } sums.Add((DateTime)dr.ItemArray[0], sum); }
7955fdba6793a3ed5b4d84dc5ec526b54c8eb6f9
C#
xiangzhelo/thirdpay
/BLL/BaseData/identitycard.cs
2.53125
3
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Text; using DBAccess; using viviLib; using viviLib.ExceptionHandling; using viviapi.Model; using viviapi.Model.Channel; namespace viviapi.BLL.basedata { public class identitycard { #region Ba...
46eac3b0112a032651680e40c0cc2296210999b3
C#
ThibaultMontaufray/Droid-Cook
/Project/Model/WinePairing.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Droid_Cook.Model { public class WinePairing { #region Attributes private List<string> _pairedWines; private string _pairingText; private List<Product> _...
4abd557a75eeba5b69d893a3f3225cf456d03e49
C#
SvetlanaRonzina/Task-9
/Задача 9/Задача 9/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Задача_9 { class Item { public int Data; public Item Next; } class Program { static Item positiveList = null; static Item...
2735e793fc291f677e8aafd8b2e8e94cf7da942f
C#
xiaogang002020/LearningCSharp
/1.CSharpLanguage/1.5.OperatorAndCast/1.5.2.Operator/ComparisonOperator/Student.cs
3.75
4
namespace SmartLin.LearningCSharp.OperatorAndCast { /// <summary> /// 学生; /// </summary> public class Student { /// <summary> /// 学号; /// </summary> public string Number { get; private set; } /// <summary> /// 姓名; /// </summary> public...
0af01983caa57488695ddd03708004d08b006b8d
C#
stannard95/3D-Trading-game
/Assets/Scripts/VillageScripts/VillageIndustry.cs
2.734375
3
using UnityEngine; using System.Collections; public class VillageIndustry{ private string name, location; private int output; private int profit, buyPrice; public VillageIndustry(string name, int output, string location, int buyPrice) { this.name = name; this.output = output; this.location = location; t...
ebb28e28ab757f60c1f6fc3a267b46b2bf2e960d
C#
JakubMakaruk/ripo-game
/Racing Improving Polish Orthography/Assets/Scripts/InputController.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputController : MonoBehaviour { public string inputSteerAxis = "Horizontal"; public string inputDriveAxis = "Vertical"; public string inputHandbrake = "space"; public bool canInput = true; public float ...
87019e285df20eea4035c69db5298e23b9c05126
C#
irebtree/TestC
/Assets/TestGenerics/TestGenNewConstraint.cs
2.625
3
using UnityEngine; using System.Collections; public class TestGenNewConstraint : MonoBehaviour { // Use this for initialization void Start () { TestMyClassNew<MyClassNew> test = new TestMyClassNew<MyClassNew>(); Debug.Log(test.obj.mName); } } class MyClassNew { public string mName= "MyClassNew"; publi...
0f2a6a15d27997bdc914558b6e36247529053bf8
C#
Rakesh-space/FellowShips
/LineComparisonProblem/LineComparisonProblem/LineComparisonUC2.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LineComparisonProblem { class LineComparisonUC2 { public void lineComparisonUC2() { double x1, y1, x2, y2; double len, length; doubl...
ff71b7036ceda5ef9e7cbb890475fe243bb5d7b1
C#
seiroise/EditorUtil
/Assets/EditorUtil/MinMax/Scripts/MinMax.cs
3.203125
3
using UnityEngine; using System.Collections.Generic; namespace EditorUtil { /// <summary> /// 最大値と最小値を保持するクラス /// </summary> [System.Serializable] public struct MinMax { /// <summary> /// 最小値 /// </summary> [SerializeField] private float _min; public float min { get { return _min; } set { _min = va...
729179d95025325983edc895cd596c43afcc83ce
C#
alexandraback/datacollection
/solutions_1483485_0/C#/losu/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Diagnostics; using System.Numerics; namespace Tongues { class Program { public static HelperClass Helper { get; private set; } static void Main(string[] args) { Helper = new HelperClass...
d1a74aec5811feb6dbb60993acea07325408d975
C#
crhaugen/COVID-Testing-Locations
/Default.aspx.cs
2.890625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace COVIDLocationTracker { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { ...
db6ab958b12c1156eebca05030399a432c299b9c
C#
AhmedHussien20/Task
/Core/DataAccess/Repository.cs
3.21875
3
using Microsoft.EntityFrameworkCore; using Model; using System; using System.Linq; namespace DataAccess { public class Repository<T> : IRepository<T> where T : BaseEntity { private readonly Context _Context; private readonly DbSet<T> entities; public Repository(Context context) ...
f33c1bcd6c9a68bd4e32c2dd04700e910a58aec3
C#
neulky/Sign-Language-Recognition-HMM
/Sign-Language-Recognition-HMM/KinectData.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Kinect; namespace Sign_Language_Recognition_HMM { class KinectData { public double[][][] kinectdata_seq; private KinectSensor sensor; public void GetKinec...
af2e64aa87cd243b6038cdc501b5d94d857c9e26
C#
Jacks-23/Fil_Rouge
/Nouveau dossier/FilRouge.DAL/AccessLayers/RecruteurAccessLayer.cs
2.765625
3
using FilRouge.DAL.Context; using FilRouge.DAL.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FilRouge.DAL.AccessLayers { public class RecruteurAccessLayer { private readonly QuizzContext c...
942630c586f888053ab669a17b384edc0a8a1720
C#
GroupAHT/TeamWork
/Thuenhatro/ThuenhatroAPI/Services/Properyty.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ThuenhatroAPI.Models; using Microsoft.EntityFrameworkCore; namespace ThuenhatroAPI.Service { public class Properyty : IIProperty { private Context context; public Properyty(Context context) ...
4f6a43186d973ada1cd370aaf89e245325a3a55b
C#
novar0/Novartment.Base
/Novartment.BaseWindows/UI/Wpf/ContentControlExtensions.cs
2.640625
3
using System; using System.Windows.Controls; namespace Novartment.Base.UI.Wpf { /// <summary> /// Методы расширения для System.Windows.Controls.ItemsControl. /// </summary> public static class ContentControlExtensions { /// <summary> /// Удаляет указанный ContentControl из родительского контейнера...
d03b0faa1cab2c6b67cefb41643366ed5c531df9
C#
bernnabe/simplestockmarket
/src/SuperSimpleStockMarket.Net.Domain/Stock.cs
2.71875
3
using SuperSimpleStockMarket.Net.Common.Domain; using System; using System.Collections.Generic; namespace SuperSimpleStockMarket.Net.Domain { public class Stock : DomainBase { public string Symbol { get; set; } public string Type { get; set; } private int _lastDividend; public...
d39feb916ad2585dd30f6f798a82dcb755333a2d
C#
chrispydizzle/coding-challenges
/DynamicProgramming/MaxSubarrayProduct.cs
3.5625
4
namespace CodeChallenges.DynamicProgramming { using System; using System.Collections.Generic; using System.Linq; public class MaxSubarrayProduct { // TODO: Find simpler solution. public int MaxProduct(int[] nums) { List<int> alternates = new List<int>(); ...
45c86bb5ed2eeba776040069569fd06fc2b0d9a1
C#
dotnet/dotnet-api-docs
/snippets/csharp/System.Runtime.Remoting/RemotingConfiguration/ApplicationName/server.cs
2.59375
3
// <Snippet1> using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; public class ServerClass { public static void Main() { // </Snippet1> // <Snippet2> ChannelServices.RegisterChannel(new TcpChannel(8082)); RemotingConf...
d632ca51b15b2a6e9cd772f217f8c776e74c7d4d
C#
tomaszbiegacz/Arnible.MathModeling
/Arnible.Linq.Test/MinDefensiveTests.cs
2.640625
3
using System; using System.Collections.Generic; using Arnible.Assertions; using Xunit; namespace Arnible.Linq.Test { public class MinDefensiveTests { [Fact] public void IEnumerable_Min_Defensive_Error() { IEnumerable<int> v = new int[0]; try { v.MinDefensive(); throw n...
2e11bbcea4fe337e0d72dae19585fd14148f8c5c
C#
an-embedded-engineer/ClangNet
/ClangNet/Managed/Services/HigherLevel/ClangIndexFileLocation.cs
2.515625
3
namespace ClangNet { /// <summary> /// Managed Clang Index File Location /// </summary> public class ClangIndexFileLocation : ClangPhysicalLocation { /// <summary> /// Clang Index Client File /// </summary> public ClangIndexClientFile IndexClientFile { get; } ...
376ba998ae5eaaeb8e662021ae810af9df735735
C#
Adam-J-Harris/Dissertation
/AI Dissertation/Assets/Scripts/Enemy/EnemyAttackDumb.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyAttackDumb : MonoBehaviour { private float timeBetweenAttacks = 1f; private int attackDamage = 25; GameObject player; PlayerHealth playerHealth; EnemyHealth enemyHealth; StatePatternEnemyDumb en...
aafb56ca43af4dd2b69879ae6f713ad1363be931
C#
SonicTheCat/CSharp-Advanced
/10.Functional Programming-Exercises/09.ListOfPredicates/ListOfPredicates.cs
3.78125
4
namespace _09.ListOfPredicates { using System; using System.Collections.Generic; using System.Linq; public class ListOfPredicates { public static void Main() { int n = int.Parse(Console.ReadLine()); var sequence = Console.ReadLine().Split().Select(int.Parse)...
2241ae1d547d2743068f5c5c15f655b51d99e518
C#
wushian/Mastering-ABP-Framework
/Samples/Chapter-07/ProductManagement/src/ProductManagement.HttpApi/Controllers/ProductController.cs
2.625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; namespace ProductManagement.Controllers { /* Using permission based authorization with IAuthorizationService public cla...
a576d388330bbc91ddef1d2fa18782366d2d35bf
C#
Martiacus/Host
/Assets/Scripts/Saving/SaveController.cs
2.640625
3
using UnityEngine; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Collections.Generic; public static class SaveController { /// <summary> /// Saves user settings /// </summary> public static void SaveSettings() { BinaryFormatter formatter = new BinaryFo...
51094c10f999cb4acdb1d06943fd0a9ede37f699
C#
JeremyToler/GameVote
/GameVote/Helpers/VoteHelper.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using GameVote.Models; namespace GameVote.Helpers { public class VoteHelper { List<GameModels.TallyModel> tally = new List<GameModels.TallyModel>(); List<GameModels.VoteModel> votes = new List<GameModels.VoteM...
697e3df903d1b69aab294e7688f6acc3907e78d7
C#
IsidoraNinkovic123/Diplomski
/DIPLOMSKI/BLL/Managers/MeniManager.cs
2.59375
3
using Common.Interfaces.Managers; using Common.Database; using Common.Interfaces.Providers; using DAL.Providers; using System.Linq; namespace BLL.Managers { public class MeniManager : IMeniManager { private IMeniProvider _provider; public MeniManager() { _provider = new Me...
28f4a68b90b3bf3313364cf00e25aeb34ac305fc
C#
ZippeyKeys12/funstuff
/Assets/Scripts/Noise/Generative/TriangleNoise.cs
3.03125
3
using Unity.Mathematics; namespace Noise.Generative { public class TriangleNoise : Generator { public TriangleNoise() { } public override Sample<float> Get(float x) { var saw = x - math.floor(x + .5f); return 2 * new Sample<float>(math.abs(saw), math.sig...
8f58090bbcff0f2318880fd8805d82479edba182
C#
mnbatista/WebAPIComSwagger
/WebAPIComSwagger/WebAPIComSwagger/Controllers/MetricasController.cs
2.8125
3
using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data; using System.Reflection; using System.Web.Http; namespace WebAPIComSwagger.Controllers { public class MetricasController : ApiController { [HttpPost] [Route("Metricas")]...
413d8443625b5d1f286205fd6d3d6a68fbeeae2c
C#
Sarrgas/AdventOfCode2017
/02/Corruption Checksum/Corruption Checksum/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Corruption_Checksum { class Program { private List<int[]> input; private List<Row> spreadsheet = new List<Row>(); private int totalChecksum; public voi...
91a2b879a8424dec46cd67abad69fdaca78ba7bc
C#
Kesco-m/Kesco.Lib.Entities
/Persons/BusinessProject/BusinessProject.cs
2.578125
3
using System; using System.Collections.Generic; using System.Data; using Kesco.Lib.DALC; using Kesco.Lib.Web.Settings; namespace Kesco.Lib.Entities.Persons.BusinessProject { /// <summary> /// Класс сущности Бизнес проект /// </summary> [Serializable] public class BusinessProject : Entity {...
cdee5a680dd02af13140b2a3906f7922810823f5
C#
nydehi/openuo
/src/client/Client/Serial.cs
2.84375
3
#region License Header /*************************************************************************** * Copyright (c) 2011 OpenUO Software Team. * All Right Reserved. * * $Id$: * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public...
26a12622a9eb12ff8fda0566249534f6eeea44b7
C#
Jacqueline-9/Programacion_II
/Punto_Venta_Abarrotes/DAL/Modelos/D_Usuario.cs
2.53125
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace DAL { public class D_Usuario { #region Objeto conexión private D_Conexion Conexion = new D_Conexion(); #endreg...
e8f018d82d0e2ab2d9ebcf8428392e461c3334a7
C#
MiaoXiao/StaircaseGenerator
/Assets/Scripts/CameraPanning.cs
2.640625
3
using UnityEngine; using System.Collections; //Controls camera movement for Staircase and Staircase&Ball public class CameraPanning : MonoBehaviour { //Set to true if there is no ball public bool regularOrbit; //How high above the first step the camera should be set to public float cameraHeight = 10; ...
850de3b2f7afa02c1f19f0ff51beb1a9aa5931b9
C#
zeinabrahimy/CryptoCurrencyQuote
/CryptoCurrencyQuote/CryptoCurrencyQuote/Proxies/ExchangeRatesProxy.cs
2.671875
3
using CryptoCurrencyQuote.Models; using CryptoCurrencyQuote.Models.ExternalDto; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; using System; using System.Net.Http; using System.Threading.Tasks; namespace CryptoCurrencyQuote.Proxies { public class ExchangeRatesProxy : I...
9cac6bbfadaf67632f020b87677a296d780d4cd4
C#
Lowzada/curso_modulo1
/Lista4Exercicio11/Program.cs
3.84375
4
using System; namespace Lista4Exercicio11 { class MainClass { public static void Main(string[] args) { int n, soma, x; Console.Write("Digite o valor de N: "); n = int.Parse(Console.ReadLine()); soma = 0; for (int i = 1; i <= n; i++)...
a5424647566f794081a2a779a553a7cdcc51b329
C#
Robsonmor/iateceventos
/backend/IAtecAgenda.Core/Extensions/StringExtensions.cs
2.9375
3
using IAtecAgenda.Domain.Enumerations; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace IAtecAgenda.Core.Extensions { public static class StringExtensions { #region Private Static Fields static readonly char[...
ef11e4441bf16caaa365204e12ab1279630f340e
C#
KapustinnS/Kapustin
/Lab1/Zadanie9/Program.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zadanie9 { class Program { static void Main(string[] args) { String b; b = Console.ReadLine(); Console.Write("SELECT first name, las...
ccd4ce86b24553794b645a03fc58d01caaed51e5
C#
andreyctkn/onu-tech-course
/j.levenets/CourseApp/GamePlaceRepository.cs
2.984375
3
using System; using System.Collections.Generic; using System.Data; using Npgsql; using NpgsqlTypes; namespace CourseApp { class GamePlaceRepository : BaseRepository { public GamePlaceRepository(string connectionString) : base(connectionString) { } public List<GameP...
6be34fe96feca2b4733ecc57bdb4cffff522e104
C#
AliaHamwi/Airplane-design-simulation
/Cameras/Center_camera .cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace Physics_Project { public class Center_camera : Camera { public Vector3 Rotation = new Vector3(0,0,0); ...
ab0c74fc539d3c1101a1ce19788577946e5422af
C#
softwaretirol/conferences
/DDC 2019/Data Driven Applications/DDC2019Workshop/Program.cs
3.34375
3
using System; using System.Collections; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace DDC2019Workshop { class Program { public static IEnumerable<int> WhereEquals(IEnumerable<int> source, ...
e7ccdc32f3ae75999a4c25b9ddffa8746a57e178
C#
diasflack/poker
/Poker/Game.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Poker { class Game { private Deck _gameDeck = new Deck(); private int _gameBank = 0; private int _currentRoundBet = 0; private List<Player> _playersList...
0c6218946aae71fbc4ef4af7d4eb0bc55bc7ca82
C#
Srivathsa-ASP/FlexMapper
/src/FlexMapper.UnitTests/PersonMapper.cs
2.921875
3
using System; namespace SchwabenCode.FlexMapper.UnitTests { /// <summary> /// Test Mapper /// </summary> internal class PersonMapper : FlexMapper<Person, PersonViewModel>, IPersonMapper { const string ISO8601DateTimeFormat = "yyyy-MM-ddTHH:mm:ssZ"; /// <summary> /// Map fr...
ab833c828e40cfe54b5f1545a58485d16b727a6e
C#
arascry/WorldGenPrototype
/WorldGenPrototype/Game1.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace WorldGenPrototype { /// <summary> /// This is the main type for your game. ...
c556923cc785a1c90286831729b536e66e058550
C#
adamsthlm/A2
/CurrencyConverter.cs
3.921875
4
using System; namespace A2 { class CurrencyConverter { private double input; private double sum; private string curName; private float rate; public void Start() { // Call the method which writes the program info, title, etc. WriteProgram...
b1e2b80ab76429a2769495ac94cdffbfe9210fb9
C#
ol1v/tskr-xplatform
/Taskerino/Model/DBHelper.cs
2.9375
3
using System.Collections.Generic; using System.Threading.Tasks; using SQLite; namespace Taskerino { public class DBHelper { private static SQLiteAsyncConnection db; public DBHelper() { db = new SQLiteAsyncConnection(App.DB_PATH); db.CreateTableAsync...
16dfaa4bc4cbdc202a4f75f7d9843cab17016b0a
C#
HEF-Sharp/HEF.Security
/src/HEF.Security.BouncyCastle/Provider/Cipher/Impl/RSAProvider.cs
2.609375
3
using Org.BouncyCastle.Crypto; using Org.BouncyCastle.OpenSsl; using System; using System.IO; namespace HEF.Security.BouncyCastle { public class RSAProvider : CipherProvider, IRSAProvider { private Lazy<AsymmetricCipherKeyPair> _lazyCipherKeyPair; private RSAProvider(string algorithmName) ...
a4d078039c8bbbb7a468184c901a4814373c569c
C#
commonsensesoftware/More
/src/More.Extensions/Platforms/netstandard1.5/More/ComponentModel/TypeDescriptionProvider{T}.cs
3.171875
3
namespace More.ComponentModel { using System; using System.ComponentModel; /// <summary> /// Represents a generic <see cref="TypeDescriptionProvider">type description provider</see>. /// </summary> /// <typeparam name="T">The <see cref="Type">type</see> to create a type descriptor provider for...
979bebb17a7dfd94413d5f277f50b98f60ee9fd4
C#
nikoProg/SEDCWebApplication
/SEDCWebApplication.DAL.Data/Implementations/CustomerDAL.cs
2.765625
3
using SEDCWebApplication.DAL.Data.Entities; using SEDCWebApplication.DAL.Data.Interfaces; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Text; namespace SEDCWebApplication.DAL.Data.Implementations { public class CustomerDAL : BaseDAL, ICustomerDAL ...
961ab6edab5787f57d09a1b5fe3c2335fcb34710
C#
florczakraf/ii
/dotnet2016/2/3/z3/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace z3 { class Program { static void Main(string[] args) { List<int> list = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; Console.Write("List: "); PrintList(lis...
e4dc56d624db925823656811a5fcda3022211979
C#
SPBTV/Airbraker
/Source/Common/Airbraker/Data/AirbrakeNotifier.cs
2.765625
3
using System.Xml.Serialization; namespace Airbraker.Data { /// <summary> /// Represents an Airbrake notifier class. /// </summary> [XmlRoot("notifier")] public class AirbrakeNotifier { /// <summary> /// Required. The name of the notifier client submitting the request, such as "...
eb25e4a0b8b67a79dcce5d443ba4da843a692d53
C#
Thomas-Brothers-Workshop/Controller
/HalloweenController v0.0.1/DAL/MyMethods.cs
2.578125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Web; using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; namespace HalloweenController_v0._0._1.DAL { public class MyMethods { public static string StarsPath = "C:\\Logs...
9ac6aec717add235dda65bb5f859c678a67631ce
C#
Moav42/Gori
/GoriAPI/GoriAPI/Controllers/PositionCategoriesController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using DAL.Entities; using DAL.Interfaces; using GoriAPI.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace GoriAPI.Controllers { [...
5e3c10277fc0b4388faba253183e0e4d1c2ce15f
C#
Nik-Sun/SoftUni-Advanced
/StacksAndQueues/12.FastFood/Program.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; namespace _12.FastFood { class Program { static void Main(string[] args) { int foodAmount = int.Parse(Console.ReadLine()); Queue<int> orders = new Queue<int>(Console.ReadLine().Split().Select(int.Parse))...
bd21d46746d66963c2ec757ec3bebdd40a230e3a
C#
devabdurasul/Restaurant
/Restaurant/Model/Server.cs
3.171875
3
using System; using System.Linq; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Restaurant { public class Server { public List<string> ServeDrinkings = new List<string>(); public List<string> ServeOrders = new List<string>(); public in...
685a21952207a9b3fc5019c093c7501041acfef7
C#
ShaitanIV/EPAM_lab_module
/EPAM module 7/Task 6-1 test/UnitTest1.cs
2.84375
3
using NUnit.Framework; using EPAM_task_6_1; using System; namespace Task_6_1_test { public class Tests { [TestCase("Jhon","+1234",1000,true,true,true, ExpectedResult ="Customer record:Jhon,+1234,1000")] [TestCase("Jhon", "+1234", 1000, true, false, true, ExpectedResult = "Customer record:Jhon...
77a81f77f74d24ee8de9b72646de625a030c9503
C#
MilanMolnar/Codecool_OOP_TW_week5
/Common/Sensor.cs
3.0625
3
using System; using System.Net; using System.Net.Sockets; using System.Xml.Serialization; namespace Common { [XmlInclude(typeof(Measurement))] public class Sensor { public string ID { get; set; } public Measurement MeasurementOfSensor { get; set; } public Sensor() { ...
7c9c339b493eaf2af87b3eb6cff87afea64c6058
C#
swaphack/Unity3D
/Unity3d_Solutions/SanGuo/Assets/Scripts/Game/DownLoad/DownloadTaskSheet.cs
3
3
using System; using System.Collections; namespace Game.DownLoad { /// <summary> /// 下载任务 /// </summary> public class DownloadTask { /// <summary> /// 下载任务 /// </summary> public DownloadItem Item; /// <summary> /// 是否下载完成 /// </summary> public bool IsFinish; /// <summary> /// 是否正在下载 /// </s...
7459673964362bef2e3d0f07de41de48573173f2
C#
cwrs888/PluginsExample
/CodeIn60Seconds List Ext/Program.cs
3
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace CodeIn60Seconds_List_Ext { public interface IPlugin { void Invoke(params object[] param); }//1 public interface ISpeech : IPlugin { } //2 internal class Program { //3...
59690dc99a6a4adbd477f3c2fcf6594ca8466e26
C#
RaphaelFrant/Projet_Biblioth-que
/Projet_Bibliothèque/Modèle/Fonction.cs
3.0625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Projet_Bibliothèque.Modèle { /// <summary> /// Classe Fonction /// /// Ensemble des variables et des méthodes appartenant à la classe Fonction ...
d593a07af677ed0613094be60b59e0cd6c6a6eb1
C#
ryanbishop12/InterfaceExercise
/InterfaceExercise/VehicalFactory.cs
2.640625
3
using System; using System.Collections.Generic; using System.Text; namespace InterfaceExercise { class VehicalFactory { public static ICompanyVehicle GetVehicle(int i) { switch(i) { case 1: return new Car(); case 2: ...
221be67abbf112a8a638383b3973a3e5de87c70e
C#
shendongnian/download4
/latest_version_download2/19961-31712227-96246931-4.cs
3.140625
3
public static void DeleteEmptySubdirectoriesSingleThread(string parentDirectory){ foreach(string directory in System.IO.Directory.GetDirectories(parentDirectory)){ DeleteEmptySubdirectories(directory); if(!System.IO.Directory.EnumerateFileSystemEntries(directory).Any()) System.IO.Directory.Del...
50124aa40f5b5cc4c5b40d35592de78555df72f1
C#
radi81/CSharp
/C# Object-Oriented Programming/Homework-EncapsulationAndPolimorphysm/Shapes/2.BankOfKurtovoKonare/Accounts/Account.cs
3.21875
3
using System; using _2.BankOfKurtovoKonare.Interfaces; namespace _2.BankOfKurtovoKonare { public abstract class Account : IInterestCalculatable, IDeposit { private Customer customer; private decimal balance; private decimal monthInterestRate; protected Account(Customer custome...
c4d92fdcb45a620fdf6c4fc35dd2c71a1334b11c
C#
jeff-adams/TriviaGame
/TriviaGameLibrary/Extensions.cs
2.578125
3
using System; using System.Text; namespace TriviaGameLibrary { public static class Extensions { public static string DecodeBase64(this string input) { var bits = Convert.FromBase64String(input); return Encoding.UTF8.GetString(bits); } } }
2b1c5d2ab6da62975d87d5636baa6b5e1f82396d
C#
mowaro/moSandbox
/MoKakebo/MoKakebo/Dao/Interface/ISummaryDao.cs
2.578125
3
using System; using System.Collections.Generic; using MoKakebo.Model; namespace MoKakebo.Dao.Interface { /// <Summary> /// 摘要DAOインタフェース /// </Summary> public interface ISummaryDao { /// <Summary> /// レコード登録 /// </Summary> /// <param Name="obj">登録対象アイテム</param> ...
3af8f4ec9bc339ed8a0a4a3ef62980c4c211fde5
C#
mazaycheck/INTERN-ASSIGNMENTS
/3. Advanced inheritance & polimorphism/LSP/Program.cs
3.515625
4
using System; namespace LSP { class Program { static void Main(string[] args) { Mouse m1 = new LazerMouse(); Mouse m2 = new TrackBall(); User Oleg = new User("Oleg"); User Vasea = new User("Vasea"); Oleg.BrowseInternet(m1); ...
dfa232c1203aec9ec68b46c74a701386df5b58ef
C#
DavidBrower/CalculatorTester
/CalculatorTester/Calculator.cs
3.796875
4
using System; namespace CalculatorTester { public class Calculator { public decimal Add(decimal firstAddend, decimal secondAddend) { return firstAddend * secondAddend; } public decimal Multiply(decimal multiplicand, decimal multiplier) { return ...
cb87a169b3a04671b8056277a19791a9539be458
C#
lucaSchiavon/Algoritmi
/Algoritmi/Program.cs
3.1875
3
//using System; using Algoritmi.Algoritmi1; using Algoritmi.Algoritmi2; using Algoritmi.Algoritmi2.Esercizi; using System.Collections.Generic; namespace Algoritmi { class Program { static void Main(string[] args) { //array //Array array = new Array(4); //arr...
72b59780dd610bae6ddf9ea1dfe096ddbfe80466
C#
saint-preacher/xt_net_web_2021
/Task_3/Task_3.2_Dynamic_Array/Task_3.2_Dynamic_Array/Program.cs
4.25
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace _3._3 { class DynamicArray<T> : IEnumerable<T> { private T[] _array; //Variables for length and capacity private int _length; private int _capacity; //8. Property gets...
9e99c403c8a1eba50432fe609c88ce805cecf0b7
C#
sirlightsmile/space-shooter
/Assets/Scripts/Spaceship/PlayerSpaceship.cs
2.671875
3
using UnityEngine; namespace SmileProject.SpaceShooter { public enum MoveDirection { Left = -1, Right = 1 } public class PlayerSpaceship : Spaceship { public override SpaceshipTag SpaceshipTag { get { return SpaceshipTag.Player; } } public int PlayerLevel { get; private set; } = PLAYER_INITIAL_LEVEL; ...
b764f3aed14e489ca674fed470a09c9b7fb749ce
C#
aelzeiny/Subdivisionary
/Subdivisionary/Helpers/CustomHtmlHelper.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; using Newtonsoft.Json; namespace Subdivisionary.Helpers { public static class CustomHtmlHelper { public static string RenderListAsHtmlString<T>(this HtmlHelper helper, IEnumera...
ce666b037ed9e0622fb9d7e53bfebe2b374aa92d
C#
Ancimil/offer-cas-0.14.0
/Offer.Infrastructure/Repositories/QuestionnaireRepository.cs
2.5625
3
using Offer.Domain.AggregatesModel.ApplicationAggregate; using System; using MicroserviceCommon.Domain.SeedWork; using System.Linq; namespace Offer.Infrastructure.Repositories { public class QuestionnaireRepository : IQuestionnaireRepository { private readonly OfferDBContext _context; private ...
8eab6532aa1f24ca4888b5b823e5648cf4c7ff6b
C#
konzz/iexpenses
/IExpenses/Tryp.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using Littledb; namespace IExpenses { public class Tryp { private readonly LittleDB _db; public Tryp(LittleDB db) { _db = db; Update(); } public void Initialize(DateTime startDa...
a1f0610dfeb23b6d1fbab34de05fd63f96aa1d0e
C#
JuniorNET-MIMUW/Others
/Expressions/Expressions/Models/Constant.cs
3.046875
3
namespace Expressions.Models { public class Constant : Expression { public double Value { get; } public Constant(double value) { Value = value; } public override double Compute(double x) { return Value; } public static i...
f7909ae3281d10d25ba7cc85e50f1c399cadb226
C#
AnnaRoslan/Pathfinder-
/Project/PathFinder/ReadSaveFile/SaveFile.cs
3.015625
3
using System.IO; namespace PathFinder.ReadFile { internal static class SaveFile { public static void Save(Graph.Graph graph, Path.Path path) { using StreamWriter outputFile = new StreamWriter("../../../../../Result/result.txt"); foreach (var pathPart in path.Steps) ...
4f8de25a3e32d277bb3141837fafb597b4ccc425
C#
belchanskiy/TDWPF
/DBWorker/LogWriter.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace DBWorker { public class LogWriter { public bool writeToLog(string _message) { // Здесь используем конструкцию try-catch, // чт...
b3118f8f0be6e627b1ec6c56eb206a29b473417f
C#
rhkhan/AlgorithmAndDataStructure
/Stack_reverse_using_recursion.cs
3.78125
4
using System; using System.Collections; //using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReverseStack { class Program { static Stack st = new Stack(); static bool isEmpty=false; public static void reverse(Stack st) ...
0cf4e673a97f8acffd7258a2e5f4a91e7a8036ac
C#
SubtitleEdit/plugins
/ColorToDialog/DLL/Logic/HtmlUtil.cs
3.1875
3
using System; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ColorToDialog.Logic { /// <summary> /// HTML specific string manipulations. /// </summary> public static class HtmlUtil { public const string TagItalic = "i"; public const string Tag...
016f707902068a81c69d901b86903d0c87dd0bb7
C#
Cristie/Open-XML-SDK
/src/DocumentFormat.OpenXml/SimpleTypes/SByteValue.cs
2.671875
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics; using System.Xml; // See https://github.com/dotnet/roslyn-analyzers/issues/1671 #pragma warning disable CA1036 namespace Docu...
b3e860acb9a5bf0c7509a4a419f52df19dc32ebf
C#
spolnik/Magiczny_Miecz_Game
/MagicznyMiecz/MagicznyMiecz.GUI/ViewModels/CardViewModel.cs
2.734375
3
using MagicznyMiecz.Common.Core; namespace MagicznyMiecz.GUI.ViewModels { public class CardViewModel : ViewModelBase { private const double DefaultCardWidth = 140; private const double DefaultCardHeight = 240; private readonly ICard _card; public string Description { get { ret...
ec5c8091be909faa5e350527fea5e2f6811f75e0
C#
lilewa/ybs-pc
/tms.WinForm/Formatter/T_CHECKDETAIL.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace tms.WinForm.Formatter { public class T_CHECKDETAIL : IFormatProvider, ICustomFormatter { public object GetFormat(Type formatType) { return this; } public string Format(...
d340c951573eb7b7b97fc38c552eb2dc004b6a91
C#
Ivailo369369/Portfolio
/MyPortfolio.Service/ProjectService.cs
2.609375
3
namespace MyPortfolio.Service { using Microsoft.EntityFrameworkCore; using MyPortfolio.Data; using MyPortfolio.Data.Models; using MyPortfolio.Service.Contracts; using MyPortfolio.ViewModels.BidingViewModels; using MyPortfolio.ViewModels.EditViewModel; using MyPortfolio.ViewModels.ProjectVie...
65f9907ed3ab019a8bbfd501e0f77dd441c0dc21
C#
shendongnian/download4
/latest_version_download2/90317-17167478-42337400-2.cs
2.71875
3
public bool IsValidEmail(string strIn) { invalid = false; if (String.IsNullOrEmpty(strIn)) return false; // Use IdnMapping class to convert Unicode domain names. try { strIn = Regex.Replace(strIn, @"(@)(.+)$", this.DomainMapper,...
b09e77f6108980a8937bc07f829f3de0178bba0d
C#
Sebasdg/Marathon
/Marathon/Services/Engine.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Marathon; using Marathon.Data; using System.Reflection; namespace Marathon.Services { class Engine { private List<GameBehaviourBase> behaviours = new List<GameBehaviourBase>(); public static...
a639e2fb319766e2efa5a3eef84dc6c8927128bf
C#
analogrelay/dotnet-repo
/src/dotnet-repo/VersionControl/VersionControlSystem.cs
2.78125
3
using System.Threading; using System.Threading.Tasks; namespace DotNet.Repo.VersionControl { public abstract class VersionControlSystem { public static readonly VersionControlSystem None = NoVersionControlSystem.Instance; public abstract string Name { get; } public abstract bool IsInst...
304dc697611d751560612bf7f23ec3575c7f876c
C#
EyriCho/Learning
/Leetcode/637.average-of-levels-in-binary-tree.cs
3.5
4
/* * @lc app=leetcode id=637 lang=csharp * * [637] Average of Levels in Binary Tree */ // @lc code=start /** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNode(int val=0, TreeNode left=null, TreeN...