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 |
|---|---|---|---|---|---|---|
6394a8d33585b90dcff5b1fc6946ead90ccda234 | C# | GameSemster1/Week-6---Mario | /Assets/Scripts/EnemyMove.cs | 2.640625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyMove : MonoBehaviour {
[SerializeField] float speed = 7f;
[SerializeField] Transform start = null;
[SerializeField] Transform end = null;
private Vector3 velocity;
bool moveFromStartToEnd = true... |
8059589a0e42c00c5a39d811e17e651d036d0e1d | C# | Trung0246/BloomEngine | /Bloom/Bloom/SqArray.cs | 2.6875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using SqDotNet;
using Bloom.Handlers;
namespace Bloom
{
public class SqArray : SqObject, IList<object>, IEquatable<object>
{
bool ICollection<object>.IsReadOnly => false;
public int Count
{
... |
186af5cec5240ae66b601d0536add6015f332345 | C# | seanbr01/PROG_260_-DataStructuresAndAlgorithms | /SmartArrayConsole/UnitTestProject1/UnitTest1.cs | 3.25 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SmartArrayConsole;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
const int SMART_ARRAY_SIZE = 5;
// SmartArray should initialize with all zeros
[TestMethod]
public void ArrayStartWi... |
acbb06232290b5de5b9f93de69c53a931677e0b4 | C# | YaroslavTER/Sudocu | /Sudocu/Form1.cs | 2.96875 | 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 Sudocu
{
public partial class sudocu : Form
{
private string[,] array;
... |
04b89ac3a9037d57457ac3987da59ec75c3f9720 | C# | EnsignPayton/GalacticHero | /Assets/Scripts/Room.cs | 2.609375 | 3 | using System;
using System.Linq;
using Assets.Scripts.Entities;
using UnityEngine;
namespace Assets.Scripts
{
[RequireComponent(typeof(Collider2D))]
public class Room : Script
{
#region Fields
/// <summary>
/// Max vertical or horizontal distance from center
/// </summary>... |
f1c811c64112afffbe8fa0b90d32213d1e5b1830 | C# | danofff/BookShelfBot | /BookShelfBot/Services/BookManagementService.cs | 2.828125 | 3 | using BookShelfBot.Models;
using BookShelfBot.Repositories;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace BookShelfBot.Services
{
public class BookManagementService
{
private re... |
ebc357d8f6183ee8f9a80630ced1dce591b885c5 | C# | shivaupdate/HT.Interview.ChatBot | /src/HT.Interview.ChatBot.API/DTO/Response/StatusResponse.cs | 2.703125 | 3 | using Newtonsoft.Json;
namespace HT.Interview.ChatBot.API.DTO.Response
{
/// <summary>
/// StatusResponse
/// </summary>
public class StatusResponse
{
#region Public Properties
/// <summary>
/// HTTP status code
/// </summary>
public int Code { get; set; }
... |
5f60d1ff1b35fea610aff693dfe68c5b8ac29f59 | C# | pAkalpa/Assignment | /nm_func.cs | 3.34375 | 3 | /*
* @Author: Pasindu Akalpa
* @Date: 2020-11-07 00:34:26
* @Last Modified by: Pasindu Akalpa
* @Last Modified time: 2020-11-07 00:34:26
*/
/*
* This Class use for remove vowels from input string
* Ref:https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-refer... |
4493d0767ee88776b5b81a1f2f1ae45003405939 | C# | barrste1/SpiceyRecipeAPI | /Controllers/SpiceyRecipeController.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text.Json;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using SpiceyRecipeAPI.Models;
namespace SpiceyRecipeA... |
a957cb9250d030b02de320646a2cf4046ec52a55 | C# | maxiunlm/BicycleRentalApplication | /BicycleRentalApplication.Tests/Data/RentDataUnitTest.cs | 2.515625 | 3 | using System;
using BicycleRentalApplication.Rent.Dal.Rents;
using BicycleRentalApplication.Rent.Models.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System.Data.Entity;
namespace BicycleRentalApplication.Tests.Data
{
[TestClass]
public class RentDataUnitTest
{
priva... |
64e7f92b1b4bcdf2d95fe71a43c82916a117070b | C# | arsuq/Files | /FilesCore/Log.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Utils.Files
{
public class Log : IUtil
{
public string Name => "log";
public string Info => "Creates a file with paths (log), which can be used to move files (restore)." + Environment.NewLine +
" not interactive (-n... |
4eb884ff397229edd42d863d47a2f6d71bd66965 | C# | panteamihai/playground-async | /UsagePatterns/Helpers/FileCopier.cs | 2.984375 | 3 | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using IFileCopyProgress = System.IProgress<(System.IO.FileInfo fileInfo, decimal percentage, bool hasFinished)>;
namespace AsyncWorkshop.UsagePatterns.Helpers
{
public static class FileCopier
{
public static async Ta... |
566974d5a14035e67fb68967c1a0b2ffd0b75690 | C# | Jgoga/ProceduralToolkit.Tests | /Editor/Geometry3DLineLineTest.cs | 2.78125 | 3 | using UnityEngine;
using NUnit.Framework;
namespace ProceduralToolkit.Tests
{
public class Geometry3DLineLineTest : GeometryTest
{
[Test]
public void Intersect_RandomCoincident()
{
for (int i = 0; i < testCycles; i++)
{
Vector3 intersection;
... |
8442f4538d3e00f50e0ee41fe8ae97ed2938265a | C# | michaelwda/Prep | /Prep.Tests/kth_smallest/KthSmallest.cs | 2.984375 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Prep.Tests.group_people;
namespace Prep.Tests.kth_smallest
{
[TestClass]
public class KthSmallest
{
private readonly Solution _solution = new Solution();
[TestMethod]
public void Example1()
{
Tree... |
b2fc489ffa9c3aa0d7aaef2cddd25f3c9d7ee906 | C# | fpermeti/coding_school_2021 | /Session4-Exercises/Session4_Exercises/Question2/Institute.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Session4_Exercises {
public class Institute {
public Guid Id { get; set; }
public string Name { get; set; }
public int YearsInService { get; set; }
publ... |
f39a92897ea059d451027b69584dd74bc4b1087c | C# | PiotrSzymkowiak/knkredek_repo | /PiotrSzymkowiakLab2/PiotrSzymkowiakLab2Zad2/Program.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PiotrSzymkowiakLab2Zad2
{
class Program
{
static void Main(string[] args)
{
TestTrafficSystem testTrafficSystem = new TestTrafficSystem();
testT... |
d5dd97bad7ca662d4c0375a8d74f5f5c30f3fd12 | C# | pjatochkin/SimulatingParking | /BSA2018_Task2_Parking/Menu.cs | 2.96875 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace BSA2018_Task2_Parking
{
class Menu
{
static public void UserCommands()
{
Console.WriteLine("Attention! Parking rates:");
forea... |
d5790223bbac6b5a7aa2e2fa406e9cf6efde6de5 | C# | shendongnian/download4 | /first_version_download2/413993-36246067-114206845-2.cs | 2.5625 | 3 | public class ButtonViewModel
{
public string Caption { get; set; }
}
public class ViewModel
{
public ViewModel()
{
Buttons = new ObservableCollection<ButtonViewModel>
{
new ButtonViewModel { Caption = "Button 1" },
new... |
d75d2b80d643cf66a35a6f7ab14f0f08b658f9f4 | C# | maximzhemerenko/KhSM | /Backend/Data/Repositories/SessionRepository.cs | 2.765625 | 3 | using System;
using System.Diagnostics;
using Backend.Data.Database;
using Backend.Data.Entities;
using MySql.Data.MySqlClient;
namespace Backend.Data.Repositories
{
// ReSharper disable once ClassNeverInstantiated.Global
public class SessionRepository : BaseRepository
{
public SessionRepository(D... |
6a21bc9654ea2c6027d8b81732116cda757f810d | C# | lski/Lski.Toolbox | /src/Lski.Toolbox/Dates/DateTimeExt.cs | 3.4375 | 3 | using System;
using System.Globalization;
namespace Lski.Toolbox.Dates
{
public static class DateTimeExt
{
private const string IsoDateTimeFormat = "{0:0000}-{1:00}-{2:00}T{3:00}:{4:00}:{5:00}Z";
private const String IsTime = @"^(20|21|22|23|[01]\d|\d)[:](([0-5]\d){1,2})$";
/// <summa... |
edeead2ab8f8742dc02aaec4c66baccc0f721e6c | C# | Awindrila05/Coding-Interviews | /lc1401.cs | 3.671875 | 4 | public class Solution {
public bool CheckOverlap(int radius, int x_center, int y_center, int x1, int y1, int x2, int y2) {
///check partial overlap for all 4 corners of rectangle.
//if any of them overalp then return true;
if(CheckPartialOverlap( radius, x_center, y_center, x1, ... |
78b2891fce7d5dbbff7e238f537968b375b6860e | C# | nicolasnet/utn_prog_y_lab_II | /Clases GOMEZ Nicolas/CentralTelefonica/CentralitaAbstracta/Llamada.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CentralitaAbstracta
{
public abstract class Llamada
{
#region Atributos
protected float duracion;
protected string nroDestino;
protected ... |
b24252d40ef12efcaecc94831b716fe3c6109cd3 | C# | ares454/OO-Work | /ATM/ATM/Account.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATM
{
class Account
{
public string Number { get; }
public decimal Balance { get; private set; }
public void Withdraw(decimal amt) { Balance -= amt; }
... |
74b8d74bbd9d4f4399314c54a6b29fc624213474 | C# | Hydra11/Enum | /StationTypeEnum.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Ivalon.WMS.Model.DBModel.Enum
{
public enum StationTypeEnum
{
/// <summary>
/// 入库点
/// </summary>
input = 1
,
/// <summary>
/// 出库点
/// </summary>
... |
aac73ebf837788bf8cf83c46c2b11a047fb6c5f2 | C# | Robson900/Buildron | /src/Buildron/Assets/_Assets/Scripts/Domain/BuildsRefreshedEventArgs.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
namespace Buildron.Domain
{
/// <summary>
/// Arguments for builds refreshed events.
/// </summary>
public class BuildsRefreshedEventArgs : EventArgs
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <se... |
b9aa820741793ca15e0d18720aa70f1721a16660 | C# | SilverReinaas/ProductCatalogue | /Open/Archetypes/RuleClasses/Variable.cs | 2.78125 | 3 | using System;
using System.ComponentModel;
using Open.Aids;
namespace Open.Archetypes.RuleClasses {
public abstract class Variable<T> : Operand where T : IComparable {
public const int Equal = 0;
public const int Greater = 1;
public const int Less = -1;
protected T valueField;
... |
e5578f8abf7cf3c9c6493af91d15a67b30da37fa | C# | DDR12/RestfulFirebase | /RestfulFirebase/Exceptions/AuthMissingRequestTypeException.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace RestfulFirebase.Exceptions
{
/// <summary>
/// Occurs when request type was expected but one was not provided.
/// </summary>
public class AuthMissingRequestTypeException : AuthException
{
internal AuthMissingRequ... |
81b30fdae74059697bd125922b21e228c7cabce6 | C# | QemerS/ResizePrincipeTasklari | /ResizePrincipeTasklari/Program.cs | 3.59375 | 4 | using System;
using System.Linq;
namespace ResizePrincipeTasklari
{
class Program
{
static void Main(string[] args)
{
//Ardicilliq();
//task();
//Cap();
//Chap();
}
#region Task2
static void Ardicilliq()
{
... |
212c0421c78f4375f352273f05e258a4bbe5fa25 | C# | Hengle/DevelopRepository | /2DShooting/Assets/Script/Player.cs | 2.71875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour, IDamageable<int>
{
[SerializeField] int life;
public event Action<bool> OnDeathTrigger;
//初期化
public void Initialize()
{
OnDeathTrigger?.Invoke(... |
f93112bc29488601f7a1a78cc7e4f5672cf2e539 | C# | nakaji/CostCounter | /CostCounter/ViewModel/MainWindowViewModel.cs | 2.53125 | 3 | using System.Collections.ObjectModel;
using System.Threading;
using System.Windows.Input;
using CostCounter.Model;
namespace CostCounter.ViewModel
{
public class MainWindowViewModel : ModelBase
{
private readonly TimeKeeper _keeper;
private readonly Timer _timer;
public Mai... |
c3e4593b42fd540543b893f2dbee2889771530ed | C# | evgenyviyachev/CSharp-HQC-Projects | /PhotoShare/PhotoShare.Data/Services/TownService.cs | 3.109375 | 3 | namespace PhotoShare.Data.Services
{
using Contracts;
using Models;
using System;
using System.Linq;
public class TownService
{
private IUnitOfWork unitOfWork;
public TownService(IUnitOfWork unitOfWork)
{
this.unitOfWork = unitOfWork;
}
pub... |
3f63c269552f61a027f22076be2f96d99492ec99 | C# | briffraff/SoftUni_ | /01.Programing basics/Chertane/Pechatane/Lisica/Program.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lisica
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
int shirina = 2 * n + 3;
int viso... |
552d030133aef65c0c8c92d0e4e2b91060c4d6c3 | C# | maivantuit/Csharp-learning | /Cop43_AbstractAndAbstractClass/Cop43_AbstractAndAbstractClass/Program.cs | 3.6875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cop43_AbstractAndAbstractClass
{
public abstract class Hinh
{
public abstract double TinhDienTich();
}
public class HinhChuNhat : Hinh
{
priv... |
3bebeb98efd8eb756cad631ba058efff98b70583 | C# | RockFall/Snake-Jazz_Game | /Scripts/Tail.cs | 2.640625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Tail : MonoBehaviour
{
// Static minimum speed
public static float initialSpeed = 2f;
public enum movementDirection
{
front,
back,
left,
right
};
public movementDirecti... |
aba5dfa82747d66f55e4144279c0245bbbb9f84b | C# | kosmonafta666/C-Advanced | /Sets and Dictionaries/Sets and Dictionaries-Lab/CountSameValuesInArray/CountSameValuesInArray.cs | 4.03125 | 4 | namespace CountSameValuesInArray
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class CountSameValuesInArray
{
public static void Main(string[] args)
{
//read the input of doubles;
... |
b708a476d1d7257dc1522290654f8476e487a731 | C# | ArnaudTang/PinguinGame | /EmptyProject/Assets/Scripts/MovementManager.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovementManager : MonoBehaviour
{
[SerializeField] float speed = .1f;
// Update is called once per frame
void Update()
{
int xAxisMouv = 0;
int yAxisMouv = 0;
int zAxisMouv = 0;
... |
e46ec8eb256d9dec1fea1068f2c8c1fc47a7cf86 | C# | palaniyappanBala/MFT | /MFT/Attributes/AttributeList.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace MFT.Attributes
{
public class AttributeList : Attribute
{
public AttributeList(byte[] rawBytes) : base(rawBytes)
{
var content = new byte[AttributeContentLength];
Buffer.BlockCopy(rawBytes, Co... |
07019f6804e49cf617c8d39c35bf742367c37190 | C# | honzakuzel1989/prelude | /Prelude.Tests/ConcatTests.cs | 2.71875 | 3 | using NUnit.Framework;
namespace System.Prelude.Tests
{
public class ConcatTests
{
[Test]
public void ConcatTest()
{
var xs = new int[][]{new int[]{1}, new int[]{-2}, new int[]{3}, new int[]{-4}, new int[]{5}};
Assert.That(xs.Concat(), Is.EqualTo(new int[]{1, -2,... |
603ac85405d401d333a37a60e4ab9149a278b0d4 | C# | ADrugov1/HibernateTutorial | /NhibernateTutorial/Model/Hero.cs | 2.9375 | 3 | using System.Collections.Generic;
namespace NhibernateTutorial
{
using System;
public class Hero
{
private ICollection<Profession> _profession;
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual int MP { get; set; }
public ... |
34863d306c83a55b6a611ff363d5b6db67fe9ed0 | C# | 7ccgroup/MIS | /wpf-baseApp/BaseAppUI/Sdk/CreditCardReader.cs | 2.59375 | 3 | using Microsoft.PointOfService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseAppUI.Sdk
{
public class CreditCardReader
{
private PosExplorer myExplorer;
private Msr myMsr;
/// <summary>
... |
290f178f57e5afa32beb75d21562a99526757030 | C# | limjh/DailyKata | /WordWrap/day7/WordWrap/WordWrapper.cs | 3.78125 | 4 | using System;
using System.Collections;
namespace WordWrap
{
public class WordWrapper
{
public WordWrapper()
{
}
public ArrayList MakeArrayList(String arg)
{
String[] tmpArray = arg.Split('\x020');
ArrayList arrayList = new ArrayList();
... |
edbaec97d0ae00080126f2940d65ff4b11b377d2 | C# | rogerioasmelomz/DevZone | /IndySockets/Sockets-Old/source/Web/CookieCollection.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
namespace Indy.Sockets.Web
{
public class CookieCollection: List<RFC2109Cookie>, IDisposable
{
protected SortedList<string, CookieList> _CookieListByDomain = new SortedList<string, CookieList>(StringComparer.InvariantCultureIgnoreCase);
void IDisposable.Disp... |
dde18e207a1decfac80a84bf80c230498a9a93b2 | C# | valeryjacobs/SmoothDemo | /SmoothDemo.Agent/Converters/ListValueConverter.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace SmoothDemo
{
public class ListValueConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
... |
fecc8d2d4bcbc744144418a9856902fd58c56fc4 | C# | matiashegoburu/hegoburu | /Hegoburu.Presentation.Desktop.Core/ModelList.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
namespace Hegoburu.Presentation.Desktop.Core
{
public class ItemChangedEventArgs : EventArgs
{
public ItemChangedEventArgs(object item, string propertyName)
... |
c0d4e7bd00167c6970069830f8e7bfb7fb88136a | C# | saikiran37130204/Assignment4 | /LoginDetails.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace Assignment_3
{
class LoginDetails
{
void UserAndPassword()
{
int count = 0;
for (int i = 0; i < 3; i++)
{
Console.WriteLine("Enter the user name:");
... |
6a10185b51f6a8f207c0f8415c47cc3f2fed5103 | C# | emilpytka/WindowsCommonLibrary | /WindowsCommonLibrary.WindowsStore/Common/PhotoService.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Media.Capture;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.Storage.Streams;
using WindowsCommonLibrary.PCL.Interfaces;
namespace WindowsCommonLibrary.WindowsStore.Common
{
... |
cfdbe912843ff81eac7d86ecf7bbaf575b2830dd | C# | 0000duck/bird | /flyBird/flyBird/TextShare/Sender.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace flyBird.TextShare
{
public class SentMessageEventArgs : EventArgs
{
public string text { set; get; }
}
class Sender
{
public eve... |
53c9ac9614f3caeeab089b4e4066a277e357742f | C# | ThunderstormsZJ/unity | /JewelDemo/Assets/Scripts/GameModel.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameModel : MonoBehaviour
{
private static GameModel _instance;
public static GameModel Instance
{
get
{
return _instance;
}
set
{
... |
5fda6f1da7935a1acf26be7e52e8c6a6a7a0c46a | C# | zbecknell/ZBlazor | /src/ZBlazor.QuickInput/InMemoryRecentRepository.cs | 2.921875 | 3 | using System;
using System.Collections.Concurrent;
using System.Threading.Tasks;
namespace ZBlazor
{
public class InMemoryRecentRepository : IRecentRepository
{
private readonly ConcurrentDictionary<string, DateTime> _recents = new ConcurrentDictionary<string, DateTime>();
private readonly str... |
a426a8f1e60e2f20ed16c25ad355d75cb8ec30eb | C# | liu1218xing/graduateinfo | /src/MyCompanyName.AbpZeroTemplate.Core/BusCompanys/BusCompanyManager.cs | 2.65625 | 3 | using Abp;
using Abp.Domain.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCompanyName.AbpZeroTemplate.BusCompanys
{
public class BusCompanyManager : AbpZeroTemplateDomainServiceBase, IBusCompanyManager
{
pr... |
ae58817987c96ed8497b2943c7c2453f60f953b8 | C# | NikolaiMiroshnichenko/cSharpTrainings1 | /Task58/Program.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task58
{
class Program
{
struct Vector3
{
public float X;
public float Y;
public float Z;
}
static void calculateDi... |
a8cc29d381cc8462eb8ebb683fb5e8c9433f2727 | C# | SerjikS/Countries | /Countries_WebClient/Countries_WebClient/HTTPClient.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Text.Json;
using System.IO;
namespace Countries_WebClient
{
class HTTPClient
{
/// <summary>
/// Выполнение HTTP запроса
/// </summary>
... |
75653501cc45774f4e2e58f010b64c19076cba92 | C# | Paccelerator/ProfilerAndGraphics | /Assets/Editor/CustomType.cs | 2.828125 | 3 | using System;
using System.Linq;
using System.Reflection;
using UnityEditorInternal;
namespace ProfilerDatas
{
public class CustomType
{
// 通过反射搜索指定成员和类型的标记
// 公共字段
private const BindingFlags PublicInstanceFieldFlag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetField;... |
e3e60c15aefdec92a804d5d23c7d71eaff826859 | C# | josh-clark-dev/bigram-parser | /BigramParserUnitTests/HistogramUnitTests.cs | 2.921875 | 3 | using System;
using System.Linq;
using Xunit;
using BigramParser;
namespace BigramParserUnitTests
{
public class HistogramUnitTests
{
[Fact]
public void GetHistogram_NullText_EmptyIBigramList()
{
var histogram = new Histogram(new Parser());
var wordList =... |
bd432834876e5cbcc065c1a32dbff3e91686e9fc | C# | shendongnian/download4 | /first_version_download2/210547-16303480-39934090-2.cs | 3.125 | 3 | public void GetListing()
{
using (FtpClient conn = new FtpClient())
{
conn.Host = "your_ftp_site_url";
conn.Credentials = new NetworkCredential("your_user_account", "your_user_password");
foreach (FtpListItem item in conn.GetListing(conn.GetWorkingDirectory(... |
5d95f8c1a5cb1b1cf59f61037ae1faf4c360da7d | C# | andersonsom1/FullBarAPI | /FullBarAPI/Services/DisciplinaService.cs | 2.609375 | 3 | using FullBarAPI.Models;
using FullBarAPI.Models.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static FullBarAPI.Models.AlunoStatus;
namespace FullBarAPI.Services
{
public class DisciplinaService : IDisciplinaService
{
private readon... |
1bbe57723d9d06026428b7ce3e075dd5a22c898a | C# | Nucleareal/Robots | /Robots/Game.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Robots
{
class Game
{
private Board _b;
public Game()
{
Init();
}
public void Init()
{
GameAlive = true;
... |
550c7effd4e79714f39f31b351c7e1ef1d88b934 | C# | surajit1986/Daily-Shopping | /Core/Specifications/ProductsWithTypesAndBrands.cs | 2.75 | 3 | using System;
using System.Linq.Expressions;
using Core.Entities;
namespace Core.Specifications
{
public class ProductsWithTypesAndBrands : BaseSpecification<Product>
{
public ProductsWithTypesAndBrands(ProductSpecParam specParams):
base(x =>
(string.IsNullOrEmpty(specParams.Search)... |
b44989c0db234fdd6a334537ef5e7a6fceeaff8d | C# | OJ13/DesignPatternsNET | /DesignerPatterns/011_DP_Criacao_Prototype/Livro.cs | 3.328125 | 3 | using System;
namespace _011_DP_Criacao_Prototype
{
//Concrete Product
public class Livro : Item
{
public Livro(int id, string descricao, double preco)
:base(id,descricao,preco)
{
}
//Clonar
public override Item Clone()
{
return (... |
5cf8a0269606f14e2103b6d221a2bd8d6ee0a531 | C# | bubdm/Restify | /Source/Restify.Services.OAuth2.UserInteractive.Wpf/WpfAccessCodeHandler.cs | 2.8125 | 3 | namespace JanHafner.Restify.Services.OAuth2.UserInteractive.Wpf
{
using System;
/// <summary>
/// Uses a Window and user input to retrieve the access code.
/// </summary>
public sealed class WpfAccessCodeHandler : IAccessCodeHandler
{
/// <summary>
/// Gets the access code.
... |
51c4dbb20af2d5c715b585ec90bd779aee982521 | C# | NewLifeWorks/Software_-Bulgaria | /Software_University_Bulgaria/E-Books/Program_Language/C[#]/Engineer_Mr_Nakow/declateSomeVariables/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace declateSomeVariables
{
class Program
{
static void Main(string[] args)
{
float floatPI = 3.141592f;
double doublePI = 3.141592;
//P... |
bc5abc7c925b6b887872039c52eb770c0f27da10 | C# | frederikbrudy/starFlowers | /StarFlowers/ParticleSystemManager.cs | 3.0625 | 3 | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Media.Media3D;
using System.Collections.Generic;
using System.Windows.Media.Imaging;
namespace Particles
{
cla... |
d59016ddf26ca9972cac13b0d8be05fce24eccf7 | C# | github-feelingproud/Loogn.OrmLite | /Loogn.OrmLite/Utils/DictBuilder.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Loogn.OrmLite
{
/// <summary>
/// 链式字典生成器
/// </summary>
public static class DictBuilder
{
/// <summary>
/// 新生成链式,并添加提供的键值
/// </sum... |
3d4471010b09075ceacb7761672411dc5f8e8115 | C# | Minesweeper-6-Team-Project-Telerik/Minesweeper-6 | /src/ConsoleMinesweeper/Models/ConsoleBox.cs | 3.109375 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConsoleBox.cs" company="Telerik Academy">
// Teamwork Project "Minesweeper-6"
// </copyright>
// <summary>
// The console box.
// </summary>
// --------------------------------... |
d1c023149c216c0acbabdaab66d87c3a447dfc62 | C# | jinghua395/Cinema | /Cinema/Pages/AddRoomPage.cs | 3.03125 | 3 | using System;
using System.Linq;
using System.Threading.Tasks;
using Cinema.Application.AddRoom;
using Cinema.Pages.Shared;
namespace Cinema.Pages
{
public class AddRoomPage
{
private readonly RoomPage _roomPage;
private readonly AddRoomService _addRoomService;
public AddRoomPage(AddR... |
45694a5c6c76f1745326e187c7337864eb16acfa | C# | ceresnik/CodingameProject | /KGood/Tests/DegreesToRadians/DegreesToRadiansConvertorTests.cs | 2.625 | 3 | using KGood.Source.DegreesToRadians;
using NUnit.Framework;
namespace KGood.Tests.DegreesToRadians
{
[TestFixture]
public class DegreesToRadiansConvertorTests
{
[TestCase(0, "0")]
[TestCase(45, "P/4")]
[TestCase(90, "P/2")]
[TestCase(135, "3*P/4")]
[TestCase(180, "P... |
d27079935077840828492dcbe53af6d95f0d1667 | C# | stankojevtic/FlightAdvisor | /FlightAdvisor.Repositories/Repositories/BaseRepository.cs | 2.984375 | 3 | using FlightAdvisor.API;
using FlightAdvisor.Interfaces.Repositories;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
namespace FlightAdvisor.Repositories.Repositories
{
public class BaseRepository<T> : IBaseRepository<T> where T : class
{
privat... |
28f004cb5efd0257f53bd0ae4a955179ffa391a7 | C# | ALMikhai/Cube-Game | /Story_One_Coube/Scene/Background.cs | 2.59375 | 3 | using SFML.Graphics;
using SFML.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Story_One_Coube.Scene
{
static class Background
{
static Sprite BackgroundMainMenu;
static Sprite BackgroundLevel1;
stat... |
4b12e08704d502e535351a2ad0dbc170d212e69a | C# | gabrielgs44/compositionIn-Csharp | /EnumEComposicoes/EnumEComposicoes/Program.cs | 3.3125 | 3 | using EnumEComposicoes.Entities;
using EnumEComposicoes.Entities.enums;
using System;
using System.Globalization;
namespace EnumEComposicoes
{
class Program
{
static void Main(string[] args)
{
//Console.Write("Enter department's name: ");
//string depName = Console.Read... |
3f7b3a0e49a71c9dcf877066472d1561fe7864d6 | C# | konstantin-retunsky/institute | /second_course/third_semester/OOP/OOP_06. Компоненты выбора/OOP_06_Selection_components/TaskOne/MainForm.cs | 2.71875 | 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 TaskOne {
public partial class MainForm : Form {
public MainForm ( ) {
... |
d8c0e9deee5c359e71a0a361fd25e6e8102d9b97 | C# | laisferreiradasilva/SiteRickAndMorty | /BusinessLayer/ListOfCharacters.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace BusinessLayer
{
public class ListOfCharacters
{
public class ViewModel
{
public ViewModel()
{
Status = new... |
3bf735080a0ac1873c05744f424c6ec70ea13f44 | C# | TAW-Arma/TawGatherMembersInfo | /TawGatherMembersInfo/Neitri/Unity3D/MyMath.cs | 3.390625 | 3 | using UnityEngine;
namespace Neitri
{
/// <summary>
/// static Math class that unifies float and double, because I just absolutely hate having to change all/some the Math calls when I change float to double.
/// For example System.Math does not have Round for float only, so if you decide to use floats, you have to... |
152e6781b8d2811740f8a0003e25a96db976e67e | C# | shendongnian/download4 | /first_version_download2/56606-18278033-45484747-6.cs | 2.578125 | 3 | [TestMethod]
public void GetVenueTest()
{
// CreateTestEntities() is a helper that initializes my entity framework DbContext
// with the correct connection string for the testing database.
using (var entityFrameworkContext = CreateTestEntities())
{
// Do whatever ... |
5eb1029b277c1919b236f6252cefabfa8c2a869a | C# | Bogdana94/PSSC-2016-2017 | /MVC-PSSC/MVC-PSSC/Commands/CommandHandlers.cs | 2.765625 | 3 | using Models.Events;
using Models.Repositories;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Commands
{
class CommandHandlers : IHandleCommand<RequestSubjectList>
{
private readonly IRepos... |
395346d0cca87eaca4b7f37315e146ece392b9cd | C# | carlosdarioio/ConsoleApplications | /ConsoleApplication1/8WhilePotencia/Program.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _8WhilePotencia
{
class Program
{
public static int Potencia(int Base,int Expo)
{
int p = 1;
while (Expo>0)
{
p = p ... |
1cdeef0dea1b9f74001f1c08353cf6e6078ef27d | C# | CanderenKaymak/CSharp | /Project.TOOLS/CustomTools/ImageUploader.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace Project.TOOLS.CustomTools
{
public static class ImageUploader
{
public static string UploadImage(string serverPath, HttpPostedFileBase file)
... |
fecb6cc8bdf8f0db71f38231c6756cfd49dd8a83 | C# | RUGSoftEng/2018-Hestia-IOS | /Hestia/Hestia/Frontend/SettingsScreen/UITableViewControllerContacts.cs | 2.53125 | 3 | using Hestia.Resources;
using MessageUI;
using System;
using UIKit;
namespace Hestia.Frontend.SettingsScreen
{
/// <summary>
/// This class contains the behaviour of the buttons int the contacts page of the settings screen.
/// That screen contains three buttons that launch an email client to send a messag... |
0e8637670d7ce43615767e981b4b7431893b06da | C# | angelpj18/SistemaReservaAlquilerHab | /SistemaReservaAlquilerHabi/tipoHabitacion.cs | 2.84375 | 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 SistemaReservaAlquilerHabi
{
public class tipoHabitacion
{
public int Id { get; set; }
public string Descripcion { get; ... |
db7206af7bd082c2e9a657699d578c5562a5be96 | C# | hatchakka3/Projekt2-Objektorienterad-systemutveckling-2 | /BusinessEntities/Entities/Activity.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BusinessEntities
{
public class Activity : IActivity
{
public int ActivityID { get; set; }
public string Description { get; set; }
public bool Available { get; ... |
d834111d0d4ee7eb6abefad81ff7721b182d0ba9 | C# | crispygoth/AdventOfCode | /2020/Day5Test.cs | 2.5625 | 3 | using System;
using NUnit.Framework;
namespace AoC.Tests
{
[TestFixture]
class Day5Test
{
private static readonly object[] DECODE_TEST_INPUT = {
new object[] { "FBFBBFFRLR", 357 },
new object[] { "BFFFBBFRRR", 567 },
new object[] { "FFFBBBFRRR", 119 },
... |
a935988fadaceb8707538e70f47b26de2292e1d7 | C# | theLionCount/SandDuneFormation | /SandDuneFormation/SandDuneFormation/ControlForm.cs | 2.53125 | 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 Microsoft.Xna.Framework;
using System.IO;
using System.Threading;
namespace SandDuneFormation
{
public partial class Control... |
771f2f5021359750ba886247fc910f294d0d0067 | C# | SimonPilkington/DiceBot | /DiceBot/Program.cs | 2.734375 | 3 | using System;
using System.Windows.Forms;
using DiceBot.Ui;
namespace DiceBot
{
static class Program
{
private static System.Threading.Mutex instanceMutex;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
bool mutexCreated;
... |
6bd62da99325a83b72374bc347660566a433c298 | C# | zhangwxyc/StatsicForXX | /StatsisLib/SerializeHelper.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace StatsisLib
{
public static class SerializeHelper
{
public static void Serialize<T>(this T info,string path)
where T : class
{
... |
28984214ee9cc83d5647a28d720d93bec86c2c7d | C# | moa-novae/Custom-File-Browser | /Q1/Main/ViewModels/DirectoryStructureViewModel.cs | 2.84375 | 3 | using System.Collections.ObjectModel;
using System.Linq;
using Q1Entity;
using Q1.Services;
using Q1.State;
namespace Q1
{
/// <summary>
/// This view model serve as a container for all the root items in the root directory.
/// Each root item is its own view model (DirectoryitemViewModel)
/// </summa... |
b3881478eb06fe0d60febcb371aeb534c6cba6a7 | C# | DiscoPYF/arangodb-net-standard | /arangodb-net-standard/GraphApi/GraphApiClient.cs | 2.53125 | 3 | using ArangoDBNetStandard.GraphApi.Models;
using ArangoDBNetStandard.Serialization;
using ArangoDBNetStandard.Transport;
using System;
using System.Collections;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
namespace ArangoDBNetStandard.GraphApi
{
/// <summary>
/// A client for inter... |
2525b8ac0b615ade22f39b366b6decf28635e726 | C# | rafaelbm/PerfBenchmarks | /PerfBenchmarks/JsonDeserializaton.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using BenchmarkDotNet.Attributes;
using Bogus;
using Newtonsoft.Json;
namespace PerfBenchmarks
{
[Config(typeof(BenchConfig))]
public class JsonDeserialization
{
private ArraySegment<byte> _array... |
cf27d53160aa8bae41efb7a33a76cd6a42e660a5 | C# | unclvito/mcmp.net | /src/MCMP/Exceptions/MultiClusterException.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MCMP.Exceptions
{
public class MultiClusterException : ApplicationException
{
public MultiClusterException()
{
}
internal MultiClusterException(IEnumerable<Exception> exceptions)
: base("Multiple exceptions: ... |
55ab8b54483fc43930ed3c16126e854e99ee6339 | C# | DevelopersGuild/zombie-ninja-attack-craft | /Assets/Scripts/ActivateTrigger.cs | 2.578125 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ActivateTrigger : MonoBehaviour {
public List<GameObject> objects = new List<GameObject>();
void Start()
{
foreach (GameObject item in objects)
{
item.SetActive(fa... |
c09e69bc2ecdcef61af51d1ae712bed46e9916ab | C# | ciaran-h/artistrator | /Artistrator/KMeans.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artistrator.Clustering {
public class KMeans {
private static Random random = new Random();
public int iterations, centroids, dimensions;
public double minBound,... |
4bdf3a0c0984cabedb2a6cf2fd52442a2783e133 | C# | shendongnian/download4 | /code11/1909218-57385751-203011995-2.cs | 2.578125 | 3 | public object DoWork(string entityPath, Type type) {
// get 'json' using 'entityPath'
var listType = typeof(List<>).MakeGenericType(type);
return JsonConvert.DeserializeObject(json, listType);
}
|
02a255caaba74594497b85c8172b33c44932fa5b | C# | toiro/VLVTuber | /Assets/VLVTuber/Plugin/VLUtil/Scripts/Commons/RotationOrientation.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VacantLot.VLUtil
{
/// <summary>
/// 回転の基準方向
/// </summary>
public class RotationOrientation
{
public Vector3 Forward { get; }
public Vector3 Upward { get; }
public Quaternion LookRotat... |
892e3ad3f12e5adfb667bd8e67b8cf7db4d165a0 | C# | derwunderbar/webshop | /WebShop.Tests/Data/Repositories/CatalogTests.cs | 2.78125 | 3 | using System.Linq;
using NUnit.Framework;
using WebShop.Core.Collections.Generic;
using WebShop.Data.Entities.Catalog;
using WebShop.Data.Repositories.Catalog;
namespace WebShop.Tests.Data.Repositories
{
[TestFixture]
public class CatalogTests
{
private IPagedEnumerable<BookEntity> _boo... |
0c800a2756159228abc63f73c6a0d6d205f4e26c | C# | fdecaire/MVCUniversityDemo | /Helpers/DataSetHelpers.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace Helpers
{
public static class DataSetHelpers
{
public static void AddDataColumn(this DataTable dataTable, string fieldName, string dataType)
{
DataColumn dataColumn... |
0a32bc7662c14a1eccec28fe0c0ff61b81f3e8de | C# | BoberUnity/AfterWar | /Scripts/WallLight.cs | 2.703125 | 3 | using UnityEngine;
public class WallLight : MonoBehaviour
{
[SerializeField] private Material lightMaterial = null;
[SerializeField] private float speed = 1;
[SerializeField] private float maxA = 1;
[SerializeField] private float minA = 0;
private bool on = false;
private bool up = false;
private float ... |
cb539fa0e74d89154089df1269fc054ac551b45d | C# | MayaTakimoto/MoonGate | /MoonGate/MoonGate/Component/Action/SelectFolderAction.cs | 2.59375 | 3 | //-----------------------------------------------------------------------
// <summary>フォルダ選択ダイアログ表示のActionクラス</summary>
// <author>MayaTakimoto</author>
// <date>$Date: 2013/03/23 10:25:37 +9:00 $</date>
// <copyright file="$Name: SelectFolderAction.cs $" >
// Copyright(c) 2013 MayaTakimoto All Righ... |
51fcd192f2624a4ee6df70bfc2725c8a43c4bab6 | C# | vadash/gwent-daily-demo | /gwent-daily-reborn/Model/GameInfo/Hand.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using gwent_daily_reborn.Model.Cards;
using gwent_daily_reborn.Model.Cards.Extra;
using gwent_daily_reborn.Model.Cards.Leader;
using gwent_daily_reborn.Model.Control.BotTasks;
using gwent_daily_reborn.Model.Helpers;
using gwent_da... |
1311da8f923be204100a32711b33754e76461b45 | C# | ShittyLabs/ShittyLINQ | /ShittyLINQ/Contains.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
namespace ShittyLINQ
{
public static partial class Extensions
{
public static bool Contains<T>(this IEnumerable<T> self, T element)
{
if (self == null || element == null) throw new ArgumentNullException();
foreach (var ite... |
1e7363ca70e93d33a685d8e6640978cd5eef746f | C# | Happy0-0/PayAway | /PayAway.WebAPI/Utilities/CardPanExtensions.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PayAway.WebAPI.Utilities
{
/// <summary>
/// Useful methods for Card Pans
/// </summary>
public static class CardPanExtensions
{
// Convert to int.
/// <summary>
/// The characte... |
5c688ab69b29b74fae17a365ff6f79abdd8c6ddc | C# | Niels-Ver/GeoService | /GeoService/ApiBaseClass/ApiCity.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;
namespace GeoService.ApiBaseClass
{
public class ApiCity
{
public ApiCity()
{
}
public ApiCity(int continentID, in... |
93ebf28bee649862da7dcd39beba2eaa54888258 | C# | seaboy1234/IRCSharp | /IRCSharp.Server/IrcUserMode.cs | 2.578125 | 3 | // Project: IRC# Server
// File: IrcUserMode.cs
// Copyright: Copyright (C) 2014 Christian Wilson. All rights reserved.
// Website: https://github.com/seaboy1234/IRCSharp
// Description: An Internet Relay Chat (IRC) Server written in C#.
//
// Licensed under the Apache License, Vers... |