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
2db51ddc59f33e70378d44115f7d409a5e2f9b66
C#
danevincentpainaga/CSharp_Enrollment_System
/New Saa Enrollment System/RoomsClass.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace New_Saa_Enrollment_System { class RoomsClass : Connection { public RoomsClass() { } public void getRooms() ...
ea980b6309799b460894bf13b67ef752c403124b
C#
gizmhail/UniNoco
/Assets/Scripts/Tools/CachedString.cs
2.828125
3
using System; using UnityEngine; using System.Globalization; namespace EasyCaching { public static class CachedStringConstants { public const string expirationDateSuffix = "ExpirationTime"; } public class CachedString { private string id; public CachedString (string id) { this.id = id; } public ...
c5bb964b296f08ffe2c5db1c69af6a0431f27da4
C#
BreezeHub/BreezeProject
/NTumbleBit/PuzzlePromise/ClientRevelation.cs
2.5625
3
using NBitcoin; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace NTumbleBit.PuzzlePromise { public class ClientRevelation : IBitcoinSerializable { public ClientRevelation() { } public ClientRevelation(int[] indexes, uint256 indexesSalt, uint256[] sa...
535d7788f25c574076cb8ccaa7e951ca4841fb16
C#
RafalDembowski/Magazyn2019
/Magazyn2019/Repository/CustomerRepository.cs
2.640625
3
using Magazyn2019.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http.Results; namespace Magazyn2019.Repository { public class CustomerRepository : GenericRepository<Customer>, ICustomerRepository { public CustomerRepository(Magazyn2019Ent...
4619e763b7807577ae7b826e83244f0fed3f250d
C#
LeonBoussen/sysProgrammeren
/Les 1/ConsoleApp1/Program.cs
3.765625
4
using System; namespace ConsoleApp1 { class Program { private class Enemy { public int enemyHealth = 500; public Enemy(int _enemyHealth) { enemyHealth = _enemyHealth; } public void TakeDamage(int damage) ...
5651d589ad581090c56fbb6de9e4d6c26d4bb0e4
C#
rckannan/Quality.DTH
/Infra/Entity.cs
3.078125
3
using System; namespace Quality.DTH { public abstract class Entity { Int32? _requestedHashCode; Int64 _Idbase; public virtual Int64 Idbase { get { return _Idbase; } set { _Idbase = value...
f9890c3a5212a76eb2fee319e4930b07bb090e99
C#
VlSymonenko/ChessOOP
/ChessClient/ChessClient/AddPlayer.xaml.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; 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; using System.Windows.Shapes; ...
7d4790cdc9db3c04232f7cf051df172b535de7db
C#
maksim-zakharov/Sportlance
/Sportlance.WebAPI/Teams/Requests/GetTeamsQueryRequest.cs
2.578125
3
using System.ComponentModel.DataAnnotations; using TeamQuery = Sportlance.WebAPI.Entities.TeamQuery; namespace Sportlance.WebAPI.Teams.Requests { public class GetTeamsQueryRequest { public GetTeamsQueryRequest() { Offset = 0; Count = 10; } public int Of...
0294360d89dce6e74adfe680d8fff8242379706c
C#
budda2/IteaBasicCourse
/Lectures/Лекція 5/Lecture5/Zoo/Food.cs
2.546875
3
namespace Zoo { public class Food { public Food(int callories) { Callories = callories; } public int Callories { get; private set; } } }
5a9b5fe729acb644f4d01e5f3d48ec070e672a29
C#
manuylenko/Smart-House-ASP.NET-MVC-Framework
/SHouseMVC/Models/ComponentsHome/Fridge/Fridge.cs
2.625
3
namespace SHouseMVC { public class Fridge : ElectrDevice, IOpenClose, ISwitchTemp { private DeepFreeze freezer; private int temperature; private bool openClose; public Fridge(int temperature, DeepFreeze freezer, bool onOff, string img) : base(onOff, img) {...
cd9cebc1e44039833daa9a314339a0d48d80ede1
C#
LegendOfTheFox/PDFTronUWPManualConversion
/PDFNetUWPSamples_VS2019/Samples/PDFPageTest.cs
2.578125
3
// // Copyright (c) 2001-2021 by PDFTron Systems Inc. All Rights Reserved. // using System; using System.IO; using System.Threading.Tasks; using Windows.Foundation; using pdftron.PDF; using pdftron.SDF; using PDFNetUniversalSamples.ViewModels; using System.Collections.Generic; namespace PDFNetSamples { public ...
20f78812e55904c0f7b2ba094b77f27578ec3793
C#
Tedward61194/GMSimulator
/Assets/Scripts/Universal/TedsUtilities.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class TedsUtilities// : MonoBehaviour { public static Vector3 ToVector3(string inString) { string outString; Vector3 result; var splitString = new string[3]; // Trim extraniou...
9f25aa3b95954a67ffb309a5707dfefa7d312a25
C#
John0King/ConsoleWebLoad
/src/ConsoleWebLoad/LoadRunner/TestRunner.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace ConsoleWebLoad.LoadRunner { public class TestRunner { private readonly string[] _urls; private readonly object locker = new object(); ...
b4abe622171ed6e846c4ff8d233461b6a358bea8
C#
FICTURE7/CoCSharp
/src/CoCSharp/Logic/InvalidCommandException.cs
3.109375
3
using System; using System.Runtime.Serialization; namespace CoCSharp.Logic { /// <summary> /// The exception that is thrown when a <see cref="Command"/> is invalid. /// </summary> [Serializable] public class InvalidCommandException : CommandException { /// <summary> /// Initial...
dcdd48bd2e65ed48841aabe906a3ee96a801a18c
C#
Guillem96/SocialManager
/SocialManager_Server/SocialManager-Server/SocialManager-Server.Connections/TCPConnection.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SocialManager_Server.Connections { class TCPConnection : Connection { private TcpListener listener; ...
c4831b4676df29261654587325ab12748bb3ecd5
C#
SriLiptaSwain/ang-net
/Car.cs
2.671875
3
using System; using System.Collections.Generic; namespace MyLibrary { public class Car { readonly int Year; public Car(int y) { Year = y; } public string CarName { get; set; } public List<Car> Cars = new List<Car>(); } }
adf660f327af9aab7e71e03a1fedf12e2e9560c1
C#
stoyanovmiroslav/CSharp-Fundamentals
/CSharp OOP Basics/Working with Abstraction - Lab/03.StudentSystem/StudentSystem.cs
3.875
4
using System; using System.Collections.Generic; using System.Text; public class StudentSystem { private Dictionary<string, Student> students; public StudentSystem() { this.students = new Dictionary<string, Student>(); } public void ParseCommand(string input) { string[] args =...
6a53b69517ce330c1b00c615b76cb23df7d1d189
C#
suryanramamurthy/SVMPOC
/TFDFReader/TFUtilities.cs
2.828125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using VSMProject; namespace TFDFReader { class TFUtilities { public static Tuple<Dictionary<int, BinaryReader>, Dictionary<int, long>> GetDocIDMaps(string do...
0a67f771f9e8acbc867791c04e29d1255557b736
C#
RadinaDi/IntegrationTests
/WeatherForecastTests/Extensions/RandomExtensions.cs
3.390625
3
using System; using System.Linq; namespace WeatherForecastTests.Extensions { public static class RandomExtensions { private const string Charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static string NextString(this Random random, int fixedLength = -1, int mi...
4ae8de895136733895f27309ec3288dbac39e86a
C#
medipokur/KattisSolutions
/PigLatin.cs
3.75
4
using System; using System.Collections.Generic; using System.Text; namespace Aah { class Program { static void Main(string[] args) { List<string> inputList = new List<string>(); string inputLine; while ((inputLine = Console.ReadLine()) != null)...
c763fc7faea7ba307d3efa64e3646ee20bfdd561
C#
davidmaamoaix/BallRollingX
/Assets/Scripts/Effect/IEffect.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ImageEffect: IEffect { protected Material Material { get; private set; } public ImageEffect(Material material) { Material = material; } public virtual bool ApplyEffect(RenderTexture from, RenderTextur...
b14ec8c1185e1d1843b40ec9b522e4da24275978
C#
ekurniawan/xamarinyouthspark
/SampleXamarin/SampleXamarin/ListBarangPage.xaml.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace SampleXamarin { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class ListBarangPage : ContentPage { static...
1a877d321e0abc2dc1c0507062f1caa1f521260d
C#
bangush/ArangoDBLite
/ArangoDBLite/AdbDatabaseOptions.cs
3.046875
3
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace ArangoDBLite { /// <summary> /// ArangoDB database options. /// </summary> public class AdbDatabaseOptions { #region Public-Members /// <summary> /// Sharding mode. ...
09d60b61c71f61cce97d7ad659192a6327859c87
C#
nmjmdr/consolebattleships
/com.game.battleships/RandomPlacementStrategy.cs
3.21875
3
using System; namespace com.game.battleships { public class RandomPlacementStrategy : IPlacementStrategy { private static Random rangeRandom = new Random(); private Random randomToss = new Random(); private Grid grid; public RandomPlacementStrategy(Grid grid) { ...
a546eb16c0738fa3693bf42ae57fcfdc8c70b745
C#
YuliyaBytskevich/BSUIR-diploma
/ObfuscationTools/CODE EXAMPLES/Hello_obf.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using a0.a1; namespace a0.a1 { public class a2 { public string a3 { get; private set; } public string a4; private const int a5 = 1; public a2 ( ) { Console.WriteLine ( "constructor" ); }...
04cd97d9bb0142f64bc8fc421624d0bb30d28f92
C#
majze/C-Sharp-Guide
/classes/Person.cs
3.765625
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace classes { class Person { // constructors public Person() { Console.WriteLine("Person created."); } public Person(string initName, int initAge...
4427bfa1f8cbb0be3d7b9bf02c89bceb07070bb7
C#
Brain-Sys/CorsoWpf.AsteroidRusset
/CorsoWpf.AsteroidRusset.DomainModel/Sample.cs
2.859375
3
using System; namespace CorsoWpf.AsteroidRusset.DomainModel { public class Sample { static Random rnd = new Random((int)DateTime.Now.Ticks); public int ID { get; set; } public int Weight { get; set; } public string Code { get; set; } public Sample() { ...
ee31d169207b258c1e0616dc5884c7f4bcc0c440
C#
Studio-14/JungleDash
/Source Code/Assets/Scripts/HealthPack.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HealthPack : MonoBehaviour { //declare health points to give integer public int HealthToGive; //declare collision / activation boolean private bool Activated; // Update is called once per frame void Update () { ...
54e8be6d30b26afe9872a6e33bdd520f11c73175
C#
rojcewiczj/Algorithms-DataStructures-C-
/AlgorithmsCsharp/ValidString/AllPerm.cs
3.34375
3
using System; using System.Collections.Generic; using System.Text; namespace AlgorithmsCsharp.ValidString { class AllPerm { public static string str = "abc"; public static List<string> perms = new List<string> { }; public static void find() { string new_string = ...
b9f93c31285740498506672f557357bb9bfc34d9
C#
dstrucl/Tangenta40
/TANGENTA/LoginControl/AWPChangePasswordForm.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using LanguageControl; namespace LoginControl { public partial class AWPChangePasswordForm : Form { LoginCtrl login_co...
3c87c8cc189f226c22eb1b317de8bcfc0f7955a1
C#
vilisix/snake_game_unity_source
/Assets/Scripts/Coordinates/GameCoordinates.cs
2.875
3
using System; using UnityEngine; using System.Linq; public class GameCoordinates { public static float Step { get; private set; } = 0.5f; public static float GameFieldRadius { get; private set; } = 4.25f; public static float DotRadius { get; private set; } = Step / 2; public static Vector3 GetRando...
d011b1459e6ca8278b743de3a32c81002de29a0e
C#
winprog/aixin_project
/FileSeeker/ConsoleApp1/ConsoleApp1/Program.cs
2.984375
3
using Microsoft.SqlServer.Server; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void U...
802e5eeeaa7e982e0bf7e8a898c2123d8f70621b
C#
daviders98/C-SharpCourse
/Loops/6.NestedLoopsEx/Program.cs
3.65625
4
using System; namespace _6.NestedLoopsEx { class Program { static void Main() { string[] months = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; string[] days = { "Monday", "Tuesday"...
01baa3b9f4fe0d329933ac30ac8957b6d4c47606
C#
cwooz/dotNet_Projects
/DataStructures/DataStructures/Utilities/Utilities.cs
3.484375
3
using System; namespace DataStructures { public static class Utilities { public static void LineBreak(int num) { for (int i = 0; i < num; i++) { Console.WriteLine(" "); } } public static void ConsoleWriteItem(double data) ...
8df52651547cb893d57ba1e3815656783ba4a126
C#
mysteryjeans/Feedbook
/Feedbook/Services/Bitly/BitlyService.cs
2.53125
3
using System; using System.IO; using System.Net; using System.Linq; using System.Text; using System.Collections.Generic; using System.Runtime.Serialization.Json; using Feedbook.Helper; using System.Web; namespace Feedbook.Services.Bitly { internal static class BitlyService { private cons...
1472b8de572cdc9a0513880f5ab63e64037fd04a
C#
ridwanugroho/HTML_new
/Scrapper/Kompas.cs
2.890625
3
using System; using System.Collections.Generic; using HtmlAgilityPack; namespace KompasObj { public class Kompas { HtmlDocument htmlPage; public Kompas(string url) { HtmlWeb page = new HtmlWeb(); htmlPage = page.Load(url); } public List<List<stri...
900927999d1c9e849fcd8eadc941a6bd2b6ea297
C#
henkla/design-patterns
/01-strategy-pattern/C#/strategypattern/Colors/GreenColor.cs
2.78125
3
using strategypattern.Interfaces; using System; namespace strategypattern.Colors { public class GreenColor : IColorStrategy { public void Execute() { Console.WriteLine("My color is Green."); } } }
893f212809647ac2312b62f5eb63f63aabd16096
C#
LavaJones/AFAS-EBC
/Afas.AfComply.Reporting/Domain/TimeFrames/TimeFrame.cs
2.53125
3
using Afc.Core; using Afc.Core.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Afas.AfComply.Reporting.Domain.TimeFrames { /// <summary> /// A Model representing a reporting time...
15b26aca196226e24f68ed59719e99ba7ce30106
C#
spiderbait90/Step-By-Step-In-C-Sharp
/Programming Fundamentals/Data Types and Variables/⦁ Refactor Special Numbers/Program.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace __Refactor_Special_Numbers { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int total = 0; bool lamp=...
5ce7809f17f808a7a7ce4d300af4b1b4c06a0b83
C#
DerSchnurrbart/Samurai_Princess_of_Magic
/Assets/ScoreDisplay.cs
2.671875
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class ScoreDisplay : MonoBehaviour { Text txt; public static int gameScore = 0; private string gameScoreUnits; // Use this for initialization void Start () { txt = gameObject.GetComponent<Text>(); //Uncommment ...
2778cd12263594fd69d83839875ec2a5598e1f44
C#
Arnoldo93/ProyectoAtitlanV1
/AccesoDatos/AdMedida.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using Entidades; using MySql.Data; using MySql.Data.MySqlClient; namespace AccesoDatos { public class AdMedida { // metodos public static DMedida EntidadMedida...
4aa266e3695fa08a65185ef120087ac7eb7773f1
C#
dhamotharang/ServiceBasedBookingsManagementApp
/OnlineBookingAggregatorApp.Infrastructure/Commands/Roles/UpdateRolePoliciesCommand.cs
2.546875
3
using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using OnlineBookingAggregatorApp.Domain.Entities; using OnlineBookingAggregatorApp.Domain.Enums; using OnlineBookingAggregatorApp.Infrastructure.Dtos.PolicyRoles; using OnlineBookingAggregatorApp.Persistence.Data; namespace OnlineBoo...
780e4295522f4d0f021d7d2ab448cc0a9d6ac5f1
C#
miller-alex-github/personal-site
/Ma.Services.Appointments/Models/Appointment.cs
2.796875
3
using System; using System.ComponentModel.DataAnnotations; using System.Diagnostics; namespace Ma.Services.Appointments { /// <summary> /// Represents an appointment. /// </summary> [Serializable] [DebuggerDisplay("{"+ nameof(Date) + "} {" + nameof(Title) + "}")] public class Appointment {...
413be0334f7af60d4feb3a1e23b4bbb7a877bd73
C#
Jack-HUB212/CircleSmasherBuild
/Script/Movement/BombCircle.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BombCircle : MonoBehaviour { private Rigidbody2D RB; Vector3 lastVelocity; public int CountDown = 5; public Text NumberCount; GameManagerSystem GMS; void Start() ...
ada8d0a73aedfd5e856d8b2fa668a2dd8b756a2f
C#
nikitasoima/convert
/convert/Envelope.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Converts { class Envelope { public double X { get; set;} public double Y { get; set;} public Envelope() { } public E...
7d469c34e95a3c4920737778ab72f4f637b248ac
C#
shendongnian/download4
/code1/113485-1917995-3848877-2.cs
3.328125
3
using System; namespace ConsoleApplication11 { class Program { public static Stringg ReturnsTheWrongType() { return null; } static void Main(string[] args) { CallSomeMethodThatDoesntExist();...
582805afd7c8e46167c1c156ba0edb2010b153d5
C#
hypar-io/Elements
/Elements.Benchmarks/Mesh.cs
3.15625
3
using System; using System.Collections.Generic; using BenchmarkDotNet.Attributes; using Elements.Geometry; namespace Elements.Benchmarks { public class MeshRayIntersection { private Mesh _mesh; private List<Ray> _rays; public MeshRayIntersection() { var random = new...
91b8159e933d97d432afb3370a02fd174e462f52
C#
trotyl/CodeHunt-Solution
/CodeHunt/06_Strings/06_03.cs
3.4375
3
using System; using System.Text; public class Program { public static string Puzzle(string s) { var sb = new StringBuilder(); for (int i = 0; i < s.Length; i++) { sb.Append(i == s.Length - 1 || s[i + 1] == ' ' ? char.ToUpper(s[i]) : s[i]); } return sb.ToStrin...
c05d852525816c0f55e6750790cfd4755d49d351
C#
Orvid/Orvid.Graphics.Slim
/Orvid.Graphics/Image.cs
3.0625
3
//#define DebugDraw // If this is uncommented, all triangles will have a set-color border drawn. This is useful to debug polygon drawing code. //#define SqrtWorks // Only uncomment this when the square-root works //#define DebugImageDraw // Draws a blue box around any image that is drawn. using System; using System....
7b41de6c551e3ffbd857d491e9a73f875103aabc
C#
StasAndroniuk/dotNETPrimitives
/dotNetPrimitives/dotNetPrimitives/FileSystem/CustomFile.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotNetPrimitives.FileSystem { public class CustomFile:IFile { public void Delete(string file) { File.Delete(file); } publi...
9fc89c3b6ac35151ca4aa51244ed0a8f90e83d55
C#
FabianAlvaradoDonoso/Proyectos-C-
/Vidacero/Vidacero/Clases/ConexionBDD.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Windows.Forms; namespace Vidacero.Clases { class ConexionBDD { SqlConnection cnn; SqlCommand c...
9c32900c3ae6f2d2df19b777ab177fda469d33a0
C#
rjcarneiro/Rename-Photos
/Carneiro.RenamePhotos/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Media.Imaging; namespace Carneiro.RenamePhotos { class Program { private static string _path; static void Main(string[] args) { try { if (ar...
19d379b1066109f9bef0f84bc8b0e8c72723a687
C#
hach-que/Protogame
/Protogame/Graphics/ICaptureCopyPostProcessingRenderPass.cs
2.625
3
using Microsoft.Xna.Framework.Graphics; namespace Protogame { /// <summary> /// A post-processing render pass which captures the current state /// of the render pipeline as a separate render target. This is /// more expensive than <see cref="ICaptureInlinePostProcessingRenderPass"/>, /// but allo...
763fbe02dd62e64a77f37ae6595185512b17886d
C#
Puchaczov/TQL.CronExpression
/CronExpression/TQL.CronExpression.TimeLineEvaluator/Lists/ComputableLists/EverydayOfWeekComputeList.cs
2.65625
3
using System; using System.Collections.Generic; using TQL.CronExpression.Parser.Utils; namespace TQL.CronExpression.TimelineEvaluator.Lists.ComputableLists { public class EverydayOfWeekComputeList : DateTimeBasedComputeList { private int _daysInMonth; private int _lastMonth; private in...
028511d675608d7d1f554df48e30d16da479b85c
C#
diegoolp/warehouse-inventory-system
/Pruebas_Proyecto_2_Aseguramiento/Pasos/SeleniumSteps.cs
2.515625
3
using System; using TechTalk.SpecFlow; using System.Text; using System.Text.RegularExpressions; using System.Threading; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium.Chrome; using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System.IO; using System.Reflection; namespace Pruebas...
a6778cbcf8002f00d40a5b497a381b1c9ca11ac8
C#
tavope89/LUDALA
/LUDALA/Models/UrlsRssFeed.cs
2.53125
3
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Web; namespace LUDALA.Models { public class UrlsRssFeed { /// <summary> /// Constructor de la clase el cual inicializa todas las Url por Omisión /// </summary> public UrlsRssFe...
e58ba6512a61a59dcf5ead8faa5b6d476df0bd23
C#
jpazarzis/hogar
/Hogar/Hogar/Hogar/Willard/DistanceCollection.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hogar.Willard { static class DistanceCollection { static List<Distance> _distance = new List<Distance>(); static public Distance FindDistanceInfo(double distanceInYards, string surface) ...
824208e3e75a1999dd4e5c23fd8f36f207bae01b
C#
tmpreston/duplicatus
/src/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using CommandLine; using CommandLine.Text; namespace duplicatus { class Program { class Options { // Omitting long name, defaults to name of pro...
32332a3b4ce0bdf6b65dc4277b18b44f2911dac8
C#
kevinsea/Insight.Database
/Insight.Database/PlatformCompatibility/TypeExtensions.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Insight.Database.PlatformCompatibility { #if NET35 || NET40 /// <summary> /// Provides Type.GetType() to .Net 3.5 / 4.0 /// </summary> internal static class TypeExtensionsLegacy { internal static Type GetTypeIn...
cd32009ac58d84bba7a9a70c5e8290c1e5704dce
C#
UpYourAshley/UpYourAshBot
/UpYourAshBotReDo/BotVars.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Newtonsoft.Json; namespace UpYourAshBotReDo { class BotVars { private const string configVarsFolder = "Resources"; private const string configVarsFile = "c...
075047f6a05e399f334f8608e8213dfdc3301ca5
C#
bilal-fazlani/NugetSourceManager
/NugetSourceManager/SourceFile/SourceFileBase.cs
2.796875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Serialization; using NugetSourceManager.Models; using NugetSourceManager.Serialization; using NugetSourceManager.Serialization.Entries; namespace NugetSourceManager.SourceFile { public abstract class SourceFileBas...
55d15d2cb0ccbe7b6afca81555752aa192e65ae3
C#
QualitySolution/QSProjects
/QSWidgetLib/CheckList.cs
2.671875
3
using System; using Gtk; using System.Collections.Generic; namespace QSWidgetLib { [System.ComponentModel.ToolboxItem(true)] public class CheckList : Gtk.VBox { public Dictionary<string, Gtk.CheckButton> CheckButtons; public event EventHandler<CheckListClickedEventArgs> CheckListClicked; public CheckList()...
f984822ecefdefb2f966fc52454ea6a51b287b3c
C#
Rowwbit/Recipe-Rack
/SqliteDataAccess.cs
3.109375
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SQLite; namespace Recipe_Rack { class SqliteDataAccess { /// <summary> /// Checks the SQLite DB and returns all entries. /// </summary> /// <returns>A List of Recipe...
fb161e04b601bed06469ebe789dbf811d1557f3e
C#
zoulei426/MixSystem
/SourceCode/Framework/Mix.Core/Notify/INotifier.cs
2.65625
3
namespace Mix.Core.Notify { /// <summary> /// 通知器 /// </summary> public interface INotifier { /// <summary> /// Informations the specified message. /// </summary> /// <param name="message">The message.</param> void Info(string message); /// <summary>...
8f9601ef886037affe79bdeb372570383d69d296
C#
Esperadoce/Burning
/Burning.DofusProtocol/Network/Messages/ExchangeCrafterJobLevelupMessage.cs
2.53125
3
using FlatyBot.Common.IO; using FlatyBot.Common.Network; using System; namespace Burning.DofusProtocol.Network.Messages { public class ExchangeCrafterJobLevelupMessage : NetworkMessage { public const uint Id = 6598; public uint crafterJobLevel; public override uint MessageId { get { ...
adf0f7bb11880a13ebe2546a5c3349a6b6f6d670
C#
codehz/SharpPdb
/Source/Windows/GSI/GlobalsStream.cs
2.59375
3
using SharpPdb.Windows.SymbolRecords; using SharpUtilities; using System; using System.Collections.Generic; namespace SharpPdb.Windows.GSI { /// <summary> /// Represents PDB globals stream. /// </summary> public class GlobalsStream { /// <summary> /// Cache for counting on bits in ...
d251119911c4352754b0c67668dbaf1ed51b8b7c
C#
fuhaih/Helper
/Helpers.UnitTest/DateTimeHelperTester.cs
2.859375
3
using Helpers.DateTimeExtend; using System; using System.Globalization; using Xunit; namespace Helpers.UnitTest { public class DateTimeHelperTester { [Fact] public void TestMethod1() { Assert.Equal(1,1); } [Theory] [InlineData("2019/10/01 21:59:59.0...
063beadc60b527c24e44e2e673f9f6e2ab9d3f0e
C#
paralin/MatrixServer
/MatrixAPI/Util/Extensions.cs
2.703125
3
using System; using System.Linq; namespace MatrixAPI.Util { public static class Extensions { public static Type[] GetTopLevelInterfaces(this Type t) { Type[] allInterfaces = t.GetInterfaces(); var selection = allInterfaces .Where(x => !allInterfaces.Any(...
a05ce3d0cba1757eecb338b76792165fdd872d82
C#
Crazyers/WebApi
/src/Infrastructure.Utils/Common/StringUtils.cs
2.75
3
/******************************************************************************** ** Company: ** auth: lingyc ** date: 2018/11/29 17:12:37 ** desc: StringUtils类 ** Ver.: V1.0.0 *********************************************************************************/ using System; using System.Collections.Gener...
133c649c2bda5a0d3f012f22841366a0948f3b50
C#
levan0s/Merkantyliusz-barterowy
/MerkantyliuszBarterowy/MerkantyliuszBarterowy/Model/TradeGood.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MerkantyliuszBarterowy.Model.TradeGoods; namespace MerkantyliuszBarterowy.Model { class TradeGood { public TradeGood(string name, TradeGoodType tradeGoodType) { _name = name; ...
b5cec2b9b99be2f1893c2d2c42c95a12913278b2
C#
freedream520/ComponentOne-WinForms-Samples
/NetFramework/Reports/C1Preview.WPF/CS/DemoTables/TableStyles.cs
2.953125
3
using System.Windows.Media; using C1.C1Preview; namespace DemoTables { static partial class MakeDocHelper { static public C1PrintDocument StylesInTables() { C1.C1Preview.C1PrintDocument doc = new C1.C1Preview.C1PrintDocument(); RenderText rtxt = new RenderText(doc); ...
17fc8e3d95e39cd22a696da485c35d67eef530d4
C#
HeldenChill/SoulKnight
/Assets/Scripts/Module/GameMechanism/LookAtModule.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LookAtModule : MonoBehaviour { public Vector3 initScale; bool isWeapon = false; public void Start(){ Vector3 scale = transform.localScale; if(transform.localScale.x != 0) initScale = ...
3eb92f38183f04e5b3065881bb774e451fce1cb4
C#
simonmoreau/elements
/test/ModelTest.cs
2.59375
3
using System; using System.IO; using System.Collections.Generic; using System.Reflection; using Elements; using Xunit; using Xunit.Sdk; using Elements.Geometry; using System.Linq; using System.Diagnostics; using Elements.Serialization.glTF; using Elements.Serialization.JSON; using Elements.Serialization.IFC; namespace...
7ff858c093c3d233ba784de796d372da27d214c0
C#
kaseyhinton/project-euler-csharp
/problems/problem1.cs
4
4
namespace project_euler.problems { public static class Problem1 { /* Problem 1 Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or...
4cc59dc19311afe20b24acf141e2a526d2adfdc6
C#
Burkhardt/RaiImage
/ColorInfo.cs
2.9375
3
using System; using System.Collections.Generic; using System.IO; using OsLibCore; //using Handy.DotNETCoreCompatibility.ColourTranslations; namespace RaiImage { /// <summary> /// ImageMagick compatible Color /// </summary> public class ColorInfo { public static string ColorNamesFile { ...
e3b0cc0c62f3e1fb9b4de65a640e1bd62e973e0a
C#
Akirathan/git_sharp
/GitSharp/Program.cs
2.6875
3
using System; using GitSharp.Commands; using GitSharp.Reference; namespace GitSharp { internal class Program { public static void Main(string[] args) { GitMain(args); } private static void GitMain(string[] args) { Command command = Cli.ParseCommand(args); if (command == null) { PrintHelp(); ...
6bd0a2a5876b40873dd90b265e77431cf8778411
C#
Log77/AirplaneConsoleApp
/Models/Passenger.cs
2.609375
3
using AirplaneApplication.Models; using System; namespace AirplaneApplication { public class Passenger { public String FirstName { get; set; } public String LastName { get; set; } public int Age { get; set; } public PassengerType PassengerType { get; set; } public int S...
a2d2357acb273fe95d46fb9c4c66a01283cbd573
C#
Vladimir030621/CSVParser
/CSVParser/Domain/Repositories/EmployeeRepository.cs
3
3
using CSVParser.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CSVParser.Domain.Interfaces { public class EmployeeRepository : IEmployeeRepository { private readonly EmployeeDBContext context; public EmployeeRepository(Employ...
181dbbfdeeff21c82519b536d07dc3fa645dd2bb
C#
catalinplacinta/SpecFlow
/Runtime/Assist/ValueRetrievers/ULongValueRetriever.cs
2.828125
3
using System; using System.Collections.Generic; namespace TechTalk.SpecFlow.Assist.ValueRetrievers { public class ULongValueRetriever : IValueRetriever { public virtual ulong GetValue(string value) { ulong returnValue; ulong.TryParse(value, out returnValue); ...
cc22aa7b03cecb1ec3a6f74281fb0b70392ec76e
C#
Gliese436b/PassOver
/Assets/Scriptable Objects/Scripts/GameInstance.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public enum ELevelType { LEVEL, MENU } [CreateAssetMenu(fileName = "GameInstance", menuName = "Elias/Game Instance", order = 1)] public class GameInstance:ScriptableObject { public static GameInstanc...
9ce86f6e2d45a309b8e64ea20245852427b3da4d
C#
MrTimeGo/queuebot
/Bot/Models/QueueContext.cs
2.671875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TelegramBot.Models { public class QueueContext : DbContext { public DbSet<User> Users { get; set; } public DbSet<Group> Groups { get; set; } ...
3487c884b47949c05c234d7a1160b9d343f12e1e
C#
sschwarz6042/GolfApp1
/GolfApp1/Views/SplashScreenPage.cs
2.625
3
using GolfApp1.Helpers; using GolfApp1.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xamarin.Forms; namespace GolfApp1.Views { public class SplashScreenPage : ContentPage { private Label spacer; private Entry emailEntry; private E...
862fd1e9b4e6fcfa984d79f4ee1e32eaa71693db
C#
DominikJaniec/BusyTime
/BusyTime/Converter/BooleanVisibilityConverter.cs
3.125
3
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace BusyTime.Converter { class BooleanVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == ...
73294549309d59254d9e85e308fe0d4919d8377e
C#
adriengivry/Unity-Scripts-For-Beginners
/Examples/Assets/Day and Night cycle/Scripts/DayAndNightCycle.cs
3.296875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* * This script aims to provide you a very simple implementation of a day and night cycle for your unity projects * * In order to get this script working, we need a "Directional Lights" gameObject that contains sun and moon. * A direc...
ac3ebd321cad41d29aab0436d2bb70d898fb5409
C#
primitiveconcept/primitive-engine
/PrimitiveEngine/Components/ComponentPool.cs
3.171875
3
namespace PrimitiveEngine { using System; using System.Collections.Generic; /// <summary> /// A collection that maintains a set of class instances /// to allow for recycling instances and /// minimizing the effects of garbage collection. /// </summary> /// <typeparam name="T">...
60172e0b0534e0b84f8ae992a23022a848162277
C#
smaillet-ms/netmf-interpreter
/Test/Platform/Tests/CLR/System/Security/X509Certs/oidtest.cs
2.546875
3
using System; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography ; using System.Security.Permissions ; using System.Security ; using System.IO ; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Collections ; using System.Threadin...
d74ff3fdcd3a4f4f3240f85be3dbd420304c8f39
C#
ImfeldC/NuvoControl
/NuvoControl/Common/NuvoControl.Common/Configuration/Command/Command.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace NuvoControl.Common.Configuration { /// <summary> /// Enum of supported commands /// </summary> public enum eCommand { /// <summary> /// ...
0089176d3987b08b5f72a1a4dc04e35c3275ae55
C#
aual1780/OOP_FinalProject
/Project/TankSim/TankSim.GameHost.CLI/Extensions/ListExtensions.cs
3.046875
3
using System; using System.Collections.Generic; namespace TankSim.GameHost.Extensions { /// <summary> /// /// </summary> public static class ListExtensions { /// <summary> /// Add index support to RemoveAt /// </summary> /// <typeparam name="T"></typeparam> ...
b7dee2627da901320454749da4b29e0e2b7e10a7
C#
StiliyanM/Softuni
/C# Programming fundamentals/Regular Expressions - Exercises/01. Extract Emails/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _01.Extract_Emails { class Program { static void Main(string[] args) { var pattern = @"(?<=\s)[a-z0-9]+([-\.]\w*)*@[a-...
9c98efd3703dafc8c1470bb2c88bf75b978660a5
C#
hashbrown0707/DBG
/Assets/Script/Dialogue/DialogueManager.cs
2.59375
3
using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using CardSystem; using Utility; namespace DialogueSystem { public class DialogueManager : Singleton<DialogueManager> { [Tooltip("整個對話顯示的母物件")] public GameObject dialogueDisplay; [Tooltip("顯示對話的Te...
6a74d990b760757b137b13125eaee237e931e854
C#
James-Kirk/CSSDImplementation
/CSSD_Transport/CSSD_Transport/Tokens/SetOfTokens.cs
3.109375
3
using CSSD_Transport.Accounts; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace CSSD_Transport.Tokens { [Serializable] public class SetOfTokens { private List<Token> tokens = new List<Token>(); private static SetOfTokens instance; public SetOfTokens() { ...
775c4173918b53dfa343a39b46c18e874479057a
C#
HekunX/EazyPageQuery
/src/EazyPageQuery.Basic/JudgeAttribute.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; namespace EazyPageQuery.Basic { /// <summary> /// 如何判断数据类型 /// </summary> public enum JudgeType : int { /// <summary> /// 大于(greater than) /// </summary> gt = 0, /// <summary> /// 等于...
f467692d188cb5da6e6408fcd51e5b5e52eabd7e
C#
tankc07/GitHubSharp
/GitHubSharp/Models/IssueModel.cs
2.640625
3
using System; using System.Collections.Generic; namespace GitHubSharp.Models { public class IssueModel { public string Url { get; set; } public string HtmlUrl { get; set; } public long Number { get; set; } public string State { get; set; } public string Title {...
27fd1b9e7637ca37dffe8f3795f29770d7f2a0e2
C#
venturousman/S7.Net-example
/HmiExample/Models/ChartViewModel.cs
2.53125
3
using LiveCharts; using System; namespace ProductionEquipmentControlSoftware.Models { public class ChartViewModel : ObservableBase { private string _machine; private SeriesCollection _seriesCollection; private string[] _labels; private Func<double, string> _formatter; ...
efa31bbc7df6102318f57f986e56c9c5ddc429c5
C#
3203317/MyREST
/Foreworld.Utils/DescribeAttribute.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; namespace Foreworld.Utils { public class DescribeAttribute : Attribute { public DescribeAttribute(string name) { _name = name; } private string _name = string.Empty; private string _version...
dde21f3abf0c6409a00e46b0f8ec7728ea31ad64
C#
BurnOutDev/Kasa.ge
/DotNET SDK/KasaGE_3.5/Responses/GetLastFiscalEntryInfoResponse.cs
2.78125
3
using System; using System.Globalization; using KasaGE.Core; namespace KasaGE.Responses { public class GetLastFiscalEntryInfoResponse : FiscalResponse { public GetLastFiscalEntryInfoResponse(byte[] buffer) : base(buffer) { var values = getDataValues(); if (values.Length == 0) return; nRep =...
a46585829b8b21c19d3baf6c2e056470f090005c
C#
DomoYao/EnterpriseLibary
/Enterprises.Framework.Business/Plugin/Office/Converters/DocumentService.cs
2.546875
3
using System; using System.Collections.Generic; using Newtonsoft.Json.Linq; namespace Enterprises.Framework.Plugin.Office.Converters { /// <summary> /// 文档保存数据库服务 /// </summary> public class DocumentService { private static readonly DocumentService _instance; private DocumentServ...
29117bc483ac46860823055db830a459640aa373
C#
WillMon23/GameJam_Oct_21
/GameJam_Oct_21/Player.cs
3.03125
3
using System; using System.Collections.Generic; using System.Text; namespace GameJam_Oct_21 { class Player : Entity { private int _healingPotion; public int HealingPotion { get { return _healingPotion; } set { _healingPotion = value; } } public Player(int healingPotion, string name, ...
180fb0529f29658fa9639c6880d4f4e7f6022afd
C#
0xf4vul/Source-code-paid-software
/nord/NordVpn.Application.Converters/FirstLetterConverter.cs
2.609375
3
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace NordVpn.Application.Converters { public class FirstLetterConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (string.IsNullOrEmpty(val...
d4170ccab31b24353de340bd55c1eddb05b87541
C#
Norgerman/FtpClient
/FtpClient/DataModel/FtpFile.cs
2.96875
3
using System; using System.Globalization; namespace FtpClient.DataModel { delegate FtpFile Parser(string ftpFileString); public class FtpFile { public static readonly FtpFile PreDir; private static Parser CurrentParser; public string Name { set; get; } public string Size {...