Datasets:

blob_id
large_stringlengths
40
40
language
large_stringclasses
1 value
repo_name
large_stringlengths
5
119
path
large_stringlengths
4
271
score
float64
2.52
4.84
int_score
int64
3
5
text
stringlengths
26
4.09M
fe8734033f0e71e6009d4e351cd1645a36c3f225
C#
CWTBT/assignment-03
/FormExample/Sprite.cs
3.109375
3
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Threading; using System.Collections.Generic; namespace FormExample { public class Sprite { private Sprite parent = null; //instance variable private float x = 0; public ...
7c38dee25799400c158c7e3f1ccaa31458d0e615
C#
beytularedzheb/UniversityProjects
/Bachelor/Operating Systems/OS_NSCAN/OS_NSCAN/frmMain.cs
2.640625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace OS_NSCAN { public partial class frmMain : Form { Queue<Request> requests; List<Request> currentSub; public frmMain() { InitializeComponent(); req...
48a475555542f3e21a677586f48be9741ee675ef
C#
KarimContractor/source
/repos/Blood Donation Management System/Blood Donation Management System/Models/BarCode.cs
2.65625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Web; namespace Blood_Donation_Management_System.Models { public class BarCode { public string Generator(string id) { using (MemoryStr...
12d773520bdf7c9dd6f0a5141be1dc61f84c90ef
C#
frkshi/console
/MtuConsole/DataAccess/_Context/SqliteSettingPersistenceContext.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using DataAccess.Interfaces; using DataAccess.Helpers; namespace DataAccess { public class SqliteSettingPersistenceContext : ISettingPersistenceContext { public string FilePath { get; private set; } //文件路径 /...
2d6fbd11b87ea00f7ab55dfa0c48af9a48fad1dd
C#
blish-hud/Blish-HUD
/Blish HUD/GameServices/GameIntegration/GfxSettings/AnimationSetting.cs
3.140625
3
namespace Blish_HUD.GameIntegration.GfxSettings { public readonly struct AnimationSetting { private const string SETTING_LOW = "low"; private const string SETTING_MEDIUM = "medium"; private const string SETTING_HIGH = "high"; private string Value { get; } private ...
32e3414adec0481581c9279547e105a501b98ce4
C#
carlosomarpabon/PhotoAlbumTechShowcase
/PhotoAlbumTechShowcase/Program.cs
3.4375
3
using System; namespace PhotoAlbumTechShowcase { public class Program { static void Main() { var apiService = new PhotoAlbumApiService(); Console.WriteLine("Photo Album Service."); while (true) { var inputAlbumId = GetInputAlbumId(...
5ae8fe220035777a0caae3199394600d4ee44d91
C#
ottog-itics/ProyectoGit2020
/ProyectoGit2020/Gerente.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; namespace ProyectoGit2020 { class Gerente:Empleado { private const double BONO_GERENTE = 0.15; public Gerente() { } public Gerente(string tipoEmpleado, string nombre, double salario, char genero, strin...
4dfe8236aead79a55e4bd4caf2cde8c25d7c81f4
C#
shendongnian/download4
/first_version_download2/333120-27987533-81745885-6.cs
3.25
3
public class SomeContext : INotifyPropertyChanged { public ObservableCollection<Person> People { get; set; } public SomeContext() { People = new ObservableCollection<Person>(); People.Add(new Person { Name = "Samuel" }); } public void AddPerson() ...
b18b49436a0ad276a6a8bba54e1c33e9c36a5bb7
C#
xuxiaowei007/ZYNet
/DEMO/DEMO1/TestClient/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZYNet.CloudSystem; using ZYNet.CloudSystem.Loggine; using ZYNet.CloudSystem.Client; using ZYNet.CloudSystem.Frame; using ZYNet.CloudSystem.SocketClient; namespace TestClient { class Program ...
deb5294da0dbd66a4c21ef03cc91f31b3e197326
C#
lzukw/WirelessDisplay
/Tests/Common.CustomConfigProvider_Test/Test.cs
2.765625
3
using NUnit.Framework; using System; using WirelessDisplay.Common; using Microsoft.Extensions.Logging; namespace WirelessDisplay.Tests.Common.CustomConfigProvider_Test { [TestFixture] public class Test { // The magic strings are keys and values in the used test-Configuration-File const stri...
3cba5505dfb3ea8af89eeae86f121b52f83f9a86
C#
itsahmedbashas/tasks.api
/Middlewares/GlobalExceptionMiddleware.cs
2.625
3
using System; using System.Net; using System.Threading.Tasks; using AutoMapper.Configuration; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Hosting; using Tasks.API.Errors; namespace Tasks.API.Middlewares { public class GlobalExceptionMiddleware { priva...
f39c5d7056cb8ac6dbe7b0cd8e93547cccc386e0
C#
meriat/Library.Solution
/Library/Models/Book.cs
3.21875
3
using System; using System.Collections.Generic; using Library; using MySql.Data.MySqlClient; namespace Library.Models { public class Book { public int Id {get; set;} public string Title {get; set;} public Book (string newTitle, int id = 0) { Title = newTitle; Id = id; } public...
0c63ca2deb5ad58be443467995cdf71c9c2f9d78
C#
coderwood/mycodesource
/CommonLayer/Easy.Common.Utility/XMLHelper.cs
3.03125
3
using System; using System.Collections.Generic; using System.Text; using System.Xml; namespace HtlInv.Common.Utility { public class XMLHelper { /// <summary> /// xmlļ· /// </summary> string xmlPath = null; /// <summary> /// xmlĵ /// </summary> X...
4bb1a7e85c62133db2e8aaf299f63f4910b3a6ed
C#
lmsldeepak/Mazegame
/Mazegame/Entity/Utility/AgilityTable.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mazegame.Entity.Utility { public class AgilityTable { private static AgilityTable instance; private Dictionary<int,int> lookup = new Dictionary<int, int>(); p...
6d2839b9d2ee4bd2c67a711b3375242907efa769
C#
YovkoGospodinov/SoftUni
/C# Basics/Homework - Console Input Output/10.FibonacciNumbers/Fibonacci.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.FibonacciNumbers { class Fibonacci { static void Main() { int firstNumber = 0; int secondNumber = 1; int thirdNumber = 0; ...
3047e7fbac3f489966ceff92ca29e4cbb4a98e19
C#
shendongnian/download4
/first_version_download2/117100-8150341-18177180-2.cs
2.515625
3
XmlTextWriter writer = new XmlTextWriter(@"c:\tests\test.xml", Encoding.UTF8); writer.Formatting = Formatting.Indented; writer.Indentation = 3; writer.WriteStartDocument(); writer.WriteStartElement("elementName"); writer.WriteAttributeString("...
03615e3525e0f43b14f17c731e1f06fc316baece
C#
lwjsw2320214/Logistics
/DBUtility/HelpSQL.cs
2.9375
3
using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; namespace DBUtility { public class HelpSQL { //数据库连接字符串(web.config来配置) private string connectionString; ...
f1ca85f5ee3277a17006a6235816e7489476fbd1
C#
fayvit/PQP
/script/conversas/bancoDeTextos.cs
2.71875
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class bancoDeTextos{ public static readonly Dictionary<string,Dictionary<string,List<string>>> falacoes = new Dictionary<string, Dictionary<string,List<string>>>() { {"pt-br", new Dictionary<string,List<string>>(){ {"...
262fb16f6b84104f7fb9246a8e1a41ebe8f2d54e
C#
suraj200981/Basic-CRUD-Application-ASP.net-and-C-
/BookListRazor/Model/Book.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace BookListRazor.Model { public class Book { //overloads the variable ID to make it unique [Key] public int ID { get; set; } /...
319942d92ad6660588e21d6021ed0dc466478284
C#
khoinmdIT99/QuanLyThuyen
/WebApplication.Tests/BusinessLogic/BoatOwnerServiceTests.cs
2.65625
3
using System; using System.Collections.Generic; using WebApplication.BusinessLogic; using WebApplication.Models; using WebApplication.Tests.Utils; using Xunit; namespace WebApplication.Tests.BusinessLogic { public class BoatOwnerServiceTests : IClassFixture<SharedDatabaseFixture>, IDisposable { public ...
dcaf5d4cda9e1ab497c1a7761147f0a720566a7f
C#
ProgPedrao/CadastroDeContasBancarias
/ContasBancarias/ContasBancarias/Program.cs
3.390625
3
using System; using System.Globalization; namespace ContasBancarias { class Program { static void Main(string[] args) { double saldo; int numConta; string nome; Conta conta; Console.Write("Entre com o número da conta: "); ...
85ebddf53e77e6ebf224a595057994563bd5a581
C#
FredEkstrand/EnhanceGroupBox
/EnhanceGroupBox/ControlShape.cs
2.53125
3
using System; using System.ComponentModel; using System.Drawing.Design; namespace Ekstrand.Windows.Forms { /// <summary> /// Properties grouped for EnhanceGroupBox control shape. /// </summary> [TypeConverter(typeof(EnhanceGroupBoxControlShapeConverter))] [Serializable] public class ControlSha...
c38541b2f50037a11e0f4d0333b60147b67d44e9
C#
lazarofl/workshop-testes
/DependenciasExternas/SistemaLegado/DataBase.cs
2.65625
3
using System; using System.Data; using System.Data.SqlClient; using System.Text; namespace SistemaLegado { public class DataBase : IDataBase { public Usuario ObterUsuario(int id) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(); builde...
eee3ae9c1585df80ff0e964708593db0b9c545c8
C#
TyroBaxter/BBA
/BBA.Application/Code/GetMostPopulatedState.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BBA.Application.Code { public class GetMostPopulatedState : IPeopleAnswerer { /// <summary> /// This is "Answer 5" /// </summary> /// <param name="peop...
63d66cc5ba9be2bbb72b5ce10479b41e99b28658
C#
RaabsIn513/Visual-Studio-2010
/NetduinoControllerProject/NetduinoControllerProject/Devices.cs
2.6875
3
using System; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; using System.Threading; using Toolbox.NETMF.Hardware; using System.Collections; namespace NetduinoControllerProject { public class Devices { public struct Devic...
f0f1dead985df18abb13cae9336efb7fd48b8828
C#
CloneDeath/Xanatos
/Xanatos/GameState/Overworld/Gameboard.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using GLImp; using OpenTK; using System.Drawing; namespace Xanatos.GameState.Overworld { public class Gameboard { List<Piece> Pieces = new List<Piece>(); public int Width; public int Height; public void ...
343e243f0591918d4e3916a59355bc3b7fd95129
C#
troja1297/Homework54
/MyFirstMVC/MyFirstMVC/Models/Phone.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace MyFirstMVC.Models { public class Phone : Entity { [Required(ErrorMessage = "укажи название телефона")] [String...
d1b4f0d1c2a6b550d6d48a3aedd6753c38251d8c
C#
kjiwu/TrafficRulesExam
/TrafficRulesExam/TrafficRulesExam/Pages/ExercisePageViewModel.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using TrafficRulesExam.Helper; using TrafficRulesExam.Models; using TrafficRulesExam.ViewModels; namespace TrafficRulesExam.Pages { public class GetQuestionCommand : ICom...
1d2d77fdcb1d133a5acfffa3b58d42c4923a5c2b
C#
shendongnian/download4
/latest_version_download2/41896-7062770-146456891-4.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System...
ff4e13d25723bd5ebd1ad979edd88985269834a5
C#
shafaatahsen/charityApp
/CharityApp/Services/ProjectService.cs
2.953125
3
using System.Collections.Generic; using System.Linq; using CharityApp.Models; namespace CharityApp.Services { public class ProjectService { private static List<Project> projects = new List<Project>(); private static int Count = 1; public List<Project> GetAllProjects() {...
1ff7a63631e98842d7da7b121d7e7dbc83579be9
C#
silasary/masterplan
/Masterplan/Data/Encyclopedia.cs
2.828125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Xml.Serialization; using System.IO; using System.ComponentModel; namespace Masterplan.Data { /// <summary> /// Class representing the project encyclopedia. /// </summary> [Serializable] public class Encyclopedia { /// <summary>...
d40ecdf64985e6c0f5632d2887796202c7119bfa
C#
sarahtsoh/CBACodeTest
/CBArule/Rule3.cs
2.71875
3
using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CBArule { public class Rule3 : IRule { List<char> _abcSearchList = null; Rule3Config _rule3Config; FilePathConfig _filePathConfig; IOpt...
2a3f8e39eecc665c0fc65d3f4ac591e5061abbdb
C#
mitchabaza/EazyStub
/test/Test/MatchRuleFixture.cs
2.890625
3
using System; using EasyStub.Common; using EasyStub.Test.Util; using FluentAssertions; using NUnit.Framework; namespace EasyStub.Test { [TestFixture] public class MatchRuleFixture { private class Value : IEquatable<Value> { public override bool Equals(object obj) { ...
48b0ea7438c2b8185a26a6b6df955e4423f23b04
C#
EmilisR/MultiLayerApplication
/BasketBLService/RegisteredUserBasketService.cs
2.578125
3
using System; using Basket.Service; using User.Service; using Unity; using Product.Service; using LibraryLayer; using System.Linq; namespace BasketBLService { public class RegisteredUserBasketService : IBasketBLService { public RegisteredUserBasketService() { basketService = Depend...
b858b6c421f632a773df20b36790e3a79d40336c
C#
shendongnian/download4
/first_version_download2/595949-57908638-205232941-2.cs
2.71875
3
using System.IO; using System.Linq; ... List<marcacoes> list = ... File.WriteLines("marcacoes.txt", list .Select(item => string.Join(",", // join with "," following properties: item.Nome, item.Hora, item.Minutos, item.Data.Year, ite...
a6c28230f25e6a946c592b3ae2b4a125de5d1344
C#
RedRibbonGames/Tower-Defence
/Assets/Scripts/ScoreBoard.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ScoreBoard : MonoBehaviour { public Text livesRemaining; public Text goldDisplay; public static int lives; public static int gold; // Use this for initialization void Start () { ...
58678b800a5c57ae1dc5d243852863ef5d83f331
C#
ranganathsb/JavaSharp
/util/jar/Manifest.cs
2.640625
3
using System; using System.Collections.Generic; /* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ namespace java.util.jar { /// <summary> /// The M...
d7d87e35740afe458b3d5a0ca2afb34ace6e2389
C#
MrGottham/789fe44a87d4
/DsiNext.DeliveryEngine/DsiNext.DeliveryEngine.Repositories.Data.Oracle/Events/CloneOracleDataRepositoryEventArgs.cs
2.71875
3
using System; using DsiNext.DeliveryEngine.Repositories.Interfaces; using DsiNext.DeliveryEngine.Repositories.Interfaces.Events; namespace DsiNext.DeliveryEngine.Repositories.Data.Oracle.Events { /// <summary> /// Arguments to the event raised when the oracle data repository is cloned. /// </summary> ...
3902363fb54016126a7d57a20d843bfb7aaef932
C#
RezareSystems/mobile-examples
/mobile-examples/mobile-examples/Services/NotificationService/NotificationContent.cs
3
3
using System; using System.Collections.Generic; using System.Text; namespace mobileExamples.Services.NotificationService { /// <summary> /// Class to pass to native code to describe the notification /// </summary> public class NotificationContent { /// <summary> /// Creates a n...
2bb3153a10f61dbc37744d8c9e41415df7f81180
C#
shendongnian/download4
/first_version_download2/497470-45230289-152106468-2.cs
2.9375
3
List<string> ListItems = new List<string>(); foreach (var el_loopVariable in shipments.Items) { //Passing id "chk" to FindControl method of current ListViewItem and trying to cast it as Checkbox var checkBox = el_loopVariable.FindControl("chk") as CheckBox; if (checkBox != null && ch...
a9e63bdba40bf576560ed4b775dbce5a172191f9
C#
RahulDevaraj/csis-1175-Visual-C
/CSIS1175Demo08/CSIS1175Demo08/Demo08.cs
3.28125
3
using System; using static System.Console; namespace CSIS1175Demo08 { class Demo08 { static void Main(string[] args) { int[] scores = new int[5]; for( int i = 0;i<5;i++) { Write("Please Enter YOur SCore >> "); scores[i] = int....
93ab222228a6b44fbc1bc9579fb93459b9e8dda0
C#
rachelhuch/BankingSolution
/BankingTests/BankAccountWithdrawals.cs
3.046875
3
using BankingDomain; using System; using System.Collections.Generic; using System.Text; using Xunit; namespace BankingTests { public class BankAccountWithdrawals { [Fact] public void WithdrawingMoneyDecreasesBalance() { //Given var account = new BankAccount();...
27cadad63a4ce5a8957fb8f1a4b83f2159301640
C#
TomasKireilis/FeeCalculator
/Domain/Merchants/Merchant.cs
2.625
3
using Domain.Factories.Interfaces; using Repository; namespace Domain.Merchants { public class Merchant { private readonly IMerchantFeeFactory _feeFactory; public MerchantInformation MerchantInformation { get; } public Merchant(IMerchantFeeFactory feeFactory, MerchantInformation merch...
ae1e1942c0e69507933ce6c1f3c9904721ed5819
C#
MikeH2012/xaml-sdk
/GridView/CustomColumnFilterDescriptor/MainPage.xaml.cs
3.109375
3
using System; using System.Linq; using System.Windows.Controls; using System.Windows.Data; namespace CustomColumnFilterDescriptor { public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); // We create a generic flags enum column. You can use it for any flags enum type. ...
3bcbdf7bd74532b2763df7f1b2ad1bf91e7a2878
C#
sienkiewiczkm/software-renderer
/SoftwareRenderer/Logic/Scene.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SoftwareRenderer.Rendering; using SoftwareRenderer.Helpers; using System.Windows.Media; using MathNet.Numerics.LinearAlgebra; using System.Windows.Media.Imaging; namespace SoftwareRenderer.Logic {...
44643a59508b5d0c1a554137b9ed235b43d363b3
C#
Kitee666/UMK
/Programowanie_C#/Pojazdy/Porownywarka/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Porownywarka { class Program { static void Main(string[] args) { IPorownywarka porownywarka = new PorownywarkaA(); MaszynaSortu...
11cf9a0057440b5ccd3b7118633bd4d7278c8488
C#
qiperman/WinEventLogReader
/EventLogReader.cs
3.5
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace WinEventLogReader { class EventLogReader { private EventLog eventLog { get; } //объект,который обеспечивает взаимодействие с журналами событий Windows. public EventLogReader(string EventLog...
4eb1673722d583e0ada8c29761f2d0a5def10056
C#
ziajek444/Manipulator-control
/Roboty_przemyslowe/Filtre.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions;//Regex namespace Roboty_przemyslowe { class Filtre { public Filtre() { } private string[] box_temp; public string[] SetBo...
531ddf34dac791aa2b43318c9e85c2229b85735d
C#
pbrach/codecraving
/RequestChain/AutofacLearning/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using Autofac; using Components; using Components.Interface; using IContainer = Autofac.IContainer; // ReSharper disable ClassNeverInstantiated.Global namespace AutofacLearning { internal class Program { private static void Main() ...
9f652bbc4121eabe8b022fe0a6bc18f77433ff75
C#
volenpopov/SoftUni
/Databases Advanced - Entity Framework/Entity Relations/Entity Relations Exercises/3. Football Betting/P03_FootballBetting/Data/FootballBettingContext.cs
2.609375
3
using Microsoft.EntityFrameworkCore; using P03_FootballBetting.Data.Models; namespace P03_FootballBetting.Data { public class FootballBettingContext : DbContext { public FootballBettingContext() { } public FootballBettingContext(DbContextOptions options) : base(options) ...
eb493ca74cc7d009ce91162201a115da3dcaaf81
C#
1337m4573r/softuniB
/Homework7/P5_Calculate1/Calculate1.cs
3.78125
4
//Write a program that, for a given two integer numbers n and x, calculates the sum S = 1 + 1!/x + 2!/x2 + … + n!/xn. //Use only one loop. Print the result with 5 digits after the decimal point. //n x S //3 2 2.75000 //4 3 2.07407 //5 -4 0.75781 using System; using System.Numerics; using System.Threading; using Sy...
852e5a599ef4378b965171a2584692f595561a3f
C#
efimeriomenco/EndavaiAcademyCourse
/src/Endava.iAcademy.Domain/User.cs
2.515625
3
using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Endava.iAcademy.Domain { public class User { public int Id { get; set; } public string Email { get; set; } public string Password { get; set; } ...
bfe0d29b2dc5ac31d0c3442a464c749bb3f46237
C#
Mlorism/LastTemple
/LastTemple/CRUD/Creature/EditCreature.cs
2.65625
3
using LastTemple.Engine; using LastTemple.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LastTemple.CRUD { public class EditCreature { private readonly ApplicationDbContext _ctx; public EditCreature(Applica...
17bf250a1f9c2ee2010ec8542ec3f512d2523926
C#
mikef907/Sudoku-Unity
/Assets/Scripts/Timer.cs
2.765625
3
using System; using TMPro; using UnityEngine; public class Timer : MonoBehaviour { private TMP_Text timeDisplay; public TimeSpan time { get; set; } private double tick = 0.02; private bool _paused = false; void Start() { timeDisplay = GetComponent<TMP_Text>(); } private void...
2cf2fbc5cac096d4b034ba66a9f19a9274536b3f
C#
airwoo/Zombie-Maze-Gun-Game
/Assets/Scripts/PlayerController.cs
2.640625
3
using UnityEngine; using System.Collections; [RequireComponent(typeof(Rigidbody))] public class PlayerController : MonoBehaviour { Vector3 velocity; Rigidbody myRigidbody; void Start () { myRigidbody = GetComponent<Rigidbody> (); } public void Move(Vector3 _velocity) { //we want to move our player o...
3c4e02a9a89646bc6d18b0c1bf37ba9ed202a480
C#
freemark21/ConsignmentVendingBlazorApp
/DataAccessLibrary/ReturnsData.cs
2.671875
3
using Dapper; using DataAccessLibrary.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccessLibrary { public class ReturnsData : IReturnsData { private readonly ISqlDataAccess _db; public ReturnsData(ISq...
8869f32bf664563c75211c414a33e8b309a9a39e
C#
TektoCat/CrackTheCourier
/Assets/Scripts/Player/RollingWater.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RollingWater : MonoBehaviour { public float speed; public float lifeTime; public int damage; private Vector2 move = new Vector2(-0.168f, -0.1f); // Start is called before the first frame update vo...
63dc6d5b5f548bfbf92a6ed2b62ec9fd2fedacf9
C#
XANkui/DesignPatternsGameSample_XAN
/Assets/Scripts/Sample/System/EnergySystem/EnergySystem.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace DesignPattern_Sample_XAN { public class EnergySystem : IGameSystem { const int MAX_ENERFY = 100; private float mNowEnergy = MAX_ENERFY; private float mRecoverEnergySpeed = 3; public override ...
f4080bba336c2c7ed7987bfb59cdf5f153375e07
C#
YakhiniGroup/FlexiKaM
/kaplanmeierestimator.io/PatientReader/PatientReader.cs
2.90625
3
using KaplanMeierEstimator.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KaplanMeierEstimator.IO.PatientReader { public abstract class PatientReader { // Holds a mapping between the property name (in the header) to...
b71f3fe8f50a9be153ee07b6105284b320e31574
C#
shendongnian/download4
/latest_version_download2/120172-42837834-141739787-4.cs
2.890625
3
using (MyDbContext db = new MyDbContext()) { string query = db.Students.Where(o => o.Age > 20).ToString(); DataTable dataTable = db.DataTable(query); .. DataTable dt = db.DataTable( ( from o in db.Studets ...
e5225835720bd9db2e2b7c0041f24e11cf293e45
C#
I1uvatar/wcf-arch
/lib/AppPlatformCore.EnterpriseLibrary/src/Threading/RequestLocalStorage.cs
2.71875
3
using System; using System.Runtime.Remoting.Messaging; using System.Web; namespace AppPlatform.Core.EnterpriseLibrary.Threading { /// <summary> /// Defines interface for storing "per request" data /// </summary> public interface IThreadLocalStorage { /// <summary> /// Save ...
f1a040d03b3a3aba0e0fcc31673d1e945179201b
C#
brunpersilva/Exercicios
/Ex2Danilo/Ex2Danilo/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.IO; using Ex2Danilo.Entities; using System.Globalization; namespace Ex2Danilo { class Program { static void Main(string[] args) { string line; List<Emploeeys> list = new List<Emploeeys>(); // Le ...
bc7c55c64073d68fba38576d2b5cc0718941f004
C#
chansak/swu
/Swu.Portal.Data/Repository/ForumRepository.cs
2.625
3
using Swu.Portal.Data.Context; using Swu.Portal.Data.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; namespace Swu.Portal.Data.Repository { public class ForumRepository : IRepository2<Forum> { private...
2d9df1dde49ede6abe6cd642dc2137de4c37f8e3
C#
SergeyVolik/ProceduralBuildingGeneration
/Assets/Scripts/Plan2D/AbstractHouse2D/Entrance2D.cs
2.578125
3
using ArchitectureGrid; using Assets.Scripts.Premies.Buildings.Floors; using Rooms; using StraightSkeleton.Primitives; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Floor { public class Entrance2D : Premises2D { public Flo...
a4935f8929b22644a6ce211b4c771470bc95f5c7
C#
MichaelRoop/NET_TestHarness
/TestHarness/Outputs/OutputInfo.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using Ca.Roop.Utilities; using Ca.Roop.TestHarness.TestExceptions; namespace Ca.Roop.TestHarness.Outputs { /// <summary>The output metadata object.</summary> public class OutputInfo { private Dictionary<CredentialType,OutputCredential> credentia...
ba925760306ca6ea1864c835e8f3421835a6e350
C#
briandamaged/unity-2d-roguelike
/Assets/Scripts/Move.cs
3
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; static class Move { public static IEnumerator Linear(Rigidbody2D rb, Vector2 dest, float time = 1f, Action onComplete = null) { float inverseTime = 1f / time; while(true) { float remaining = ...
e118c64790fbebb773094339a5304ab36e3fed8f
C#
atom-chen/RPGGame
/RPGGameClient/Assets/Scripts/Support/UI/PanelLayer.cs
2.609375
3
/* * @Author: fasthro * @Date: 2019-06-20 18:05:39 * @Description: panel 层 */ namespace RPGGame { public static class PanelLayer { public static int BASE_NUMBER = 100000000; class LayerInfo { private int m_layer; public int layer { get { return m_layer++; } }...
06bd7da003a87e5a73b08bebe6bc549c276eee4f
C#
mtorres066/CalculoSueldo
/EstructuraRepetitivaDoWhile1/Program.cs
3.90625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; //Explicacion: DO ejecuta WHILE Hasta que... //Escribir un programa que solicite la carga de un número entre 0 y 999, y nos muestre //un mensaje de cuántos dígitos tiene el mismo. Finalizar el programa cuando se cargue el valor 0....
132aa967dceefd1e04e045de46a032059bb59ef3
C#
telmengedar/japi
/Japi.Tests/JsonTests.cs
2.5625
3
using NightlyCode.Japi.Extensions; using NightlyCode.Japi.Json; using NUnit.Framework; namespace NightlyCode.Japi.Tests { [TestFixture] public class JsonTests { [Test] public void SerializeAndDeserialize() { TestObject test = TestObject.TestData; string jsondata = JSO...
869b2293761921762eb3c1192e064c8b355da12f
C#
EmilJL/AdminFinal
/InfoScreenAdminDAL/Entities/Admin.cs
2.59375
3
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InfoScreenAdminDAL.Entities { public class Admin { public int Id { get; set; } private string username; private byte[] passwordSalt; private byte[] pas...
7f0b8ffbc6192b0a45dcf86cc7823c786f861bdb
C#
azret-m/challenge-calculator
/UnitTests/Test.cs
3.125
3
using NUnit.Framework; using challengecalculator.Classes; using challengecalculator.Exceptions; namespace UnitTests { [TestFixture()] public class Test { [Test()] public void SumOfMoreThanTwoNumbers() { ChallengeCalculator challengeCalculator = new ChallengeCalculator...
ac785008807486d7000f6acf640893d0d2c5c49e
C#
wcsanders1/DeltaObjectGenerator
/src/DeltaObjectGeneratorTests/Unit/DeltaObjectFromObjectGeneratorUnitTests.cs
2.5625
3
using DeltaObjectGenerator.Generators; using DeltaObjectGenerator.Models; using DeltaObjectGeneratorTests.TestModels; using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace DeltaObjectGeneratorTests.Unit { public class DeltaObjectFromObjectGeneratorUnitTests { [Trait...
bd21d05cf72af3f1a05867f5594a5bc5fafd34b5
C#
zhaobingwang/Zhao.Exercise
/Zhao.Exercise.EntityFramework/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zhao.Exercise.EntityFramework { class Program { static void Main(string[] args) { Console.WriteLine("请输入EF模式:CodeFirst:0|DbFirst:1...
31c492642742d45180e57f9480f8ef2ac273763f
C#
NikitaDemidenko/NET.Winter.2020.Demidenko.08
/FIlterDigitTemplateMethod/Filter.cs
3.921875
4
using System; using System.Collections.Generic; namespace FilterTemplateMethod { /// <summary>Provides methods for filter array by specified sign.</summary> public abstract class Filter { /// <summary>Filters the array by specified sign.</summary> /// <param name="array">An array.</param> ...
2d9679a930d0c8de1e78f76196ad03af5062eef2
C#
Qorpent/qorpent.sys
/Qorpent.Core/Utils/ConsoleSupport/ConsoleApplicationResult.cs
2.78125
3
using System; using System.Diagnostics; namespace Qorpent.Utils{ /// <summary> /// /// </summary> public class ConsoleApplicationResult{ /// <summary> /// /// </summary> public bool Timeouted { get; set; } /// <summary> /// /// </summary> public Exception Exception { get; set; } /// <summar...
b859908d0ebfdf19414da9ec757c61969c73877d
C#
TollMinder/TollMinder-Mobile
/Tollminder.Core/Models/Statuses/StatusesFactory.cs
2.515625
3
using System; using System.Collections.Generic; namespace Tollminder.Core.Models.Statuses { public static class StatusesFactory { static readonly Dictionary<TollGeolocationStatus, BaseStatus> _pool; static StatusesFactory () { _pool = new Dictionary<TollGeolocationStatus, BaseStatus>(); _pool.Add (Toll...
528c627508be4f0737b9251bf660c0a8b8b1b69d
C#
jtara1/Dooreo
/Assets/Scripts/Agents/Agent.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class Agent : MonoBehaviour { private bool _isDead = false; [SerializeField] protected int health = 10; public int Health => health; public bool IsDead => _isDead; ...
5c1e10f8eee7b469d6d6364ed96c8c407e6cf3f9
C#
Thoronir42/heraldry
/Blazon/Structure/Filling.cs
2.8125
3
using Heraldry.Blazon.Elements; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Heraldry.Blazon.Structure { public abstract class Filling { /// <summary> /// Default constructor. /// </summary> public...
be4b31678ece261dec6dcc5f9ea4f82f3fb4cefd
C#
Charuru/VenusClub
/Assets/Scripts/MatchThree/Tile.cs
2.96875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Tile { public int x; public int y; public Tile upNeighbour; public Tile rightNeighbour; public Tile leftNeighbour; public Tile downNeighbour; public TileType tileType; /...
745c1d22545e68d7a8131217e8aa75c7a6ddf208
C#
nipunwijayakoon/Online-Furniture-Ordering-Platform
/Frontend/my-app/ProjectBackend/Controllers/DesignChartController.cs
2.578125
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using ProjectBackend.Models; using ProjectBackEnd.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ProjectBackend.Controllers { [Route("api/[controller]")] [ApiController] pub...
a30acfe839b10fdf5fb691199e3ca4ef2e7a30c2
C#
Polodaniel/S.NotaAtualizacao
/Models/Clientes.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace S.NotaAtualizacao.Models { [Table(nameof(Clientes))] public class Clientes ...
a8e1d958952f840fa63078f0349732738a4dd40a
C#
GavinLonDigital/BasicCalculator_2
/BasicCalculator_2/Program.cs
3.59375
4
using System; namespace BasicCalculator { class Program { const string operator_Symbol = "OPERATORSYMBOL"; const string operand_1 = "OPERAND1"; const string operand_2 = "OPERAND2"; static void Main(string[] args) { int operand1, operand2; int re...
0215ff33902909bcc4bd9d51dbdd156ef90d4d72
C#
kasp470f/57-exercises-for-programmers
/Opg. 47 - Who's in Space/Program.cs
3.328125
3
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Net; namespace Opg._47___Who_s_in_Space { class Program { static void Main(string[] args) { string Crew = API("http://api.open-notify.org/astros.json"); // Call Method ...
20c24383c2fbf81fd8d3a43c5ac3122355627904
C#
adhikari-chayan/data-structures-and-basic-programming
/Coding Patterns/Amazon CAT/MoviesOnFlight/MoviesOnFlight/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MoviesOnFlight { class Program { static void Main(string[] args) { var input = new int[] { 90, 85, 75, 60, 120, 150, 125 }; var result = TwoSumC...
a7c7b9b15e0b81cb88b78e7dd3366f6c45b76169
C#
harbinailin/Csharp
/Wpfz/Ch03/C06Array3.cs
3.734375
4
namespace Wpfz.Ch03 { /// <summary>例2-4 二维数组</summary> public class C06Array3 { public string GetArray() { string s = ""; int[,] b = new int[3, 5] { {11,12,13,14,15 }, {21,22,23,24,25 }, {31,32,33,34,35 } };...
c102f3c73b6a0e7d45cd61f0c55668875948b0b4
C#
karolbarkowski/HackerrankSolutions
/ConsoleApplication1/Algorithms/Strings/AlternatingCharacters/AlternatingCharacters.cs
3.171875
3
using System; using System.IO; class Solution { static void Main(String[] args) { using (StreamReader sr = new StreamReader("Algorithms\\Strings\\AlternatingCharacters\\samples\\testCase0.txt")) { int N = int.Parse(sr.ReadLine()); for (int i = 0; i < N; i++...
b1716d9bb4b3db2582951cd528b5a479d42295b0
C#
EloiStree/2020_07_12_ReHackUnityCore
/Runtime/Core/RestreamChatMessage.cs
2.59375
3
using System; using System.Collections.Generic; using System.Globalization; using UnityEngine; namespace RestreamChatHacking { [Serializable] public class RestreamChatMessage { public RestreamChatMessage() { } public RestreamChatMessage(string userName, string message) { ...
9b2f25719d8543a6c68f7cd13ec28daf25ea6324
C#
HongRui-Gao/BlogSystem
/BlogSystem.BLL/CategoryBll.cs
2.984375
3
using BlogSystem.Dtos; using BlogSystem.IBLL; using BlogSystem.IDAL; using BlogSystem.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlogSystem.BLL { public class CategoryBll : ICategoryBll { ...
4bbf082a1d45f03f56e3ab9b56f81cb8545ebe40
C#
melardev/Xeytan.Net-Async-RAT
/XeytanCSharpServer/XeytanCSharpServer/Ui/Console/Views/ProcessView.cs
2.65625
3
using System; using System.Collections.Generic; using System.IO; using NetLib.Models; using XeytanCSharpServer.Models; using C = System.Console; namespace XeytanCSharpServer.Ui.Console.Views { class ProcessView : ClientView { private Client Client { get; set; } public void PrintBanner() ...
4c9e6989beccdde02cb98c791f0797f2b01789da
C#
suisuisan/Atariya
/Assets/Script/Objects/Players/BasePlayerComponent.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UniRx; /// <summary> /// プレイヤの各種Componentの基底クラス /// </summary> /// abstract : 抽象化クラス public abstract class BasePlayerComponent : MonoBehaviour { //input private IInputEventProvider _inputEventProvider; //privateの_inputEv...
5a2370b70073156b8c9c91dd511cf7ae26d65603
C#
CarlosMiraGarcia/Sorting
/Sorting/MergeSort.cs
4.03125
4
namespace Sorting { public class MergeSort { public string[] Sort(string[] a) { string[] aux = new string[a.Length]; Sort(a, aux, 0, a.Length - 1); return a; } private void Sort(string[] a, string[] aux, int lo, int hi) { /...
c9ae3fe41ce7bd30051c870b8255fb0660a44ca8
C#
Qorpent/qorpent.sys
/Qorpent.Core/Utils/Hex.cs
3.609375
4
using System; namespace Qorpent.Utils { /// <summary> /// Представляет HEX-число /// </summary> public class Hex { /// <summary> /// Значение /// </summary> public Int32 Value { get; set; } /// <summary> /// /// </summary> public...
1d410a8d7625526c80e9c90c8854647567ce64a3
C#
ly774508966/MVCEntityFramework
/MVCEntityFramework/MVCEntityFramework.DomainModel/Person.cs
2.890625
3
using System; using System.Collections.Generic; namespace MVCEntityFramework.DomainModel { /// <summary> /// This class represents a smaller version of the information we have in the database. /// </summary> public class Person { #region Properties public string FirstName { get; se...
6b787efc4c6b65a59a5ee579060e324856a2cac0
C#
mathjeff/ActivityRecommender
/ActRec/ActRec/Source/View/HelpDurationInput_Layout.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; using VisiPlacement; using Xamarin.Forms; namespace ActivityRecommendation.View { // Allows the user to specify how much help they received while doing something class HelpDurationInput_Layout : ContainerLayout, OnBack_Listener {...
51d9bce60955f923021188d846c83c5b52af74cb
C#
AresBY/EpamLinkedList
/ListLibrary/LessonList.cs
3.59375
4
using System; using System.Collections; using System.Collections.Generic; namespace Mentoring.LinkedList { public class LessonList<T> : ILessonList<T> { private class Node<TN> { public TN Data { get; set; } public Node<TN> Next { get; set; } publ...
24a78b4a67e427e15902e5956c53e6f3cb490a07
C#
csh4rp/DotnetBenchmarks
/DotnetBenchmarks/CacheLineBenchmark/Benchmark.cs
2.734375
3
using System.Diagnostics; using BenchmarkDotNet.Attributes; namespace CacheLineBenchmark { public class Benchmark { private const int ArraySize = 1024; private static readonly int[,] Items = new int[ArraySize, ArraySize]; private static int _value; static Benchmark() {...
1e67f1c48b28cd2014f080ffba29d897340ea276
C#
tidnani163/tech-test
/TechTest/AnyCompany/Migrations/ContextCustomer/ConfigurationCustomer.cs
2.71875
3
namespace AnyCompany.Migrations.ContextCustomer { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class ConfigurationCustomer : DbMigrationsConfiguration<AnyCompany.Entities.CustomerDbContext> { public ConfigurationCustomer...
9b1cd257be9b9dd6a51e2bfda259ae3e054ea56b
C#
MarinaKyupcheva/SoftWare-University
/CSharp-OOP/Homework and labs/Unit Tests/HeroTests.cs
2.6875
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; using Tests.Fakes; namespace Tests { [TestFixture] public class HeroTests { [Test] public void WhenTargetDies_ShoulReceiveExpirience() { FakeWeapon weapon = new FakeWeapon(); ...
bd12fbd3a94f41fb1157c3fcc1d55f6809070d9e
C#
kysucevostrave/DruhaHodina
/DruhaHodina/Models/StructureArray.cs
3.40625
3
using System; using System.Threading; namespace DruhaHodina.Models { struct Brick { public int x; public int y; public bool val; public Brick(int _x, int _y, bool _val) { this.x = _x; this.y = _y; this.val = _val; } } ...
8624f010ad4e6acf1a62303c1c1a780793eeab5d
C#
Xoma163/TuringMachine
/MT/MT/About.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.Threading.Tasks; using System.Windows.Forms; namespace MT { public partial class About : Form { public About() { ...