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 |
|---|---|---|---|---|---|---|
b9d26f70e2779edf63f17d9eaf81ba32c564ea5d | C# | sfroes/Merchant-Guide-To-The-Galaxy | /MerchantGalaxy/Util/Conversores/ConvertInteirosRomanos.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Util.Exceptions;
namespace Util.Conversores
{
public class ConvertInteirosRomanos
{
List<int> listaNumeroInteiros = new List<int>() { 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9,... |
a6b7cccdc210e430b49776e8ce982e4e104111e9 | C# | PragmateekTraining/FormationDotNet | /CERSamples/StackOverflowSample.cs | 2.78125 | 3 | using SamplesAPI;
using System;
using System.Runtime.CompilerServices;
namespace CERSamples
{
public class StackOverflowSample : ISample
{
bool withoutCERHasRunFinally;
bool withCERHasRunFinally;
// [PrePrepareMethod]
void BlackHole()
{
BlackHole();
... |
b1feea0f2e7e678c630c183c728e656a118beb4f | C# | zeriyaz/WebAppCC | /ServerApp/WebAppCryptoCurrency/WACC.BAL/Services/CurrencyService.cs | 2.53125 | 3 | using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using WebAppCryptoCurrency.WACC.BAL.Configuration;
using WebAppCryptoCurrency.WACC.BAL.Interface;
using WebAppCryptoCurrency.WACC.BAL.Model;
namespace WebAppCryptoCurrency.WACC.BAL.Service
{
... |
3f3463678b6b6d9c68838f716ec9e16762d4ff36 | C# | ududsha/Desktop_Sharing | /DesktopSharing_Viewer/Connect.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Windows.Forms;
namespace DesktopSharing_Viewer
{
public partial class Connect : Form
{
public Connect()
{
... |
2915ebbd66a826f80b4bde29a53183bb5c74e0bd | C# | little-apps/NtfsSharp | /NtfsSharp.Drivers/VhdDriver.cs | 2.625 | 3 | using System;
using System.IO;
using System.Runtime.InteropServices;
using NtfsSharp.Drivers.Physical;
using NtfsSharp.Drivers.Vhd.Data;
namespace NtfsSharp.Drivers
{
public class VhdDriver : BaseDiskDriver
{
private long _currentOffset = 0;
private readonly ulong _maxSizeBytes;
priva... |
0ec9839543ad3951b3ef8a4a444020d00b0aa4ca | C# | Akumanory/EPAM_Ext_Lab_Q4_2017_Urakov_Dmitry | /HWT_03/Task03/Program.cs | 4.125 | 4 | namespace Task03
{
using System;
public class Program
{
/*
Написать программу, которая определяет сумму неотрицательных элементов в одномерном массиве.
Число элементов в массиве и их тип определяются разработчиком.
*/
public static void Main(string[] args)
... |
deffcb41479bc401a2e5481ddaa093b74cebe158 | C# | szymski/SimpleConsoleGame | /SimpleConsoleGame/Source/Entities/Coin.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleConsoleGame.Source.Entities
{
class Coin : Entity
{
public override char Character => 'C';
public override ConsoleColor Color => ConsoleColor.Yellow;
pub... |
28b3ca597adc675ecbc52e3b66190961cbc63c03 | C# | Tatobsz/HouseManager | /HouseManager.Dominio/Entidades/Usuario.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace HouseManager.Dominio.Entidades
{
public class Usuario : EntidadeBase
{
public String Login { get; set; }
public String Senha { get; set; }
public DateTime DataDeNascimento { get; set; }
public Usuario... |
97dcf5ec503ddb44c3724a2b3bc8aa44cc60085f | C# | DoughBoiKush/RS-Unity-1 | /Assets/RS/scene/InteractiveObject.cs | 2.9375 | 3 | namespace RS
{
/// <summary>
/// Represents an interactive object within the scene.
/// </summary>
public class InteractiveObject : SceneObject
{
/// <summary>
/// The unique id of this object.
/// </summary>
public long UniqueId;
public object Node;
... |
38ed5d8049b188c771bf5110d572fbb8c10052e4 | C# | guochao2299/LogManage | /LogManage/LogAnalysis/GraphPart.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Text;
namespace LogManage.LogAnalysis
{
/// <summary>
/// 表示图标中的一个组成部分
/// </summary>
internal sealed class GraphPart
{
private object m_tag = null;
public object Tag... |
d4ff9e74f393f7dd323127e5027cd095e67bd90a | C# | tavisca-rgupta-2019/Rover | /MarsRover.Tests/RoverFixture.cs | 2.90625 | 3 | using System;
using Xunit;
using FluentAssertions;
namespace MarsRover.Tests
{
public class RoverFixture
{
[Fact]
public static void Check_Extreme_Cooridates_Tests()
{
Rover rover = new Rover();
rover.Tell("5 5");
Assert.Equal("5 5", rover.map.GetRange... |
50d69c42cb9f29aec7872aa066adf9a03ea01126 | C# | douglaswcastro/Maquinha-de-Cafe | /ProvaPOO/Capsula.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
namespace ProvaPOO
{
public class Capsula
{
public string tipo, tipocap;
public Capsula()
{}
public void Fazercafe(ref int quantagua,ref int quantacucar)
{
Console.WriteLine("informe qual a capsula que... |
dfc9286daf4b2903794ecf672b91c3a133b81b71 | C# | tianlmn/myfirstmvc5 | /DataAccessLayer/DatabaseSettings.cs | 2.625 | 3 | using System.Data.Entity;
using BusinessEntities;
namespace DataAccessLayer
{
public class DatabaseSettings
{
public static void SetDatabase()
{
Database.SetInitializer(new PokemonDatabaseInit());
using (var context = new PokemonDal())
{
cont... |
8a9c1546838ff1b2e44a6bc4e11013f85a93fe20 | C# | siof/wpfcalendar | /calendar/RepeatableTask.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace calendar
{
public enum TaskRepeatType
{
[DescriptionAttribute("Disabled")]
TASK_REPEAT_NONE = 0,
[DescriptionAttribute("Daily")]
... |
108c56c0d89c3106ef0da3ddb691bbb3b165ef00 | C# | AqilSafarov/Hospital-management | /labostic/Labostic.Services/Repository/Check.cs | 2.6875 | 3 | using Labostic.Services.Repository.IRepository;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Labostic.Services.Repository
{
public class Check : ICheck
{
private readonly AppDbContext _context;
public Chec... |
6506941708cb953c4c88d3f8bba841a3ba660024 | C# | shendongnian/download4 | /code5/903503-26998254-77934058-2.cs | 3.0625 | 3 | /// <summary>
/// Gets the automation identifier of underlying element.
/// </summary>
/// <returns></returns>
public static string GetTheAutomationIDOfUnderlyingElement()
{
string requiredAutomationID = string.Empty;
System.Drawing.Point currentLocat... |
9fb4d33fcb19820c0d23aa9b67ecbf2d95862515 | C# | shendongnian/download4 | /first_version_download2/593196-57651463-204154570-2.cs | 3.046875 | 3 | public class Role
{
public Role(string name, int value)
{
Name = name;
Value = value;
SubRoles = new List<SubRole>();
}
public string Name { get; set; }
public int Value { get; set; }
public List<SubRole> SubRoles { get; set; }
... |
a34c19dafa0406cf65845c625434eee258534722 | C# | owenmiller8/GameEngine | /GameEngine/PlayerMovement.cs | 2.875 | 3 | using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameEngine
{
public class PlayerMovement : ActorMovement
{
public PlayerMovement(Actor actor, float acceler... |
f58ce8ea2fb75dcd5ddafa6cbc134e83c5673ba3 | C# | csharpspecialist/GP | /Tic1OK/ListPracticeAgain/Program.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace ListPracticeAgain
{
class Program
{
static void Main(string[] args)
{
string[] pieces = { "1", "2", "3"... |
61e06aa3fc21498778f5673cc41bf1bab17e054a | C# | chuxuantinh/Software-Dev | /01.Programming-Basics/05.Conditional-Statements-Exercise/summingSeconds/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace summingSeconds
{
class Program
{
static void Main(string[] args)
{
int competitor1Sec = int.Parse(Console.ReadLine());
int competitor2Sec = int.... |
06a1544dc14c431b7ba7a0d69562b1772108038a | C# | kiruhin/WebStore_2020 | /Services/WebStore.Services/ErrorHandlingMiddleware.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace WebStore.Services
{
public class ErrorHandlingMiddleware
{
private readonly RequestDelegate _next;
private static readonly log4net.ILog Log =
... |
0a5200f16ed9b520634c01bfb540eee3fd7f6eb3 | C# | specimen90868/Cominvi | /Complementos.Core/ComplementoHelper.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Complementos.Core
{
public class ComplementoHelper : Data.Obj.DataObj
{
public List<Complemento> obtenerComplemento(Complemento c)
{
Data... |
89bbb68132829f9c0980e314239330833c178aaf | C# | SapkotaIshwor/MarkingStudents | /Artifacts/IshworRanaThapa/Application/StudentInformationSystem/StudentInformationSystem/HomePage.xaml.cs | 2.59375 | 3 | using System.Windows;
namespace StudentInformationSystem
{
/// <summary>
/// Interaction logic for HomePage.xaml
/// </summary>
public partial class HomePage : Window
{
public HomePage()
{
InitializeComponent();
}
private void AddStudent_Click(object se... |
c2a2091733fc486d41c934c721a8e76c09972272 | C# | jpatto416/CS-Weather-App | /Weather_Broadcast/Weather_Broadcast/MainWeatherForm.cs | 2.609375 | 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 Weather_Broadcast
{
public partial class MainWeatherForm : Form
{
private Weat... |
f8aabe71adcde6a0c124dc771a3cff22d1d98fa8 | C# | StollD/sorting | /ISort.cs | 2.53125 | 3 | /*
* Benutzer: admins
* Datum: 04.05.2017
* Zeit: 10:01
*/
using System;
using System.Collections.Generic;
namespace Sortieralgorithmen
{
/// <summary>
/// Implementiert eine Schnittstelle für Sortieralgorithmen
/// </summary>
public interface ISort
{
IList<T> Sort<T>(IList<T> sort) w... |
eb47fe4c3f71da96855d8e9343a67e19b5a42371 | C# | Kirillrz/All-Homework | /OOP_Entity/OOP_Entity/Chel.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP_Entity
{
public class Chel:Ml
{
public Chel(int age) : base(age)
{
}
public override void Move()
{
Console.WriteLine("Движение... |
835227e7ba577f8064afb6bd8aefaf295021fef7 | C# | ipuhakka/liiga | /Liiga/src/Database.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
namespace Liiga
{
public class Database
{
private string db_schema;
private string db_testdata;
private string connectionString;
public void set_db_schema(string path) { db_schema = path... |
dc1677f2289a8b543ce7e9c8dfe6cf9b87e1d248 | C# | krisatlanta/ASP.NET_project | /bookshop1.1/bookshop1.1/DAL/DataSetOperate.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
namespace bookShop.DAL
{
public class DataSetOperate
{
// 建立DataTable表间的关系
// ds: 需要建立关系的DataSet
// primaryTableName: 主键表名称
// foreignTableName: 外键表名称
/... |
10ef6108d435088301f4ceb1dd065bce5bda20fc | C# | inonoa/linkblink | /Assets/Scripts/Tweeter.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using System.Runtime.InteropServices;
public class Tweeter : MonoBehaviour
{
[SerializeField, Tooltip("`[score]`でスコアが入るよ, `[seq]`でシーケンス名が入るよ, `[stage]`でステージ名が入るよ"), Multiline(10)]
string twe... |
bc1205cac17d56d49f1177443d298c3074eed67e | C# | Yilehan/Yilehan | /TankWar/TankWar/Tank.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace TankWar
{
class Tank
{
private int x, y;
public int Y
{
get { return y; }
}
public int X
{
get { return x; }
... |
623abee7e801c0b5662a90fac54d510970c7a99c | C# | bss9395/bss9395.github.io | /_en/Computer/Operating_System/C#_Standard_Library/CS_Type_IsDefined.cs | 2.796875 | 3 | /* CS_Type_IsDefined.cs
Author: BSS9395
Update: 2022-06-05T17:42:00+08@China-Shanghai+08
Design: C# Standard Library: Type.IsDefined()
*/
using System;
class CS_Type_IsDefined {
[AttributeUsage(AttributeTargets.Class)]
sealed class DecorateAttribute : Attribute {
public String _description = "";
... |
2bb498db0324e06e6b981941b6360d2d24419a4d | C# | ivanvb/SoapyGame | /Assets/Scripts/Controllers/LevelLoader.cs | 2.671875 | 3 | using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using System;
using System.Collections;
/**
* Puts the cards in their corresponding position for the current level, also flips them for a brief
* amount of time so the user can see where each card is.
*/
public class LevelLoader : MonoBehavio... |
b142b3fc81fd53b3925b60737778106560a53c1f | C# | itcherokee/TelerikAcademy | /Programming/02.CSharpPartTwoold/2.MultidimensionalArrays/4.BinSearch/BInSearch.cs | 4.125 | 4 | using System;
public class BInSearch
{
// Write a program, that reads from the console an array of N integers and an integer K,
// sorts the array and using the method Array.BinSearch() finds the largest number in
// the array which is ≤ K.
public static void Main()
{
Console.Title = "B... |
10ecb777ccab691989d9d9e0e2734a52fd458c17 | C# | mkramar/dizzyrobot | /Driver/Driver/Bridge.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Driver
{
class Bridge
{
private int _offset = 0;
private const string Url = "http:... |
14f8e4a85a765fd044b7d2a3388424f28e2082fc | C# | ozvered/WpfApplication1 | /Day.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WpfApplication1
{
class Day
{
//Fields:
string hebDate;
string gregorianDate;
string weekDay;
string specialTitle;
//Properties:
public string hDate { get ... |
32c008c76185f9f5ddb10d2adc2bc3aaba38dcbe | C# | IBelieveICanCode/ICAO | /AlphabetICAO/Assets/Scripts/ICAO.cs | 2.859375 | 3 | using System.Linq;
using System.Collections;
using System.Collections.Generic;
using Adminka;
using UnityEngine;
using UtilityScripts;
public class ICAO {
private static readonly Dictionary<string, string> Alphabet = new Dictionary<string, string>
{
{"A", "Alpha" },
{"B", "Bravo" },
... |
6232bdfc9dd1650fa980cf1d2d8a0ef9b6a27fb2 | C# | Exide-PC/ConfigMaker | /ConfigMaker/Mvvm/Models/InputItemsControllerModel.cs | 2.953125 | 3 | using System;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
namespace ConfigMaker.Mvvm.Models
{
public class InputItemsControllerModel: EntryModel
{
string _input = string.Empty;
bool _addButtonEnabled = false;
bool _deleteBut... |
cd23d6c2b337d6aabcb7c3aa100c5c9bd9a4bb86 | C# | emersonschulze/CSharp-Livro | /Capitulo6/Capitulo6/Form1.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Capitulo6
{
public partial class Form1 : Form
{
DinnerParty dinn... |
b69de8f9cbbb24fccc1d723f88e9c2ab82dd2014 | C# | LiminalVR/LiminalSdk-UnityPackage | /SDK/VR/Devices/Emulator/EmulatorDevice.cs | 2.546875 | 3 | using Liminal.SDK.VR.Avatars;
using Liminal.SDK.VR.Input;
using System;
using System.Collections.Generic;
namespace Liminal.SDK.VR.Devices.Emulator
{
/// <summary>
/// A class representing the emulator device type.
/// </summary>
public class EmulatorDevice : IVRDevice
{
/// <summary>
... |
1b7bded591cdbae804c50cec003a6fe479bdc279 | C# | pgovind/issuesof.net | /src/IssueDb/Eventing/GitHubEventPayloadName.cs | 2.9375 | 3 | using System;
using System.Globalization;
namespace IssueDb.Eventing
{
public sealed class GitHubEventPayloadName : IComparable, IComparable<GitHubEventPayloadName>
{
public GitHubEventPayloadName(string org, string repo, DateTimeOffset timestamp, string delivery)
{
Org = org;
... |
8b9df4724f4ae77bbdb0fac789dc67e9e04dbeeb | C# | nillertron/QxlServer | /QxlServer/Auction.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace QxlServer
{
class Auction
{
public Vare CurrentVare { get; }
public double CurrentBid { get; private set; }
public Auction()
{
CurrentVare = new Vare { Name = "Vase... |
08319e72a31b39662942bb8e490b0b6e1566c5fd | C# | marihachi/WodiLib | /WodiLib/WodiLib/Event/EventCommand/Implement/KeyInputAutoBasic.cs | 2.5625 | 3 | // ========================================
// Project Name : WodiLib
// File Name : KeyInputAutoBasic.cs
//
// MIT License Copyright(c) 2019 kameske
// see LICENSE file
// ========================================
using System;
using System.ComponentModel;
using System.Text;
using WodiLib.Project;
using... |
d5fa81340e9c4b3e44bdbdc614be8af61fad4289 | C# | dmelinosky/AspNetCore.Identity.AzureTable | /src/Role.cs | 2.515625 | 3 | // <copyright file="Role.cs" company="Gobie74">
// Copyright (c) Gobie74. All rights reserved.
// </copyright>
namespace Gobie74.AspNetCore.Identity.AzureTable
{
using System;
using System.Diagnostics.Contracts;
using Gobie74.AspNetCore.Identity.AzureTable.Contracts;
using Microsoft.Azure.Cosmos.Tabl... |
9a0b903b6fcbf7f4618fc75a61189d4731299124 | C# | joe1545134/UnityLockStepDemo | /LockStepDemo/Server/LockStepDemo/LockStepFrameWork/Reflect/ReflectTool.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
public class ReflectTool
{
public static Type[] GetTypes()
{
return Assembly.GetExecutingAssembly().GetTypes();
}
public static string ProjectPath
{
get
{
... |
16a112d76ef174d1714e5a12b2e9c7a91e56a9b6 | C# | savithande/C-_OOP-s_Conceppts | /Opps_Concepts_practice/Parent.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Opps_Concepts_practice
{
class Parent
{
public string name;
public string place;
public string child_Name;
public string phoneNumber;
//Contructor
public Parent(string native... |
addc692abc39d37952a74da5ae62432907c159e1 | C# | brandoncimino/brandon-utils | /Packages/BrandonUtils/Runtime/Refreshing/Per.cs | 2.75 | 3 | using System;
namespace BrandonUtils.Refreshing {
public static class Per {
/// <summary>
/// Constructs a new <see cref="Frame{T}"/>.
/// </summary>
/// <param name="valueSupplier"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public... |
f34806b7716d85583df72c44269c9305cbe29a5d | C# | A-Souvlaki/gmap-load-dataset | /GMap_Load_DataSet/Model/Office.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GMap_Load_DataSet.Model
{
public class Office
{
public string Ubication { get; }
public string Phone { get; }
public string Email { get; }
pub... |
e406e9eb8f34295512beaf23e2d563fb4f76ac2b | C# | HagarDuNord/exoBibliotheque | /exoBibliotheque/Models/DataAccess/BddBouchon.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace exoBibliotheque.Models.DataAccess
{
/*
* Dans cette premiere version. On crée la base de manière statique
*/
public sealed class BddBouchon : IBdd
{
private static BddBouchon instan... |
7beac4c4fa981d0a11cb74ce4f69948e4ed5f115 | C# | Sanqiang/Algorithm-Win | /Algorithm/Microsoft/Q51.cs | 3.71875 | 4 | /*
Microsoft.Q51.printAllAddition(15);
*/
namespace Algorithm.Microsoft
{
class Q51
{
public static void printAllAddition(int n)
{
int Left = 1;
int Right = 2;
int currentSum=Left+Right;
while (Left <= n / 2 + 1)
... |
734ecdcc1d5f13028503eee9d95983198e2c1279 | C# | EZhitnikovich/Problem-Solving | /Staircase/Program.cs | 3.9375 | 4 | using System;
namespace Staircase
{
class Program
{
static void Main(string[] args)
{
int len = int.Parse(Console.ReadLine());
char rungSymbol = '#';
char surroundingSymbol = ' ';
Console.WriteLine(MakeStaircase(len, rungSymbol, surroundingSymbol... |
70a6259e59e52a1a2a75fc0aadccb3d59d4ce068 | C# | ErickVO/Tareas-de-Programacion-Aplicada | /EjercicioNombres/EjercicioNombres/Program.cs | 2.734375 | 3 | using System;
namespace EjercicioNombres
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Erick Vicente");
Console.Write("Objects of the Class: ");
Console.Write("Door");
Console.Write(", Window");
}
... |
7db4f6c80dc97ad8177ad33ab1e6b7bb6c17e275 | C# | samcragg/Crest | /src/Crest.Core/LinkCollection.cs | 2.921875 | 3 | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
namespace Crest.Core
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Crest.Core.Util;
/// <summary>
... |
4057e74ac5d077441529b2c941ab9ab925995164 | C# | ivanandriska/PNBTest | /CaseBusiness/Framework/Mail/EnviaEmail.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Mail;
using System.Net;
using System.IO;
using System.Collections;
namespace Framework.Mail
{
public class EnviaEmail
{
SmtpClient smtpClient;
public SmtpClient SmtpClient
{
get { return sm... |
88894da518051bf28325091036f90ee64627b50e | C# | lorodin/Match3TestGame | /Math3TestGame/Models/BonusEffects/LineBonusEffect.cs | 2.671875 | 3 | using Math3TestGame.Models.GameModels;
using Math3TestGame.Models.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Math3TestGame.Models.BonusEffects
{
public delegate void BeforeLastStep(LineBonusEffect effect);
public c... |
209201ced69ac54328c5bc6a9c1ac9e54084a025 | C# | swoog/Dommy | /Dommy.Business/ISpeechToText.cs | 2.625 | 3 | //-----------------------------------------------------------------------
// <copyright file="ISpeechToText.cs" company="TrollCorp">
// Copyright (c) agaltier, TrollCorp. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Dommy.Business
{
u... |
c6f05d365df10fef5d9b1f1c5fffed53030d8186 | C# | PothuluruMahesh/oopsConcept | /Const3.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOPs
{
public class Emp
{
public Emp()
{
Console.WriteLine("Default Constructor Invoked");
}
}
class Const3
{
public static void... |
bd9aa39878c997fd8c6d7cee24177ce10c412163 | C# | MaxxWyndham/ToxicRagers | /ToxicRagers/CarmageddonReincarnation/Helpers/LUAScript.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ToxicRagers.CarmageddonReincarnation.Helpers
{
public enum LUAScriptPropertyType
{
String,
Float,
Int,
Boolean,
Table
}
public abstract class LUAScri... |
86dba1d22adec12f1cfacac86eef863d078c4837 | C# | raff766/TCP-Server-Client | /ChatClient.cs | 3.328125 | 3 | using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
class ChatClient {
public const string ServerAddress = "localhost";
public const int Port = 2020;
public const string Name = "Test";
private TcpClient server;
static void Main(... |
84cc806572399082c437c2b479ef8e434122ba32 | C# | samlinz/riistatunnistus | /RiistaTunnistusOhjelma/SoundTool.cs | 2.71875 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Media;
using BackEnd;
using log4net;
namespace RiistaTunnistusOhjelma {
/// <summary>
/// Class for playing sound effects.
/// </summary>
internal class SoundTool {
private static readonly ILog Log... |
922832b4d2db0b6b605555658d94708c40f3afc5 | C# | ewgeni-dinew/06.C_Sharp-OOP_I | /C_Sharp-Advanced/04.FunctionalProgr/03.CustomMin/StartUp.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _03.CustomMin
{
class StartUp
{
static void Main(string[] args)
{
var input=Console.ReadLine()
.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
.Select(int.... |
30b32fbb671951755168a48eda124f0e638a75a8 | C# | slashP/PairTyping | /TwoType/Controllers/HighscoreController.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Http;
using TwoType.Models;
using System.Configuration;
namespace TwoType.Controllers
{
public class HighscoreController : ApiController
{
priv... |
637f3031e68cb853084de721bb5a3d4265355472 | C# | SekulKamberov/Telerik-Academy | /C# OOP/Defining-Classes-Part-II/01.CreateStructure/GenericList.cs | 3.828125 | 4 | namespace _01.CreateStructure
{
using System;
using System.Collections.Generic;
using System.Linq;
public class GenericList<D> where D : IComparable
{
private const int DefaultSize = 32;
private D[] genericArray;
public GenericList()
{
this.genericArray... |
baa4554338f13181b42032a35e425383ff29dfab | C# | RichardMarks/UnityCodingDemo | /Assets/Scripts/ScoreKeeper.cs | 2.765625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class ScoreKeeper : MonoBehaviour
{
private TextMeshProUGUI text;
public int score = 0;
private void Awake()
{
text = GetComponent<TextMeshProUGUI>();
UpdateText();
}
public voi... |
0451a9c97f737e0ed19ffd4cb63e9f0ba73f4e6a | C# | shendongnian/download4 | /code7/1300504-34922272-108963671-4.cs | 3.171875 | 3 | public class Program
{
public static void Main()
{
Foo fc = new Foo();
var required = fc.GetType().GetCustomAttributes(typeof(ImportParameter), true)
.Select(p => ((ImportParameter)p).Required).ToList();
required.ForEach(Console.WriteLine);
}
}
public class ImportParameter ... |
b3078f42e171853cb6f8adde4f933a697264aacf | C# | Petsuri/xamarin-store | /Store.Domain/ViewModel/ViewModelBase.cs | 2.890625 | 3 | using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Input;
namespace Store.ViewModel
{
public class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected bool SetProperty<T>(ref T curren... |
947327fed500c2c58976012fac4839a130d566df | C# | ViniciusDevOficial/AulaCSV29 | /Program.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
namespace Aula_27_28_29_30 {
class Program {
static void Main (string[] args) {
Produto p1 = new Produto ();
p1.Codigo = 3;
p1.Nome = "Left 4 dead 2";
p1.Preco = 3.99f;
p1.Cadastrar (p1);
... |
f1c8be76079dd212840a95a3c55c1f4e086d565a | C# | phx13/LeetCodeCSharp | /155最小栈/Program155.cs | 3.65625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _155最小栈
{
//设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。
//push(x) —— 将元素 x 推入栈中。
//pop() —— 删除栈顶的元素。
//top() —— 获取栈顶元素。
//getMin() —— 检索栈中的最小元素。
//示例:
//输入:
... |
25b4fd1a88620228329981c7d7ff8061a9208784 | C# | aidevnn/DustLore | /DustLore/Layers/PoolingLayer.cs | 2.71875 | 3 | using System;
using System.Linq;
using DustLore.Optimizers;
using NDarrayLib;
namespace DustLore.Layers
{
public abstract class PoolingLayer
{
protected PoolingLayer((int, int) poolShape)
{
this.poolShape = poolShape;
}
protected readonly (int, int) poolShape;
... |
8498082fe903c9d84f33765a88a0d73eb65f7474 | C# | leeone212/api.pvpgn.pro | /WebAPI/BnetHash/PvpgnHash.cs | 3.015625 | 3 | using System;
using System.IO;
using System.Text;
namespace WebAPI.BnetHash
{
/**
* C# implementation of the PvPGN Password Hash Algorithm.
* Copyright 2011 HarpyWar (harpywar@gmail.com)
* http://harpywar.com
*
* Based on the MBNCSUtil XSha function
* This code is available under the GNU L... |
c1bfdea923f986ed2da8c94813181c2772ca975a | C# | bardasoft/Gsemac.Common | /src/Gsemac.Reflection/PropertyDictionary.cs | 2.71875 | 3 | using Gsemac.Reflection.Extensions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Gsemac.Reflection {
public class PropertyDictionary :
IPropertyDictionary {
// Public members
public object this[string key... |
3b73142d807bed5c2dcbcda861fb30845dca89f2 | C# | zhecho1215/Softuni | /Homeworks/03-OOP/03-Inheritance-And-Abstraction-Homework/03-CompanyHierarchy/Projects.cs | 3.5 | 4 | using System;
namespace _03_CompanyHierarchy
{
class Project
{
//A project holds project name, project start date, details and a state (Open or Closed). A project can be Closed through the method CloseProject().
private string projectName;
private DateTime startDate;
private st... |
9fe2e64dad7fc13fc7acfd0a60a357a451ce018f | C# | DayLater/ChessProject | /ChessProject/Tests/TestElephant.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace ChessProject.Figures
{
[TestFixture]
public class TestElephant
{
readonly Player whitePlayer = new Player(PlayerColor.White);
readonly Player... |
fa7ffc161a254a779177ffbcfadfce9d4c13301c | C# | julianbrandt/KattisSolutions | /KattisSolutions/MarsWindow/Program.cs | 3.234375 | 3 | using System;
namespace MarsWindow
{
class Program
{
static void Main(string[] args)
{
var year = int.Parse(Console.ReadLine());
var startDate = new DateTime(2018, 4, 1);
if (year == 2018)
{
Console.WriteLine("yes");
... |
4d67985dce5765b01b60cefb72c3c0f88f0b3b60 | C# | drumistoyanov/SoftuniProject | /GroceryStore/Services/GroceryStore.Services/ShopCart/ShoppingCartManager.cs | 3.03125 | 3 | using System.Collections.Concurrent;
using System.Collections.Generic;
using GroceryStore.Services.ShopCart.Interfaces;
namespace GroceryStore.Services.ShopCart
{
public class ShoppingCartManager :IShoppingCartManager
{
private readonly ConcurrentDictionary<string, ShoppingCart> _carts;
... |
3282424e52239668f0d9e128357637a893f1676d | C# | sormmaster/Zambies | /Assets/Scripts/Door.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Door : MonoBehaviour
{
// Start is called before the first frame update
[SerializeField] string keyName = "default";
Vector3 closed;
Vector3 openUp;
public void Start()
{
closed = transform.posi... |
7125042578a13906be0c303bbeecc80a3ae9348d | C# | backwardn/HashDepot | /src/MurmurHash3.cs | 2.90625 | 3 | // <copyright file="MurmurHash3.cs" company="Sedat Kapanoglu">
// Copyright (c) 2015-2019 Sedat Kapanoglu
// MIT License (see LICENSE file for details)
// </copyright>
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace HashDepot
{
/// <summary>
/// x... |
17d0c9c57439a8de5eccb905b606b843eef5af2d | C# | RolandoBernal/ExploringTDD | /ExploringTDD/Dog.cs | 3.03125 | 3 | using System;
namespace ExploringTDD
{
public interface IDog
{
string Bark ();
string Whine ();
string Scratch();
}
public class Yorkie : IDog
{
public virtual string Bark ()
{
return "Yip";
}
public virtual string Whine ()
{
return "Ugh";
}
public virtual string Scratch ()
{
r... |
72d9c832a48241b1db2c9b4492e81df80199b5d7 | C# | aLIEz2476/C_Sharp_Practice | /Ch06-P173/Ch06-P173/Program.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ch06_P173
{
class Cal
{
public static int p(int a, int b)
{
return a + b;
}
public static int m(int a, int b)
{
return a... |
cee7ba06d5bf8b079c74e78ed9abefd127cce262 | C# | mbrdev/MLOps.NET | /src/MLOps.NET/Catalogs/DataCatalog.cs | 2.59375 | 3 | using Microsoft.ML;
using MLOps.NET.Entities.Interfaces;
using MLOps.NET.Storage;
using System;
using System.Threading.Tasks;
namespace MLOps.NET.Catalogs
{
/// <summary>
/// Operations related to tracking the data used to train a model
/// </summary>
public sealed class DataCatalog
{
priv... |
34b92ae68fcee9b9b513e83fa8b91283f7600279 | C# | breki/Tutis | /Projects/RankWatch/RankWatch/RanksDb.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
namespace RankWatch
{
public class RanksDb
{
public SortedList<string, RankHistory> Keywords
{
get { return keywords; }
}
public void AddRank(DateTime dateTime, string keyword, int rank)
{
... |
a772a550449e696f7458e887679c6b05653798ac | C# | shyoutarou/Exam-70-483_Acesso_dados | /Exemplos/5_Colecoes/CopiaRasa/CopiaRasa/Program.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CopiaRasa
{
class Person
{
public int ID { get; set; }
public string Name { get; set; }
public string Address { get; set; }
public decimal Salary { get;... |
38efb3054a2272981ee7b3cc13003ec5d76617e4 | C# | calebhk98/Joke-And-Punchline-In-C- | /Joke and Punch Line/Form1.cs | 2.890625 | 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;
/**
Author: Caleb Kirschbaum
Date: 2/12/19
Name: Joke and Punch Line
Goal: To tell a Joke
*/
na... |
b4e56c7a0aa71740b41f202ebb41a83b10977e5f | C# | Armikus/PF-Projektowanie-gier | /Assets/Scripts/Player/playerHealthController.cs | 2.875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playerHealthController : MonoBehaviour
{
private int healthInitial = 30;
private int healthCurrent;
private int shieldCurrent;
// Start is called before the first frame update
public void resetHealth() {
... |
f6ffa7513970b28c3b392ccf82d67c8903a0ac57 | C# | KarmaevRoman/TestWorkASU | /TestWorkASU/Model/CoefficientCValues.cs | 3.203125 | 3 | using System;
using System.Collections.ObjectModel;
namespace TestWorkASU.Model
{
/// <summary>
/// статичный класс для создания коллекции возможных значений коэффициента C
/// </summary>
static class CValues
{
private static int[] listCValues = new int[] { 1, 2, 3, 4, 5 };
/// <s... |
cc591d39f4ee6eee477fde6340cd85fb6aba08a0 | C# | astoimenov/TelerikHomeworks | /CSharpPartI/3. OperatorsAndStatements/OperatorsAndStatements/OddOrEven.cs | 3.5 | 4 | using System;
class OddOrEven
{
static void Main()
{
Console.Write("Vavedete stoinost za number: ");
string str = Console.ReadLine();
int number = int.Parse(str);
if (number%2==0)
{
Console.WriteLine("The number is even!");
}
else
... |
ff0dbc6e972943b0b3261e555c7835fa87133a19 | C# | jw-programmer/fictionHistories | /Src/Authentication/JwtService.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
using Src.Dtos;
using Src.Models;
namespace Src.Authentication
{
public static c... |
c60a1fce18fdbfde185a4033203d6e65e2843a2c | C# | elenaluboslavova/Softuni-CSharp-Basics | /Exam-Examples/06-07-April-2019/01.OscarsCeremony/01.OscarsCeremony/Program.cs | 3.421875 | 3 | using System;
namespace _01.OscarsCeremony
{
class Program
{
static void Main(string[] args)
{
int rent = int.Parse(Console.ReadLine());
double statuettes = rent - rent * 30 / 100;
double catering = statuettes - statuettes * 15 / 100;
... |
46c51601b7209fa48c901781d0a4c3c8af5a179f | C# | green-fox-academy/trojanosall | /week-04/day-1/Ex-12-Farm/Farm/Farm/Animal.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Farm
{
public class Animal
{
private string AnaimalType;
private int _thirst;
private int _hunger;
public Animal(string animalType, int thirst, int hun... |
36d1ef3d80add786d003a9f8f3c30081772e6d0f | C# | lariodiniz/Alura-Solid_com_CSharp | /Solid/Solid/ContaComum.cs | 2.828125 | 3 | using System;
namespace Solid
{
public class ContaComum
{
private ManipuladorDeSaldo manipulador;
public ContaComum()
{
this.manipulador = new ManipuladorDeSaldo();
}
public double Saldo()
{
return this.manipulador.Saldo;
}
... |
a1b0d63e5aa10c341ba6ff3efde3eda1681402f4 | C# | ericsteve/HackerNews | /HackerNews.Domain/Helpers/DateHelper.cs | 2.796875 | 3 | using System;
using System.Globalization;
namespace HackerNews.Domain.Helpers
{
public static class DateHelper
{
public static DateTime ConvertToDateTime(int time)
{
System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
dtDateTime =... |
4478025cfeaf9f770f29896b02562731631bc6c2 | C# | YaroslavSolo/FractalDrawer | /Fractals/KochCurve.cs | 3.40625 | 3 | using System.Drawing;
namespace Fractals
{
public class KochCurve : Fractal
{
public KochCurve(Color startcolor, Color endColor, int maxDepth)
: base(startcolor, endColor, maxDepth) { }
/// <summary>
/// Fits the size of the screen
/// </summary>
const int l... |
5e6266498a80a4ae2162b374b16b696f5f18838c | C# | gvkavirajan/sample-C- | /enumeration concept 1/enumeration concept 1/Program.cs | 3.71875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace enumeration_concept_1
{
class Program
{
enum workingdays
{
sun, mon, tue, wed, thu, fri, sat
};
static void Main(string[] args)
{
workingdays value ... |
ba39f1c345ef1e36bb427dbad8ec13acad03bbbe | C# | Git-zyn-Hub/AElf | /AElf.Cryptography/Certificate/CertificateStore.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.X509;
namespace AElf.Cryptography.Certificate
{
public class CertificateStore : ICertificateStore
{
private string _dataDirectory;
public strin... |
c8ccaf68d818bfbf8b85fb2ebfaafe79524e1f6a | C# | Infatum/Personell-Department-2 | /Cursa4_2/Company.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FirebirdSql.Data.FirebirdClient;
namespace Cursa4_2
{
public class Company : Base
{
... |
bf87a3b6c19307cfdc4553d9e02a8661c493da47 | C# | fnicollier/TagCache.Redis | /src/TagCache.Redis/RedisSubscriberConnectionManager.cs | 2.6875 | 3 | using StackExchange.Redis;
namespace TagCache.Redis
{
public class RedisSubscriberConnectionManager
{
private volatile ISubscriber _connection;
private readonly object _connectionLock = new object();
private RedisConnectionManager _connectionManager;
public RedisSubs... |
5f0669c9320c5ac7463739b577bc3128a2b52f97 | C# | DaeunSim/time-timer | /TimeTimer/MainForm.cs | 2.765625 | 3 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace TimeTimer
{
public partial class MainForm : Form
{
private Graphics graphics;
private Timer timer;
private int min = 0;
private bool isStarted = false;
private bool canDraw = true;
public... |
1189e2e79b1783134d50ba19de9f0d4f76c1d213 | C# | tdonlan/LD48April2015 | /Assets/Scripts/PlayerScript.cs | 2.546875 | 3 | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Collections.Generic;
public class PlayerScript : MonoBehaviour {
GameControllerScript gameController;
Text debugText;
Camera mainCamera;
Slider healthSlider;
public PlayerState playerState;
public List<Enemy... |
047786c26c103a149dce9fdfeff0f8379211fb76 | C# | war-man/Everything | /LawrenceUtils/CheckBoxListUtil.cs | 2.78125 | 3 | /*
* Created by SharpDevelop.
* User: guanxiang
* Date: 2013/10/30
* Time: 20:53
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using System.Collections.Generic;
namespace LawrenceUtils
{
/// <summary>
... |
7a3d3c9d644916a256d2c37b18975d521283ea79 | C# | dur41d/sdmxdotnet | /src/SDMX/Maps/StructureMaps/AnnotationMap.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OXM;
using Common;
namespace SDMX.Parsers
{
internal class AnnotationMap : ClassMap<Annotation>
{
Annotation annotation = new Annotation();
public AnnotationMap()
{
E... |
18afbf729e0db0f0c6b546010e6f4bd631f5b883 | C# | AleksandarSt/SoftUni-3.0 | /Exersices/Interfaces-and-Abstraction/BirthdayCelebrations/Models/Citizen.cs | 2.875 | 3 | using BirthdayCelebrations.Interfaces;
namespace BirthdayCelebrations
{
public class Citizen : Entity, IBirthday, IIdentifiable, IBuyer
{
public const int FoodCollectedByCitizen = 10;
public Citizen(string name, string birthdate, string id, string age)
: base(name)
{
... |