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 |
|---|---|---|---|---|---|---|
79f148a35e3562aa7de0db953b22bc4acbb46e77 | C# | melliemello/TelerikAcademyHomeworks | /C#-Part-I/Exam/02/02/Program.cs | 3.703125 | 4 | using System;
namespace _02
{
class Program
{
static void Main()
{
double secret = Int32.Parse(Console.ReadLine());
double temp;
double result;
string text = Console.ReadLine();
int len = text.Length;
for (int i = 0; i < ... |
b4d7b95bc4e1c9b21fd641b134af815cf5106ca9 | C# | andrewwdk/NET.S.2019.Zhidenko | /NET.S.2019.Zhidenko.13/Matrixes/MatrixChangeEventArgs.cs | 2.640625 | 3 | using System;
namespace Matrixes
{
public class MatrixChangeEventArgs<T> : EventArgs
{
public MatrixChangeEventArgs(int i, int j, T element)
{
this.I = i;
this.J = j;
this.Element = element;
}
public int I { get; private set; }
publ... |
f0afa5ca3302974be6539af41aab0ec00305e7e1 | C# | shendongnian/download4 | /code6/1046871-26999002-77936827-2.cs | 2.8125 | 3 | Public Class MyClass
Dim NextValidTime as DateTime
public sub Some_Event_Handler()
If Now() > NextValidtime Then
'do stuff
NextValidTime = DateAdd(DateInterval.Second, 1, Now)
Else
' Not enough time has passed - do nothing
... |
ce1e0f2da24b48ac0408680a571c2e58a5347e7a | C# | shendongnian/download4 | /first_version_download2/278001-22397513-60355224-2.cs | 2.6875 | 3 | var ar = DateTime.Now.ToString("dd/MM/yy HH:mm:ss tt",
new System.Globalization.CultureInfo("ar-AE"));
// 14/03/14 06:14:34 ص
var us = DateTime.Now.ToString("dd/MM/yy HH:mm:ss tt",
new System.Globalization.CultureInfo("en-US"));
// 14/03/14 06:14:44 AM
|
7b0a1ca92f399497b865b0ac797dd9fa3779a6b9 | C# | gabrielmt07/MinhaApiRest | /Api.Domain/Pessoa.cs | 2.75 | 3 | using System.ComponentModel.DataAnnotations;
namespace Api.Domain
{
public class Pessoa
{
[Key]
public int Id { get; set; }
[Required(ErrorMessage = "Campo obrigatório")]
[MaxLength(500, ErrorMessage = "Campo deve ter no máximo {1} caracteres")]
[MinLength(3, ErrorMess... |
b512f8d38e8cf36edbeb64265fffd1428b51871e | C# | PopovychMykhailo/TrainingInCyberBionicSystematics | /.Net/C# Starter/Lesson 4 (2021.07.19) - if else, switch case/004_Conditions/015_Switch Expression/Program.cs | 3.890625 | 4 | using System;
using System.Text;
namespace _015_Switch_Expression
{
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = Encoding.Unicode;
Console.InputEncoding = Encoding.Unicode;
Console.WriteLine("Введите название дня не... |
5b8d2cd333b445d9b4b8786ba5b6f544d83ef22b | C# | nickworonekin/puyotools | /src/PuyoTools.Core/Textures/Gim/PixelCodecs/Index8PixelCodec.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace PuyoTools.Core.Textures.Gim.PixelCodecs
{
/// <inheritdoc/>
internal class Index8PixelCodec : PixelCodec
{
public override bool CanEncode => true;
public override int BitsPerPixel => 8;
public override i... |
1ff81caf6106ee0ab3f67c95feff2ceac7f238e4 | C# | DevArcana/GameParadeSummer2021 | /Assets/Scripts/Ability/AbilitySlots.cs | 3.078125 | 3 | using System;
using Ability.Abilities;
using Arena;
namespace Ability
{
public class AbilitySlots
{
private BaseAbility[] _slots = new BaseAbility[3];
public BaseAbility SelectedAbility => SelectedSlot != -1 ? _slots[SelectedSlot] : null;
public int SelectedSlot { get; private set; } ... |
e528a3b04b52d024d6516c3db514b85c55c9fdc5 | C# | ali50m/education | /asp.net-mvc/the-complete-aspnet-mvc-5-course/src/Vidly/Vidly/Controllers/MovieController.cs | 2.625 | 3 | namespace Vidly.Controllers
{
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Validation;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Vidly.Models;
using Vidly.ViewModels;
public class MovieController : Controller
{
... |
7d7c9993a2f6d324c8811300dca3d30f53888c19 | C# | svilenb/TelerikAcademy | /Databases-for-Developers/Entity-Framework/05.FindSalesByRegionAndPeriod/FindSalesByRegionAndPeriod.cs | 3.296875 | 3 | namespace _05.FindSalesByRegionAndPeriod
{
using System;
using System.Linq;
using EntityFrameworkDatabaseFirst;
class FindSalesByRegionAndPeriod
{
static void Main(string[] args)
{
using (NorthwindEntities northwindEntities = new NorthwindEntities())
{
... |
69366d4d6208cb7ceef17ba02e0e484e7a845c2a | C# | TestCentric/tc-lite | /src/tclite/Constraints/CollectionItemsEqualConstraint.cs | 2.890625 | 3 | // ***********************************************************************
// Copyright (c) Charlie Poole and TestCentric contributors.
// Licensed under the MIT License. See LICENSE in root directory.
// ***********************************************************************
using System;
using System.Collections;
us... |
2f0a3af709f59f2213eade49d8d886fe011647e9 | C# | s18636/APBD-cw1 | /APBD-cw1/APBD-cw1/Program.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Linq;
namespace cw1
{
public class Student
{
public string Imie { get; set; }
private string _nazwisko;
//prywatne pola dawac z podkreslnikiem
public string... |
c4aa1a0968585bce45228f6d891b11b41fccbc12 | C# | jduv/IndexML | /IndexML/Spreadsheet/RowIndexer.cs | 3.265625 | 3 | namespace IndexML.Spreadsheet
{
using System;
using System.Collections.Generic;
using DocumentFormat.OpenXml.Spreadsheet;
/// <summary>
/// OpenXml utiltiy class for indexing rows.
/// </summary>
public class RowIndexer
{
#region Fields & Constants
/// <summary>
... |
c2bb74ccca51a88a6dfad44e91edc69fffceb48c | C# | Charlietzu/software-unit-tests | /Demo.Tests/AssertStringsTests.cs | 2.921875 | 3 | using Xunit;
namespace Demo.Tests
{
public class AssertStringsTests
{
[Fact]
public void StringsTools_JoinNames_ReturnFullName()
{
//Arrange
StringsTools sut = new StringsTools();
//Act
string fullName = sut.Join("Caio", "César");
... |
80b61f33b424da6b2753a71499c68034050bc05a | C# | liveoffedge/CodeFights | /Arcade/The Core/Well of Integration/allLongestStrings.cs | 2.84375 | 3 | string[] allLongestStrings(string[] inputArray) {
List<String> answer = new List<String>();
answer.Add(inputArray[0]);
for (int i = 1; i < inputArray.Length; i++) {
if (inputArray[i].Length == answer[0].Length) {
answer.Add(inputArray[i]);
}
if (inputArray[i].Length > answer[... |
ca7a8b318153a5d961a314e0f25ddc5d53777999 | C# | kaerniteal/SkillSimulatorMHW | /SkillSimulatorMHW/SkillSymulatorMHW/Result/ResultData.cs | 2.875 | 3 | using System.Collections.Generic;
using System.Linq;
using SkillSimulatorMHW.Data;
namespace SkillSimulatorMHW.Result
{
/// <summary>
/// 結果データセット.
/// </summary>
public class ResultData
{
/// <summary>
/// コンストラクタ.
/// </summary>
public ResultData()
... |
203a7ffe1767843bb2e3e4747a2687a87af2fe96 | C# | newky2k/dscomponents | /src/DSoft.Datatypes.Grid/Data/DSDataValue.cs | 2.8125 | 3 | // ****************************************************************************
// <copyright file="DSDataValue.cs" company="DSoft Developments">
// Created By David Humphreys
// Copyright © David Humphreys 2015
// </copyright>
// ****************************************************************************
using... |
ce0ac32c4271fb022af05af53ef7ab64e0bebe5d | C# | matthew-m-moore/EduSafe-Insurance | /EduSafe.Core/Repositories/Excel/Converters/ScenarioLogicConverter.cs | 2.59375 | 3 | using System;
using EduSafe.Core.BusinessLogic.Scenarios.ScenarioLogic;
using EduSafe.Core.BusinessLogic.Scenarios.Shocks;
using EduSafe.Core.Interfaces;
using EduSafe.IO.Excel.Records;
namespace EduSafe.Core.Repositories.Excel.Converters
{
public class ScenarioLogicConverter
{
private const string _i... |
43f8856ec7ae14a283a75dea82c525c415490baa | C# | guanlingxingfu/study | /013LINq/Program.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Activation;
using System.Text;
using System.Threading.Tasks;
namespace _013LINq
{
class Program
{
static void Main(string[] args)
{
//初始化武林高手
var masterList = new List<Marti... |
ce974098ed713dffade0164dcd52f450625abd72 | C# | karmaecrivain94/IMDBdataProcessor | /Program.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using CsvHelper;
namespace DataProcessor
{
class Genre
{
public int count { get; set; }
... |
5878c5b31c1173522f0c9fa92917813a41c5dac1 | C# | ghostYJ/Ghost | /Ghost.Utility/Ghost.Utility/ExtensionMethod/MathExtensionMethod/DecimalNullableMathExtensionMethod.cs | 3.625 | 4 | namespace Ghost.Utility
{
/// <summary>
/// 可控DecimalMath运算
/// </summary>
public static class DecimalNullableMathExtensionMethod
{
/// <summary>
/// 加,遇到null按0计算相加,若都为null,则返回null。
/// </summary>
/// <param name="d1"></param>
/// <param name="d2">... |
1e13cb5510c7c678bd7670a480fb5a9cd39309c5 | C# | Programming-Engineering-Pmi-31/IntelligentCooking | /src/IntelligentCooking/IntelligentCooking.DAL/EntityConfigurations/DishConfiguration.cs | 2.53125 | 3 | using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using IntelligentCooking.Core.Entities;
namespace IntelligentCooking.DAL.EntityConfigurations
{
public class DishConfiguration : IEntityTypeConfiguration<Dish>
{
public void Configure(EntityTypeBu... |
93981a07c03c27ff04b8d985117805e2ac9f83d2 | C# | xMadFreaK/QFS_Unity | /Studienprojekt_Server/ClientObject.cs | 3.0625 | 3 | using System;
using System.Net.Sockets;
using System.Security.Cryptography;
namespace Studienprojekt_Server
{
public class ClientObject
{
public TcpClient socket;
public NetworkStream myStream; // to receive and send data from/to client
public int connectionID; // ID of client
... |
b1d9192c122dabb5079f59e3d41e2654bde1ef40 | C# | meikb/fightthelandlord | /TWQP/trunk/牌之算法研究/扑克.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace 扑克
{
public static class Handler
{
public static readonly string[][] _牌显示 = new string[][]
{
new string[] { "", "A", "2", "3", "4", "5",... |
d7605889b2492c3d33458e48a2dd2a310b377923 | C# | PPakornDev/cold_storage | /SIAM_Temp_App/db_manage.cs | 2.625 | 3 | using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SIAM_Temp_App
{
public class db_manage
{
private MySqlCommand command;
... |
427f6a4f57ba71e4bfa39b13f58aafd60f4effc7 | C# | RajNakkiran/simple | /simple/LibraryFine/LibraryFine.cs | 3.296875 | 3 | // https://www.hackerrank.com/challenges/library-fine
// Raj Nakkiran. Sep 1,2016
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LibraryFine
{
class Solution
{
static void Main(string[] args)
{
string[] tokens_d1 = Conso... |
03fdf7b25ce0f4021c1856df10000a75cf124998 | C# | ibrahimbilgic/Csharp-Examples | /Sekil/Program.cs | 2.59375 | 3 | using System;
namespace Sekil
{
class Program
{
static void Main(string[] args)
{
Sekil[] sekiller = new Sekil[5];
sekiller[0] = new Sekil();
sekiller[1] = new Daire();
sekiller[2] = new Ucgen();
sekiller[3] = new Kare();
... |
d2faf1dca42993236a18f4ed40a65e1df48aa6db | C# | APmoss/InCompleteControl | /Project_WB/Project_WB/Framework/Audio/MusicTrack.cs | 2.84375 | 3 | using System;
using Microsoft.Xna.Framework.Audio;
namespace Project_WB.Framework.Audio {
/// <summary>
/// A music track that plays a certain song when added to the audio manager.
/// Only one song can be playing in the audio manager at once.
/// </summary>
class MusicTrack : AudioItem {
#region Properties
... |
b708ed5ddddc9caf74a07ca4bd01feae40396097 | C# | Hans0924/Echo_Console | /Echo_Console/Echo_Console/Protocol/WeatherRequest.cs | 2.9375 | 3 | namespace Echo_Console.Protocol
{
public class WeatherRequest : IProtocalSerializable
{
protected string Command;
public string Source { get; set; }
public string Destination { get; set; }
public string Airport { get; set; }
public WeatherRequest()
{
... |
55b1735455081b97530997ca396f3d0b5a9818ff | C# | ivanstamboliyski/CSharp-Fundamentals-may-2020 | /08.02 - Text Processing - Exercise/05. Multiply Big Number/Program.cs | 3.75 | 4 | using System;
namespace _02._05.Multiply_Big_Number__Exercise
{
class Program
{
static void Main()
{
string bigNumber = Console.ReadLine().TrimStart('0');
int num = int.Parse(Console.ReadLine());
string result = string.Empty;
int add... |
f3df5bfcb8fefdae8e421e376c2867403c927bc9 | C# | qwqdanchun-fork/DarkEye-1 | /Classes/Objects/Data.cs | 3.015625 | 3 | using DarkEye.Classes.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DarkEye.Classes.Objects
{
/*
* Created by Gish_Reloaded on 27/03/2020.
*/
class Data
{
private readonly string data;
private re... |
fb96689cb92c6025b239861dfe6ca710a4616b0e | C# | Ryu64Emulator/Ryu64 | /Ryu64/CLI.cs | 2.984375 | 3 | using System;
using System.IO;
namespace Ryu64
{
public class CLI
{
public delegate void CLIMethod(string[] args, uint CurrentPosition);
public struct CLIFlags
{
public string InputRom;
public bool UTEsyscall;
public bool Debug;
public b... |
9c8a4201d1607c0c36e6aa730799c5d765c4d0cf | C# | neil-millward/VR-Game | /Assets/Scripts/PlayerMovement.cs | 2.703125 | 3 | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class PlayerMovement : MonoBehaviour
{
//as public, speed propertie shows up in unity
public float speed;
//Adding a Rigidbody component to an object will put its motion under the control of Unity's physics engine
private Ri... |
c7d9aa1c8d73411f0859b26683d6048cb8330cd6 | C# | stefanovnm/TelerikAcademyHomeworks | /CSharp-OOP-2016/OOP-Principles-Part1/03.Animals/Tests.cs | 3.953125 | 4 | namespace _03.Animals
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Tests
{
public static void Main()
{
Cat[] cats = new Cat[]
{
new Cat("Pesho", 2, Sex.male),
new Cat("Rijko", 6, Sex.male),... |
1c5e7465c7c9538bbd6136eeddc85adfaaabcdad | C# | lulzzz/GridDomain | /GridDomain.EventSourcing/DomainSerializer.cs | 2.9375 | 3 | using System;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Text;
using Newtonsoft.Json;
namespace GridDomain.EventSourcing
{
public class DomainSerializer
{
public DomainSerializer(JsonSerializerSettings settings = null)
{
... |
a4a12ed46cb2923a234289c9751739a90795a90d | C# | cuteofdragon/UWPSamples | /UWPSamples/PhotosBrowser/MainViewModel.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PhotosBrowser
{
public class MainViewModel
{
public List<Photo> Photos { get; set; }
public MainViewModel()
{
InitData();
}
privat... |
4e6b7be1ebb20c1ea0b3ca4d0af33bbfd40d4234 | C# | stephenmuecke/mvc-collectionvalidation | /scr/Validation/RequireInCollection.cs | 3.171875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using System.Web.Mvc;
namespace Sandtrap.Web.Validation
{
/// <summary>
/// Validation attribute to assert that at least one object in the collection must... |
d67ea45a40ed31496dc05d21e46cad485ad76b57 | C# | pires11d/CourseApp | /Course.Domain/Entities/Banking/Account.cs | 3.859375 | 4 | using System;
namespace Course.Entities
{
public class Account
{
private static int LastNumber { get; set; }
public int Number { get; private set; }
public string Holder { get; set; }
public double Balance { get; set; }
public double WithdrawLimit { get; set; }
... |
daaaf09c4f2eed96ca261ab108f29fc98532865c | C# | Satenik-Khchoyan/EncapsulationInheritancePolymorphism | /UserRegister/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
namespace UserRegister
{
class Program
{
static void Main(string[] args)
{
//Polymorfism ger koden flexibilitet.
//Ex. bas klassens samma metod kan implementeras på olika sätt i subklasserna, beroende på deras behov.
... |
70d347087fbd913eaa03d985ace59c962824842c | C# | khanhkk96/SaleApplication | /SaleProject/DataObjectAccess/Models/Import.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataObjectAccess.Models
{
/// <summary>
/// Information of... |
7fe1231cdd0256bf1871cc9e30b8addfce0d7693 | C# | Joelpina93/DA1 | /Parking/Parking/Entities/Sms.cs | 2.671875 | 3 | using Entities.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Entities
{
public class Sm... |
08cdf1a5aa77730226970dc012b81b521b156ed3 | C# | berbulalauri/web-project-01 | /modules-.NET/06-collections/Tutorials/tutorial-01/tutorial-01/Program.cs | 3.640625 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace tutorial_01
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please Write the line: ");
var userInput = Console.ReadLine();
var resu... |
f26e55660ea8bc1eac8dc420b69e84861cbf18fd | C# | wikitools/wikigraph | /Assets/Scripts/Services/History/Actions/NodeSelectedAction.cs | 2.578125 | 3 | using Model;
using System;
namespace Services.History.Actions {
public class NodeSelectedAction : UserAction {
private uint? oldSelectedNode;
private uint? newSelectedNode;
bool isRouteAction;
public static Action<uint?, bool> selectNodeAction;
public NodeSelectedAction(uint? oldNode, uint? newNode, bool ... |
8f7b8fd60c5fdd97648bf12bbd6e543076c4d1fb | C# | AugustasMacijauskas/CS-OOP-Homework | /PavyzdinisKontrolinukas/Program.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace PavyzdinisKontrolinukas
{
class Mokinys
{
string vardas;
string pavarde;
string lytis;
int amzius;
string klase;
doubl... |
b19c25dbc3008bef5e425d746823f9639a51747d | C# | gblouin/Meek | /code/Meek.Specs/ThumbnailGeneratorSpecs.cs | 2.5625 | 3 | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using Machine.Fakes;
using Machine.Specifications;
using Meek.Content;
using It = Machine.Specifications.It;
using GivenIt = Moq.It;
namespace Meek.Specs
{
public class When_asking_for_an_image_thumbnail : WithSubject<JpegThumbnailGenerator>
... |
7e48ed813c0edd736fbc67610c699297467d87a1 | C# | bubdm/Ao.SavableConfig | /src/Ao.SavableConfig.Binder/Compiling/ConstructCompiled.cs | 2.671875 | 3 | using System;
using System.Linq.Expressions;
using System.Reflection;
namespace Ao.SavableConfig.Binder
{
public delegate object ObjectCreator(params object[] @params);
public class ConstructCompiled : IEquatable<ConstructCompiled>
{
private static readonly Type ObjectArrayType = typeof(object[]);... |
41f1290edc3188c1b4320c6abc4bb56506e4ce80 | C# | Monikashree/DemoMvc | /OnlineTrainTicketBookingApp.DAL/TicketBookingRepository.cs | 2.890625 | 3 | using OnlineTrainTicketBookingApp.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
namespace OnlineTrainTicketBookingApp.DAL
{
public interface ITicketBookingRepository //Interface to highlight Ticket booking methods
{
bool AddBookingDetails(TicketBooking ticket... |
65b876b37949a3304254b365cb5bdf3c58ecf8bb | C# | ttn218/ChatbotGame | /GreatWall_Start/Dialogs/neoGame/GameStartDialog.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using LionKing.Dialogs.Rank;
using LionKing.Model;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
namespace LionKing.Dialogs.neoGame
{
[Serializable]
public class GameStartDialog : IDialog<string>
{
... |
05a8f91eea75e23b40495f94d6d587ec0072f3a3 | C# | nissafors/Expressions | /Expressions/MainWindow.xaml.cs | 2.734375 | 3 | // TODO:
// * Variables
// * Constants
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.Me... |
913cb75a3a84787bdbd0e2219eaefd823e81660c | C# | SaniaGos/CatchMe | /CatchMe/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;
using System.Windows.Forms;
namespace CatchMe
{
public partial class Form1 : Form
{
private int point;
private int... |
c6990b4f8d0a7b11bd1cd033bc5631520b264c50 | C# | VadHane/TelegramBotForChnuChar | /Models/Text.cs | 3.140625 | 3 | using Telegram.Bot.Types;
namespace ChatBot.Models
{
public static class Text
{
public const string ForPrivedChat = "Я працюю виключно в <b>чаті студентів ЧНУ</b>!";
public static string DeleteWord(Word word)
{
return "<b>Я видалив слово із словника. </b> \n" +
... |
de5a7fa32c747dce2b1a742cd4cab98dfb2969b3 | C# | wegiangb/breeze.js.samples | /net/NoDb/NoDb/Models/TodoItem.cs | 2.625 | 3 | namespace NoDb.Models {
public class TodoItem {
public int TodoItemId { get; set; }
public string Title { get; set; }
public bool IsDone { get; set; }
public int TodoListId { get; set; } // Foreign key
// navigation property to item's parent TodoList
public virtual TodoList TodoList { get;... |
fffaa3d38570d9859786ea42dedfa613214c2e59 | C# | VladimirMakarevich/AutoDoc | /AutoDoc/Mappers/BookmarkMapper.cs | 2.5625 | 3 | using AutoDoc.DAL.Entities;
using AutoDoc.Models;
using AutoMapper;
using System.Collections.Generic;
using System.Linq;
using AutoDoc.BL.Models;
using System;
namespace AutoDoc.Mappers
{
public class BookmarkMapper
{
private readonly IMapper _mapper;
public BookmarkMapper(IMapper mapper)
... |
986482d97b839e83d4e1f17f25a905afd5856034 | C# | DKorzhovnik/Shine | /Data/Models/Config/PersonConfig.cs | 2.578125 | 3 | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Shine.Data.Models.Config {
public class PersonConfig : IEntityTypeConfiguration<Person> {
public void Configure(EntityTypeBuilder<Person> builder) {
... |
f68c2008cd1c97977c5d77bab7f65450934366ed | C# | SignedUp/omni-foundation | /foundation/tags/1.2.0/src/Omniscient.Foundation.Data/IEntity.cs | 2.96875 | 3 | using System;
namespace Omniscient.Foundation.Data
{
/// <summary>
/// Represents an entity.
/// </summary>
public interface IEntity
{
/// <summary>
/// Gets or sets the status of the entity.
/// </summary>
EntityStatus Status { get; set; }
... |
59c00679b120a07e6b38960ea21fdfe584068be5 | C# | binckbank-api/client-csharp | /OrderModel.cs | 2.515625 | 3 | namespace ClientCsharp
{
using System;
using System.Reflection;
using Newtonsoft.Json;
/// <summary>
/// The order update
/// </summary>
[Obfuscation(Feature = "preserve-name-binding")]
[Obfuscation(Feature = "preserve-identity")]
public class OrderModel
{
/// <summ... |
00c61434d8e2dd51a2ebf4058128558c39db4443 | C# | HendrikMennen/Dash2D | /TestGame/src/effects/AlcoholPlayerEffect.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestGame.src.input;
using TestGame.src.tools;
namespace TestGame.src.effects
{
class AlcoholPlayerEffect : PlayerEffect
{
bool dir = true;
public override void u... |
ac3edd7aa8be114cd88d8226a60010ddef20f7e3 | C# | OscarBarter/Y13CompSci | /Stack/Program.cs | 3.90625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stack
{
class Program
{
static void Main(string[] args)
{
// declare a Stack of strings call myStack
var myStack = new StackArray<string>();
... |
849b3370bd870c9f4c5e7c664a8d83e1370eefab | C# | jonfuller/presentations | /dependencies/src/NoInjection.cs | 2.75 | 3 | public class MovieLister
{
private readonly IMovieFinder _finder;
public MovieLister()
{
_finder = new ImdbMovieFinder();
}
public IEnumerable<Movie> MoviesDirectedBy(string director)
{
return _finder
.FindAll()
.Where(movie => movie.Director =... |
0bd725d07cb85c57af8b04e133a81092266e1598 | C# | Nomil98/Carrera | /Carrera.cs | 3.15625 | 3 | class Carrera
{
private int _NumeroCorredor;
protected int _Posicion;
private static Random ran = new Random();
public int NumeroCorredor
{
get { return _NumeroCorredor; }
}
public int Posicion
{
get { return _Posicion; }
... |
8f04def3f961dfe81ba0bb4377aa7de9005e362e | C# | wiyonoaten/dev4goodHacks | /ServicesLib/Models/Converters/LocationListConverter.cs | 2.953125 | 3 | using Microsoft.WindowsAzure.MobileServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Windows.Data.Json;
namespace ServicesLib.Models.Converters
{
public class LocationListConverter : IDataMemberJsonConverter
{
private static readonly IJsonValue NullJ... |
1b3cd4be2eee7f13c03cb9df8e986217b24d2767 | C# | Almantask/Sudoku- | /src/Sudoku.Core/SudokuGenerator/RandomGame.cs | 2.578125 | 3 | using Sudoku.Core.Extensions;
using Sudoku.Core.Rules;
using Sudoku.Core.SudokuElements;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sudoku.Core.SudokuGenerator
{
internal class RandomGame: Game
{
private protected overr... |
eaba37e35d4e523a9e6bbedb4dc8b812caa1d5fc | C# | christerk/FFBUnity | /Assets/Scripts/Model/Types/PlayerAction.cs | 2.53125 | 3 | namespace Fumbbl.Model.Types
{
public class PlayerAction : FfbEnumerationFactory
{
public string Action => Name;
public int Type { get; set; }
public string ShortDescription { get; set; }
public string Description { get; set; }
public bool ShowActivity => Description != ... |
d8910c580e4a7a43564ba1603eaa95c1dc53ae8a | C# | sergik/Cardio | /Cardio.Shared/Input/InputManager.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
namespace Cardio.UI.Input
{
public static class InputManager
{
#region Touch
public static List<GestureSample> Gestures { ... |
b5586210b833e6131ba16779059f4f497fe60c54 | C# | askeip/blablblabl | /Poker/Assets/Scripts/SidePot.cs | 2.71875 | 3 | using UnityEngine;
using System.Collections;
using System.Linq;
using System.Collections.Generic;
public class SidePot
{
public float Pot { get; set; }
public float MinBet { get; set; }
public SidePot(float pot, float minBet)
{
Pot = pot;
MinBet = minBet;
}
}
public class PotCounter
{
public float mainPot... |
15d1e8b1bb379d2c7e46ce23d09bfd81a782fadd | C# | lukeschofield2000/steve-ass-2 | /steve ass 2/steve allison assignment 2.cs | 2.90625 | 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 System.IO;
using System.Windows.Forms.DataVisualization.Charting;
namespace steve_ass_2
{
publ... |
53e5e0bb7bf434b2333bbedb089776f57f34826d | C# | Elmona/1DV607-Workshop2 | /view/UserView.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
namespace View
{
class UserView
{
public enum Event
{
ViewCompactList,
ViewDetailedList,
ViewSpecificMember,
AddMember,
RemoveMember,
EditMember,
AddBoat,
... |
a84ca4155a1ae81ecd2f78e71dce0c8cf125c3b4 | C# | adamjoyce/slot-machine | /Assets/Scripts/BulletController.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections;
public class BulletController : MonoBehaviour {
private float spawnTime;
public int bulletDamage = 5;
public int fireballDamage = 15;
// Use this for initialization
void Start () {
spawnTime = Time.fixedTime;
}
// Update is called once p... |
417307f4da9a7986a297a382d5f1e90882a5f5cb | C# | panoramicsystems/LoopInterval | /PanoramicSystems.LoopInterval/LoopInterval.cs | 3.09375 | 3 | using Humanizer;
using Humanizer.Localisation;
using Microsoft.Extensions.Logging;
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace PanoramicSystems
{
public abstract class LoopInterval
{
private readonly TimeSpan _timeSpanInterval;
public ILogger Logger {... |
f32e2ec97ba98fc84fc70ad3e35dc0ce09efa96e | C# | danbystrom/factor10.Obj2Db | /factor10.Obj2Db/LinkedFieldInfo.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace factor10.Obj2Db
{
public sealed class LinkedFieldInfo
{
private static readonly Dictionary<string, Func<IConvertible, object>> Cohersions = new Dictionary<string, Func<IC... |
2e5e2116599f1d282701de77c2573ddd8103ec58 | C# | AdvoXS/Chat | /chatick/Forms/history_messages_Form.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading.Tasks;
namespace chatick
{
public partial class history_messages_Form : Form
{
public history_messages_Form()
{
InitializeComponent();
set_Properties_Elements();
}
... |
f876066a85ccab014b08cb63e441021f4778a280 | C# | DhanuIngalahalli/RegexUsingLambda | /UserRegUsingLambda/Program.cs | 3.234375 | 3 | using System;
namespace UserRegUsingLambda
{
class Program
{
static string Regex_password = "^(?=.*[A-Z])(?=.*\\d)(?=[\\w]*[\\W][\\w]*$)[\\S]{8,}$";
public static string Regex_name = "^[A-Z]{1}[a-z]{2,}$";
public static string Regex_email = "^[0-9A-Za-z]+([._+-]*[0-9A-Za-z]+)*[@][0-9A-... |
c30c85c22d5541162ecfebccfb8bbe9db72e678c | C# | santoshp1995/Space-Invaders | /GameObject/Aliens/AlienColumn.cs | 2.609375 | 3 | using System;
using System.Diagnostics;
namespace SpaceInvaders
{
public class AlienColumn : Composite
{
public AlienColumn(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
: base(name, spriteName)
{
this.x = posX;
th... |
79b96fe358a4f1736e4d4367d2e56a2bb1d45176 | C# | ualehosaini/NetFabric.Hyperlinq | /NetFabric.Hyperlinq.UnitTests/Element/ElementAt/ElementAt.ArraySegment.Tests.cs | 2.625 | 3 | using NetFabric.Assertive;
using System;
using System.Linq;
using Xunit;
namespace NetFabric.Hyperlinq.UnitTests.Element.ElementAt
{
public class ArraySegmentTests
{
[Fact]
public void ElementAt_With_NullArray_Must_Succeed()
{
// Arrange
var source = default(Arr... |
804867d41e170dfd16ca9a55318a08959b959e7b | C# | DST-Tools/DSTEd-Publisher | /DSTEd Publisher/Actions/List.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using DSTEd.Publisher.SteamWorkshop;
namespace DSTEd.Publisher.Actions {
class List : ActionClass {
public List() {
this.Name = "list";
this.Description = "Displays a list of all published Steam-WorkShop items.";
... |
1aec5500d951dfb37ae7346f2fb9bf76cc60c919 | C# | Ken0327/Leetcode | /src/Stack/20_ValidParentheses/ValidParentheses.cs | 3.703125 | 4 |
/*
Runtime: 68 ms, faster than 98.42% of C# online submissions for Valid Parentheses.
Memory Usage: 37.5 MB, less than 39.06% of C# online submissions for Valid Parentheses.
*/
public class Solution {
public bool IsValid(string s) {
var stack = new Stack<char>();
for (var i = 0; i < s.Length; i++)... |
8d7bf3edd10994b8d72e40dd06e56c36f424ce1d | C# | hienmx95/utils-backend | /Utils/Entities/File.cs | 2.734375 | 3 | using Utils.Common;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Utils.Entities
{
public class File : DataEntity
{
public long Id { get; set; }
public string Ke... |
11201e69708e3da7ce652023a50a5c647d1fc4f2 | C# | afanner/Fanner-Furry-Friends | /DogStore/DSWebUI/Controllers/DogManagerController.cs | 2.515625 | 3 | using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DSBL;
using DSWebUI.Models;
using Serilog;
namespace DSWebUI.Controllers
{
public class DogManagerController : Controller
{
private IM... |
64ccc8b6a699accdb518d9df556c9c99c6aaf6b7 | C# | DanMannMann/Reflekt | /Marsman.Reflekt/Tree Enumerator/TreeEnumerableExtensions.cs | 2.625 | 3 | using System.Collections.Generic;
namespace Marsman.Reflekt
{
public static class TreeEnumerableExtensions
{
public static IEnumerable<Tvalue> AsTreeEnumerable<Tvalue>(this object rootObject,
TreeEnumerationStrategy enumerationStrategy... |
9ac462a096aa2418dee09faf29f7ee5f114cf4a4 | C# | MattHoneycutt/SpecsFor | /SpecsFor.Core/ShouldExtensions/Matcher.cs | 2.84375 | 3 | using System;
using System.Linq.Expressions;
using System.Reflection;
namespace SpecsFor.Core.ShouldExtensions
{
public class Matcher
{
[ThreadStatic]
public static Matcher LastMatcher;
public static void Create<T>(Expression<Func<T, bool>> matcher, string message)
{
LastMatcher = new Matcher<T>(matcher... |
c89a3ee99ee322d00d117ccf8573b43ddc83805a | C# | brchho/ELEC-371-proj | /brian/GUIElements.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace cam_aforge1
{
class GUIElements
{
//Important Variables:
//DO NOT CHANGE UNLESS YOU KNOW WHAT YOU'RE DOING
GUI gui;
public Graphics g;
... |
8c6b821fece1a803c0c05b4e3be25d5b8a66baed | C# | jelias7/EjerciciosLibroCSharp | /Tarea1/Capitulo4/Cap4Ejercicio1.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace CSharpEjercicios1
{
class Cap4Ejercicio1
{
static void Main(string[] args)
{
int numero, resultado;
Console.WriteLine("Numero que se le mostrara la tabla del 1 al 10 ");
numero = i... |
a9b2ff1319796075f1c18167c0febb9bf03f12fe | C# | pusher/pusher-http-dotnet | /PusherServer.Tests/UnitTests/PusherOptions.cs | 2.53125 | 3 | using NSubstitute;
using NUnit.Framework;
using PusherServer.Tests.Helpers;
using System;
namespace PusherServer.Tests.UnitTests
{
[TestFixture]
public class When_creating_a_new_PusherOptions_instance
{
[Test]
public void a_default_RestClient_should_be_used_if_one_is_not_set_on_PusherOpti... |
d1d30524c304bfb0d104da9cf2b2421e9368c6b7 | C# | Dchan21/WebAppWood | /WebAppWood/Models/ModelOtherWood.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace WebAppWood.Models
{
public class ModelOtherWood
{
public int id { get; set; }
public int Vendedor { get; set; }
public DateTime FechaI... |
8aadad0809af69131a1a766e948f9d0e8661987f | C# | AleksandrPopov96/VSProductivity | /QuickActionsAndRefactoring/SomeDomainClass.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickActionsAndRefactoring
{
/*
* Быстрые действия и рефакторинг - Ctrl+. или Alt+Enter:
* 1. Проверка на null всех входных параметров.
* 2. Создание конструктора (обязатель... |
b8f0f9ae431df2c602b507640a18baa504b3a4be | C# | yenagetorp/NiceC-exercise | /OperatorOverloading/ValueTuples/Program.cs | 3.796875 | 4 | using System;
namespace ValueTuples
{
class Program
{
static void Main(string[] args)
{
var what = GetIntString();
var what1 = GetAgeName();
Console.WriteLine(what1.age);
var person = Tuple.Create(2, "Yen");
Console.WriteLine(person.... |
6f38d8e1e0ae89872fa3914ca0c1b45953dde8aa | C# | kajstof/DotNetDesignPatterns | /SampleDotNet/1_Creational/BuilderAbstractExample.cs | 3.59375 | 4 | using System;
namespace SampleDotNet._1_Creational
{
class Person
{
public string Name { get; set; }
public string Position { get; set; }
public class Builder : PersonJobBuilder<Builder>
{
}
public static Builder New => new Builder();
public override ... |
a1d5df8b11f193691da6807a80bcead453e1f0df | C# | hanspach/NetRadio | /ViewModels/JsonHelper.cs | 2.703125 | 3 | using System.IO;
using Newtonsoft.Json;
using System.Linq;
using System.Net;
using System.Reflection;
using log4net;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace NetRadio.ViewModels
{
class Category : IEquatable<Category>
{
[JsonProperty("id")]
public... |
09b4dd5e88ebeffe9c9b52098628caaef800653c | C# | Pireax/neovim.cs | /Example/NeovimDemo/MainWindow.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using MsgPack;
using Neovim;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using QuickFont;
namespace NeovimDemo
{
public partial class MainWindow : For... |
8b9bfbf3178825e6fec14988ab7febc44115ad59 | C# | fkbaggett/samples-c-sharp | /lynda/C-Sharp-Essentials/10_PreprocessorDirectives/PreprocessorDirectives.cs | 2.953125 | 3 | //#define DEBUGCODE
#define JOE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _10_PreprocessorDirectives
{
// Preprocessor Directives
class PreprocessorDirectives
{
static void Main(string[] args)
{
#region This is the main fu... |
a57825e3b329d3beda0edce8e581883cdafbbcaf | C# | Taksaporn/week-1 | /Lab/Lab1-2/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab1_2
{
class BubbleSortFunction
{
static void Main(string[] args)
{
BubbleSortFunction iput = new BubbleSortFunction(); // if not call class is not call ... |
684c24f317408da5a7a160ae19e8dff609ea4812 | C# | rsenna/kakfa-diff-dotnetcore | /Common/Impl/ConsoleLogger.cs | 2.625 | 3 | using System;
namespace Kafka.Diff.Common.Impl
{
internal class ConsoleLogger<T> : ILogger<T>
{
private readonly string _section;
public ConsoleLogger()
{
_section = typeof(T).FullName;
}
public void Info(string message)
{
Console.Write... |
1fd96bd6efe173697cc2c5d7b856b8cd802a0bf8 | C# | azraelzc/ZCGame | /Server/CommonServer/ServerManager.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;
using System.Net.Sockets;
using CommonUnit;
using CommonDataBases;
namespace CommonServer
{
public class ServerManager
{
public delegate void SendEvent(Socket client, object obj);
private SendEv... |
19384971486a68084716840e521710964e656313 | C# | LONG-xy/DotNetHomeWork | /Week6/OrderManagementSystem(WebAPI)/Models/OrderItem.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace OrderManagementSystem.Models {
public class OrderItem {
private double _amount;
private... |
15749ffd6fd2db9b3eef58d008002d158a423300 | C# | cuteant/SpanNetty | /src/DotNetty.Codecs.Http/Utilities/HttpUtility.Html.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Text.Encodings.Web;
using DotNetty.Common.Internal;
namespace DotNetty.Codecs.Http.Utilities
{
partial class HttpUtility
{
#region -- HtmlEncode --
... |
7eea955669f0b91aef0e735f657eec187cb2e622 | C# | Yongfou/jo | /Bank/ProgressBarExample/ProgressBarExample/Form1.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading; // Required for this example
namespace ProgressBarExample
{
public partial class Form1 : Form
{
... |
3daec1b4b6ec867472065e473968e0923bc4e595 | C# | DmitryAstapchik/NET.W.2017.Astapchik.15 | /BLL.Tests/BankAccountMapperTests.orig.cs | 2.71875 | 3 | namespace BLL.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BLL;
using BLL.Interface;
using DAL.Interface;
using NUnit.Framework;
[TestFixture]
public class BankAccountMap... |
6278c762ed077badfa8b5e605959f5f67a64b788 | C# | Hina96/AI-Project | /AIproject/Assets/Scripts/RoomNode.cs | 2.75 | 3 | using UnityEngine;
public class RoomNode : Node
{
private int typeOfRoom;
public RoomNode(Vector2Int bottomLeftAreaCorner, Vector2Int topRightAreaCorner, Node parentNode, int index, int typeOfRoom) : base(parentNode)
{
// Creation of a rectangle
this.BottomLeftAreaCorner = bottom... |
7888b11b0762d9d1f0bd9597c7106b93b37ef615 | C# | Pathoschild/smapi-mod-dump | /source/PlatoTK/PlatoTK/UI/Styles/GridStyle.cs | 2.546875 | 3 | /*************************************************
**
** You're viewing a file in the SMAPI mod dump, which contains a copy of every open-source SMAPI mod
** for queries and analysis.
**
** This is *not* the original file, and not necessarily the latest version.
** Source repository: https://github.com/Platonymous/Plat... |
52c3c0039093cfa565e3c64987486148bc5201cc | C# | areknoster/planar-three-colouring | /Planar3Coloring/Planar3Coloring/BFS.cs | 3.046875 | 3 | using QuikGraph;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Planar3Coloring
{
static class BFS
{
public static (List<HashSet<int>>, UndirectedGraph<int, IEdge<int>>, Dictionary<int, (int, int)>) GetBFSTree(UndirectedGra... |