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 |
|---|---|---|---|---|---|---|
8aec0da4649f01f96c5908546b80f9a58b86e290 | C# | danieldutton/My_MVC_Blog | /DansBlog.Utilities/DateTimes/CurrentTimeHelper.cs | 2.546875 | 3 | using DansBlog.Utilities.Interfaces;
using System;
namespace DansBlog.Utilities.DateTimes
{
public class CurrentTimeHelper : ICurrentDateTime
{
public DateTime GetCurrentTime()
{
return DateTime.Now;
}
}
}
|
7934034bf4e0e29c3464e83e4a1ccb70a87b983d | C# | Rafi-nagli/CommerceCentric | /Ccen.Web/Models/ThumbnailHelper.cs | 2.890625 | 3 | using System;
using System.Drawing;
using System.IO;
using ImageResizer;
namespace Amazon.Web.Models
{
public class ThumbnailHelper
{
public static void GenerateThumbnail(Image sourceImage,
string thumbnailFileName,
int width,
int height,
string rotate)... |
d82a1aa7f79b69f6c8ceb451b4ea3087457e3c74 | C# | MatthiasHoldorf/FoodControl | /FoodControl/Utility/Tools.cs | 3.046875 | 3 | namespace FoodControl.Utility
{
using System;
using System.Collections.Generic;
using System.Linq;
using FoodControl.BusinessLogicLayer;
using FoodControl.Model;
using FoodControl.Model.ViewModel;
/// <summary>
/// The Tool class provides utility methods that are needed throughout the ... |
eeb520fede1595fc5d722f063cb947ae395c6966 | C# | irina-georgieva/SoftUni-ProgrammingBasics | /13 Nested Loops - Lab/P07 Cinema Tickets/Program.cs | 3.28125 | 3 | using System;
namespace P07
{
class Program
{
static void Main(string[] args)
{
string film = Console.ReadLine();
int seats = int.Parse(Console.ReadLine());
string ticket = Console.ReadLine();
int countstudent = 0;
int allcountstudent... |
85faf239ab955d423aba2a310ba40dbed0960acc | C# | Halehandro/TechMania | /Business/Repository/AdditionRepository.cs | 2.765625 | 3 | using Business.Repository.IRepository;
using DataAcess.Data;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.EntityFrameworkCore;
using System.IO;
namespace Business.Repository
{
public class Additi... |
ec69a3995bd6a26ff241f0047d7467f73d8155f9 | C# | yashsartanpara/Biometric-Based-Attendance-System | /BiometricAttendance ConsoleApp/Program.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Net;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using SourceAFIS.Simple;
using System.Data;
using BAL;
using SocketIOClient;
namespace BiometricAttendance_ConsoleApp
{
class Program
{
... |
43536c6c13066255c5b799369b81a4f31eb075be | C# | marckus-coder/Codecademy | /YourMethodName.cs | 3.125 | 3 | using System;
namespace DefineAMethod
{
class Program
{
static void Main(string[] args)
{
VisitPlanets();
//Com o método criado é preciso chamá-lo no Main
}
static void VisitPlanets()
{
Console.WriteLine("Você visitou muitos planetas");
}
}
} |
ff311f2b624a20a74b4a655b15d4f6445b336dd5 | C# | TimonPost/cube | /src/CubeAssignment.Tests/VectorTests.cs | 2.78125 | 3 | using CubeAssignment.Gui;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace CubeAssignment.Tests
{
[TestClass]
public class VectorTests
{
[TestMethod]
public void VectorAdd()
{
var vector1 = new Vector(2, 3, 4);
var vector2 = new Vector(2, 3, 4);
... |
4b01a52bc5829aee3d6efca155a0c0dbcc86dcb3 | C# | shendongnian/download4 | /code2/281444-5779273-12446498-1.cs | 3.28125 | 3 | using System.Collections;
byte[] bytes = Encoding.ASCII.GetBytes(513.ToString());
BitArray bits = new BitArray(bytes);
int ndx = 9; //or whatever ndx you actually care about
if (bits[ndx] == true)
{
Console.WriteLine("Bit at index {0} is on!", ndx);
}
|
3f36d2627a0bbb25205184ae79628a4f4e3c981c | C# | StormHub/NetUV | /src/NetUV.Core/Concurrency/ConcurrentCircularArrayQueue.cs | 2.625 | 3 | // Copyright (c) Johnny Z. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NetUV.Core.Concurrency
{
using NetUV.Core.Common;
abstract class ConcurrentCircularArrayQueue<T> : ConcurrentCircularArrayQueueL0Pad<T>
where... |
a82fdf8c41e636ad74dc23cacc1caebae713f297 | C# | mlashchilin/Influence | /Controller/MenuItemController.cs | 2.6875 | 3 | using System;
using Controller.FactoriesOfGameStateControllers;
using Model;
using View;
namespace Controller
{
/// <summary>
/// Контроллер элемента меню
/// </summary>
public class MenuItemController : BaseContoller
{
/// <summary>
/// Экземпляр элемента меню
/// </summary>
private MenuIte... |
213d97d14a7048409bd1e71009ca0a0035dbb7fa | C# | yordanov03/Soft-Uni | /Soft-Uni/C# OOP Advanced/Exercises Generics/03. Generic Swap Method Strings/StartUp.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03.Generic_Swap_Method_Strings
{
public class StartUp
{
public static void Main(string[] args)
{
var box = new List<Box<string>>();
var numberO... |
f287f29ead8ea0ca3217e31da5988db0037209f0 | C# | mwiniarski/wpf | /NTRStudentsTest/Model.Year.Test.cs | 2.765625 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Calendar;
namespace CalendarTest
{
[TestClass]
public class Model_Year_Test
{
[TestMethod]
public void TestToString()
{
Calendar.Model.Year E = new Calendar.Model.Year
{
Week = 15,
... |
cb3d900d3bc69927b6d89e5f2ea2f5dd143b1c20 | C# | HST05/KampIntro | /ClassIntro/Program.cs | 2.765625 | 3 | using System;
namespace ClassIntro
{
class Program
{
static void Main(string[] args)
{
//string adi = "Samet";
//int yas = 20;
Kurs kurs1 = new Kurs();
kurs1.KursAdi = "C#";
kurs1.KursunEgitmeni = "Engin";
kurs1.KursunDil... |
0af2ea004a6144b9bd824c25a8fe8de732a43927 | C# | sesmar/BSTSmartScholarship | /BSTSmartScholarship.Business/EmailService.cs | 2.5625 | 3 | namespace BSTSmartScholarship.Business
{
#region "Using Statements"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
#endregion
public class EmailService : IEmailService
{
public void SendEmail(string to, string su... |
9ea914e1bff51315dc81feb6acecb6fb7b40ba9f | C# | AdamWhiteHat/N-Body | /Source/Camera.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Lattice;
namespace NBody
{
public class Camera
{
public double X { get { return Renderer.Camera.X; } }
public double Y { get { return Renderer.Camera.Y; } }
public double Z { get { return Renderer.Camera.Z; } }
/// <summary>
/// T... |
81d09dbd58a35023c0bdd0e3d1f7dbef5655d412 | C# | jvas18/controleDeEstoque | /DTI/Tests/UpdateProductTests.cs | 2.59375 | 3 | using DTI.Domain.Product;
using DTI.Domain.Product.Commands;
using DTI.Domain.Product.Commands.Service;
using Moq;
using System;
using System.Threading.Tasks;
using Xunit;
namespace Tests
{
public class UpdateProductTests
{
[Fact]
public async Task Product_Id_Empty()
{
var ... |
cc4463fece2bf6fbc194165cd50624ecff56146c | C# | alexandraback/datacollection | /solutions_5658282861527040_0/C#/Complexity/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace NewLottery
{
class Program
{
static void Main(string[] args)
{
StreamReader s = new StreamReader(@"C:\Users\Tim\Desktop\input.in");
StreamWriter... |
5d712b46b650bdb69203e1ea2b193d3576e118ae | C# | italodirenzo93/sdl2net | /src/SDL2Net/Input/KeyboardState.cs | 3.359375 | 3 | using System.Collections.Generic;
using System.Linq;
namespace SDL2Net.Input
{
/// <summary>
/// Snapshot of the current state of the keyboard.
/// </summary>
public readonly struct KeyboardState
{
private readonly byte[] _keys;
public KeyboardState(byte[] keys)
{
... |
c32f107545ced978766c46316acdd8c5521fb507 | C# | molizok/desafio-dotnet | /Teste/Program.cs | 3.734375 | 4 | using System;
namespace Teste
{
class Program
{
static void Main(string[] args)
{
Decimal Indice;
string valor;
int i = 1;
while (i <= 7)
{
Console.WriteLine("Agente por favor , Fo... |
b8a53439ea93bbc1b7053930f998882530d379e0 | C# | Faggruppe4Semester/DebtBook | /DebtBook/ViewModels/EditDebtViewModel.cs | 2.546875 | 3 | using System;
using System.Collections.ObjectModel;
using System.Windows.Input;
using DebtBook.Models;
using Prism.Commands;
using Prism.Mvvm;
namespace DebtBook.ViewModels
{
public class EditDebtViewModel : BindableBase
{
public EditDebtViewModel()
{
}
public Ed... |
767588b69b9806b73e505f4598527571b1284221 | C# | marcelocolonia/EasyBooks | /EasyBooks/EasyBooks.Domain/Entity/Book.cs | 2.671875 | 3 | using System;
using System.ComponentModel.DataAnnotations;
namespace EasyBooks.Domain
{
public class Book : BaseEntity
{
[Required()]
[StringLength(20, ErrorMessage = "Author is invalid")]
public string Author { get; set; }
[Required()]
[StringLength(50, Er... |
4bcca0e65acf99c8250ce12c30752214adcc5b56 | C# | kaisiant/MovieApp | /Data/MvcMovieContext.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using MvcMovie.Models;
public class MvcMovieContext : DbContext
{
public MvcMovieContext (DbContextOptions<MvcMovieContext> options)
: base(options)
... |
78ab47854eda3fda929872f10daf75895e1fc20b | C# | jdermody/brightwire | /BrightWire/ExecutionGraph/DataTableAdapter/ManyToOneDataTableAdaptor.cs | 2.796875 | 3 | using BrightWire.ExecutionGraph.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using BrightData;
using BrightData.LinearAlgebra;
namespace BrightWire.ExecutionGraph.DataTableAdapter
{
/// <summary>
/// Adapts data tables that classify a sequence into a single classification
///... |
3ef9a6cac4f680f3c7f6cadf0ba19a78ba3987f1 | C# | dlopezna/SI | /Common/Src/Configuration/Manageability/Wmi/PublishedInstancesManager.cs | 2.890625 | 3 | //===============================================================================
// Microsoft patterns & practices Enterprise Library
// Core
//===============================================================================
// Copyright © Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PR... |
3d138bfb957f82dc95ebefbc65967ef929e63adb | C# | EmylLuyten/LetterWordChallenge | /LetterWordChallenge/Program.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using LetterWordChallenge.Core;
using LetterWordChallenge.Models;
using LetterWordChallenge.Output;
namespace LetterWordChallenge
{
class Program
{
static void Main(string[] args)
{
GetTheInputs inputs = new GetTheInputs();
List<string> input = inputs.ReadT... |
9891f16d1abb9fb7ef875c57a31ab4dc3020251b | C# | unggyu/rc-discord-bot | /RC.KeywordRank/Extensions/EnumExtensions.cs | 3.21875 | 3 | using System;
using System.Reflection;
namespace RC.KeywordRank.Extensions
{
public static class EnumExtensions
{
/// <summary>
/// Enum Field에 선언된 Attribute를 제공
/// </summary>
/// <typeparam name="T">Attribute</typeparam>
/// <param name="enum">Enum</param>
///... |
c103a9bc88af48c229160a929cd29a93728fb4dc | C# | johnfredrik/MicrobrewitApi | /MicrobrewitApi/Util/Encrypting.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using log4net;
using System.ServiceModel.Security.Tokens;
using Microbrew... |
373972558bd2f1da3664e278f5795e97eda01f63 | C# | VitaliyFilippov2012/Asp.Net | /lab8/PhoneBookWebApp/PhoneBookLibrary/PhoneDictionary.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace PhoneBookLibrary
{
public class PhoneDictionary : IPhoneDictionary
{
private readonly IContactsContext _contactsContext;
public PhoneDictionary(IContactsContext contactsContext)
{
_contactsContext... |
b99e23cc841a7d52d5f7523415fc67b868e3fcf7 | C# | 1654rr/Glazbeni-studio | /WebApplication6/Controllers/AlbumsController.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using WebApplication6.Models;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Drawing;
us... |
31d02f3bc480814f0d963584a423ab7c1baef0a8 | C# | veetash/CarDealerShip | /CarDealerShipForms/AddService.cs | 2.625 | 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 CarDealerShip;
namespace CarDealerShipForms
{
public partial class AddService : F... |
cfe3cf138abf83f3f0facc00d4168dfeb89018e4 | C# | Pasoy/csharp-projects | /06-supermarket/Supermarket/Market.cs | 3.359375 | 3 | using Supermarket.Supermarket.Stuff;
using Supermarket.Supermarket.Stuff.Persons;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Supermarket
{
class Market
{
// boss
private Boss Boss { set; get; }
// string
private... |
683e57c4d12db5351ee768c4d510c2e0e203c638 | C# | Mike-E-angelo/LightInject-Fallback | /LightInject-Fallback/DragonSpark/Model/Sequences/Query/InlineSelections.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using DragonSpark.Model.Selection;
namespace DragonSpark.Model.Sequences.Query
{
sealed class InlineSelections<TFrom, TTo> : ISelect<Expression<Func<TFrom, TTo>>, Expression<Copy<TFrom, TTo>>>
{
public static InlineSe... |
ff29b6868d41cc8d6af6442d7ff268cbff37a5e8 | C# | alexeiavdoshin/csharpcroc20 | /CrocCSharpBot/CrocCSharpBot/BotState.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
namespace CrocCSharpBot
{
/// <summary>
/// Состояние бота
/// </summary>
[XmlRoot(ElementName = "State",... |
2929c78ed640787522abdcb447bf77c289b189e3 | C# | ryanperezx/AdU-Pharmacy-Inventory-System | /AdU Pharmacy Inventory System/Login.xaml.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
20a30fc46e81d1b20a238c5aa46f24abf50d8654 | C# | dakydaky/Unity-Sea-Defense | /Source/sea-defense/Assets/Scripts/Debuffs/IceDebuff.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IceDebuff : Debuff
{
private float slowFactor;
private bool applied;
public IceDebuff(float slowFactor, float duration, Ship target) : base (target, 1)
{
this.slowFactor = slowFactor;
}
public ... |
fae28069a8bd715293b5f7af7bb3c2429228f557 | C# | tuvshinot/csharp | /csharp/oop-lab3/Program.cs | 3.15625 | 3 | using System;
using System.Threading;
namespace oop_lab3
{
namespace ThreadDemo
{
class ThreadDemoApp
{
public static void MyThread()
{
Console.WriteLine("MyThread: Thread Gone!");
}
[STAThread] //необязательное поле
... |
ac60e05d1c45312f50675ce324f54ce337911dc7 | C# | nirav99/Mobile_Framework | /FixedIntersectionTiming.cs | 3.03125 | 3 | using System;
namespace Mobile_Framework
{
/// <summary>
/// This class represents the intersection algorithm where all intersections have same phase
/// timings. Moreover, there's no control over platoon creation and each platoon contains only
/// one vehicle.
/// </summary>
public class FixedIntersectionTiming... |
634491519367c781b62b88da864203caa9d22235 | C# | StatTag/StatTag | /Core.Tests/Parser/TableParameterParserTests.cs | 2.71875 | 3 | using System;
using StatTag.Core.Models;
using StatTag.Core.Parser;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Core.Tests.Parser
{
[TestClass]
public class TableParameterParserTests
{
[TestMethod]
public void Parse_EmptyParams_Defaults()
{
var tag = n... |
168622ebc4bed5a2e53daacb5ed15ddf5018c74c | C# | yoranmandema/torenhogepaalverdediging | /Assets/Scripts/Gameplay/Gameplay.cs | 2.8125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Gameplay {
public static class Statistics {
public static int Health;
public static int MaxHealth;
public static int DefaultHealth;
public static void SetHealth (int Amount) {
Heal... |
e22e69161bcc2e90dc5a4bc17404beae54d225ce | C# | xiaoyaojian/MBlog | /MiaoBlog.Infrastructure/Email/TextLoggingEmailService.cs | 2.515625 | 3 | using MiaoBlog.Infrastructure.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MiaoBlog.Infrastructure.Email
{
public class TextLoggingEmailService : IEmailService
{
public void SendMail(string from, string to, strin... |
5838abc20b240ec01b676265c4ad8603001ed719 | C# | LizaPazhukova/SocialNetWorkApi | /SocialNetwork.Tests/PostServiceTests.cs | 2.546875 | 3 | using AutoMapper;
using FluentAssertions;
using Moq;
using SocialNetwork.Dal;
using SocialNetwork.Dal.Models;
using SocialNetwork.Logic.Interfaces;
using SocialNetwork.Logic.MappingProfiles;
using SocialNetwork.Logic.Services;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace SocialNetwork.T... |
c811dac13b643b81d775b6712df2c9f6f532e5e3 | C# | stanleywolf/CSharpOOPAdvanced | /09.UnitTesting/01.ConsoleApp/AccountManager.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
public class AccountManager : IAccountManager
{
private BankAccount bankAccount;
public AccountManager(BankAccount bankAccount)
{
this.bankAccount = bankAccount;
}
public BankAccount Account { get; private set; }
pub... |
67af278891edf7c895d636e859c75e765198191c | C# | elile/biaqm_app | /server/Biaqm_server/Biaqm/Dal/PlotDal.cs | 2.71875 | 3 | using Biaqm.Models.MyModel;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace Biaqm.Dal
{
public class PlotDal
{
public static string connectionString = ConfigurationManager.ConnectionStrings["Connect... |
c62263b04064d3132207e960324947666a6e88d5 | C# | radoslav-radev/task-processor | /Radoslav.TaskProcessor/TaskProcessor/MessageBus/MasterCommands/TaskCompletedMasterCommandBase.cs | 2.875 | 3 | using System;
using Radoslav.TaskProcessor.Model;
namespace Radoslav.TaskProcessor.MessageBus
{
/// <summary>
/// Basic class for master commands for tasks that completed successfully, failed or have been canceled.
/// </summary>
[Serializable]
public abstract class TaskCompletedMasterCom... |
26f5670c3d8b3d30b043da745d806237dda665ee | C# | p-org/nekara-csharp | /Source/NekaraRpcServer/Networking/ResponseMessage.cs | 2.671875 | 3 | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Nekara.Networking
{
// This Message construct is 1 layer above the communication layer
// This extra level of abstraction is useful for remaining protocol-agnostic,
// so that we can plug-in application layer ... |
864f5635cdc6a580ff992ea6bfb67bfc87fc9773 | C# | gabrielfontineli/2020_PEOO | /Lista 02/Questão 4/Program.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Questão_4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Digite o primeiro horário no formato hh:mm");
string[] prim = C... |
7846702b9c1226595acee8861c039f5b80910da7 | C# | upizs/MyCalculator | /BetterCalculator/Operations.cs | 3.03125 | 3 |
namespace BetterCalculator
{
public class Operations
{
/// <summary>
/// Left side of the operation
/// </summary>
public string LeftSide { get; set; }
/// <summary>
/// Right side of the operation
/// </summary>
public string RightSide { get; ... |
f1d79e520c6942a6df1680044f9962f272912cf0 | C# | hanrick2000/AlgorithmLearningNote | /src/AlgorithmNote/AlgorithmNote/Array/SubArray/SubArrayProduct.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AlgorithmNote
{
public class SubArrayProduct
{
public int MaxProduct(int[] nums)
{
if (nums == null || nums.Length == 0) return 0;
var dpPos = M... |
b8cce06963ab430b4083db98a6a1268dbfaa84be | C# | BrokenR3C0RD/SmileBASICSourceChat | /modules/LoggerModule.cs | 2.625 | 3 | using System;
using ModuleSystem;
using System.Collections.Generic;
using ChatEssentials;
using System.Linq;
using MyExtensions;
using System.IO;
namespace ModulePackage1
{
public class LoggerModule : Module
{
private List<UserMessageJSONObject> unsavedMessages = new List<UserMessageJSONObject>();
p... |
7d8a7e3106f1a4196e2d51899394401c9dc12bfc | C# | UNFDanmark/GDC2021-GR1 | /GDC2021MegaPack/Assets/Scripts/Sound/Improv.cs | 2.71875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Improv : MonoBehaviour
{
// Start is called before the first frame update
public AudioSource marimba;
float timeStamp = 0;
public AudioClip C1, D1, F1, G1, A1, C2, D2, Pause;
int PrevNum = 3;
void S... |
45ba495c3b720690f0d53865b49255ebbddb7402 | C# | SelenaAnnette/InfoMed | /DataLayer/Persistence/Person/PersonFactory.cs | 2.734375 | 3 | namespace DataLayer.Persistence.Person
{
using System;
using Domain;
using Domain.Person;
public class PersonFactory
{
public Person Create(Guid id, string firstName, string middleName, string lastName, DateTime birthday, Sex sex)
{
return new Person { Id = id, FirstN... |
9f3affbf3b9b010e79cfcbbc1c61ef98401e8432 | C# | leebrandt/Presentations | /NHFNHRP/DemoCode/src/Core/Data/NHibernate/NHibernateRepository.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using NHibernate;
using NHibernate.Linq;
namespace Core.Data.NHibernate
{
public class NHibernateRepository : Repository
{
readonly ISession _session;
public NHibernateRepository(ISession session)
{
_session... |
f4073355233302c5771ac9967afdfc8b455ba806 | C# | 20012001amiramir/SiteAmong | /GameWebSiteProject/GameWebSiteProject/CommandMaker/UpdateWhereCommandMaker.cs | 2.984375 | 3 | using System.Data.SqlClient;
using System.Text;
namespace GameWebSiteProject.CommandMaker
{
public class UpdateWhereCommandMaker<T> where T : class
{
public static SqlCommand Create(T obj)
{
SqlCommand result = new SqlCommand();
result.CommandText = CreateCommandText(ob... |
397602bced7a1fea656fc25308c55fd31e23ed40 | C# | jakubka/3whisky | /3whisky.Logic/Emails/EmailSender/SmtpEmailSender.cs | 2.796875 | 3 | using System.Net;
using System.Net.Mail;
namespace Whisky.Logic.Emails
{
internal class SmtpEmailSender : IEmailSender
{
private readonly ISmtpConfiguration mSmtpConfiguration;
public SmtpEmailSender(ISmtpConfiguration smtpConfiguration)
{
mSmtpConfiguration = smtpConfigur... |
663d45fc6277d866360201a25fdbe0d6e8a3cc75 | C# | hyazici/framework | /Source/AS.Common/Exceptions/AuthorizationException.cs | 2.640625 | 3 | using System;
namespace AS.Common.Exceptions
{
/// <summary>
/// Yetkisiz işlemlerde kullanılacak.
/// </summary>
[Serializable]
public class AuthorizationException : Exception
{
public AuthorizationException(string message)
: base(message)
{
}
publ... |
53769b386d6974f31ea9cc2bf5652932ca179889 | C# | Ttxman/TranscriptionCore | /TranscriptionIndex.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TranscriptionCore
{
public struct TranscriptionIndex
{
private int _chapterindex;
public int Chapterindex
{
get { return _chapterindex; }
}
private int _sectioni... |
84907e64701e10e4011880de5a58ca9a3062dbee | C# | joe-Ru/COP3855-Web-Systems-Development | /TicketApp/Program.cs | 3.46875 | 3 | /* Ticket.cs Author: Doyle
* Describes the characteristics of a
* speeding ticket to include the speed
* limit, ticketed speed and fine amount.
* The Ticket class is used to set the
* amount for the fine.
* **************************************/
using System;
namespace TicketApp
{
class Ticket
{
... |
04ff4fc21f8ec83b842a186c6f31d0a25d6172ca | C# | shendongnian/download4 | /code3/446379-10048578-100900850-2.cs | 3.171875 | 3 | Color pixelColor;
// add the mouse click event handler in designer mode or:
// myPicturebox.MouseClick += new MouseEventHandler(myPicturebox_MouseClick);
private void myPicturebox_MouseClick(object sender, MouseEventArgs e) {
if (e.Button == MouseButtons.Left)
pixelColor = GetClic... |
b6611118dc42150fbdcf05c4b7a3281a268aaf38 | C# | Macoron/HeatSimulation | /Assets/Heat Simulation/Scripts/Simulation_ECS/Visualisation/TextureVisualisationJob.cs | 2.515625 | 3 | using Unity.Entities;
using UnityEngine;
namespace HeatSimulation.ECS
{
public struct TextureVisualisationJob : IJobProcessComponentData<HeatCell>
{
public TextureVisualisationData visData;
public void Execute(ref HeatCell data)
{
var cellColor = GetColor(data.temparture);... |
e42f5c28ba606b75682349e88045fa84399ee04a | C# | mruhul/BDDShop | /BddShop.Tests/Infra/HttpClientHelper.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace BddShop.Tests.Infra
{
public static class HttpClientHelper
{
public static Task PostFormDataAsync(this HttpClient source, string url, Dictionary<string, ... |
8a42a04928429469a4fd5511e63f7b71d0913d8d | C# | TasiYokan/Protool | /Assets/Modules/Algorithm/PriorityQueue.cs | 3.125 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace TasiYokan.Algorithm.DataStructure
{
/// <summary>
/// Minimum heap
/// </summary>
/// <typeparam name="T"></typeparam>
public class PriorityQueue<T>
{
private IComparer<T> m_comparer;
priva... |
a6debd0bd57be98319d6ec3c19bb27e243fa1b88 | C# | Paha-Zul/SimpleBehaviourTree | /BehaviourTree/Task.cs | 3 | 3 |
using System.Collections.Generic;
namespace BehaviourTree
{
public abstract class Task
{
public static bool DEBUG_BEHAVIOURS = false;
protected string taskName = "";
protected string failRason = "";
public bool Started = false;
protected Task(string taskName = "")
... |
37ef745b39c48853fafad40e305eb542f9496690 | C# | sms-a/Internship2019 | /src/Popov N/MySpellChecker/MySpellChecker/CorrectionsLogic.cs | 3.234375 | 3 | using System.Collections.Generic;
using System.Linq;
using MySpellChecker.Interfaces;
namespace MySpellChecker
{
public class CorrectionsLogic : ICorrections
{
private readonly IDictionaryLogic _dictionaryLogic;
private readonly IFormatStrings _formatStrings;
private struct StrEdit
... |
2eeba71aa6299f0d49ba0b6f0ae6748c073deef8 | C# | KrzysztofBranicki/hexagonal-architecture-sample | /src/Common/Querying/PagingExtensions.cs | 2.71875 | 3 | using System.Linq;
using System.Linq.Expressions;
namespace Common.Querying
{
public static class PagingExtensions
{
public static ResultPage<T> ApplyGridSearchCriteria<T>(this IQueryable<T> query, GridSearchCriteria criteria)
{
return query.OrderBy(criteria).PickPage(criteria);
... |
f954441fe9d51dbef751a8c05a26780a61f4ee13 | C# | fuqunaga/RapidGUI | /Example/Scripts/MiscExample.cs | 2.546875 | 3 | using System.Linq;
using UnityEngine;
namespace RapidGUI.Example
{
/// <summary>
/// Misc examples
/// </summary>
public class MiscExample : ExampleBase
{
protected override string title => "Misc";
public bool useFastScrollView = true;
FastScrollView fastScrollView = new ... |
f3993d8f5a541a8a56e3dd752ae0723a21661a9e | C# | nguyenhuunam852/SNI | /SNI/Controllers/RoleController.cs | 2.890625 | 3 | using SNI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SNI.Controllers
{
class RoleController
{
public static bool checkRole()
{
using (var context = new ControllerModel())
{
int ... |
64103d4dbd25d3d4ab4e83f8377486b446a22bfe | C# | georgethejournalist/dirigent | /src/Dirigent.Agent.Core/LaunchWavePlanner.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dirigent.Common;
namespace Dirigent.Agent.Core
{
/// <summary>
/// Applications are launched in waves; in a wave there are apps depending on apps from
/// the previously launched wave; the order of apps in a wave ... |
0c0fd8e47500fa20bd33e99d3015d92399efba5e | C# | shendongnian/download4 | /first_version_download2/136947-9866516-22561521-2.cs | 3.125 | 3 | public unsafe class UnsafeArray
{
private readonly int* _start;
public readonly int Length;
public UnsafeArray(int* start, int enforceLength = 0)
{
this._start = start;
this.Length = enforceLength > 0 ? enforceLength : int.MaxValue;
}
publi... |
50e56c1786cb7f4b1ff878d2c7706718d78c75c7 | C# | OpenPerpetuum/APIv2 | /src/OpenPerpetuum.Core.DataServices/Database/DynamicDataRow.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
namespace OpenPerpetuum.Core.DataServices.Database
{
public abstract class DynamicDataRow
{
protected Type ClassType;
protected readonly Dictionary<string, PropertyInfo> Properties;
... |
259425ec0f2a2c76f8c65ebe4e4d7be426d1f68f | C# | renanbrando/Xamarin_Activity_I | /MainPage/SettingsPage.xaml.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace MainPage
{
public partial class SettingsPage : ContentPage
{
bool receive;
String mail;
public SettingsPage()
{
InitializeComponent();
receive = swCell.On;
}
... |
b0633b54eab8825b3da6b0aee1b0f7eccb44d709 | C# | MarkWardell/XamU | /AND180/AND180-master/AND180-master/Exercise 5/Completed/Recipes/RecipeData.cs | 2.921875 | 3 | using System.Collections.Generic;
namespace Recipes
{
class RecipeData
{
public static List<Recipe> Recipes { get; private set; }
static RecipeData()
{
Recipes = new List<Recipe>();
Recipes.Add(new Recipe()
{
Name = "Shake",
Ingredients = new List<Ingredient>()
{
new Ingredient() { ... |
c13070bdf66848f7ebeb8f65b1306b179409990b | C# | ofirshl/googleapis-dotnetcore | /src/Manychois.GoogleApis.AdWords/v201609/generated/IFeedMappingService.cs | 2.546875 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
namespace Manychois.GoogleApis.AdWords.v201609
{
/// <summary>
/// Service for getting and mutating FeedMappings.
/// </summary>
public interface IFeedMappingService
{
/// <summary>
/// Returns a list of FeedMappings that meet the selector crite... |
01fb83a19688e611881802ecd37167a72c0fd686 | C# | louthy/language-ext | /LanguageExt.Core/Effects/Pipes/Client/CoreTypes.cs | 2.65625 | 3 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using LanguageExt.Common;
using LanguageExt.Effects.Traits;
namespace LanguageExt.Pipes
{
/// <summar... |
0e73b9ed203dd9a949337a844563b7093f62631b | C# | jbakic/Shielded | /Shielded/CommitContinuation.cs | 3.015625 | 3 | using System;
using System.Threading;
namespace Shielded
{
/// <summary>
/// An object used to commit a transaction at a later time, or from another
/// thread. Returned by <see cref="Shield.RunToCommit"/>. The transaction has
/// been checked, and is OK to commit. This class is thread-safe, but may t... |
0c58d153c5e6463416c8da5ee31836fbe0abf30f | C# | davidamoen/DailyCodingProblem | /DailyCodingProblem/Node.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace DailyCodingProblem
{
public class Node
{
public Node(string val, Node left = null, Node right = null)
{
Val = val;
Left = left;
Right = right;
}
public string Val {... |
70543c985ba090d3ae765caf75170a813c3011b1 | C# | molmol178/techno2016 | /Assets/Script/Audio/Score.cs | 2.75 | 3 | using UnityEngine;
using System.Collections;
public class Score : MonoBehaviour
{
public GUIText Scotx;
private int score;
void Awake()
{
score = 0;
}
// Update is called once per frame
void Update()
{
Scotx.text = getScore().ToString();
// print ("count");
... |
d24e3f42e0c4358ff9bd520c6293341abe0baff3 | C# | barr3/HighOrLow | /Score.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
namespace HighOrLow
{
public class Score
{
public string player;
public int score;
public static bool listIsEmpty = false;
public static List<Score> highScores = new List<Score>();
public Score(string player, int score)
... |
3e286a2fa67541c624c3b45482cfaeb1938c1dd8 | C# | DejanJovanic/LostAndFound | /Server/Model/CurrentConnectionOperations.cs | 2.59375 | 3 | using Server.Interfaces;
using Server.Model;
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Threading.Tasks;
namespace Server.Model
{
class CurrentConnectionOperations : ICurrentConnectionOperations
{
private object lockObj;
private static readonly log4... |
b3e92bc707ef25e55bbdbd15c088e2862f0b67c9 | C# | danabenson/TetronimoPuzzle | /TetristPuzzle/Models/Grid.cs | 3.265625 | 3 | namespace TetristPuzzle.Models
{
public class Grid
{
public char[,] GridSpaces;
public Grid()
{
Columns = 32;
Rows = 16;
GridSpaces = new char[Columns,Rows];
for (int i = 0; i < Rows; i++)
{
for (int j = 0; j <... |
7985c9f92380d2757aecf38c9d97bd7a8768a56e | C# | School4Games/BeastsOfOlymp | /Unity Project/Assets/TheRealBoB/Scripts/Model/MapTile.cs | 2.65625 | 3 | using System;
using UnityEngine;
[System.Serializable]
public class MapTile
{
// how much is the cost to move here
// 0 = unpasssable
// 1 = default
[SerializeField] byte penalty = 1;
public byte Penalty
{
get
{
// return 0 if topping is blocking
if(topping !=null)
if(topping.IsObstacle) return 0;... |
cfbb69dd18fb561fdf89443126f80dfb5445226d | C# | mrotaru/dangerous-roads | /DangerousRoads/Car.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace DangerousRoads
{
class Car
{
public Vector2 position;
public Vector2 Velocity { get { return velocity; } }
Vector2 vel... |
d3f376defcd4f68638c12aa98fabd6c9c38d819e | C# | BrunoHautenfaust/Telerik | /C# Part 1/Console-Input_Output-Homework/07-SumOf5Numbers/SumOf5Numbers.cs | 4.09375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _07_SumOf5Numbers
{
class SumOf5Numbers
{
static void Main(string[] args)
{
// Write a program that enters 5 numbers (given in a single line, separated by ... |
ed0b8a85d108b0d903d775b76339357843d99928 | C# | timc986/TrainTickets | /Test/DataAccessTest.cs | 2.8125 | 3 | using System.Collections.Generic;
using NUnit.Framework;
using TrainTickets;
namespace Test
{
[TestFixture]
public class DataAccessTest
{
private IDataAccess _dataAccess;
private HashSet<string> _stationList;
[SetUp]
public void SetUp()
{
//Arrange
... |
415049352f903d92b0848879ea0db80488c45cdd | C# | VillageSoftware/PathMatcher | /VillageSoftware.PathMatcher/VillageSoftware.PathMatcher/PathMatcher.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace VillageSoftware.PathMatcher
{
public static class PathMatcher
{
public static string Resituate(string sourcefilePath, string destinationPath)
{
//Destination should be a directory path, no... |
91b6284e4f25952c7d314252a8859d163247fa7c | C# | danisio/CSharpOOP-Homeworks | /CommonTypeSystem/StudentClass/TestStudent.cs | 3.421875 | 3 | namespace StudentClass
{
using System;
public class TestStudent
{
public static void Main()
{
// add test student 1
Student student1 = new Student("Ivan", "Ivanov", "Ivanov");
student1.University = University.TelerikAcademy;
student1.Faculty ... |
b424255b0038c4715708e6b768a44f9f625708d5 | C# | goma-recorder/Midity | /Assets/Plugins/jp.goma_recorder.midity/Runtime/PureC#/Events/MidiEvents/PitchBendEvent.cs | 2.890625 | 3 | namespace Midity
{
public sealed class PitchBendEvent : MidiEvent
{
public const byte STATUS_HEAD = 0xe0;
private byte _upperBits;
private byte _lowerBits;
internal PitchBendEvent(uint ticks, byte channel, byte upperBits, byte lowerBits) : base(ticks, channel)
{
... |
032dec91f1b4d35eba558e3c6ade882eb4dbf218 | C# | serodya/algorithms-csharp | /Codility.Sorting/Distinct.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Codility.Sorting
{
public class Distinct
{
public static int Solution(int[] A)
{
if (A == null)
{
throw new ArgumentNullExceptio... |
87516a1f54a408f14d8f8150f74ba13019d01744 | C# | Kawser-nerd/CLCDSA | /Source Codes/CodeJamData/09/01/5.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class A {
int l, d;
string[] dict, input;
public A() {
l=Program.l; d=Program.d;
dict=Program.dict;
string s=Console.ReadLine();
List<string> pat=new List<string>();
bool inside=false;
string cur="";
fo... |
2f8202915795dc95604a96d13fa094706342105b | C# | eguahlak/cs-2016a | /DataSetNStuff/Program.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataSetNStuff {
class Program {
private static string SQL_CONN =
@"Data Source=(localdb)\mssqllocaldb;Integrated Security=True";
... |
022d857ef93ef25fcb5abe19d7b5491b137e2d4f | C# | MedAmine45/gestion-de-biblioth-que | /BookStore.WebUI/Controllers/BookController.cs | 2.671875 | 3 | using BookStore.Domain.Abstract;
using BookStore.WebUI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace BookStore.WebUI.Controllers
{
public class BookController : Controller
{
private IBookRepository repository;
publi... |
55f05d8b989df0821fcc24ad55fadab9b52fb955 | C# | CS-131-Repo/cs-131-project-ChrisMansourianCS | /GraphCS131/GraphCS131/Edge.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace GraphCS131
{
class Edge<T>
{
public Vertex<T> Start { get; set; }
public Vertex<T> End { get; set; }
public double Weight { get; set; }
public Edge(Vertex<T> start, Vertex<T> end, double w... |
8747175d40a4700bbc29d5193cc0cb51411c75c8 | C# | silent011/DataStructures | /SweepNPrune/SweepNPrune/GameSquare.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class GameSquare
{
public int X1;
public int Y1;
public int X2;
public int Y2;
public string Name;
public static int height = 10;
public static int width = 10;
public Gam... |
f9e19fe311daadebd8a905afb1265000174c518c | C# | zaharPonimash/MatLib | /MathLib/Vector.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
using System.Media;
using System.IO;
using System.Windows.Forms;
using ZedGraph;
using System.Threading;
namespace MatLib
{
[Serializable]
public class Vector
{
... |
d236df101887802e08f535e371e61363d9d11a15 | C# | sadcc24/SCM | /Proyecto/BO/clsInventarios_BO.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity;
using DAL;
using System.Data;
namespace BO
{
public class clsInventarios_BO
{
// Programador : Pamela Jacqueline Selman David
// Analista : Pamela Jacqueline Selman ... |
23c83438d308be9e7489c5e907bb0f25b3130879 | C# | kbyyd24/PlaneWar | /PlaneWar/serverConnecter.cs | 2.859375 | 3 | using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
namespace PlaneWar
{
struct result
{
public string status;
public string reason;
public List<Players> players;
}
struct Players
{
public string userName;
... |
834f701c8caa289f96552d8ce0a89294f425b246 | C# | chaojian-zhang/MULTITUDE | /MULTITUDE/Class/Facility/SystemHelper.cs | 2.703125 | 3 | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Interop;
namespace MULTITUDE.Class.Facility
{
class SystemHelper
{
#region General Data
public static string CurrentTim... |
e40d5130621acd7d29dd81dcdfa5c537ad7bea96 | C# | AnnaTsigip/HelloCode | /Example010_MethodArray/Program.cs | 2.90625 | 3 | int[] array = { 1, 12, 31, 4, 18, 15, 16, 17, 18 };
int n = array.Length;
int find = 18;
int index = 0;
while (index < n)
{
if (array[index] == find)
{
Console.WriteLine(index);
break;
}
//index = index + 1;
index++;
} |
0d594b6b5d527ea9c3fdac7c13aeab325e6a9db8 | C# | GreyArmor/SomeRogueMonogame | /VoronoiLib/ParabolaMath.cs | 3.1875 | 3 | using System;
using System.Runtime.CompilerServices;
namespace VoronoiLib
{
public static class ParabolaMath
{
public const double EPSILON = double.Epsilon*1E100;
public static double EvalParabola(double focusX, double focusY, double directrix, double x)
{
return .5*( (x -... |
03de3f649f002c0cd05339c88b9a657d5a987fd0 | C# | tngraf/Tethys.Logging | /Tethys.Logging.Console/ConsoleLoggerFactoryAdapter.cs | 2.53125 | 3 | // -------------------------------------------------------------------------------
// <copyright file="ConsoleLoggerFactoryAdapter.cs" company="Tethys">
// Copyright (C) 2009-2023 Thomas Graf
// All Rights Reserved.
// </copyright>
//
// Licensed under the Apache License, Version 2.0.
// Unless required by applica... |