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 |
|---|---|---|---|---|---|---|
21aa533e6d108a0bed77f6fa11b704c7cd5e587e | C# | dupeljan/CSHARPWIN | /BattleShip0/BattleShip0/Server.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace BattleShip0
{
class Server : RemotePlayer
{
public Server(Form1 arbitour) : base(arbitour)
{
... |
fcb68b1b429b14118f5d1d8bfa6e0a4841ec0ebe | C# | wesenu/CSharp-MVC-Framework | /MvcFramework/Apps/Musaca/Musaca.Services/ProductsService.cs | 2.890625 | 3 | using System.Collections.Generic;
using System.Linq;
using Musaca.Data;
using Musaca.Data.Models;
using Musaca.Models.Products;
namespace Musaca.Services
{
public class ProductsService : IProductsService
{
private readonly MusacaDbContext context;
public ProductsService(MusacaDbContext context)
{
this.con... |
0d2fd31c2c5d0b181abc11815761657007c47c97 | C# | Sl0vi/SqlNoSql | /SqlNoSql/SqlNoSql.ConsoleDemo/Program.cs | 2.703125 | 3 | // The MIT License (MIT)
//
// Copyright (c) 2014-2016 Bernhard Johannessen
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights... |
aaff4b2ce623d274db68c1dfe771aac3b5af7a2a | C# | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/abc120/C/4556556.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder
{
class Program
{
static void Main(string[] args)
{
//[summary]C - Unification
string s = Console.ReadLine();
int zeros = s.Count(x => x == '0');
i... |
61622e6aba5c840afe1a8c54d609e22176957700 | C# | BalticAmadeus/CodeWars2016 | /Game/Game.WebService.Model/EnPoint.cs | 2.609375 | 3 | using System.Runtime.Serialization;
using GameLogic;
namespace Game.WebService.Model
{
[DataContract]
public class EnPoint
{
[DataMember]
public int Row;
[DataMember]
public int Col;
public EnPoint()
{
// default
}
public EnPoi... |
3824097d4bd9a00044fb3a1ab78dd5bbfc952da9 | C# | xcud/msrds | /OpenCV2.0/OpenCVForm/Wavelet.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace OpenCVForm
{
class Wavelet
{
void haar1d(double[] vec, int n)
{
int i = 0;
int w = n;
double[] vecp = new double[n];
... |
4980196692be5c06dba69072f36b49a4669b4b48 | C# | Flavkupe/Homeland | /Trunk/TacticsGame/TacticsGame/GameObjects/Effects/ProjectileEffect.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TacticsGame.Abilities;
using TacticsGame.Map;
using Microsoft.Xna.Framework;
namespace TacticsGame.GameObjects.Effects
{
public class ProjectileEffect : AnimatedEffect
{
public bool reachedTarget = false;
... |
266d61aac466a9c38a5c6784250087e191ab8884 | C# | fermosh/tech-interviews-api | /src/TechnicalInterviewHelper.Model/Entities/Level.cs | 2.546875 | 3 | namespace TechnicalInterviewHelper.Model
{
using System.Collections.Generic;
using Newtonsoft.Json;
/// <summary>
/// Level entity.
/// </summary>
public class Level
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>
/// The ... |
ab66e72e601272ecce55697b4f6a3cec936dfdde | C# | andrey-henri/Exercicios-Curso-csharp | /ExercicioList/ExercicioList/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Globalization;
namespace ExercicioList
{
class Program
{
static void Main(string[] args)
{
List<Funcionario> listFunc = new List<Funcionario>();
Console.Write("How many employees will be registered? ");
... |
e97c38912293939ad0e475ac799f0d2005b1966b | C# | benruehl/Smaragd | /test/Smaragd.Tests/ViewModels/ValidatingBindableTests.cs | 2.546875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using NKristek.Smaragd.ViewModels;
using Xunit;
namespace NKristek.Smaragd.Tests.ViewModels
{
public class ValidatingBindableTests
{
private class TestBindable
... |
3559b7af946d34153d017ccea8b6d07144b77ae2 | C# | schinma/Lost-Astronaut | /FinalTermProject/NavMeshAgent/Assets/ArrowNPCMovement.cs | 2.59375 | 3 | using UnityEngine;
using System.Collections;
public class ArrowNPCMovement : MonoBehaviour {
// the GameObject towards which we are curently heading towards
private GameObject targetGO = null;
// referencd to out way point manager object
private WaypointManager waypointManager;
// reference to a NavMeshAgent
p... |
926868c26af608f7d5bc8424ab33418b27cf3956 | C# | kaldea78045/do_virtual | /Assets/SimpleMeshCutter/Demo/Scripts/EnumeratorExecuteManager.cs | 2.890625 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace MeshCutter.Demo
{
/// <summary>
/// Enumeratorをコルーチンに渡すためのマネージャクラス
/// </summary>
public class EnumeratorExecuteManager
{
static Queue<IEnumerator> _queue;
static Queue<IEnumerator> Queue
... |
d8bb0a5f1d012bc6117a0d9016a348c6899c39d1 | C# | CreeperElement/puppet--rotocol | /Puppet Protocol/Assets/Scripts/GlobalQueue.cs | 2.5625 | 3 | using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
public class GlobalQueue : MonoBehaviour
{
List<GameObject> robots;
List<GameObject> cameras;
GameObject activeCamera;
GameObject mapCam;
ObjectiveTracker objectiveTraker;
// Start is called before t... |
b4afe8b98d4ad00bf2b104c0cb3adea72b58817f | C# | MikeRemedios/NeoTools | /Neoquest II AP/MailTest/Program.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Mail;
using System.Net;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace MailTest
{
class Program
{
[STAThread]
static void Main(strin... |
81a2fa6a6252ffca18ba77f91dfb0bc2d5f0c136 | C# | matejamilicevic3316/RestaurantApp | /RACommands/RoleCommands/AddRole.cs | 2.640625 | 3 | using DataAccess;
using Domain;
using RAApplication.DTO;
using RAApplication.Exceptions;
using RAApplication.ICommands.ICommandsRole;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RACommands.RoleCommands
{
public class AddRole : BaseCommand, IAddRole
{
... |
1a8fe0bb17c0d949b5c974cd7dc42f58ee633df8 | C# | faraday58/EjemplosTP-2018 | /ArhcivosFormulario/ArhcivosFormulario/Form1.cs | 3.015625 | 3 | using System;
using System.Drawing;
using System.IO;
using System.IO.Ports;
using System.Windows.Forms;
namespace ArhcivosFormulario
{
public partial class Form1 : Form
{
FileStream fs;
StreamWriter sw;
StreamReader sr;
SaveFileDialog saveFile;
SerialPort Mipuerto;
... |
d9bd951186a15a2573da92adc4a43814acd13de2 | C# | nitrotron/SerialPortSwitchService | /SerialPortSwitchService/SerialSwitchServiceHost.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using BrewduinoCatalogLib;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.IO.Ports;
using System.Threading;
using System.Globalization;
using System.ServiceModel.Web;
using Newtonsoft.Json;
using New... |
46db6552abcad3b88b5519d788bd88d84074de1d | C# | YellowStarKing/2020-Hackathon | /ProjectOne/中软国际科技服务有限公司/Windows/YZCLASS/IM.UI/ComeCapture/Helpers/ImageHelper.cs | 2.734375 | 3 | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Text;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media.Imaging;
namespace IM.UI
{
public class ImageHelper
{
#region 保存为PNG图片
public static void SaveToPng(BitmapSource image, string fil... |
ab4c1202f3c5e7228caafe5d907144aaf93f442b | C# | markodjunev/Softuni | /C#/C# Advanced/Generics/Generic Swap Method Strings/StartUp.cs | 3.40625 | 3 | using System;
using System.Linq;
namespace Generic_Swap_Method_Strings
{
public class StartUp
{
public static void Main(string[] args)
{
var myList = new Box<string>();
var count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; i++)
{... |
7fa65db5186ae293262a87860abb57ca62d4b2eb | C# | gokurakujoudo/CourseinDerivativeSecuritiesAddIn | /CourseinDerivativeSecuritiesAddIn/Chap3/BlackScholes.cs | 2.84375 | 3 | using ExcelDna.Integration;
using static System.Math;
using static DerivativeSecuritiesAddIn.Helper.NormalDist;
using static DerivativeSecuritiesAddIn.Utility.Util;
namespace DerivativeSecuritiesAddIn.Chap3 {
public static class BlackScholes {
[ExcelFunction(Category = "BlackScholes")]
public sta... |
bdaccfa3dd1ebda0c83f2a7b609369fea9e59480 | C# | TINF17C/Iodd2AmlConverter | /Iodd2AmlConverter.Cli/src/Core/Verb.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Iodd2AmlConverter.Cli.Attributes;
namespace Iodd2AmlConverter.Cli.Core
{
/// <summary>
/// Represents a command line verb.
/// For example
/// <example>
/// add,
/// commit,
/// push
/// </example>
/// </s... |
42d52df9505c32cd79a344b35355282ac7e07b33 | C# | gabrielmoral/taller-uciencia-buenas-practicas-desarrollo | /Refactoring/1_ExtractMethods.cs | 3.171875 | 3 | public void PrintOwing()
{
PrintBanner();
//print details
Console.WriteLine("name: " + name);
Console.WriteLine("amount: " + GetOutstanding());
}
public void PrintOwing()
{
PrintBanner();
PrintDetails(GetOutstanding());
}
private void PrintDetails(double outstanding)
{
Console.WriteLi... |
e4d624767676d08b143ee4a4f602f107bb3ae2d0 | C# | 97ashrey/RentACar | /UI/Views/Reservation/CreateReservationView.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UI.Views.Reservation
{
public partial class CreateReservationView : UserControl, ICreateRe... |
48d55e9393272e88bade4964f4111b5588329b88 | C# | rolywhateva/LimbajulCS | /LimbajulCS/Fisiere.cs | 3.546875 | 4 | using System;
using System.IO;
using System.Collections.Generic;
class Fisiere
{
static void Main()
{
string line;
try
{
using (StreamReader reader = new StreamReader("Entry.txt"))
{
do
{
... |
e1ca5b0ab95b3fa5d50d45c70252c6791a212d26 | C# | catontheway/qysg | /trunk/vs project/SGCommonHelper/ItemCtrl.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace SGCommonHelper
{
public struct Item_Str
{
public string code;
public string name;
public string cost;
public string sell;
public string type;
public string use_magic_id... |
2d59a57cfc7f1ea9eea60748e1f976dd507bb0bd | C# | CubicleJockey/ASP.NET-RazorPages-Tutorial | /RazorPagesMovie/RazorPagesMovie/Pages/Movie/Index.cshtml.cs | 2.78125 | 3 | using Microsoft.EntityFrameworkCore;
using RazorPagesMovie.EF;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace RazorPagesMovie.Pages.Movie
{
public class IndexModel : BaseMovieContext
{
public IndexModel(RazorPagesM... |
ed81ea40fd613291eb2e49157b30f9bfbbd51a61 | C# | angerlina/Hackathon | /WcfServiceLibrary1/StreetTypeGenerator/StreetTypeGeneratorService.svc.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
namespace StreetTypeGenerator
{
public class StreetTypeGeneratorService : IStreetTypeGeneratorService
{
private List<string> _streetTypeList = new List<string>();
public StreetTypeGeneratorService()
{
_streetTypeList.Add("Алл... |
2b42bb825c3513e028e0f86f033e8ead663b2bce | C# | stannedelchev/advent-of-code-csharp | /AdventOfCode2017.Tests/Day6SolverTests.cs | 2.65625 | 3 | using AdventOfCode2017.Day6;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace AdventOfCode2017.Tests
{
[TestClass]
[TestCategory("Day6")]
public class Day6SolverTests
{
private const string exampleInput = "0 2 7 0";
private const string realInput = "2 8 8 5 4... |
240a7b887f3de837c1a8d1e1a556fc931ba28727 | C# | Avatarchik/DominoVR | /UnityProject/Assets/Runtime Transform Gizmos/Scripts/Extensions/GameObjectExtensions.cs | 2.84375 | 3 | using UnityEngine;
using System.Collections.Generic;
using RTEditor;
#if UNITY_EDITOR
using UnityEditor;
#endif
/// <summary>
/// This is a static class that implements some useful 'GameObject' extension methods.
/// </summary>
public static class GameObjectExtensions
{
#region Public Static Functions
#if UNI... |
0ec82a8f04609781d9f5363d8b32211034355ac0 | C# | CarrotKutay/HeroSurvival | /Assets/Scripts/FSM/State/BaseState.cs | 2.875 | 3 | using UnityEngine;
namespace FSM.State
{
public abstract class BaseState : IBaseState
{
private IStateMachine stateMachine;
protected IStateMachine StateMachine { get; private set; }
protected BaseState(IStateMachine stateMachine)
{
this.stateMachine = state... |
bdcd18f0beabb1934c324508d037cd7f63f1a639 | C# | JBerlin84/UnityPathfinderCompare | /PriorityQueue/PriorityQueue/PriorityQueue.cs | 3.265625 | 3 | // File: PriorityQueue.cs
// Description: Priority queue
// Date: 2018-01-27
// Written by: Jimmy Berlin
#define hashtable
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
#if Unity
using UnityEngine;
#endif
/// <summary>
/// Priority queue
/// </summary>
/// <typep... |
89f22d45098e908706de4824b8c3551a88e945a1 | C# | oguzhantavsan/MutlubievCaseStudy | /MutlubievAPI/Controllers/StaffController.cs | 2.84375 | 3 | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MutlubievAPI.Data;
using MutlubievAPI.Dtos;
using MutlubievAPI.Models;
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute;
using System.Linq;
namespace MutlubievAPI.Controllers
{
[Route("api/[controller]")]
[ApiController]
publ... |
4c6fc0cecba82435c1d8fce3d23c2427d8b7348d | C# | cph-js284/DMassignment4 | /Program.cs | 2.828125 | 3 | using System;
using System.Threading.Tasks;
namespace DMassignment4
{
class Program
{
static async Task Main(string[] args)
{
Automatron automatron = new Automatron();
System.Console.WriteLine("Please choose 1 (succesful log parse) or 2 (failed log parse)");
... |
5ce37917afb6143c04c3908e9d42aff284de06e5 | C# | Ittyza/B18-Ex05-Itamar-200048734-David-000799251 | /Ex02.Logic/PlayGame.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Ex05.Ex02.Logic
{
public partial class PlayGame : CreateGame
{
public static int ScoreOfPlayerOne = 0;
public static int ScoreOfPlayerTwo = ... |
17397fcbbd7090b883173cdd7fdf1e9f3a1029af | C# | polgaro/MapperSpeedTest | /MapperSpeedTest.Entities/Class00Helper.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace MapperSpeedTest.Entities
{
public static class Class00Helper
{
public static ExampleSourceClass00 GenerateRandom()
{
var rnd = new Random();
return new ExampleSourceClass00
{
... |
f9c9db1fbcaaeddd432195ec37b55d454b89f268 | C# | kzharkov/Deque | /Source.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
namespace AlgorithmsDataStructures
{
class Deque<T>
{
LinkedList<T> list;
int size;
public Deque()
{
list = new LinkedList<T>();
size = 0;
}
public void AddFront(T item)
{
... |
b8411f44d44ad17c7441cd8a842a282b600a9034 | C# | dandyyang/VPMS | /Trunk/DAL/LocalDefine/LocalGeneralMenu.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.General;
namespace DAL.LocalDefine
{
class LocalGeneralMenu
{
public static readonly LocalGeneralMenu Instance = new LocalGeneralMenu();
public LocalGeneralMenu()
{
}
///... |
0598a92e566eb8aa49abe0bd39562936915d5cbe | C# | shendongnian/download4 | /code3/574054-13402867-31883342-2.cs | 2.765625 | 3 | [DataContract]
public class TernaryWebServiceResponse
{
[DataMember]
public TernaryProcessingResultStatus ProcessingSuccessStatus { get; set; }
[DataMember]
private Dictionary<object, bool> mProcessingSuccessDetails;
static public TernaryWebServiceRespo... |
e9695d1ce553bfdc20a1b17b7fadf9858f39893e | C# | gattim/CollegePlanner | /College Planner/College Planner.Windows/Professor.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace College_Planner {
public class Professor {
public string name { get; set; }
public string officeBuilding { get; set; }
public string officeRoom { get; set; }
... |
89bd2016e06b2a18bf8db7f1222156b3a2b4e820 | C# | emkutuk/restaurant-ordering-system | /Chapeau/ChapeauUserControl/Components/MenuOrderCard.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ChapeauModel;
namespace ChapeauUserControl.Components
{
public partial class MenuOrderCard : U... |
ecdad95743a4d228513377e00aa6da72f07d98c6 | C# | Tumyr/MyFuckingConsoleSpecific | /ConsoleSpecific/FileProcessor.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ConsoleSpecific
{
class FileProcessor
{
private System.Windows.Forms.OpenFileDialog openFileDialog1;
public void SelectFile()
{
DialogResult dr = ope... |
6da418cdf42578856896be12a4186b7b299c9b88 | C# | araujofrancisco/CustomConfig | /CustomConfigSample/MyConfig.cs | 2.578125 | 3 | using System.Collections.Generic;
namespace CustomConfig
{
public class FileDetails
{
public string Filename { get; set; }
public string ApiEntryPoint { get; set; }
}
public class MyConfig : ICustomConfig
{
public string Account { get; set; }
public string Password... |
29e06897029ef5234e1c01622b0d75e1ab750bfd | C# | dafnadya/DB_Labs | /Lab3/Lab2/Database/DAO.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab2.Database
{
abstract class DAO<T>
{
protected CinemaContext _db;
public DAO(CinemaContext db)
{
_db = db;
}
public abstract T ... |
50facd76dac120328381adab4c88ef904b8ee218 | C# | danielmoore/WpfIgniter | /packages/NUnit.Should.1.0.2.0/src/NUnit.Should.cs | 3.28125 | 3 | using System;
using System.Collections;
using NUnit.Framework.Constraints;
namespace NUnit.Framework {
#region Aliases to NUnit.Framework classes to improve our BDD syntax
public class Be : Is { public Be(){} }
public class Have : Has { public Have(){} }
public class Contain : Contains { publi... |
56a5be200a453d7c8d62e57ec21cf98527ab178b | C# | shendongnian/download4 | /code9/1632906-46065519-155525479-2.cs | 3.234375 | 3 | public List<DateTime> CompareDates(List<DateTime[]> compareRanges, int overlapThreshold = 1)
{
var overlaps = new List<DateTime>();
var intersectTable = new List<DateTime>[compareRanges.Count];
// simple nested loop...
for (var outer = 0; outer < compareRanges.Count - 1; outer++)
{
var outerRange = compareRang... |
dfa32253998c5338768e6685183cf096d7df5d9b | C# | ihristova11/TelerikAcademyAlpha | /01. MODULE 1/C# OOP/Workshops/Furniture-Workshop/FurnitureManufacturer/Models/Furnitures/Furniture.cs | 3.125 | 3 | using System.Linq;
using FurnitureManufacturer.Interfaces;
namespace FurnitureManufacturer.Models.Furnitures
{
// Finish the class
public class Furniture : IFurniture
{
private readonly string model;
private readonly string material;
private readonly decimal price;
private ... |
aba6f1eddc754e7a7e0d81c5f58146a043441b4d | C# | shumantt/hvac-iot | /ServiceLayerApi/MQTT/Client/BaseProcessingService.cs | 2.65625 | 3 | using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using MQTTnet.Extensions.ManagedClient;
using ServiceLayerApi.Common;
namespace ServiceLayerApi.MQTT.Client
{
public abstract class BaseProcessingService<TM... |
567a5d0ef73ef25f39feb0326d004fb155ff854e | C# | NortonBen/NhanSu_BinddingData_WinForm | /QLNS/NhanSu/Migrations/Configuration.cs | 2.75 | 3 | namespace NhanSu.Migrations
{
using DataAccessLayer;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<NhanSu.DataAccessLayer.DataContext>
{
public Configuration()
{... |
fb44b056f8187d0955d29842ec185356f7155262 | C# | shendongnian/download4 | /latest_version_download2/1605-3451958-7678943-6.cs | 2.515625 | 3 | public class Base
{
private int m_basePrivateField = 0;
public class Derived : Base
{
public int BrokenAccess()
{
return base.m_basePrivateField;
}
}
}
|
6242efd2a6c200d3ad2fdd18249d637206040f1c | C# | hetingjane/VoxSim | /Assets/Scripts/Episteme/Relation.cs | 2.765625 | 3 | namespace Episteme
{
public class Relation
{
private Concept _origin;
private Concept _destination;
private bool _bidirectional;
private double _certainty;
public Relation(Concept origin, Concept destination)
{
_origin = origin;
_destination = destination;
_bidirectional = false;
_certai... |
63a9a7c9de63f6f7abb7a59b2abb4553a7c901b1 | C# | misonou/codeless-core | /src/net35/Codeless/DictionaryHelper.cs | 3.0625 | 3 | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
namespace Codeless {
/// <summary>
/// Provides extension methods to objects implementing the <see cref="IDictionary"/> interface.
/// </... |
e3fa208fd66a1d6c0ce4400ee58c084aef5aa7c0 | C# | shendongnian/download4 | /first_version_download2/25592-1317695-2593021-4.cs | 2.890625 | 3 | using System.Messaging;
...
MessageQueue queue = new MessageQueue(".\\Private$\\yourqueue");
queue.Formatter = new BinaryMessageFormatter();
Message m = new Message();
m.Body = "your serialisable object or just plain string";
queue.Send(m);
// on the ot... |
1a06e1e61c36eb6e517ca43c02829ed7eff7de0f | C# | mateoortizcano/ServidorPractica2Complejidad | /ServidorPractica2/ServidorPractica2/Algorithms/BacktrakingDuos.cs | 2.90625 | 3 | using ServidorNP.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ControllerGrafo;
namespace ServidorPractica2.Algorithms
{
public class BacktrakingDuos
{
List<List<int>> Grafo;
int nro_nodos;
List<int> asignacion;
public ... |
edd102c19c2f4989124bb5595ce2437afc7621ca | C# | pkwzsqsdly/UtilScripts | /ExcelUtil/CustomExcelTable.cs | 3.125 | 3 | using System.Collections.Generic;
using System.IO;
using System.Text;
public class CustomExcelTable
{
public string Name { get { return sheetName; } }
public int Row{ get { return cellDatas.Count; } }
public int Col{ get; private set; }
protected List<RowData> cellDatas;
protected List<CellTitle> cellTitles;
pro... |
9508b975dd55b89474ff02405b687d7a419c601f | C# | rafagan/kings-clash | /Assets/Scripts/GUI/GameGUI/GUIEnd.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections;
public class GUIEnd : MonoBehaviour {
public UISprite BackgroundSprite;
public UISprite MaskSprite;
public UILabel TextLabel;
private static GUIEnd mInstance;
void Awake() {
if (mInstance != null) {
Destroy(gameObject);
}... |
0610e4ecba69cd0b5cdd3bbfdde261b7f649b912 | C# | MarcusDLG/Katas | /csharp/7-kyu/alphabetical-addition/solution.cs | 3.4375 | 3 | using System;
using System.Linq;
public class Kata {
public static char AddLetters(char[] letters) {
if (letters.Count() ==0){
return 'z';
}
var alphabet = "abcdefghijklmnopqrstuvwxyz";
var sum = letters.Select(l => alphabet.IndexOf(l) +1).Sum();
return alphabet[(sum - 1) % 26];
}
} |
c648e5c96d4d080956c10309ded4253a1d4bc2e3 | C# | IrynaByk/KilledYouth | /HypertensionControlUI/Sources/Views/Converters/EnumBooleanConverter.cs | 2.8125 | 3 | using System;
using System.Windows;
using System.Windows.Data;
namespace HypertensionControlUI.Views.Converters
{
public class EnumBooleanConverter : IValueConverter
{
#region IValueConverter Members
public object Convert(object value, Type targetType, object parameter, System.Globalization.Cu... |
6bf073b47481092ae86d6bcb77481649dce0b4d6 | C# | todor-enikov/InventoryManager-ASP.NET-MVC-Project | /Source/InventoryManager.Services/UserService.cs | 2.5625 | 3 | using InventoryManager.Common;
using InventoryManager.Data.Models;
using InventoryManager.Data.Repositories;
using InventoryManager.Services.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InventoryManager.Services
{
public c... |
ded5a2f1c2323d344b4187d010a3d86a37b63c32 | C# | RoseVar/MatchingGameWPFCSharp | /MatchingGameWPFex5/MatchingGameWPFex5/MainWindow.xaml.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
e56717c15ce64b28babf677a670adca5ee776743 | C# | Deb-BornToLearn/syslog.net | /SyslogServer.Core/Protocol/SyslogParser.cs | 2.59375 | 3 | using SyslogServer.Core.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SyslogServer.Core.Protocol
{
//This is the public API
public class SyslogParser : BaseSyslogParser
{
private ISyslogParser bsdSyslogParser;
... |
d2a1c253f2222dcac8e6e35419d30d67915c99b3 | C# | nickogola/Prilosec-Sampling-Code | /.svn/pristine/fc/fc26e1ce6c4bcb238f133768d0d2d074892d08d7.svn-base | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace POTC
{
public static class Extensions
{
public static string CleanSQL(this String str)
{
if (!String.IsNullOrEmpty(str))
{
return str.Replace("'", "''");
... |
19c2fa0361879f92d6cc72442781262805d3f7ac | C# | Rud156/ThinkInsideTheBox | /Assets/Scripts/WorldCube/Tiles/MovementRotatingTile.cs | 2.5625 | 3 | using System;
using UnityEngine;
namespace WorldCube.Tile
{
public class MovementRotatingTile : MonoBehaviour
{
public TileRotationAxis tileRotationAxis = TileRotationAxis.zAxis;
#region External Functions
public Vector3 GetTileForwardDirection()
{
switch (tileRot... |
432a80176f94451c47e0a8546cd48dff3661baad | C# | L0rence/TurnUp-Project | /SeleniumBasic/TM_user_delete_page .cs | 2.671875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
namespace SeleniumBasic
{
public class DeleteTests
{
[Test]
public void MaterialPageDe... |
bbf964a4ce615200ea744586a8baddce3867f467 | C# | Enmanuel-Medina/Registro_Prestamo | /BLL/Prestamos_BLL.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Registro_Pago.Entidades;
using Registro_Pago.DAL;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Linq.Expressions;
namespace Registro_Pago.BLL
{
public class Prestamos_BLL
{
//Guardar
public static b... |
50c46e102ce99274996d21ab714afc144dbb1a49 | C# | LevanAmashukeli/RoulleteApi | /RoulleteApi.Tests/UserTest.cs | 2.765625 | 3 | using RoulleteApi.Common.Exceptions;
using RoulleteApi.Core;
using Xunit;
namespace RoulleteApi.Tests
{
public class UserTest
{
[Theory]
[InlineData(0, 0, 0)]
[InlineData(1, 0, 1)]
[InlineData(100, 1, 101)]
[InlineData(1, 1000000, 1000001)]
[InlineData(1000000, 1... |
7654343c760de1c5ef5f913da42c8d12ebbba4af | C# | sonjie24/CloudinaryDotNet | /CloudinaryDotNet/Actions/Search/SearchResult.cs | 2.609375 | 3 | namespace CloudinaryDotNet.Actions
{
using System.Collections.Generic;
using System.Runtime.Serialization;
/// <summary>
/// Search response with information about the assets matching the search criteria.
/// </summary>
[DataContract]
public class SearchResult : BaseResult
{
//... |
59a3d809e503f689786601f285ce441b39b2094e | C# | romka-04/ab-datepicker-blazor | /Blazor.AbDatePicker.Demo/Shared/SelectMultipleEnum.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Components;
namespace Blazor.AbDatePicker.Shared
{
public partial class SelectMultipleEnum<TItem>
{
[Parameter]
public List<TItem> Value { get; set; }
[Parameter]
public EventCallback<List<TItem>> Valu... |
ae413f2e2309a8ff91b4f07db27978b2a9f7ce93 | C# | DCNick3/FGame | /FGame/FGame/Extensions.cs | 3.046875 | 3 | using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FGame
{
public static class Extensions
{
public static Point ToPoint(this Vector2 vect)
{
return new Point((int)vect.X, (int)vect.Y);
}
pub... |
82c4a3770adb2d5e2a770238f72fecceb95ac808 | C# | skoobeeb/lsp-csharp-analyzer | /LspDb/LspDb/Linq2sql/LinqUtils/hoLinqSqlUtils.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using LinqToDB.DataProvider;
using LinqToDB.DataProvider.SQLite;
using Microsoft.Win32;
namespace LspDb.Linq2sql.LinqUtils
{
public static class LinqUtil
{
... |
5ea2cf0d9d2d4710924ec59545aab5294ab566d3 | C# | popemkt/ScheduleManagementAPI | /ColdSchedulesData/Models/Repositories/SpecialtyRepository.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ColdSchedulesData.Models.Repositories
{
public interface ISpecialtyRepository : IBaseRepository<Specialty>
{
IQueryable<Specialty> GetSpecialties();
void CreateSpecialty(Specialty specialty);
... |
159c141d4da88a565634d5c44d1b0ad1238103e5 | C# | adelobosko/GUNI_MATRIX | /GUNI_MATRIX/Matrix.cs | 3.078125 | 3 | using System;
using System.Net.NetworkInformation;
using System.Text;
using System.Windows.Forms;
namespace GUNI_MATRIX
{
public class Matrix
{
public static double[,] Multiplication(double[,] a, double[,] b, ref StringBuilder inDetal)
{
var rows1 = a.GetLength(0);
var ... |
d69464fe6a2d9b98e6a6d06217137d80689d0a29 | C# | AlexTropply73/Cuphead | /Assets/Scripts/GameModifiers/Modifiers/JumpDelayModifier.cs | 2.625 | 3 | using UnityEngine;
namespace GameModifiers.Modifiers
{
/// <summary>
/// Binds self to camera and rotates it at a constant (or random)
/// speed
/// </summary>
public class JumpDelayModifier : Modifier
{
private PlayerMovement _movement;
private PlayerInput _input;
pri... |
4a45792a52ac910c06cfa96ef37e035d6555c370 | C# | shendongnian/download4 | /code6/1117366-29320580-86888858-2.cs | 2.78125 | 3 | chart.Series.Clear();
chart.Series.Add("series 1");
chart.Series.Add("series 2");
for (int i = 0; i < alphabet.Length; i++)
{
DataPoint dp = new DataPoint();
dp.AxisLabel = alphabet[i].ToString();
dp.YValues = new double[] { freq[i] };
... |
c8418a31fff71e7e0007811689f4a59d71bf2983 | C# | PeiMichelleZhao/SerkoTest | /SerkoTest/Controllers/ExtractDataController.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
using Microsoft.AspNetCore.Mvc;
using SerkoTest.Exceptions;
using SerkoTest.Models;
using SerkoTest.Services;
namespace SerkoTest.Controllers
{
[Route... |
b7eef79ae448570c0fca536bc6cb30bd2a6dccef | C# | MichaelBatsian/TracerLab | /Godeltech.Testers/DataStractures/TreeNode.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Godeltech.Testers.DataStractures
{
public class TreeNode<T>
{
public List<TreeNode<T>> Children { get; }
public T Data { get; set; }
public TreeNode()
... |
801943bb17d0aae5f9d3b5be9787ef04e9cc9ed6 | C# | VegK/Arkanoid | /Source/Assets/Scripts/BonusType.cs | 2.78125 | 3 | /// <summary>
/// Типы бонусов.
/// </summary>
public enum BonusType
{
None,
/// <summary>
/// Расширять - увеличивает платформу в 2 раза.
/// </summary>
Expand,
/// <summary>
/// Делить - появляется два дополнительных шарика.
/// </summary>
Divide,
/// <summary>
/// Лазер.
/// </summary>
Laser,
/// <sum... |
f2022d4e14059c378d9f751d6aa0a7d99417ae24 | C# | Lior-Asher/CSHARP-Mini-Crawler | /Mini Crawler/LinkFoundEventArgs.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mini_Crawler
{
// Create an event to deal with found links specifically.
class LinkFoundEventArgs : EventArgs
{
public readonly string Link;
public LinkFoundEventA... |
d1fd9c7085d91f0912e487b58afd5143a6f069bc | C# | usernameHed/Philae-Lander | /Assets/Plugins/Unity Essentials - Scene Workflow/Scripts/Extensions/Editor/ExtFileEditor.cs | 2.515625 | 3 | using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEditor;
namespace UnityEssentials.SceneWorkflow.extension
{
public static class ExtFileEditor
{
/// <summary>
/// rename an asset, and return the name
/// </su... |
bc2333c0ff6fe5c7c7230d36bb53e3575a162b7f | C# | PepijnWasser/Project-Customer | /Project Customer/Assets/scripts/Camera/ChangeCamera.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ChangeCamera : MonoBehaviour
{
public enum CamMode
{
tilted,
topDown
};
public CamMode camMode = CamMode.tilted;
Camera topDown;
Camera tilted;
private void Start()
{
... |
369ccd495ee01ae2e91f45ecbed2788a68d14852 | C# | AndreCMR/EcoTec | /EcoTec.Domain/Entities/LoginModel.cs | 2.609375 | 3 | using System;
using System.ComponentModel.DataAnnotations;
namespace EcoTec.Domain.Entities
{
public class LoginModel
{
public LoginModel(Guid usuarioId,string login, string senha)
{
UsuarioId = usuarioId;
Login = login;
Senha = senha;
}
pu... |
992f629a9d2425446c8f8dad22a03d0f2ae27d0b | C# | MJRichardson/Calamari | /source/Calamari.Shared/Modules/CommandLocator.cs | 2.546875 | 3 | using Calamari.Commands;
using Calamari.Commands.Support;
using System;
using System.Linq;
using System.Reflection;
using Autofac;
using Autofac.Core.Registration;
using Calamari.Util;
namespace Calamari.Modules
{
public class CommandLocator : ICommandLocator
{
public Type Find(string name, Assembly a... |
96527ee7a5de474d80a7885ddad41fd272294157 | C# | Mattias-Ruljeff/Black-jack | /Program.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace examination_3
{
class Program
{
/// <summary>
/// The startpoint of the application.
/// (Start code from lecture 7 1DV024. Added the rest.)
/// </summary>
static void Main(string[] args)
... |
13277486b110b08d67abfb6cdcbf0d8963d897f1 | C# | huaminglee/FlexFWD | /DNN_Modules/ATI_Base/App_Code/ATI_Base/CacheUtil.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Affine.Data;
namespace Affine.Data
{
public class UserNames
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string UserName { get; set; }
public strin... |
35a5eada9666770d86b1989aa028bdbe53a3eca6 | C# | zaheerehmad/task-ordering | /TasksOrdering/Job.cs | 3.1875 | 3 | using System.Collections.Generic;
using System.Linq;
namespace TasksOrdering
{
public class Job
{
public Job()
{
}
public Job(string name)
{
this.Name = name;
}
public string DependentOn { get; set; }
public string Name { get;... |
5a1f17096a52d7a308a900c06c4b527a9dfa0344 | C# | andreeapaul14/FP | /15-pool3/15-pool3/Program.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _15_pool3
{
class Program
{/// <summary>
/// . Modificati un vector prin eliminarea elementelor care se repeta,
///fara a folosi un alt vector.
/// </summary>
/// <... |
69300af7bbbb537429ecb1c43522792aeb3a4f15 | C# | sdkl/FreeEngine | /demos/unity_demo1_chat/unity5_3_client/chat_demo/Assets/_script/socketClient.cs | 2.640625 | 3 | using UnityEngine;
using System.Collections;
using System.Net.Sockets;
using System;
public class socketClient
{
private TcpClient _client;
private byte[] _data = new byte[4096];
private Action<byte[], int> _callback;
public string ip;
public string port;
public bool isActive { get { return _... |
1c4b6920c14b90081cdbb71a6eb5ecc124ae0463 | C# | erchiguire/Fuxion | /src/modules/SimpleInjector/portable/Factories/SimpleInjectorFactoryInjector.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using SimpleInjector;
using System.Reflection;
using System.Linq;
namespace Fuxion.Factories
{
public class SimpleInjectorFactoryInjector : IFactoryInjector
{
public SimpleInjectorFactoryInjector(Container container) { this._container = container; }
readonly Conta... |
b551d9c10e5687002bf3077decdb0a55478492c2 | C# | darwin25/1167 | /WebBuying_TGP/WebBuying_TGP/Edge.SVA.SQLServerDAL/Master/MemberCompanyStore.cs | 2.59375 | 3 | using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Edge.SVA.IDAL;
using Edge.DBUtility;//Please add references
namespace Edge.SVA.SQLServerDAL
{
/// <summary>
/// 数据访问类:MemberCompanyStore
/// </summary>
public partial class MemberCompanyStore:IMemberCompanyStore
{
public Memb... |
13cee5b2dce21f956c88796feb8a09013f05c5e0 | C# | lalagi2/wikipedia_koveto_szarch_hf | /wikipedia_koveto/wikipedia_koveto/WikipediaAPI/WikiAPI.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web.Script.Serialization;
namespace wikipedia_koveto.WikipediaAPI
{
internal class JSONUtils
{
public static object GetValueFromJSONObject(object obj, string key)
{
if (!((Dictionary<... |
f53dce3f6e316c0d261ccdbb25b78d2e763b1ed8 | C# | TsvetanMilanov/TelerikAcademyHW | /11_Databases/10_ADO.NET/ADO.NET/SelectProductsWithCategoriesFromNorthwind/EntryPoint.cs | 3.46875 | 3 | namespace SelectProductsWithCategoriesFromNorthwind
{
using System;
using System.Data.SqlClient;
public class EntryPoint
{
public static void Main()
{
SqlConnection connection =
new SqlConnection("Server=.\\SQLEXPRESS;Database=Northwind;Integrated Security=t... |
7bb317c11a92105588366179701b5d86a0b6bdae | C# | GeorgianaIon/Assignment-1 | /Data/FileContext.cs | 3.1875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.Json;
using Assignment1.Models;
namespace Assignment1.Data
{
public class FileContext : IAdultData
{
public IList<Adult> Adults { get; private set;... |
483e76debf5c2b23e4a585b9bd0ee653b0c98a3a | C# | shendongnian/download4 | /code3/546420-12683301-29915755-2.cs | 3.59375 | 4 | // Get the line count then loop and populate array
int lineCount = textBox1.GetLineFromCharIndex(textBox1.Text.Length) + 1;
// Build array of lines
string[] lines = new string[lineCount];
for (int i = 0; i < lineCount; i++)
{
int start = textBox1.GetFirstCharIndexFromLine(i);
... |
1b7691fa1668fc1c1caa006cbbb880897a23a125 | C# | asmCode/pix_it_all_2 | /Assets/Scripts/Backend/HttpPostRequest.cs | 2.625 | 3 | using System.Collections;
using UnityEngine;
public class HttpPostRequest : MonoBehaviour
{
public static bool Send(string url, string data, System.Action<bool, string> callback)
{
if (string.IsNullOrEmpty(url))
return false;
var gameObject = new GameObject("HttpPostRequest", type... |
e731db268f0413d02149a374a99ba9ec05a1609d | C# | nfma/AIBTExplorer | /AIBTViewer/BehaviorTree.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIBTViewer
{
public class BehaviorTree
{
public Dictionary<string, Behavior> Tree = new Dictionary<string, Behavior>();
public IEnumerable<Behavior> Roots()
{
... |
30ec1e4169f41c4a37c57da3ea73547bedc384b0 | C# | shobhitmishra/CodingProblems | /LeetCode/Problem328.linq | 3.5625 | 4 | <Query Kind="Program" />
void Main()
{
int n = 11;
var head = new ListNode(0);
var tail = head;
for (int i = 1; i <= n; i++)
{
tail.next = new ListNode(i);
tail = tail.next;
}
head = head.next;
PrintList(head);
var ob = new Solution();
head = ob.OddEvenList(head);
PrintList(head);
}
public void PrintLi... |
f2408ea1c33fc30371af60780c340f4bc2ab8681 | C# | GorskiMarekGM/SongPlayer | /Task3b/HipHopWest.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task3b
{
class HipHopWest : HipHop
{
private string HipHopWestSound = "Yo Yo Yo it's West Hip Hop";
public HipHopWest(string newTitle, string newArtist) : base(newTitl... |
95d2a839d3d107b26ed7eef65d4118f7a4d6f2a0 | C# | Yousef-Osman/YoloSpace | /YoloSpaceAPI/Repositories/AuthRepository.cs | 2.90625 | 3 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using YoloSpaceAPI.Models;
using YoloSpaceAPI.Models.Data;
using YoloSpaceAPI.Repositories.Interfaces;
namespace YoloSpaceAPI.Repositories
{
public class AuthRepository : IAuthRepo... |
dd2f606e13b65e0398884102298e84b031b2e145 | C# | mmueller4991/RockPaperEtc | /RockPaperScissorsLizardSpock/UserPickHandSign.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RockPaperScissorsLizardSpock
{
class UserPickHandSign
{
Random rnd = new Random();
public void pickHandSign(int numberOfPlayers, CheckWinner checkwinner, PlayerChooseSh... |
d44b996104e7c33e7a5bd979237ec5805aace123 | C# | YoTsenkov/TelerikSoftwareAcademyHomeworks | /C# part1/CSharp1Homework/12. ReadAndPrintAge/ReadAndPrintAge.cs | 3.03125 | 3 | using System;
class ReadAndPrintAge
{
static void Main()
{
string age;
int convertedAge;
age = (string)Console.ReadLine();
convertedAge = Convert.ToInt32(age);
Console.WriteLine(convertedAge + 10);
}
}
|
eaa084715b76aeb6efeb2a1a6651842332ee27c1 | C# | mmoreira2000/BigHelp | /src/BigHelp.Console/ColorConsole.cs | 3.34375 | 3 | using System;
using System.Text.RegularExpressions;
namespace BigHelp.Console
{
public static class ColorConsole
{
private static readonly Lazy<Regex> RegExIdentificaCor =
new Lazy<Regex>(() => new Regex("\\[(?<cor>.*?)\\](?<texto>[^[]*)\\[/\\k<cor>\\]", RegexOptions.IgnoreCase),
... |