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 |
|---|---|---|---|---|---|---|
4ac224a0dd0ced99163ad281dcc535d40b86c0a9 | C# | Latyn/Reseter | /Reseter/Reseter/Utilities/StateDictionary.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Reseter.Utilities
{
public class StateDictionary
{
private Dictionary<string, string> Dictionary;
public StateDictionary()
{
InitializeDictionary()... |
38deb2485c3504d5d509cc1c449ff282a84d91dd | C# | RutsSantos/ProjProgramacion3 | /Utilidades/Ejercicios/PolimorfismoEjemplo.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Utilidades {
class Gestor {
private int port = 4343;
private string host = "database";
public Gestor (string host, int port) {
this.port = port;
this.host = host;
... |
ee33386356bf03f7eeff39f171d9c3870e8f09ee | C# | Spaceman1701/UnityOcean | /Assets/Ceto/Scripts/Utility/ShaderGradient.cs | 2.9375 | 3 | using System;
using UnityEngine;
using System.Collections;
using System.IO;
namespace Ceto
{
[Serializable]
public class ShaderGradient
{
[SerializeField]
public Gradient gradient;
[SerializeField]
[Range(2, 16)]
public int resolution = 4;
private Texture2... |
0b41470a3ed7a9498ca69ddfa31198d98efb2a6d | C# | iAmarokk/PoloniexBot | /Views/Windows/MainWindow.xaml.cs | 2.546875 | 3 | using PoloniexBot.ViewModels;
using PoloniexBot.Views.Windows;
using System.Windows;
namespace PoloniexBot
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataContext = new MainWindowViewMod... |
2f455f34cadf3a7489a9fe74849e9681eb1bf43a | C# | easynow-me/Web | /EasyNow.BusinessObject/Abstractions/BaseBo.cs | 2.8125 | 3 | using EasyNow.BusinessObject.DataAccess.Entities;
using System;
using System.Linq;
using EasyNow.BusinessObject.DataAccess;
using Microsoft.Extensions.DependencyInjection;
namespace EasyNow.BusinessObject.Abstractions
{
public abstract class BaseBo<TKey,TEntity>:IBo where TEntity: BaseEntity<TKey> where TKey : st... |
b635fa673c17931daf7120b24a126c10c9a2c739 | C# | jwake422/SoftwareGuild | /Cap/Cap.UI/CarDealership.Tests/Integration Tests/RepositoryTests.cs | 2.53125 | 3 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarDealership.Data.ADO;
using CarDealership.Data.ProductRepository;
using CarDealership.Models.Queries;
using CarDealership.Models.Tables;
using CarDealership.UI.Factories;
u... |
d5377b3133919a9c7a4e7b56c9ebe85f83744e29 | C# | fatima1235/IMPCALC | /Program.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Calculadora
{
class Program
{
static Operaciones opera = new Operaciones();
static menu m = new menu();
static void Main(string[] args)
{
int opciones = 0;
while (opciones != 5)
... |
ad150fdfbf9d849ac72c26befa045a1054f694c0 | C# | juancapo2010/CartaOnline_API | /Controllers/FormaEntregasController.cs | 2.609375 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using CartaOnline.Config;
using CartaOnline.Models;
namespace CartaOnline.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class FormaEntr... |
fb1270f91b0e5bc376c1cd5448108da9b84b9bcc | C# | bharatgudihal/Thro-Bot | /Thro-Bot/Lazer.cs | 2.921875 | 3 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Thro_Bot
{
public class Lazer
{
private Texture2D Texture;
private Vector2 Position;
private Rectangle SourceRectangle;
public void Initialize(Texture2D texture, Vector2 position)
{... |
232250841ac4c27e940406494a707b0c0be9b11c | C# | vicphase/Video-converter | /Convetidor de Video/Main.cs | 2.640625 | 3 | using MediaToolkit;
using MediaToolkit.Model;
using MediaToolkit.Options;
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 Con... |
fd818809041b6ca12f85eddb7b9383842d6088fe | C# | Annushka34/WinForm | /32ПР/c-sovety-programmistam/disk/6/OvalButton/OvalButton/Form1.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
... |
486ddc1cfb921c342ca2301241231f75ff386fb3 | C# | Sayem-Zishan/Student-Portal-CSharp | /PROJECT123/StudentList.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace PROJECT123
{
public partial class StudentList : Form
{
... |
cecd07e623a9be697b2fb28a6a7582cda73b7a3a | C# | ischool-desktop/ischedulePlus | /ischedulePlus/Period.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ischedulePlus
{
/// <summary>
/// 代表一個時段,用來檢查時段是否有衝突
/// </summary>
public class Period
{
/// <summary>
/// 星期
/// </summary>
public DateTime Date { get; set; }
... |
ca348d40610937e69db82ef82c7c004a0ab55826 | C# | vianneytwins/EaiConverter | /EaiConverterTest/Parser/XslParserTest.cs | 2.59375 | 3 | using System;
using NUnit.Framework;
using EaiConverter.Parser;
using System.Xml.Linq;
using EaiConverter.Utils;
namespace EaiConverter.Test.Parser
{
[TestFixture]
public class XslParserTest
{
private XslParser xslParser;
[SetUp]
public void SetUp()
{
this.xslParser = new XslParser();
}
[Test]
p... |
94b1c6175a0ef2177ca2bb2080e2a5f8ac1df498 | C# | Trefluuu/PWSZ-Michal-Ulewski | /PW/lab05/biblioteka/Form3.cs | 2.6875 | 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 MySql.Data.MySqlClient;
namespace biblioteka
{
public partial class Form3 : Form
{
... |
e0aaf87bbcef3bdb6fbed9f30952c55b061b80b9 | C# | SourceCodeBackup/RtfDomParser | /Source/RtfDomParser/RTFDomParagraph.cs | 2.65625 | 3 | /*
*
* DCSoft RTF DOM v1.0
* Author : Yuan yong fu.
* Email : yyf9989@hotmail.com
* blog site:http://www.cnblogs.com/xdesigner.
*
*/
using System;
using System.Text;
namespace RtfDomParser
{
/// <summary>
/// paragraph element
/// </summary>
[Serializable()]
public class RTFDom... |
655cfafebe91257bb1bbd976846a7d2d155a2a13 | C# | mikehowell/70-484 | /Chapter1/Objective2/Listing_38.cs | 2.71875 | 3 | namespace Chapter1.Objective2
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading;
[TestClass]
public class Listing_38
{
[TestMethod]
public void Main()
{
object gate = new object();
bool lockTaken = false;
... |
0fedefbc7cecf159dbdf01d26401ff4f211eb8a3 | C# | JBurlison/Pandaros.API | /Pandaros.API/Extender/Providers/PlayerRecipeProvider.cs | 2.515625 | 3 | using Pandaros.API.Models;
using Recipes;
using System;
using System.Collections.Generic;
using System.Text;
namespace Pandaros.API.Extender.Providers
{
public class PlayerRecipeProvider : IAfterItemTypesDefinedExtender
{
public List<Type> LoadedAssembalies { get; } = new List<Type>();
public... |
481f357f6e3569e0506754f6c1f289ddf0272e2d | C# | pavelangelov/Data-Structures-and-Algorithms | /02. Linear-Data-Structures/06. RemoveNumberIfOccureOddNumberOfTimes/Startup.cs | 3.296875 | 3 | using System.Collections.Generic;
using Utils.Models;
namespace _06.RemoveNumberIfOccureOddNumberOfTimes
{
public class Startup
{
public static void Main()
{
var logger = new ConsoleLogger();
var occureKeys = new Dictionary<int, int>();
var numbers = new Li... |
42fcf4a1286dcda06cd8e317fd4ad06a2ba95e18 | C# | pejoph/Futility | /Scripts/CageTrigger.cs | 2.59375 | 3 | ///=============================================\\\
/// Title : CageTrigger.cs \\\
/// \\\
/// Author : Peter Phillips \\\
/// \\\
/// Date : First entry - 13.01.18 \\\
/... |
1cba008e3776be6bad579e37cbfb1d207e44dde2 | C# | wr1t3him/FinancePlan | /FinancePlan/Assist/UserRolesHelper.cs | 2.859375 | 3 | using FinancePlan.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BugTrack.Assist
{
public class UserRolesHelper
{
private UserManager<ApplicationUser> userManager =... |
5495623dfcecc5d2741f5d7b3a7c2aa945d7de2a | C# | HectorD1996/Laboratorio2 | /Laboratorio2/Laboratorio2/Llaves.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;//Se usa referencia a System Numeric para poder usar Big Integer
using System.IO;
namespace Laboratorio2
{
public class Llaves
{
//primos
BigInteg... |
6570f5aa6c20ced74774a7d35e3b9aac3210bbca | C# | warning-explosive/Core | /Modules/DataImport/Excel/ExcelCellValue.cs | 2.890625 | 3 | namespace SpaceEngineers.Core.DataImport.Excel
{
/// <summary>
/// Cell value
/// </summary>
public class ExcelCellValue
{
/// <summary> .cctor </summary>
/// <param name="rowIndex">Row index</param>
/// <param name="columnIndex">Column index</param>
/// <param name="... |
3a3aae51eeabd86078e26eada05f7ab82f3f0c51 | C# | dzinbudist/C-Sharp | /Program.cs | 3.546875 | 4 | using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Daugybos lentele");
Calculus();
}
public static void Calculus()
{
int sk1 = 0;
string aValue;
Console.WriteLine("Iveskite skaiciu:");
aValue = Console.ReadLine();
if (CheckEnteredValue(aValue... |
aca915525a48c714bbd70042214b1a484c5b86f0 | C# | hongheng/UnityReferenceTracker | /ReferenceProperty.cs | 2.609375 | 3 | using UnityEditor;
namespace HongHeng.UnityReferenceTracker {
public class ReferenceProperty {
//public SerializedProperty Property;
public readonly string PropertyPath;
public readonly string ReferenceValue;
public ReferenceProperty(SerializedProperty sp) {
//Propert... |
d9243068b0c9986b6ecaed3c37f268416fbf5c1a | C# | rasitseran/CSKamp | /OOP3/BasvuruManager.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace OOP3
{
class BasvuruManager
{
//Method injection -- BUrada kulaandığımız methodu içeri enjekte ediyoruz.
public void BasvuruYap(IKrediManager krediManager, ILoggerService loggerService)
{
//Başvura... |
a3834714329b806d29299473e7b449edfc1a0fd7 | C# | JustinNail/Projects-CSharp | /DFAsimulator/DFAsimulator/State.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DFAsimulator
{
class State
{
private List<Transition> transitions;//list of every transition from this state
public bool FinalState { get; set; }//Final state 'flag'
int id;//state id
public int ID { get { retur... |
0c20f5bdcf60989d2875d99e7dac2b262016a026 | C# | zeldon-0/File-Storage-Project | /DAL/Repositories/FolderShareRepository.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using DAL.Interfaces;
using DAL.Context;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using DAL.Entities;
namespace DAL.Repositories
{
public class FolderShareRepository : CompositeKeyRepository<FolderShare>, IFolderShareRepository
{
... |
99c1d6d9c1031c9ed794bce2c267c106adfb3d3c | C# | ivansangines/Parallel-Computing | /TennisBall_Recognition/Paralellization/GMM/GMM/SwarmResult.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GMM
{
class SwarmResult : IComparable<SwarmResult>
{
public int SwarmId { get; set; }
public double FunctionValue { get; set; }
public List<MyPoint> BestList { ... |
b680324b8015af9a4e1bedd117cbbe5ec5d8589f | C# | TeamProjectsDeliverable3/TP3NEW | /TimetablingSystem1/TimetablingSystem1/DataAccess/DataAccessLayer.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using TimetablingSystem1.Models;
namespace TimetablingSystem1.DataAccess
{
public class DataAccessLayer
{
... |
6eaa821648d30aaf5278e062272c77dc907562ff | C# | mustafaztrk/GameStore | /GameStore/Concrete/ProductManeger.cs | 3 | 3 | using GameStore.Abstract;
using GameStore.Entity;
using System;
using System.Collections.Generic;
using System.Text;
namespace GameStore.Concrete
{
class ProductManeger : IProductService
{
private IEntity _gamer, _game;
public ProductManeger(IEntity gamer, IEntity game)
{
_... |
2e6058d077e8cbf2e57c07b0e55c1dbdf8427641 | C# | louisaxel-ambroise/epcis | /src/FasTnT.Host/Features/v1_2/Extensions/TaskExtensions.cs | 2.546875 | 3 | using System.Reflection;
namespace FasTnT.Host.Features.v1_2.Extensions;
public static class TaskExtensions
{
public static Task<object> CastTask(this object taskObj)
{
var resultType = taskObj.GetType().GenericTypeArguments.First();
var castTaskMethodGeneric = typeof(TaskExtensions).GetMetho... |
c0fc75eb9ac3078fd04be51acb3ef1d3234e85b2 | C# | DrDenn/XNA_AI_Project | /AIProject/AIProject/AIProject/Wall.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace AIProject
{
class Wall
{
public Texture2D WallTexture;
public Vector2 Position;
public BoundingBox Bounds;
publ... |
eb45a822af731483a3c7b6ae91605c7228bb0d84 | C# | gbachs/digger | /src/Digger.Agent/Program.cs | 2.5625 | 3 | using Topshelf;
namespace Digger.Agent
{
class Program
{
static void Main(string[] args)
{
AgentRuntime.Bootstrap(typeof(Program).Assembly);
HostFactory.New(x =>
{
x.UseSerilog();
x.Service<AgentService>(sc =>
... |
4f9f1d936ae3373b853357e9de12d4d4f37deedf | C# | EMBolshov/LeetCode | /TestSolutions/BinaryTree/2_SolveProblemsRecursively/SymmetricTreeTest.cs | 2.828125 | 3 | using FluentAssertions;
using LeetCode.BinaryTree._0_BinaryTree;
using LeetCode.BinaryTree._2_SolveProblemsRecursively;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestSolutions.BinaryTree._2_SolveProblemsRecursively
{
[TestClass]
public class SymmetricTreeTest
{
[TestMethod]
... |
33dbd8d73176d754580457490bf6905e016efe8e | C# | gjlsx/testwinc | /testwinc/tools/TextBoxNum.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace testwinc.tools
{
//只能输入数字的textbox控件
public class TextBoxNum: TextBox
{
public TextBoxNum()
{
this.KeyPress += new System.Windows.Forms.KeyP... |
19729e9b4321b960027a86898a9d3cd2831fe282 | C# | condron/workshop-nyc-feb-2020 | /src/AwsomeMotel/Administration/Controller.cs | 2.75 | 3 | using System;
using System.Linq;
using Administration.EventModel.Commands;
using Infrastructure.Interfaces;
namespace Administration
{
public class Controller
{
private ConsoleView _view;
private readonly IBus _mainBus;
public Controller(ConsoleView view, IBus mainBus)
{
... |
8a35a6053759d30b0ff2206bf12cdb1308046072 | C# | mychien1995/sunday-cms | /Sunday.Core/Ultilities/EncryptUtils.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace Sunday.Core.Ultilities
{
public class EncryptUtils
{
public static string SHA256Encrypt(string phrase, string salt)
{
string saltAndPwd = String.Concat(phrase, salt);
... |
2558627d16fe9f563718956c5dc1feed3630001f | C# | rmitache/MedicalApp | /Common/Functions/Functions.cs | 3.296875 | 3 | using Common.DataStructures;
using Itenso.TimePeriod;
using System;
using System.Collections.Generic;
using System.Text;
namespace Common
{
public static class Functions
{
public static Range<DateTime> IntersectDateRanges(Range<DateTime> firstDateRange, Range<DateTime> secondDateRange)
{
... |
1e5fb0130e834eb88f2f836eb6c280555cf4442b | C# | nakunxuanviet/cqrs-mediatr-aspnet-core | /FakeDataStore.cs | 3.28125 | 3 | using System.Collections.Concurrent;
using System.Collections.Generic;
namespace WebApplication
{
public class FakeDataStore
{
private static List<string> _values;
public FakeDataStore()
{
_values = new List<string>
{
"a",
"b",
... |
ae94116d0aaf858f0c8ec97d07b92bc87483b10f | C# | stanojkovic/Delicious.FinalProject | /Delicious/Models/RecipeGridViewModel.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Delicious.Models
{
public class RecipeGridViewModel
{
public string Query { get; set; }
//za sortiranje
public string SortBy { get; set; } = "RecipeName";
//public string SortByCat... |
c38f0aca7aebc906a0b399a34050372201a47d98 | C# | KimTree122/SQLhelper | /SQLhelper/HelperDAL/HelperADO.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace SQLhelper.HelperDAL
{
public class HelperADO
{
private static string ConnectString;
public static ConnElement cE;
public HelperADO(ConnEleme... |
7e461ef736f882fd88a4b49a3051a47cc0762848 | C# | Pauta-Regional/refer | /win-prog/AppsCodeMarkup/Chapter 18/NotepadClone/AboutDialog.cs | 2.6875 | 3 | //--------------------------------------------
// AboutDialog.cs (c) 2006 by Charles Petzold
//--------------------------------------------
using System;
using System.Diagnostics; // for Process class
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Docume... |
87049f8a515c26d2625ffd81498ae933c5cabce8 | C# | SawyerRedpath/war-of-wits | /War-Of-Wits/FightingRing.cs | 2.921875 | 3 | using csharp_combat.Classes.Characters;
using csharp_combat.Classes.Weapons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace csharp_combat
{
/* LEAVE THIS CLASS COMMENTED OUT UNTIL THE END*/
publi... |
c58c5604df1688fe3a1ff51944c48f8c1bccdb71 | C# | Kawser-nerd/CLCDSA | /Source Codes/CodeJamData/15/01/17.cs | 3.703125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Globalization;
using System.Threading;
class A
{
static int Solve(string SC)
{
int sum = 0;
int add = 0;
for (int k = 0; k < SC.Length; ++k)
{
int count... |
3ab5ef542daaa5bfd2006ae794db05cbedcc45f6 | C# | jthelin/SimpleStubs | /src/SimpleStubs/StubContainer.cs | 2.921875 | 3 | using System.Collections.Generic;
namespace Etg.SimpleStubs
{
/// <summary>
/// Holds the stubs for a given interface.
/// This class is intended to be used by the generated stubs code, not user code.
/// </summary>
public class StubContainer<TStub>
{
private readonly Dictionary<string,... |
0445923d31023d56de5a17e87759730cbf0a9b79 | C# | shendongnian/download4 | /code6/1057784-27374683-79374464-6.cs | 3.0625 | 3 | private YourRowType _selectedItem ;
public YourRowType SelectedItem
{
get
{
return _selectedItem;
}
set
{
if (_selectedItem == value)
{
return;
}
... |
82f6ff8988f94b652c1bd42c49705e7d2c1bdd84 | C# | RegaipKURT/C-Sharp-Ornekleri | /algoritmalar/repeated_char_delete/Program.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace repeated_char_delete
{
class Program
{
static void Main(string[] args)
{
string ns = Tekrarlılarısil("merhabaalar!!!");
Console.WriteLine(ns);... |
871f9cc39628d18ca77345365db3970cdb41678a | C# | marciosarabando/back-tcc-puc | /TCC.INSPECAO.Domain/Commands/Sistema/AtivarDesativarSistemaCommand.cs | 2.640625 | 3 | using System;
using Flunt.Notifications;
using Flunt.Validations;
using TCC.INSPECAO.Domain.Commands.Contracts;
using TCC.INSPECAO.Domain.Repositories;
namespace TCC.INSPECAO.Domain.Commands.Sistema
{
public class AtivarDesativarSistemaCommand : Notifiable, ICommand
{
private readonly ISistemaRepositor... |
ed3e33000e36ba9a95f5e730e2c6c0e514144729 | C# | ZSulaymon/lessons2-05-08-21 | /DZ2/Program.cs | 3.734375 | 4 | using System;
namespace DZ2
{
class Program
{
static void Main(string[] args)
{
/*int a = 8;
int b = 8;*/
/* int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());*/
Console.WriteLine("Введите А");
... |
854c6e3313d57aab73ad884694b17222a32139b1 | C# | Roman1137/selenium_training | /selenium_training/selenium_training/07_WebdriverWait/001_WaitForElementToBePresent.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
namespace selenium_training.Lection_7
{
class WaitForElementToBe... |
27cf111cf01b92285e60d98ff23d3c88f5e606ef | C# | Darkstar2099/Lascarizador | /Lascarizador/Controllers/TransactionsLogController.cs | 2.5625 | 3 | using Lascarizador.Core;
using Lascarizador.Core.Models;
using Lascarizador.Persistence;
using Lascarizador.ViewModels;
using System.Web.Mvc;
namespace Lascarizador.Controllers
{
//___/ Controller API para os dados do log de requisição de transação \____________
public class TransactionsLogController : Contr... |
d3dc0b36ab32755055c6d1d55b70ccabd67777df | C# | garsonlab/LeetCodeTraining | /100.same-tree.cs | 3.234375 | 3 | /*
* @lc app=leetcode id=100 lang=csharp
*
* [100] Same Tree
*
* https://leetcode.com/problems/same-tree/description/
*
* algorithms
* Easy (49.56%)
* Total Accepted: 357.2K
* Total Submissions: 720.5K
* Testcase Example: '[1,2,3]\n[1,2,3]'
*
* Given two binary trees, write a function to check if they ... |
0b2497176f6a257d6902379ff05d3737181fb58d | C# | taylus/unity | /GameAboutColor/Assets/Scripts/GameManager.cs | 2.75 | 3 | using System.Linq;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Keeps track of the current state of the game, and manages objects within it accordingly.
/// </summary>
public class GameManager : MonoBehaviour
{
/// <summary>
/// Backing variable for <see cref="CurrentColor"/>.
/// </summary>... |
06cd68565698e84fc86885b178573198adcc3a00 | C# | sawyerit/drone | /Drone.Shared/Conversions.cs | 3.328125 | 3 | using System;
namespace Drone.Shared
{
public static class Conversions
{
/// <summary>
/// Converts an object pulled from the Database into the proper datatype looking for DBNull values
/// </summary>
/// <example>
/// Example: Utility.ConvertTo<Decimal>(resultTable.Rows[i]["DataColumn"], 0)
/// ... |
6d5d561b9251484cee5f3b19254b2df462744d91 | C# | tehhsuhh/Milestone-3 | /InventoryItem.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Milestone_3
// written by Tessa Biava for CST-117
{
class InventoryItem
{
public int ItemID { get; }
public string ItemName { get; set; }
public int Quantit... |
cf671d86f8a146779e2175c25f4f03a64e3ab2ec | C# | karina-15/CS155_CSharp_NETFramework_Coursework | /HW/Homework10/OgreAlien.cs | 3.390625 | 3 | /// Homework No. 10 Exercise No. 01
/// File Name: OgreAlien.cs
/// @author: Karina Elias
/// Date: Dec 10, 2019
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Homework10
{
// inherits from Alien class
class O... |
d17781af429bbe36958eaf2ffcd5d3c856859361 | C# | ebondust/Custom-Programming-Language-Compiler | /CompilerR/Token.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace CompilerR
{
class Token
{
public Token(string lexeme)
{
this.lexeme = lexeme;
if (isAddOp(lexeme))
type = "AddOp";
... |
210c8c3b2163cc3f065cd3a10a9745a237fca097 | C# | azzzi77/TestJobUnity | /Assets/Scripts/Wallet/SaveData/SerializableXMLData.cs | 3.046875 | 3 | using System;
using System.IO;
using System.Xml.Serialization;
public class SerializableXMLData<T> : IData<T>
{
private static XmlSerializer _formatter;
public SerializableXMLData()
{
_formatter = new XmlSerializer(typeof(T));
}
public void Save(T data, string path = null)
{
if (data == null && !S... |
d99eaf71b2ecb7c3491d6062e5df3c0e6d172ce0 | C# | Egaros/JsonExtensions | /JsonExtensions.Tests/Http/HttpExtensionsTests.cs | 2.609375 | 3 | using System.Net.Http;
using System.Threading.Tasks;
using FluentAssertions;
using JsonExtensions.Http;
using Xunit;
namespace JsonExtensions.Tests.Http
{
public class HttpExtensionsTests
{
[Fact]
public async Task GetJsonAsync_Test()
{
// Arrange
using var http... |
9f637fcf35afdfd69bcdf1f5522ee0ca33b66e18 | C# | Cjsy2011/HelpLearn | /HelpLearn.BLL/BActivities.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelpLearn.Model;
using HelpLearn.IDAL;
using HelpLearn.Factory;
namespace HelpLearn.BLL
{
public class BActivities
{
/// <summary>
/// data base access layer interface
/// </summary>
pri... |
a735aa514d297b05822f7679ff9f68be212728c6 | C# | hxcspitfire/dotsnav | /Assets/DotsNav/Core/Drawing/Unmanaged.cs | 2.5625 | 3 | using Unity.Burst;
namespace DotsNav.Drawing
{
struct Unmanaged
{
internal static readonly SharedStatic<Unmanaged> Instance = SharedStatic<Unmanaged>.GetOrCreate<Unmanaged>();
internal Unit LineBufferAllocations;
internal LineBuffer LineBuffer;
internal bool Initialized;
... |
731a29dcad5490183d632e46c35b76840233656f | C# | donetian-petkov/CSharpOOP | /Telephony/Smartphone.cs | 3.53125 | 4 | using System;
using System.Linq;
using System.Text.RegularExpressions;
namespace Telephony
{
public class Smartphone : ISmartphonable
{
public Smartphone(){}
public void Call(string number)
{
bool isIntString = number.All(char.IsDigit);
if (... |
db2da2020fa37effa7a92509d2c5450818f60079 | C# | igoreksiz/VP_Labs | /replace_string.cs | 3.59375 | 4 | using System;
using System.Collections;
class Program
{
static void Main(string[] args)
{
string s = "Its a cat in the house.";
Console.WriteLine(s);
char[] ch = s.ToCharArray();
int i = s.IndexOf("cat");
if(i != -1){
ch[i++] = 'f';
ch[i++] = ... |
6e20c5a79d2a813f510f517021fd5d35eb4cc447 | C# | ndelbar/Windows | /C++ (MFC)/Hello World/ConsoleApplication1/ConsoleApplication1/Program.cs | 3.984375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DelegateApp
{
/// <summary>
/// A class to define a person
/// </summary>
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
class Program
... |
c52ce5aefd0a8a5dd5ecbc841125885ce6240029 | C# | Rupalipatil1001/EventApi | /EventAPI/Controllers/EventsController.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using EventAPI.Infrastructure;
using EventAPI.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace... |
385081c80c670ad603f73b47c5c7de4b4e3afe7d | C# | fxfabre/learn_csharp | /CompteBancaire/MenuCompte.cs | 2.9375 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.Remoting.Messaging;
namespace CompteBancaire
{
public static class MenuCompte
{
private static readonly Dictionary<int, Func<AccountUser, bool>> user... |
92a13cee94291907b71d800fb1d72a7738b5b8da | C# | Qmalik63/PremiumTravelService | /PremiumTravelService/Payment.cs | 3.328125 | 3 | using System;
namespace PTS
{
/// <summary>
/// Abstract base class that holds Amount
/// </summary>
public abstract class Payment
{
protected Payment(decimal amount)
{
Amount = amount;
}
public decimal Amount { get; }
public ... |
e3e5d44cf3a5067be91e0aa9c9ea5ff19c6b3b06 | C# | VeselinovStf/Telerik_Alpha_NET_Prep | /AlphaExamPrep/TAA_EntranceExamOctober13/01_Yesterday/StartUp.cs | 3.703125 | 4 | /*
* By a provided date (year, month, day), calculate the day before.
*
*/
using System;
using System.Globalization;
namespace _01_Yesterday
{
public class StartUp
{
public static void Main()
{
string inputYear = Console.ReadLine();
string inputMonth = Console.Rea... |
41117e242a052da7fa47a5a88cc75931f4757b6a | C# | iot-sas/IOT-SAS-Sharp | /IOT-SAS/CRC8.cs | 3.265625 | 3 | using System;
namespace IOTSAS
{
///
/// Class for calculating CRC8/ITU checksums...
///
static public class CRC8ITU
{
static private byte[] table = null;
const byte Polynomial = 0x7; //ITU
const byte XOROut = 0x55;
static public byte CRC8ITUChecksum(t... |
eb58ab4d57d44b37a3ca6e108bb1291be8d49a10 | C# | AnindyaSharma/Ecommerce | /EcommerceApp/Controllers/CustomerController.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EcommerceApp.Database;
using EcommerceApp.Models;
using Microsoft.AspNetCore.Mvc;
namespace EcommerceApp.Controllers
{
public class CustomerController : Controller
{
public IActionResult Index()
... |
73097996ebe0ba81fd9a1a4efa59ca6060fe0f96 | C# | Peltekoff/GrandPeltekHotel | /Controllers/ReservationController.cs | 2.515625 | 3 | using GrandPeltekHotel.Models;
using GrandPeltekHotel.ViewModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GrandPeltekHotel.Controllers
{
public class ReservationController: ... |
fe1b0864aa2dc3044f358cbf0735a76f016e2c5f | C# | Rullazzz/CafeRating | /CafeRating.BLTests/Controller/UserControllerTests.cs | 2.53125 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using CafeRating.BL.Controller;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CafeRating.BL.Controller.Tests
{
[TestClass()]
public class UserControllerTests
{
[TestM... |
f48b80e7e764b250886237d5d617404d6afe8842 | C# | Hackathorn/LS_Workshop | /Assets/SimpleSQL/Demos/Scripts/07_Blobs/Blobs.cs | 2.96875 | 3 | namespace SimpleSQL.Demos
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SimpleSQL;
using System.IO;
/// <summary>
/// This script loads blobs from a database table and converts them to images,
/// displaying them as UI elements in a layout grou... |
1736419c91c0b38c194b4e0deabf230487008370 | C# | JZO001/Forge | /.Legacy/Forge.Base/Threading/AtomicDecimal.cs | 2.984375 | 3 | /* *********************************************************************
* Date: 19 Jul 2012
* Created by: Zoltan Juhasz
* E-Mail: forge@jzo.hu
***********************************************************************/
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace Forge.Th... |
5863658702361d9435fa9ed13b0775213a1ac453 | C# | duvanmontenegro/EjemploSuma | /Capacitacion/CapacitacionForms/Program.cs | 2.546875 | 3 | using CapacitacionForms.Operaciones;
using System;
using System.Windows.Forms;
namespace CapacitacionForms
{
static class Program
{
/// <summary>
/// Punto de entrada principal para la aplicación.
/// </summary>
[STAThread]
static void Main()
{
Appli... |
e1a2c17265e93ecccea044d0ef740d231de6af03 | C# | ShiQiKuangSan/AutoLua | /HttpServer/HeadersHelper.cs | 2.890625 | 3 | using System;
using System.ComponentModel;
namespace HttpServer
{
public static class HeadersHelper
{
public static string GetDescription(this Enum value)
{
var valueType = value.GetType();
var memberName = Enum.GetName(valueType, value);
if (memberName == n... |
581cafb9f9c441619383cc702d0588ee1f10b453 | C# | fickymathebula/ChatzRoomApp | /ChatzRoom/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ChatzRoom
{
class Program
{
private static Users users = new Users();
private static Tweets tweets = new Tweets();
static void Main(string[] args)
{
... |
b1a2cdd17965bbf47cec8d608206b576541fe063 | C# | gRichardson108/rgcconsole | /rgcconsole/Fantasy/Traits/FantasyAdvantages.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace rgcconsole.Fantasy.Traits
{
class FantasyAdvantages
{
public static Trait AbsoluteDirection = new Trait()
{
Name = "Absolute Direction",
Brief = "You always know which way is north, and you can... |
502a006300817db8afd5a5388b944e4dcd1d64b1 | C# | MamotchenkoYuriy/Port_Using_EF_Fixed_001 | /Core/Captain.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
namespace Core
{
public class Captain : BaseEntity
{
public string FirstName { get; set; }
public string LastName { get; set; }
public virtual ICollection<Ship> Ships { get; set; }
public Captain() { Ships = new List<Ship>(); }
... |
bd1661686a69eb355c12477db2b9d979eabf6512 | C# | MartinRollin/quartoGM | /Gwe2/Gwe/intelligent.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gwe
{
class intelligent
{
// L'ordi repère les quartos qu'il pourrait faire avec la pièce qu'on lui a donné à jouer
// On commence par chercher les lignes/colonnes/diagonale... |
1c20eac28770e8f1c13d697ae65786f3efb0d4cd | C# | NewLifeWorks/Software_-Bulgaria | /Software_University_Bulgaria/Programming_Basics/Home_Works/OperatorsAndExpressions/09_Trapezoids/Program.cs | 4 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _09.Trapezoids
{
class Program
{
//Write an expression that calculates trapezoid's area by given sides a and b and height h.
static void Main(string[] args)
{
... |
6c07d8139001d241dd8f5ce56365db6aa492b27a | C# | thibautdepoortere-hogent/delozerkermisvrienden-organizer-asp.net | /DeLozerkermisVrienden.Organizer.API/Helpers/FormatteerDatum.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DeLozerkermisVrienden.Organizer.API.Helpers
{
public static class FormatteerDatum
{
public static string DateTimeOmzettenNaarExportNotatie(this DateTime datum)
{
if (datum == ... |
9b7ae5bedf45e401be0024a972cdc58b23f53929 | C# | thyjukki/Rebelion | /Assets/Scripts/Fight/FightContainer.cs | 2.640625 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class FightContainer
{
private List<Fight> fights = new List<Fight>();
public List<Fight> Fights
{
get { return fights; }
set { fights = value; }
}
public Fight FindFight(int id)
{
r... |
9cfa8265fc87736f247b415d5f5efc342f1c67c5 | C# | hristo11111/TelerikAcademy-HristoBratanov | /CSharp/Lecture17 - Defining Classes-PartII/04.Attribute-Version/Program.cs | 3.578125 | 4 | //Create a [Version] attribute that can be applied to structures, classes, interfaces,
//enumerations and methods and holds a version in the format major.minor (e.g. 2.11).
//Apply the version attribute to a sample class and display its version at runtime.
using System;
[Version("1.0")]
class SampleClass
{
st... |
ff8680b1912ece654a60ce4e969d54dc05ad57d4 | C# | xerty1234/BugerMaker | /Assets/Source/BM_GameManger.cs | 2.53125 | 3 | using UnityEngine;
/********************************************************************************
* @classDescription 게임 메니져 스크립트
* @author LTS Corp.
* @version 1.0
* -------------------------------------------------------------------------------
* Modification Information
* Date Developer ... |
b1636c4708aa007b1b9ef4357738ab51935916f2 | C# | grecoe/CloudAI | /Utilities/StorageConsolidation/Storage/Utilities.cs | 2.84375 | 3 | //
// Copyright Microsoft Corporation ("Microsoft").
//
// Microsoft grants you the right to use this software in accordance with your subscription agreement, if any, to use software
// provided for use with Microsoft Azure ("Subscription Agreement"). All software is licensed, not sold.
//
// If you do not have ... |
04b39ee835039b8238b7d81a88b55f8ff5649464 | C# | DnDGen/CreatureGen | /DnDGen.CreatureGen/Generators/Languages/LanguageGenerator.cs | 2.59375 | 3 | using DnDGen.CreatureGen.Abilities;
using DnDGen.CreatureGen.Languages;
using DnDGen.CreatureGen.Skills;
using DnDGen.CreatureGen.Tables;
using DnDGen.Infrastructure.Selectors.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DnDGen.CreatureGen.Generators.Languages
{
intern... |
0f664721e83bad13a8bec9f747a095099d388f9d | C# | dbranker/dynamo-db-library | /Methods/InsertEntryDate.cs | 2.703125 | 3 | using System;
using DynamoDBLibrary.DBContext;
using Amazon.DynamoDBv2.DocumentModel;
using CasinoLibrary.Models;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
namespace DynamoDBLibrary.Methods
{
public class InsertEntryDate : IPutEntryDate
{
readonly string tableComapnyE... |
ed9b00f9c26555de84766c33ebd130ba0e0351de | C# | developeramarish/adidas_carter | /AdidasBot/Model/Dummy.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AdidasBot.Model
{
public class Dummy: INotifyPropertyChanged
{
#region Properties
private string siteKey;
public string SiteKey... |
83e715c13ef17f5af4fee83773f370e77df5f0bd | C# | DangProject/BillManager | /Core/UI/Converters/MultiBindingStringFormatConverter.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Markup;
namespace Core.UI
{
public class MultiBindingStringFormatConverter : MarkupExtension, IMultiValueConverter
{
public MultiBindingSt... |
b19452c95b94a4a0ecbf7c6eb439320ea8c6abde | C# | shendongnian/download4 | /latest_version_download2/115095-22447478-60552911-4.cs | 2.796875 | 3 | public class ExactDayHoliday : IHoliday
{
public int Day {get; set;}
public int Month {get; set;}
public bool isHoliday(DateTime date)
{
return date.Month == month && date.Day == day;
}
}
|
e549d2ff3bca62930df169358eac76990ecaab61 | C# | TastyCarcass/diss | /Assets/SignalFloorPressed.cs | 2.84375 | 3 | using UnityEngine;
using System.Collections;
//Title: Signal Floor Pressed
//Purpose: Sends a signal to target on tap.
public class SignalFloorPressed : MonoBehaviour
{
public GameObject tgt; // object to send message to
float time = 0; //To register a tap, we must keep track of the time
bool pressed = false; ... |
cbb9767b50bc0e3233a6e6de5421dfffba8383e9 | C# | ytchhh/scada | /ScadaData/ScadaData.Dao/RequestParams.cs | 2.8125 | 3 | /*
* Copyright 2018 Mikhail Shiryaev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
f24be92da553c84edbef6f0336584020af8b5f49 | C# | haducloc/dotnet-core-common | /Utils/Base64Utils.cs | 2.890625 | 3 | using System;
namespace NetCore.Common.Utils
{
public class Base64Utils
{
public static string ToBase64(byte[] value)
{
return Convert.ToBase64String(value, Base64FormattingOptions.None);
}
public static string ToBase64Mime(byte[] value)
{
retur... |
e2aee2b860612d33abe4b4cbfae59fa27bd74f8d | C# | StijnvanderLinden/Use-Case | /Use Case/Lijn.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Use_Case
{
class Lijn
{
private int x1;
private int y1;
private int x2;
private int y2;
private Point midpu... |
4a46eb9332d8c3794592c694b4914f1fa2eb0622 | C# | TehFlaminTaco/Funky2 | /Tokenizer/Tokenizer.cs | 2.765625 | 3 | using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using System;
using Funky.Tokens;
namespace Funky{
class Tokenizer{
}
public enum Escape{
RETURN, BREAK, TIMEOUT
}
public struct Scope {
public VarList variables;
public Sta... |
f3003552e700ff7ad47803ad5b3db99b48779ba9 | C# | tihonove/AnkiLovesGoogle | /AnkiLovesGoogle/AnkiFileParsing/AnkiCard.cs | 2.875 | 3 | using System.Text.RegularExpressions;
using JetBrains.Annotations;
namespace TSoft.AnkiLovesGoogle.AnkiFileParsing
{
public class AnkiCard
{
public AnkiCard([NotNull] string front, [CanBeNull] string back)
{
Front = front;
Back = back;
PlainWord... |
ce6ce35194d0e5d2f9ebe20f0028082ecc9d8b7d | C# | alexandrateneva/CSharp-Fundamentals-SoftUni | /CSharp OOP Basics/CSharp OOP Basics Exam - Minedraft/CSharp OOP Basics Exam - Minedraft/Core/DraftManager.cs | 2.984375 | 3 | namespace CSharp_OOP_Basics_Exam___Minedraft.Core
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharp_OOP_Basics_Exam___Minedraft.Factories;
using CSharp_OOP_Basics_Exam___Minedraft.Models;
public class DraftManager
{
private Lis... |
8c8ba0b46f51e7bee9b0266eeaaa5c38bc687e04 | C# | k8vungtau/EnglishGrammar | /EnglishGrammar/EnglishGrammar/SingleTonData.cs | 2.84375 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnglishGrammar
{
public sealed class SingleTonData
{
private static volatile SingleTonData instance;
private static object syncRoot = new Object(... |