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
2f877c13e852065365d5e661d77b6ce994c882b0
C#
rjxby/ltc
/RomanToInteger/Program.cs
3.09375
3
using System; namespace RomanToInteger { class Program { static void Main(string[] args) { var logic = new Logic(); Console.WriteLine($"III = {logic.RomanToInt("III")}"); Console.WriteLine($"IV = {logic.RomanToInt("IV")}"); Console.Wri...
d81894f207a581e02ee9abcc9d02919ebd4ccc11
C#
MagicAhn/UnityStudy2
/Day 2013-11-05 Second/Assets/Scripts/Hit.cs
2.515625
3
using System; using System.ComponentModel; using System.Linq; using UnityEngine; using System.Collections; public class Hit : MonoBehaviour { public Texture2D BackgroundColor; public Texture2D ForegroundColor; private Single _keyDownTime; private Single _timeSpan; // Use this for initialization ...
41958e5cb4f63617b4d973d28f9b02315bab5ed5
C#
hanseongv/MainPortfolio
/Assets/Scripts/Common/Util.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; internal class Util { static public void SetLayer(GameObject go, int layer) { go.layer = layer; Transform t = go.transform; for (int i = 0, imax = t.childCount; i < imax; ++i) { Transf...
268e30af314d99f165bf566a1f994ceff897b660
C#
semenovDA/pulse
/graphics/ACFChart.cs
2.578125
3
using Newtonsoft.Json.Linq; using pulse.collection; using pulse.forms; using System.ComponentModel; using System.Drawing; using System.Linq; namespace pulse.graphics { public partial class ACFChart : Component { public ACFChart(Signal signal) { InitializeComponent(); ch...
49f4e2f7e7902430228ae2bd23b28a8cd27f2a95
C#
anish-varghese/X-Force
/BackEnd/src/src/Experion.Marina.Core/Common/MarinaException.cs
2.796875
3
using System; namespace Experion.Marina.Core { /// <summary> /// Keys to indicate various exceptions in the application /// </summary> public enum ErrorCode : int { /// <summary> /// Unknown /// </summary> Unknown = 100, /// <summary> /// The SMTP c...
cd1cd1b5dcbb54cbec7fa3f014bebd3f69c8b3ed
C#
shendongnian/download4
/code8/1481027-40611688-131619319-1.cs
2.671875
3
//I have now edited the code to better reflect your real data public void ShowMoves(Vector2 playerPosition, int diceNumber, bool[] blocks) { int x = (int)playerPosition.x; int y = (int)playerPosition.y; if(tileMap.GetUpperBound(0) < x + 1) { if(tileMap[x + 1, y].t...
27788b30d642b04660b765bb6e07c16cd524cd66
C#
mariyaVR/OOPAdvanced
/3/IteratorsAndComparators/5.ComparingObjects/Person.cs
3.78125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5.ComparingObjects { public class Person: IComparable<Person> { private string name; private int age; private string town; public string...
35eaab865af20cb763453cc3020fd41633dac350
C#
SobekCM/SobekCM-Web-Application
/Sample_PlugIn_Library/Sample_Custom_METS_Section_FavColor.cs
2.921875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; using SobekCM.Resource_Object; using SobekCM.Resource_Object.METS_Sec_ReaderWriters; namespace Sample_PlugIn_Library { class Sample_Custom_METS_Section_FavColor : XML_Writing_Base_Type, iPackag...
ab22196c6fd475337a64c85d4ac7323dce4350ae
C#
skohub/MenuTv
/Repositories/BeerRepository.cs
3.265625
3
using System.Collections.Generic; using System.Linq; using MenuTv.Entities; namespace MenuTv.Repositories { public class BeerRepository : IUnitOfWork { private readonly BeerContext _context; public BeerRepository(BeerContext context) { _context = context; } ...
aed76ee15414f17741dd271f8e2aa63701b3b3a5
C#
shendongnian/download4
/first_version_download2/311566-25744710-73137156-2.cs
2.625
3
using System; using System.Windows.Forms; using System.Runtime.InteropServices; public class UnmanagedDialogParent : NativeWindow { private Form dialog; public DialogResult ShowDialog(IntPtr parent, Form dlg) { if (!IsWindow(parent)) throw new ArgumentException("Parent i...
fe09249b49dd8c2586cd63857ad7c5d3df28065b
C#
alexanderkurilenko/EPAM.KnowledgeTestingSystem
/BLL/Services.Implementation/TestService.cs
2.8125
3
 using BLL.Entities; using BLL.Mapper; using DAL.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL.Services.Implementation { public class TestService:ITestService { private readonly IUnitOfWork uow; pri...
7e9b3e046957cbdb834b8aaaa4c0846630a3ec23
C#
shreq/OE
/zad1/zad1/Program.cs
2.875
3
using GeneticSharp.Domain; using GeneticSharp.Domain.Chromosomes; using GeneticSharp.Domain.Crossovers; using GeneticSharp.Domain.Populations; using System; using System.IO; using zad1.EventHandlers; using zad1.selection; namespace zad1 { class Program { static void Main(string[] _) { ...
54430016e0fc050862c021f3217a970179b7bffb
C#
matvey192/cs18-dec
/Лабораторная работа 7/Задача 20/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Задача_20 { class Program { static void Main(string[] args) { string b = Console.ReadLine(); string[] bill = b.Split(' '); // text s...
6900cb796e43cdb09a18de95d6eeede3769d5331
C#
emilrr/SoftUni-Fundamental-Level
/01. Advanced C#/Homeworks/04. Strings-And-Text-Processing-Homework/04.TextFilter/TextFilter.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; class TextFilter { static void Main() { string[] wordsArr = Console.ReadLine().Split(','); string quote =Console.ReadLine(); Console.WriteLine(); quote = ...
f07bdc9f1a24e95b901fe503a6a768ea0d675b79
C#
yellow001/Game_Demo_P
/Assets/YUtility/Common/Extend/ValueChangeEx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using YUtility.Common.Event; namespace YUtility.Common.Extend { public static class ValueChangeEx { public static void ChangeValue(this float src, float dst, float duration, Action<float> changeFun, An...
afa4a13cda3cb310b45cd6d67f59e35fac7f2871
C#
pruebaSA/SA_UK
/wwwroot/widget.salonaddict.co.uk/System.Data.OracleClient/System/Data/OracleClient/DbSqlParserColumn.cs
2.734375
3
namespace System.Data.OracleClient { using System; internal sealed class DbSqlParserColumn { private string _alias; private string _columnName; private string _databaseName; private bool _isKey; private bool _isUnique; private string _schemaName; pri...
c5d6231f84f8c8a3d0205e40c986c7ceb06ed3cc
C#
alugili/Default-Interface-Methods-CSharp-8
/DefualtInterfaceMethodsDemo/SimpleExamples/DefaultInterfaceMethod.cs
2.78125
3
using System; namespace DefualtInterfaceMethodsDemo.SimpleExamples { // ------------------------Default Interface Methods--------------------------- interface IDefualtInterfaceMethod { public void DefaultMethod() { Console.WriteLine("I’m a default method"); } } class DefaultI...
8849c8af8b359bc751db7db62cdda4e36bcea4a3
C#
skwasjer/MockHttp
/test/MockHttp.Json.Tests/Newtonsoft/NewtonsoftAdapterTests.cs
2.609375
3
using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace MockHttp.Json.Newtonsoft; public class NewtonsoftAdapterTests { [Theory] [ClassData(typeof(SerializerTestCases))] public void Given_an_object_when_serializing_it_should_return_expected(object value, string expectedJson) { v...
11d24c687e9f8acc865d179e8b380e6351af5b04
C#
abdonkov/HackBulgaria-CSharp
/Week05/ProblemSet-02-Inheritance/Animals/Animal.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Animals { abstract class Animal { public string Name { get; protected set; } public abstract string Move(); public abstract string Eat(); public abstrac...
6c7980209dcea162ea5b947d49934e24d4a6c785
C#
carlosga/blatternfly
/src/blatternfly/GlobalHeightBreakpoints.cs
2.96875
3
namespace Blatternfly; internal static class GlobalHeightBreakpoints { internal const int ExtraSmall = 0; internal const int Small = 0; internal const int Medium = 40; // 40rem internal const int Large = 48; // 48rem internal const int ExtraLarge = 60; // 60rem inter...
4f23ff147682274929860cc2987ad1aa23034dfb
C#
ZombieFleshEaters/LittleBreadLoaf
/littlebreadloaf/EmailHelper.cs
2.609375
3
using Microsoft.Extensions.Configuration; using System; using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace littlebreadloaf { public static class EmailHelper { const string Mailgun_Api_Key_Preamble = "api:"; public s...
098fc26d909cd91249b5c427ee8dbf00bdf99d11
C#
btshft/Zeus
/src/Zeus/Shared/Try/Try.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Zeus.Shared.Try { public static class Try { public static Task<TryResult<T>[]> WhenAll<T>(IEnumerable<Task<T>> tasks) { var wrappedTasks = tasks.Select( task =...
4bcfffc4ce28ce60425d31382ac53fcba6a13016
C#
ufjl0683/sshmc
/V2DLE/CmdItem.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; namespace Comm { public enum RangeType { Rannge,Select,Const } public class CmdItem { public RangeType RangeType; public int Min, Max; public SelectValue[] SelectValues; public int Bytes; ...
2ee72101ddd9fa3b10a25abd6ee3e774894b2542
C#
Luminating/KSIS45
/CSaN/CSaN/HttpStorage/ServiceMethod/HttpMethodHead.cs
2.609375
3
using System; using System.IO; using System.Net; using System.Text; namespace HttpStorage.ServiceMethod { class HttpMethodHead : HttpServiceMethod { public HttpMethodHead() : base("HEAD") { } public override void Handle(HttpListenerRequest request, HttpListenerR...
b284d48880830e8e521260bbf23a093e90559ccd
C#
sh932111/BrainProject
/Stu/Stu/Manager/WordManager.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using Stu.Class; namespace Stu.Manager { class WordManager { private JSONArray definitionList = null;/*詞性*/ private JSONArray translateList = null; /*詞性的解釋*/ pri...
2c778f630e0d882e3df14a6a6db1adefe9d183cc
C#
gugacoder/deckin
/Server/Keep.Paper/Design.Rendering/Choice.cs
2.921875
3
using System; namespace Keep.Paper.Design.Rendering { /// <summary> /// Directives // /// TYPE/SUBTYPE /// A single, precise MIME type, like text/html. /// /// TYPE/* /// A MIME type, but without any subtype. image/* will match image/png, image/svg, image/gif and any other image types. /// /// */*...
ec671a7f5cac93a5ddf7c62ef2c048d12ca9d8ac
C#
auriou/DataBusinessService
/DataBusinessService/Common/AutoProperty.cs
2.546875
3
using System; namespace DataBusinessService.Common { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class AutoProperty : Attribute { public AutoProperty(string name, Type type) { Name = name; Type = type; } public Type Type { ...
0a82167b0762b5c7425c0c4aa72aa1384b2ae0b3
C#
isscuss/learn.github.io
/ConsoleApplication3/线程池/Program.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace 线程池 { class Program { static void Test(object state) { Console.WriteLine("任务开始啦:" + Thread.CurrentThread.ManagedThreadId); ...
58d5b7c651c847477dc41e5b22e809615e66c6bb
C#
JasonDevStudio/Cnita
/CnitaSolution/Common/Library.Common/EncryptDecrypt.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; namespace Library.Common { public class EncryptDecrypt { #region 加/解密方法 private static string CryKey = "Xky_Lq_Py_Hu_Lp_Jhj_Zxt";//密钥 /// <summary> /// 加密字符串 /// </sum...
d01114c8270c0eaeff698b63a98034c46c2ec03c
C#
Bajena/Miner
/Miner/GameInterface/MenuEntries/MenuEntry.cs
2.984375
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Miner.GameCore; using Miner.GameInterface.GameScreens; namespace Miner.GameInterface.MenuEntries { /// <summary> /// Reprezentuje opcj w menu gry. /// </summary> public class MenuEntry { float _selectionFade; ...
e857e601cdb50d16e484f0ac07e09daedfc5059e
C#
dburka001/SimulationFramework
/MicrosSimFramework.DataSource/MicroSim.DataSource.Entities/Enums/Gender.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MicroSim.DataSource.Entities { /// <summary> /// Gender enum /// </summary> public enum Gender : byte { Total, Male, Female } /// <summary> /// GenderExtensions //...
dc8352eea68fac275d3beadb198f7e461267fda4
C#
vmelamed/vm
/Aspects/Security/Cryptography/Ciphers/tests/NullStreamTest.cs
2.640625
3
using System.IO; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace vm.Aspects.Security.Cryptography.Ciphers.Tests { /// <summary> /// Summary description for NullStreamTest /// </summary> [TestClass] public class NullStreamTest { /// <summary> ///...
225ee53262122b71aa0e9a913fa4274ffcfebad7
C#
Stoyan66/Strings-and-Regex---Exercise
/Trainegram/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace Trainegram { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string p...
200ee1ae3e6a6452ade2e20999190407ffa7e580
C#
firatozbay/UnityPoolManager
/Assets/Scripts/Poolee.cs
2.8125
3
using UnityEngine; namespace PoolSystem { public class Poolee : MonoBehaviour { public PoolType PoolType { get; private set; } public int Key { get; private set; } private ISpawnable[] _spawnables; private IDespawnable[] _despawnables; public void Init(PoolType poolTy...
9011660ed9e0f5db060fceafde0ef1b1335b0da0
C#
hon454/MyUnityLibrary
/Assets/Scripts/MyUnityLibrary/Managers/GameSpeedManager.cs
2.75
3
using System.Collections; using MyUnityLibrary.Patterns; using MyUnityLibrary.Utilities; using UnityEngine; public sealed class GameSpeedManager : MonoSingleton<GameSpeedManager> { public float DefaultTimeScale { get; set; } = 1f; public bool CanChangeGameSpeed { get; set; } = true; public bool CanInterru...
442a990d09eb2f8c88d99bf81f81677ba2198389
C#
shendongnian/download4
/code6/971302-24636066-68904719-2.cs
3.203125
3
int v = int.Parse(Console.ReadLine()); for (int i= 0; i <= arr1.Length -1; i++) { if (arr1[i] == v) { Console.Write(arr1[i].ToString() + " "); } } Console.WriteLine();
5c7a421ab83d99aade967978e89d43d09a2ce96e
C#
HubertSpringer/BlockCipher
/Szyfrator/Form1.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Szyfrator { public partial class Form1 : Form { Nihilist nihi...
053e896e8bc0c749d3f42ada23ac2245d1a0669a
C#
jpiv/RouglelikeCardGame
/Library/Collab/Download/Assets/Scripts/RockEl.cs
2.59375
3
using System.Collections.Generic; using UnityEngine; public class RockEl : Enemy { private float spawnHP = 0f; private bool hasSplit = false; public override void TakeDamage(float damage) { float baseHP = this.GetHP(); base.TakeDamage(damage); float splitPoint = 0.25f; float spawnHPMultiplier = 0.125f; i...
b1c8a567c4e63e380a65fbd00548ed9528b9dcf0
C#
beatthat/property-interfaces
/Runtime/property-interfaces/InvocableExt.cs
2.734375
3
using BeatThat.TransformPathExt; using UnityEngine; namespace BeatThat.Properties{ public static class InvocableExt { /// <summary> /// ext method lets you call a sibling <c>Invocable</c> like this: /// /// <c> /// this.Invoke<MyInvocableComp>(); /// </c> /// </summary> public static void Invoke<T>(...
264c3c189eaec6d10a6a9d9a32b5bfd20e69d739
C#
huysentruitw/barcoder
/src/Barcoder/DataMatrix/DataMatrixCode.cs
2.828125
3
using Barcoder.Utils; namespace Barcoder.DataMatrix { public sealed class DataMatrixCode : IBarcode { private readonly CodeSize _size; private readonly BitList _data; internal DataMatrixCode(CodeSize size) { _size = size; Bounds = new Bounds(size.Columns...
47eec48c8cd346393ad4bd71bf9e9aa8b37e806a
C#
hncoffee/MVCTest
/MVCTest/Controllers/EmployeeController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MVC.Models; using MVC.ViewModels; namespace MVC.Controllers { public class EmployeeController : Controller { // GET: Test public string GetString() { return "He...
3a46acc40caa99d556defc71c57876b41a9c762f
C#
danielfbolin/NewMonopoly-WTAMU-2020
/Assets/Scripts/GamePlay/ChangeColor.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ChangeColor : MonoBehaviour { Transform[] childObjects; public List<Transform> childColorList = new List<Transform>(); void OnDrawGizmos() { Gizmos.color = Color.red; FillNodes(); ...
dabe7edbcf7de0c0b5cae1ae9bb9ea87a22c69b4
C#
carlos8520/dataStructure
/PracticaListasDobles/PracticaVectoresOrdenados/PracticaVectoresOrdenados/Producto.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PracticaVectoresOrdenados { class Producto { private int _id; private string _nombre; private int _cantidad; private int _costo; private Product...
c35686412a0e0d7b4a86c94302512030e6bb0461
C#
ziyunhx/storm-net-adapter
/src/Storm.Net.Adapter/Data/Command.cs
2.53125
3
using System.Collections.Generic; namespace Storm { public class Command { /// <summary> /// the command type. /// </summary> public string command { set; get; } /// <summary> /// The id for the tuple. Leave this out for an unreliable emit. The id can be a strin...
74aee1c35a1f128cc1f1730d5249e9712cdf1929
C#
Pride7K/C-sharp-Estudo
/Herancas/ByteBank/ByteBank/Funcionarios/Gerente.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; using ByteBank.Sistemas; namespace ByteBank.Funcionarios { public class Gerente: FuncionarioAutenticavel { public Gerente(double salario,string cpf) : base(salario,cpf) { Salario = salario; ...
9bc0ed327f1d0d970766c20d580e2df91c9e8dce
C#
sebnor31/CSharp-Tutorials
/C# For Programmers/PracticeExamples/MaximumFinder/MaximumFinder.cs
4.03125
4
public class MaximumFinder { public void DetermineMaximum() { // Prompt for and input three floating-point values System.Console.WriteLine("Enter 3 floating-point values:\n"); double number1 = System.Convert.ToDouble( System.Console.ReadLine() ); double number2 = System.Convert.ToDouble( ...
468241955fc9a356c0f68955a2682d2a53a39645
C#
esd-org-uk/flexible-open-geographies
/Esd.FlexibleOpenGeographies/UnitsOfWork/DeleteAreaTypeResource.cs
2.65625
3
using System.Linq; namespace Esd.FlexibleOpenGeographies.UnitsOfWork { internal class DeleteAreaTypeResource : IUnitOfWork { private readonly IContextFactory _contextFactory; private readonly int _resourceId; public DeleteAreaTypeResource(IContextFactory contextFactory, int resourceId...
c6292051b25a3aef45116e32a24c064f0efdfe5b
C#
PollockT/BitSlicerSharp
/Slicer.Engine.Scanning/Snapshots/SnapshotElementComparer.cs
2.65625
3
using Slicer.Engine.Scanning.Scanners.Constraints; namespace Slicer.Engine.Scanning.Snapshots { using Squalr.Engine.Common.DataTypes; using Squalr.Engine.Common.Extensions; using Scanning.Scanners.Constraints; using System; using System.Runtime.CompilerServices; using System.Runtime.InteropSer...
7528dc3600767abeca3930479985f1c550e5edec
C#
cuiyp7777/NetPro
/WebBasicApp/04反射and特性and工厂/01Factory.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using static WebBasicApp._04反射and特性and工厂._00Attribute; namespace WebBasicApp._04反射and特性and工厂 { //定义工厂接口,产品接口与产品类型的枚举 /// <summary> /// 屋子零件 /// </summary> public enum RoomParts { ...
a7e357b624faf18235f1257664bf964384e5896a
C#
ZeusAFK/TeraEmulator
/Tera_Emulator_Source/GameServer/Network/Server/SpTradeHideWindow.cs
2.546875
3
using System.IO; using Data.Structures.Player; namespace Network.Server { public class SpTradeHideWindow : ASendPacket { protected Player Player1; protected Player Player2; protected int TradeId; protected int Type; public SpTradeHideWindow(Player player1, Player playe...
5e2583855ac3ed34ad522ea0b5f0efb7de68aa43
C#
PoLaKoSz/WeAreOne.Scraper
/tests/Integration/TestClassBase.cs
3
3
using PoLaKoSz.WeAreOne.Models; using System.Collections.Generic; using System.IO; namespace PoLaKoSz.WeAreOne.Tests.Integration { internal abstract class TestClassBase { private readonly string _path; private readonly string _module; /// <summary> /// Set to true when You wan...
09a88eab1ba0e4c95c78ed6a7710d5fbe28f1576
C#
leilaweicman/gdd2017
/src/UberFrba/Classes/Rendicion.cs
2.671875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Classes { public class Rendicion : Base { List<SqlParameter> parameterList = new List<SqlParameter>(); #region atributo...
d71eb0f72a8d340320a6937983817d5047a67a4f
C#
Olymo/ExampleApi
/ExampleApi/Validations/AddProductValidation.cs
2.78125
3
using ExampleApi.Entities; using FluentValidation; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ExampleApi.Validations { public class AddProductValidation : AbstractValidator<Product> { public AddProductValidation() { Ru...
89113e6f325e046b5faaf086cab553fb9b60d243
C#
Kawser-nerd/CLCDSA
/Source Codes/CodeJamData/15/04/7.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace km.gcj.gcj2015 { class Program { static System.Diagnostics.Stopwatch sw; /// <summary> プログラムのスタートポイント </summary> /// <param name="args"> 第一引数に入力ファ...
79617070a056bb5998e6a5c4c22ec9f68cccc0dc
C#
Krzysiek102/FootballTableGenerator
/FootbalTableGenerator.Core/MatchRegulations.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FootbalTableGenerator.Core { public class MatchRegulations { public const int NumerOfPointForWin = 3; public const int NumerOfPointForDraw = 1; public void Add...
272ed3f2562ba27e8e235b087c08aaf04937e62f
C#
gukiub/portifolio
/C#/01.10.18/CalculadoraDeDistanciaPercorrida/CalculadoraDeDistanciaPercorrida/Form1.cs
2.84375
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 CalculadoraDeDistanciaPercorrida { public partial class calcularKm : Form { pu...
255435f2aae9c7ca6368e81b00197b2d69ea89e9
C#
francoisperron/yose-csharp
/yose-csharp/World2/UiChallenges/TooBigNumberResult.cs
2.71875
3
using System; namespace Yose.World2.UiChallenges { public class TooBigNumberResult : IPrimeFactorsResult { public bool Matches(string number) { return Convert.ToInt32(number) > 1000000; } public object Response(string number) { return "too big nu...
c050dd3ae144e2d18d0c2feb03214f78a1f78f96
C#
dmaa1909-Marc/3rdSemesterProject
/ApplicationServer/DB/ColorsDB.cs
3.109375
3
using Dapper; using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Web; namespace ApplicationServer.DB { public class ColorsDB : IColorsDB { private static string connectionS...
38a3053e053960b2a5a421d0755030fd98a1721d
C#
Caglakirazkaya/Product-Tracking
/PRODUCT_TRACKING/PRODUCT_TRACKING/Models/Managers/UserManagers.cs
2.640625
3
using PRODUCT_TRACKING.Models.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PRODUCT_TRACKING.Models.Managers { public class UserManagers { Context c = new Context(); public List<User> ActivtyUser() { Li...
a1b69bc453c81e1bd5416caafdee6f9ed5b9a9aa
C#
edisonbrito/CleanArchitectureTemplate
/src/Praxio.Tools.Arquitetura.Infra.Data/NHibernateDataAccess/Repositories/Repository.cs
2.578125
3
using System.Collections.Generic; using System.Threading.Tasks; using AutoMapper; using NHibernate; using NHibernate.Linq; using Praxio.Tools.Arquitetura.Application.Interfaces.Repositories; using Praxio.Tools.Arquitetura.Domain.Entities.Base; using Praxio.Tools.Arquitetura.Infra.Data.NHibernateDataAccess.DataModels; ...
210b158eee14bf152e4a2ab7abf7e704f82564b0
C#
Sunil-Kumar-Gouda/SunilGraphC_Sharp
/Graph/Graph/ShortestPath/BellmanFord.cs
3.3125
3
using GraphADT.Directed; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Graph.ShortestPath { public class BellmanFord { DirectedGraph G; int[] _distance; public IReadOnlyCollection<int> Distance { get { retu...
d2138082c463b2c32f32a141e4112f125b74730d
C#
dzhabrailov/csharp-programming
/02-DataTypesAndVariables/05. BoolVariable/CheckBoolVar.cs
4.21875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BoolVariable { class CheckBoolVar { /// <summary> Problem 5 /// Boolean Variable /// Declare a Boolean variable called isFemale and assign an ...
977fe58b716847b0fc2e46a7f1d947f8d9e51918
C#
mark-s/Seatbelt
/Seatbelt/Probes/SystemChecks/UserEnvVariables.cs
2.859375
3
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace Seatbelt.Probes.SystemChecks { public class UserEnvVariables :IProbe { public static string ProbeName => "UserEnvVariables"; public string List() { var sb = new StringB...
80859a4c52c76d2fff363ae1ff2adc82078cc18b
C#
sergeylenkov/JumpingJoe
/JumpingJoe/JumpingJoe.cs
2.5625
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using System; using System.Collections.Generic; namespace JumpingJoe { /// <summary> /// This is the main type for your game. /// </summary> public class JumpingJoe : Game { Graphics...
7c1500dd1dc6029a35b33aa800582eda0db9fd42
C#
Technically-Possible/RobotWars-Ultimate
/RobotsStore/MedicBot.txt
3.03125
3
using RobotWars; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RobotsStore.Robots { public class MedicRobot : IRobot { public Int64 Health { get; set; } public string GetName() { return "Medic Robot"; } pub...
61f5c2f3bfdf94b656e7ac0235a038fa2bffa577
C#
grasmanek94/t22-4
/ITTF_Server/Station.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; namespace ITTF_Server { public class Station : IComparable<Station> { public string StationName { get; private set; } public Train LastTrain { get; set; } ...
f34b79b89ca82314d41f5df3b1f6a69af9c8eda6
C#
SharpKit/SharpKit-SDK
/Defs/Qooxdoo/util/ColorUtil.cs
2.890625
3
// Generated by SharpKit.QooxDoo.Generator using System; using System.Collections.Generic; using SharpKit.Html; using SharpKit.JavaScript; namespace qx.util { /// <summary> /// <para>Methods to convert colors between different color spaces.</para> /// </summary> [JsType(JsMode.Prototype, Name = "qx.util.ColorUt...
c70c00ad33125c3f20d46ffc1c470050f85f9176
C#
JoanIat312/410
/IAT410/AntLion/AntProjectTrial/Assets/Scripts/BulletSpawn.cs
2.515625
3
using UnityEngine; using System.Collections; public class BulletSpawn : MonoBehaviour { public GameObject bObject; public float fireRate; private float timestamp; // Use this for initialization void Start() { transform.position = GameObject.Find("jackhammer-gun").transform.position; ...
32d8342463db6c3137e8bf779ce7641128562015
C#
aajayagrahari/PDP_API
/PowerDesignPro.Data/Framework/Repository/EntityBaseRepository.cs
2.859375
3
using PowerDesignPro.Data.Framework.Interface; using PowerDesignPro.Data.Models; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System; using System.Collections.Generic; namespace PowerDesignPro.Data.Framework.Repository { public class EntityBaseRepository<T> : IEntityBaseReposi...
159da40325799be5bc9e7d4332332a448b210ce0
C#
didiercauvin/Etudes
/Hospital/AdministrationContext/Patient.cs
2.625
3
using BuildingBlocks; using System; namespace AdministrationContext { public class Patient : AggregateRoot { public string Name { get; } public string FirstName { get; } public DateTime Birthdate { get; } public string Adresse1 { get; } public string Adresse2 { get; } ...
1e9c933237a439759ec34f7fc332bf5d52aca09b
C#
ricecrispy/clerk-data
/src/clerk-data-data-access/Repository/IMemberRepository.cs
2.734375
3
using clerk_data_data_access.Models; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace clerk_data_data_access.Repository { public interface IMemberRepository { /// <summary> /// Create a Member object in the database. /// </summary> /// <pa...
4c0aab135672b9a9c442c4f561a050c860bece8e
C#
ProgrammerMaf/PokerBot
/ConsoleClient/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PokerObjects; using PokerPlayer; using SingleRoung; using UserPlayer; namespace ConsoleClient { class Program { static void Main(string[] args) { var cards = Ca...
f7994d6fb95a426fc2cda19c3e7500791623a04e
C#
bobbanks/Xamarin.Spikes
/Spikes/Spikes/Pages/MainPage.cs
2.65625
3
using System; using Xamarin.Forms; using Spikes.Pages; namespace Spikes { public class MainPage : BaseView { private ListView listView; public MainPage() { var layout = new StackLayout() { VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Color.White }; lis...
0ef42832b0a43bfbc4e576e0c871d6da28a7a843
C#
paulyoder/autonotify
/src/AutoNotify/AutoNotifyAttribute.cs
3.078125
3
using System; namespace AutoNotify { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] public sealed class AutoNotifyAttribute : Attribute { public AutoNotifyAttribute() { Fire = FireOptions.Always; } ...
833212ed0d8461d887028b4556b92e0f10a9dabd
C#
lazicsasalaki/AI-Final
/LaMountain_AI_Final/LaMountain_AI_Final/Gene.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace LaMountain_AI_Final { class Gene { int color; int fitnessValue; public Gene(int _color) { color = _color; fitnessValue ...
a71f6656ba11c9d806b1f259a1b0b02a3346bf14
C#
BrooklynGabe/Naive-2FA-Password
/TwoFactor.API/Models/TwoFactorService.cs
2.765625
3
using System; using System.Linq; using TwoFactor.Common; using TwoFactor.DataAccess; namespace TwoFactor.API.Models { public class TwoFactorService { public TwoFactorService() { _context = new TwoFactorContext(); _reader = new OneTimeSecretReader(_context); ...
bafe3a781e70ea9ddaaf8b19b2018b9611a74c36
C#
freakingawesome/FreakingAwesome.Data
/FreakingAwesome.Data.Examples/ResultExtensions/AsyncUsageExamples.cs
2.8125
3
using System.Threading.Tasks; namespace FreakingAwesome.Data.Examples.ResultExtensions { public class AsyncUsageExamples { public async Task<string> Promote_with_async_methods_in_the_beginning_of_the_chain(long id) { var gateway = new EmailGateway(); return await GetByI...
b39e549938bf8d0f165b10a450d62e0d57bb5939
C#
harmonc/ToasterGame
/Assets/Scripts/SpawnerScript.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpawnerScript : MonoBehaviour { public GameObject enemy; public GameObject enemy2; private float targetTime = 0.0f; // Use this for initialization void Start () { } void Update(){ targetTime -= Time.deltaTi...
191bf2815fe2bdc52c550ba80832baf612f2e887
C#
HardWorkerFree/MailingsWPF
/MailingsWPF/MainWindow.xaml.cs
2.71875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text.RegularExpressions; using System.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Xml; using Microsoft.Win32; namespace MailingsWPF { /// <summary> //...
b7325d35c63bde79a03987b8739db51c1dec1839
C#
janektichy/herokuTodoApp
/firstORM/firstORM/Services/TodoService.cs
2.796875
3
using firstORM.Database; using firstORM.Models.Entities; using firstORM.Todos; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace firstORM.Services { public class TodoService { private ApplicationDbContext DbC...
71f56a42a074358ad1c5d6bd7ad14dc14b3050f0
C#
yazilimfikirleri/16-WhileDoWhile
/14-WhileDoWhile/Program.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _16_WhileDoWhile { class Program { static void Main(string[] args) { //For döngüsü gibi, Bir işi belirli sayıda yapmamızı sağlayan döngüdür.For döngüsünden ...
986bf16144a8c9e49ce223d7d1c468420a52a3bd
C#
patdaman/dlR_ManageMachineVars
/Lib/CommonUtils.AppConfiguration/CommandLineConfigProvider.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CommonUtils.AppConfiguration { ///------------------------------------------------------------------------------------------------- /// <summary> Used to provide config values from t...
6c528c7760b40b605f8417599f59d45af8ee5a57
C#
LiruJ/LiruGameHelper
/LiruGameHelper/Signals/Signal.cs
3.109375
3
using LiruGameHelper.Exceptions; using System; using System.Collections.Generic; namespace LiruGameHelper.Signals { /// <summary> Allows for SignalConnections to disconnect without having access to any other functions. </summary> internal interface ISignal { void Disconnect(SignalConnection connec...
d9b45d3310778f09cd8c31dcb921846d678f2727
C#
RamKrish786/EvenlyDivisible
/TestEvenlyDivisible/Program.cs
3.4375
3
using System; namespace TestEvenlyDivisible { public class Program { public static void Main(string[] args) { bool isContinue = true; Input obj = new Input(); while (isContinue) { //TODO : we need to remove below try c...
7ffdd65324158c6747fdd517c736cb6707d7f7cc
C#
mattan212/LeetCode
/UnitTests/NextPermutationTests.cs
3.25
3
using System.Linq; using LeetCodeProjects; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTests { [TestClass] public class NextPermutationTests { [TestMethod] public void MyTestMethod1() { //Arrange var input = new int[3] {1, 3, 2}; ...
2b93dfc0f682b20438d11a37be470eca88f4b745
C#
jmcfet/skiaAndroidStart
/androidSkia/MainActivity.cs
2.671875
3
using Android.App; using Android.Widget; using Android.OS; using SkiaSharp.Views.Android; using SkiaSharp; using System.Collections.Generic; using System.Drawing; namespace androidSkia { [Activity(Label = "androidSkia", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { ...
19e0f84e93c8f6a7806f154c459c4d0391082c46
C#
Udenrigsministeriet/iati-api
/Um.DataServices.Test/Unit/XmlFilePagingTest.cs
2.53125
3
using NUnit.Framework; using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; using System.Collections.Generic; using Um.DataServices.XmlFilePaging; using System; namespace Um.DataServices.Test.Unit { [TestFixture] public class XmlFilePagingTest { [Test] public void T...
2e88890f4e569b1185d3685e76432b4308c0a316
C#
TheUnknownGentlemen/RocketBot
/PokemonGo.WPF/Converters/TeamToImagePathConverter.cs
2.6875
3
using System; using System.Globalization; using System.Windows.Data; namespace PokemonGo.WPF.Converters { public class TeamToImagePathConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var teamName = (string)v...
8aac7eae37be3a19b4bf6c60966e1e922e4da39b
C#
lain076/pcaccrepository
/Udemy/cs/projets_cs/magicNumber/MagicNumber/Program.cs
3.6875
4
using System; namespace MyApp // Note: actual namespace depends on the project name. { internal class Program { private const int MinimalLimit = 1; private const int MaximalLimit = 10; private static int GenerateNumberToFind(int maximumNumber = 10) { var randomizer...
af3521cf6b093eae042a38f27c34bbe40454c4b5
C#
hetzermj/AutomationBaseFramework
/SeleniumBase/PageObjects/BasePage.cs
2.515625
3
using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using System.Threading; namespace SeleniumBase.PageObjects { public class BasePage { public BasePage(IWebDriver driver) { this._driver = driver; } public const int IMPLICITWAITTIMEOUT = 20; protected IWebDriver _driver { get; set;...
9856b51cec0a5b5036aac24a14ba73ac0e7e8668
C#
PseudoNuke/assist-purchase
/AssistAPurchase/SupportingFunctions/ProductConfigureSupporterFunctions.cs
3.046875
3
using System.Collections.Generic; using AssistAPurchase.Models; namespace AssistAPurchase.SupportingFunctions { public static class ProductConfigureSupporterFunctions { public static bool CheckForNullOrMismatchProductNumber(MonitoringItems product, string productNumber) { if (produc...
df74a7c4c55b7a274423b7520f869686e2a8c364
C#
sk-0520/Pe
/Source/Pe/Test/Test/TestIO.cs
2.5625
3
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using Microsoft.VisualStudio.TestPlatform.PlatformAbstractions....
60b23ff42b1d702ecd1d3fc644a25a0ba40544ae
C#
enra64/TemporaryDungeonDwarf
/DungeonDwarf/StartScreen.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Graphics; using SFML.Window; namespace DungeonDwarf { class StartScreen { private RenderWindow win; private Sprite background, startText; private int currentAl...
16d19c7acece6693ee3537a4cfef87721b3d6edb
C#
Frinen/.net-food-shop
/Food_Store/Food_Store/Controllers/ItemsController.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Food_Store.Common; using Food_Store.Models; using Microsoft.AspNetCore.Authorization; using Food_Store.Vi...
e142c13447786cac52e4694fd628301c82cf7e44
C#
ReynaldAdolphe/CSharp-7-First-Look
/Ch02/02_04/Begin/CSharp7_FirstLook/Deconstruction/Program.cs
3.765625
4
using System; namespace Deconstruction { class Program { static void Main(string[] args) { // TODO - Deconstruction Demo (string authorName, string bookTitle, long pubYear) = GetNewCS7_Tuple(); Console.WriteLine("Author: {0} \nBook: {1} Year: {2}\n", ...
1940e9461cdf22413db7e0f85fc47a4992023df1
C#
GodLesZ/ZeusEngine
/Shared/Zeus.Library/IO/Tools.cs
3.109375
3
using System; using System.IO; using System.Text; namespace Zeus.Library.IO { public class Tools { public static void EnsureDirectory(string dir) { // @TODO: Working with Mono on Linux? var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, dir); if (Director...
f8cd86b39a8350ca025e142ba8fd9d6fe24c2d99
C#
shendongnian/download4
/code4/664914-15896184-38805675-2.cs
2.53125
3
public bool Execute(Item item, ID commandId, string comment) { var workflowId = item[FieldIDs.Workflow]; if (String.IsNullOrEmpty(workflowId)) { throw new WorkflowException("Item is not in a workflow"); } IWorkflow workflow = item.Database.WorkflowProvider.Get...
44968b6c7b617b8ec9b8109cee1f3ea8bbb60f6e
C#
apomarinov/Telerik-Academy
/C# 1/Operators-and-Expressions/OddOrEvenIntegers/OddOrEvenIntegers.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OddOrEvenIntegers { class OddOrEvenIntegers { static void Main(string[] args) { IsOdd(3); IsOdd(2); IsOdd(-2); ...
3f84c0994028d9d6b61833c2dbdabf56ebd71ca0
C#
Laeng/StarCitizen_maro
/SCTools/SCTools/Adapters/RepositoriesListViewAdapter.cs
2.640625
3
using System.Collections.Generic; using System.Windows.Forms; using NSW.StarCitizen.Tools.Localization; using NSW.StarCitizen.Tools.Properties; using NSW.StarCitizen.Tools.Settings; namespace NSW.StarCitizen.Tools.Adapters { public class RepositoriesListViewAdapter { private const string COLUMN_KEY_NAM...
f9bbb92c9fa79847bd4512eba060493990325172
C#
oldmannus/PitGit
/Assets/Scripts/Utilities/FlagSet.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Pit.Utilities { public class FlagSet { int[] _fields = new int[0]; protected void Reset() { _fields = new int[0]; } /// <summary> /// Note flag must be...