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
d0934234e365a01db8473e19ab74e8569fe63055
C#
VivienGAGLIANO/couper-et-decouper
/Unity/Assets/Scripts/Shinzo/ProjectilePooling.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ProjectilePooling : MonoBehaviour { public static ProjectilePooling _instance; [SerializeField] private Fireball originalFireball; //[SerializeField] private SwordStroke originalSwordStroke; private stat...
569f7ac2265ccf2f632995eb4f215bb04bf44231
C#
cofoundry-cms/cofoundry
/src/Cofoundry.Domain/Data/DbContext/Shared/Publishing/IEntityPublishable.cs
2.78125
3
namespace Cofoundry.Domain.Data; /// <summary> /// Represents an entity that can be published using standard publishing /// features. /// </summary> public interface IEntityPublishable { /// <summary> /// U = unpublished, P = Published. This is mapped to the /// <see cref="Cofoundry.Domain.PublishStatus"/...
d4d7cc0b52b7152033fd9ab20cde4ecd1751dce0
C#
bartczernicki/Silverlight4BusinessIntelligenceSoftware
/src/Chapter3/Chapter3_DecouplingBusinessAlgorithms/Chapter3_WorkingWithBusinessData/MainPage.xaml.cs
3.1875
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.Windows.Shapes; namespace Cha...
964061e3ac6f2bd4eedb448964d2b972ceead918
C#
Iansutherland/ExtClipboard
/ExtClipboardWPF/Services/InterceptKeys.cs
2.5625
3
using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Input; using System.Collections.Generic; using System.Linq; using System.Text; namespace ExtClipboardWPF.Services { //credit to https://gist.github.com/Ciantic/471698 class InterceptKeys { private co...
d99a5dbfc4943d16dae76626609c13869e59c502
C#
mengtest/ProjectRPG
/Assets/Scripts/Models/Item.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Item { public string itemName; public Sprite itemSprite; private int stackSize; public int maxStackSize; public GameObject itemSlot; public Vector2 location; public Inventory inventory; public GameObject itemObject; ...
7ea3806e2cd6de863aad8a7dadba22d63c6c7021
C#
ABrown94/Final-Project
/Final Project/Models/UserRepository.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Final_Project.Models { public class UserRepository { Administration_DatabaseEntities1 db = new Administration_DatabaseEntities1(); public Employee GetCurrentUser(string username) { ...
1fb52a28edc62e8b7bc6b530c9795ece04fdca46
C#
jviloriaDev/DRM-MVC
/Spartane.Web/Resource/GetResource/Objects.cs
2.84375
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using Resources.Entities; using System.Xml.Linq; using System.Configuration; namespace Resources { public class Objects { private static List...
ab2d9bb5d898cb898b9660be3435c6361a0fbb26
C#
harryzzp/CTPSharp
/CTPTradeAdapter/Model/Enum/ContingentConditionType.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CTPTradeAdapter.Model { /// <summary> /// 触发条件类型 /// </summary> [Serializable] public enum ContingentConditionType { /// <summary> /// 立即 /// </summary> Immediately =...
c412e38816731cd17b495a596ee72d7c8b9770b5
C#
Whitetail11/Belokhvostov-Daniil
/C#/Структуры/6 задание/6 задание/Program.cs
3.78125
4
using System; namespace _6_задание { enum Positions { director = 240, employe = 220, marketer = 300 } class Accauntant { public bool AskForBonus(Positions worker, int hours) { switch (worker) { case Positions.director:...
e47abf33fb0e25a00c04bd0228d5868affe105ce
C#
thiernobahdiallo/CRUD_VisualStudio
/DI01/DataAcces.cs
2.828125
3
using Dapper; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DI01 { public static class DataAcces { public static List<Product> GetAllProducts(Stri...
fb6ad90a8a6dc6d1110dcfb4d67edf6cdee1db76
C#
mhmmtbilgin/Kruskal-Project
/WindowsFormsApplication1/codes/UnionFind.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Project.codes { class UnionFind { private int[] ids; // vertexlerin id si private int[] sizeSets;// ağacı dengelemek için eleman sayısı public UnionFind(int num...
1e72355d8794e1bb271ea83618cbff817aeed8cf
C#
Laddd80/Hackerrank
/ProblemSolving/Implementation/FairRations/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FairRations { class Program { static int fairRations(int[] B) { int sum = 0; bool even = true; int count = 0; for (int i...
e77d8b630a48052cde541528d9c8e807256b3d23
C#
dingge2016/LaValet
/Assets/Scripts/carCollision.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class carCollision : MonoBehaviour { static float zero = 0; static float posInf = 1/zero; static float negInf = -1/zero; public static float minX = negInf; public static float minZ = negInf; public static fl...
f3baa216f60d39d3f8dd176582ea97d02ae3b61d
C#
cupcakecoders/calculator
/Calculator/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; namespace Calculator { class Program { private const int NumberCalculator = 1; private const int DateCalculator = 2; static void Main(string[] args) { Fil...
738f0f58fdd36a94dfa3f08a990098729c3cdfc6
C#
shendongnian/download4
/code11/1946990-59007549-209828796-2.cs
3.640625
4
cs public class Foo : INotifyPropertyChanged { public int X { get; private set; } // No PropertyChanged event here public int Y { get; private set; } // No PropertyChanged event here public void ModifyXandY() { foo.X = 2; ModifyYPrivate(); // State is now consistent RaisePropertyChanged(nameof(X)...
417d5bbd072545af5997127f919de3941969edd6
C#
joemcbride/fubumvc
/src/FubuMVC.Core/Validation/MinValueAttribute.cs
2.5625
3
using System; using System.Collections.Generic; using System.Reflection; using FubuMVC.Core.Validation.Fields; namespace FubuMVC.Core.Validation { public class MinValueAttribute : FieldValidationAttribute { private readonly IComparable _bounds; public MinValueAttribute(int bounds) { ...
8c9f134594a5813e471467debf77607e6d546129
C#
SotMSteamMods/CauldronMods
/CauldronMods/Controller/Villains/TheMistressOfFate/Cards/FadingRealitiesCardController.cs
2.546875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Handelabra.Sentinels.Engine.Controller; using Handelabra.Sentinels.Engine.Model; namespace Cauldron.TheMistressOfFate { public class FadingRealitiesCardController : TheMistressOfFateUtilityCardController { ...
5613403e59e5d1f1d88e38674d4acab96517ed5f
C#
weeniearms/codeweaving
/src/BasicWeaving/BasicWeaving/WeaverTask.cs
2.8125
3
using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace BasicWeaving { public class WeaverTask : Task { public string TargetPath { get; set; } public override bool Execute() { if (string.IsNullOrEmpty(this.TargetPath) || !Fi...
a8dde08f53828b783112f3e21781f6091a66db49
C#
mrkoggles/oanda_dotnet
/oanda_dotnet/model/transaction/OrderCancelTransaction.cs
2.5625
3
using oanda_dotnet.model.order; namespace oanda_dotnet.model.transaction { /// <summary> /// An OrderCancelTransaction represents the cancellation of an Order in the client’s Account. /// </summary> public class OrderCancelTransaction : Transaction { /// <summary> /// The Type of t...
1a7f1cb3b4718cbb936b0f747205d9eb970e4efa
C#
ievgennaida/MarchingCubes
/MarchingCubes/Backup/MarchingCubes/Algoritms/InterpolationAlgoritms/SuggestionInterpolation.cs
3
3
using System; using System.Collections.Generic; using System.Text; using MarchingCubes.CommonTypes; namespace MarchingCubes.Algoritms.InterpolationAlgoritms { /// <summary> /// Predict isosurface without any additinal function calculation. /// </summary> public class SimpleInterpolation : INterpolatio...
44ed3c98235746385417b663097ec1256964009a
C#
DenSinH/GBAC-
/GBAEmulator/CPU/ARM/CPU.ARM.SWP.cs
2.71875
3
using System; namespace GBAEmulator.CPU { partial class ARM7TDMI { private int SWP(uint Instruction) { bool ByteQuantity; byte Rn, Rd, Rm; ByteQuantity = (Instruction & 0x0040_0000) > 0; // Byte / Word quantity to swap Rn = (byte)((Instruction ...
04983273897c9b58ffaea803b28aaaf4608806eb
C#
NFMynster/MonoCrab3.5
/MonoCrab3.5/Components/CPlayer.cs
2.640625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace MonoCrab3._5 { class CPlayer : Component, IUpd...
386f80c8ca7eaf20a8c4a938fc4c10cd9824f54b
C#
dvmarinoff/telerik_academy
/oop/defining_classes_part_1/CallTest/CallTest.cs
2.96875
3
namespace CallTest { using System; using System.Collections.Generic; using MobilePhoneDevice; class CallTest { static void Main(string[] args) { GSM galaxyS5 = new GSM("GalaxyS5", "Samsung"); Call firstCall = new Call("+359883123123", 60); ...
5b9508bf5adaaecaf426c1445a8f2a02e84de37a
C#
rainbowkjh/UnityGame
/RPG/2. Scripts/1.LobbyCanvas/NPC_Chest/IconDropEx.cs
2.578125
3
using Black.Manager; using System.Collections; using System.Collections.Generic; using System.Text; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; /// <summary> /// 업그래이드 슬롯에 사용한다 /// (PartsUpgrade-> Slot) /// </summary> namespace Black { namespace Inventory { public class Ic...
071bee42f6a64c04ccbc6e4428c5e2d4cffd9327
C#
jestonedev/ActivityManager
/ReportModule/ReportEditor.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.IO; using ExtendedTypes; using System.Text.RegularExpressions; using System.Collections.ObjectModel; using System.Globalization; namespace ReportModule { /// <summary> /// Базовый класс ре...
90a2681420f398b97e6e27f81b1a9ace43250f67
C#
srakowski/LD47
/LD47/Engine/InputStates.cs
2.71875
3
namespace LD47.Engine { struct InputStates<T> { public InputStates(T previousState, T currentState) { Previous = previousState; Current = currentState; } public T Previous { get; } public T Current { get; } public InputStates<T> Next(T newCurrentState) => new InputStates<T>(Current, newCurren...
21af528e15bd1adc82dabb160d4e56628f7477bc
C#
jackshea/leetcode
/LeetCode/Problems/Easy/P0437_PathSumIII.cs
3.203125
3
using LeetCode.Common; namespace LeetCode.Problems.Easy; /// 路径总和 III /// https://leetcode-cn.com/problems/path-sum-iii/ public class P0437_PathSumIII { public int PathSum(TreeNode root, int sum) { if (root == null) return 0; return OneSoucePathSum(root, sum) + PathSum(root.left, sum) + Path...
ce17e70f013d713d8730d8877fa5b351e277af27
C#
PooyaAlamirpour/Design_Patterns_CSharp
/Behavioral/MementoPattern/Program.cs
2.796875
3
using System; using MementoPattern.Originators; namespace MementoPattern { class Program { static void Main(string[] args) { var salesProspect = new SalesProspect { Name = "Name one", Phone = "(555) 456-0997", Budget = 100...
76f5b42918bb4426ba3ef10d9ac19d57874a86c2
C#
Darktobi/Projekt_B
/Out of Gravity/Assets/Scripts/GravityChanger.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GravityChanger : MonoBehaviour { public float maxChangeTimer = 0.2f; private float changeTimer; private bool hasGravity; private bool gravityIsChanging; private float gravityScale = 9.8f; // Use this fo...
98a2e937b15e0d14cd732105f7dc4b93f6e36dec
C#
Ra3ueL/SocialNetworkClient
/SocialNetworkClient/Clients/SocialNetworkClientBase.cs
2.8125
3
namespace Epam.SocialNetworkClient.Clients { using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Web; using Epam.SocialNetworkClient.ClientsModels; using Epam.SocialNetwo...
fe03278d1d6347a8a6db58f8f55f108ea3b4e6e1
C#
MaxKhlupnov/LoT
/Common/Bolt/DataStore/Crypto.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Security.Cryptography; namespace HomeOS.Hub.Common.Bolt.DataStore { public class Crypto { static public byte[] RSAEncrypt(byte[] DataToEncrypt, RSAParamete...
62efe460214c7226ff8d176c8bcf9a7a0dbb7ced
C#
theAppleist/Sting
/Sting/DAL/Filters/JoinFilter.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL.Filters { public class JoinFilter : IFilter { public FilterJoin.Types Type { get; set; } public IFilter ComparisonFilter { get; set; } public IFilter TableN...
d1173926fc2a312c4d4042a65b1bbc20324772c4
C#
NataliaGomez2/InstrumentoAssist
/Repositorio/RepositorioPacienteEF.cs
2.625
3
using Modelos; using System.Collections.Generic; using System.Linq; namespace Repositorio { public class RepositorioPacienteEF : IRepositorioPaciente { private InstrumentoMedicionAssistContexto contexto; public RepositorioPacienteEF() { contexto = new InstrumentoMedicionAs...
932ca48689599bee56999d22135bb30a4f073f6b
C#
manjogsingh/Data-Visionaire
/Assets/Scripts/CSVReader.cs
3.046875
3
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; public class CSVReader { static string SPLIT_RE = @",(?=(?:[^""]*""[^""]*"")*(?![^""]*""))"; static string LINE_SPLIT_RE = @"\r\n|\n\r|\n|\r"; static char[] TRIM_CHARS = { '\"' }; pu...
cc5694f955093dae6b0d5fd124f5d50b509dc900
C#
bravehamster/ProgrammingFundamentals
/DataTypesAndMethods_Exercises/HelloNameMethod/Program.cs
2.984375
3
using System; namespace HelloNameMethod { class MainClass { public static void Main (string[] args) { helloName (Console.ReadLine ()); } public static void helloName(string input){ Console.WriteLine ($"Hello, {input}!"); } } }
0b3398c13dd93af2e75b571900cabf1165293fac
C#
shalini0511/Amazon_Automation
/AmazonApp/Pages/ProductPage.cs
2.984375
3
/* Project = Automating Amazon using DDT and POM * Created by = V SHALINI * created on = 21/09/21 */ using System; using System.Collections.Generic; using OpenQA.Selenium; namespace AmazonApp.Pages { public class ProductPage:BaseClass.BaseClass { public static void ProductList() { ...
0eae896fe4f9844432c130dc66653c227815f531
C#
prijuly2000/Dot-Net
/Class Demo/CSharp/MyTime/Time.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyTime { class Time { int hr, min, sec; public Time() { hr = 0; min = 0; sec = 0; } public Time(int h,int m,int s) { h...
f0d2d6c386898fcfa4947dc85b486a04949609cc
C#
RainsSoft/MyNet
/Common/Converter.cs
3.234375
3
using MyNet.Common.Converts; using System; using System.Collections.Generic; namespace MyNet.Common { /// <summary> /// 提供丰富的类型转换功能 /// </summary> public sealed class Converter { /// <summary> /// 转换器静态实例 /// </summary> private static readonly Converter Instance = n...
6da3c292626302cefacb349adb9065c6e1700e14
C#
oslboreal/tp_laboratorio_2
/VallejoJuanMarcosTP01/Numero.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VallejoJuanMarcosTP01 { public class Numero { #region Propiedades double numero; #endregion #region Metodos public Numero() ...
a23fe8840e31d8b56fb9ff60be1e9a5a31cd2ebb
C#
DankStrangePlant/TerrionicsMod
/ClientUDP.cs
2.796875
3
using System; using System.Net; using System.Net.Sockets; namespace TerrionicsMod { class ClientUDP : IDisposable { byte[] m_dataBuffer = new byte[256]; public Socket socketUDP; private IPEndPoint endPoint; private TerrionicsMod socketMod; private static String target...
4e0397d55792cc03d09d7eb49079910ffe3917ac
C#
syudal/TwitchLeecher
/TwitchLeecher/TwitchLeecher.Services/Services/UpdateService.cs
2.578125
3
using Newtonsoft.Json.Linq; using System; using System.Globalization; using System.Net; using System.Text; using TwitchLeecher.Core.Models; using TwitchLeecher.Services.Interfaces; using TwitchLeecher.Shared.Extensions; using TwitchLeecher.Shared.Reflection; namespace TwitchLeecher.Services.Services { internal cl...
1eeb586e3bc8ead87a39c3cf7dbf500d6fec9d86
C#
Jeki-Stone/LIMS
/LIMSBlazorSever/Data/SampleTypesData/SampleTypeService.cs
3.09375
3
using Dapper; using Microsoft.Data.SqlClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; namespace LIMSBlazor.Data { public class SampleTypeService : ISampleTypeService { /// Подключение к базе данных private readonly Sql...
08e2b05be7cda7355f00ce2b179c8cb91c27f589
C#
JimmyCushnie/JimmysUnityUtilities
/Scripts/Random/JRandom.Colors.cs
2.90625
3
using UnityEngine; namespace JimmysUnityUtilities.Random { public partial class JRandom { /// <summary> Gets a random <see cref="Color24"/> with random values for the red, green, and blue components. </summary> public Color24 Color24() => new Color24(Byte(), Byte(), Byte()); ...
5b6ea1d98caae851ca8270b158b69d844cf3e314
C#
ChelseaChiu/SRV_Yuthony
/SRV_UWP/SRV_UWP/viewmodels/DetailsViewModel.cs
2.703125
3
using SRV_UWP.models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SRV_UWP.viewmodels { public class DetailsViewModel : INotifyPropertyChanged { private S...
558a2be84aa7fa135008d4fe52a42c588903c01c
C#
lucasfabricio/grupo-de-estudos
/Classificados/source/Classificados.Application/EventSourcedNormalizers/CategoryHistory.cs
2.59375
3
using Classificados.Domain.Core.Events; using Classificados.Domain.Events; using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; namespace Classificados.Application.EventSourcedNormalizers { public class CategoryHistory { public static IList<CategoryHistoryData> Hi...
586e797d75db270729b91484beffa668404855e8
C#
progunnerr/aspx2raxor
/AspxToRazorConverterConsole/FileSystemWalker.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Dlrsoft.AspxToRazorConverterConsole { public class FileSystemWalker { public void Walk(string path, Action<string> fileHandler) { FileAttributes fa = File.Ge...
f3fea92f9678f88b8bab0319e409fddf7c78f262
C#
jibedoubleve/geho
/Probel.Geho.Shell/Core/Commands/Hr/MAkeEducatorCommand.cs
2.671875
3
namespace Probel.Geho.Shell.Core.Commands.Hr { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Probel.Geho.Data.Dto; using Probel.Geho.Shell.Helpers; [Command("make-educator", "mke", "Create an educator.", "mke ...
d90fad802561c24395cd78fa19d218a0227bccf4
C#
veryevilzed/zsm
/ZSM/Async/ZTask.cs
2.796875
3
using System; using System.Threading; namespace ZSM.Async { public class ZTask<T> { public delegate void DComplite(ZTask<T> result); public delegate T DTask(object[] args); private Thread t; private DTask request; private int timeout = -1; ...
aa8b496f039e4c526e97128e9f1b3e50b0f5686b
C#
mirror222/qi4net
/src/Qi/Qi/Net/Ftp/FtpItem.cs
2.6875
3
using System; using System.IO; using System.Net; namespace Qi.Net.Ftp { internal delegate void ResponseHandler(StreamReader reader); public class FtpItem { public FtpItem(string uri) { this.Uri = new Uri(uri); } public string UserName { get; set; ...
815e3cedab06169905efb8db9f7ac2305ada2fae
C#
Tony-Hsieh/fullstack
/CourseCode/ConsoleApp7/ConsoleApp7/Program.cs
2.546875
3
using System; namespace ConsoleApp7 { class Program { static void Main(string[] args) { IArithematic arithematic = new ArithematicOperation(); arithematic.Addition(20, 10); arithematic.Subtract(30, 12); arithematic.Multiply(29, 17); ...
2320bcd709ecb02bb4d0a5a03329134ae618dfba
C#
nikistoianov/TechMod-homeworks
/FilesDirectoriesAndExceptions/MostFrequentNumber/01.StartUp.cs
3.484375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MostFrequentNumber { class Program { static void Main() { string[] inputLines = File.ReadAllLines(@"..\..\input.txt"); File.Wri...
d4c122bace60714b6764b1f8afc398fb65059cdf
C#
adsisplus/TyrsaSystem
/Adsisplus.Cotyrsa.BusinessLogic/PanelLogic.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Adsisplus.Cotyrsa.BusinessEntities; using Adsisplus.Cotyrsa.DataAccess; namespace Adsisplus.Cotyrsa.BusinessLogic { public class PanelLogic { #region Constructor private Pa...
a61810481e7fb813094b8b7dfbd65d208fb346a4
C#
Strygevale/FirstProject
/Strygevalecalculator2000/TwoArguments/Factory.cs
3.484375
3
using System; namespace Strygevalecalculator2000.TwoArguments { /// <summary> /// factory, that choses a two argument calculating class by its name /// </summary> public static class Factory { /// <summary> /// that choses a two argument calculating class by its name /// ...
36eca59deb3e971a43d2f40089efb57cde757ed7
C#
carlubian/Snow
/SnowDemo/Services/WrapService.cs
2.5625
3
using Snow.Attributes; using SnowDemo.Interfaces; namespace SnowDemo.Services { [Service] internal class WrapService { private readonly TextService TextService; private readonly CalculatorService CalculatorService; [Autowired] private INumberService NumberService; ...
cd6d9fec5385928be3dce5dc6664d748e65012be
C#
Broenne/CPIOV2
/CPIOngConfig/CPIOngConfig/CPIOngConfig.Contracts/Alive/IAliveEventHandler.cs
2.671875
3
namespace CPIOngConfig.Contracts.Alive { using System; /// <summary> /// The alive event handler. /// </summary> public interface IAliveEventHandler { /// <summary> /// Occurs when [event is reached]. /// </summary> event EventHandler<AliveEventArgs> EventIs...
31841e7c00c03a0f6259594b302874d4b8684bc3
C#
meyton/szkola
/App1/App1/AddRecipePage.xaml.cs
2.6875
3
using System; using System.Collections.Generic; using App1.Model; using Xamarin.Forms; namespace App1 { public partial class AddRecipePage : ContentPage { private Category _category; public AddRecipePage(Category category) { _category = category; InitializeComp...
0e687113d5803534721f096ad110577811f4b44c
C#
shendongnian/download4
/first_version_download2/529222-49293946-169002662-2.cs
2.921875
3
protected void Page_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"YOUR CONNECTION STRING"); if (!IsPostBack) { con.Open(); SqlCommand cmd = new SqlCommand("SELECT COUNTRY FROM COUNTRIES"...
8b75d5fcba6e3185a586be9ba9201834a5bd35ef
C#
jasonjclifford/FluentAutomation
/SourceCode/FluentAutomation/API/ControlHandlers/SelectHandler.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WatiN.Core; namespace FluentAutomation.API.ControlHandlers { public class SelectListHandler { private Browser _browser = null; private SelectActionType _actionType = SelectActionType.SingleByValue; ...
1b7d6cad6caeea2c6f925ade1d8f7748a130e3f4
C#
Crazydriver8/FightingGame2
/Assets/Scripts/Lib/SmartObject.cs
2.6875
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public abstract class SmartObject : MonoBehaviour { // Information about this object public string objectName = "SmartObject"; // Variables that control how the object interacts with its surroundings public float interact...
2f28131a1a9964590fa3a3ebaf2cdfe9650bd3c7
C#
AtsushiYamashita/UnityLibs
/Assets/BasicExtends/Statics/NULL.cs
2.984375
3
using System; using BasicExtends; [Serializable] public class NULL : Singleton<NULL> { public override string ToString () { return "NULL"; } public static NULL Null { get { return Instance; } } public static object[] NullArr { get { return StArr.To().ToObjArr(); } ...
731bcd8ef1180918bf5de3a58c82fce5e32bc5b4
C#
firespeed79/eLiteWeb
/Skight.eLiteWeb.Sample.Domain/FileProcessing/FileReadableFilter.cs
2.625
3
using System.Collections.Generic; using System.IO; namespace Skight.HelpCenter.Domain { public class FileReadableFilter { public IEnumerable<FileInfo> filter(IEnumerable<FileInfo> list) { var result = new List<FileInfo>(); foreach (var file_info in list) { if (!...
fe3f1b41daad834b9e75117882132bc8fb3913a0
C#
scimence/MouseClick
/MouseClick/MouseClick/Program.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace MouseClick { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main(String[] arg...
64ac9ccda7de0eac1f43d470cfc7b32316cc74e5
C#
nasirovsh/OpenCV_2.4.11_Windows_Installation_Guide
/CannyStill.cs
2.625
3
// CannyStill.cs // // put this code in your main form, for example frmMain.cs // add the following components to your form: // // btnOpenFile (Button) // lblChosenFile (Label) // ibOriginal (Emgu ImageBox) // ibCanny (Emgu ImageBox) // ofdOpenFile (OpenFileDialog) // // NOTE: Do NOT copy/paste the entire text of this ...
b4a6ea6119aaef508eb17ed7f3e30aa9e1988171
C#
meutley/clean-arch-webapi
/src/SourceName.Infrastructure/Raven/Repositories/RepositoryBase[T,T].cs
2.59375
3
using System.Linq; using System.Threading; using System.Threading.Tasks; using Raven.Client.Documents; using Raven.Client.Documents.Session; using SourceName.Domain.Common.Entities; using SourceName.Domain.Common.Interfaces; namespace SourceName.Infrastructure.Raven.Repositories { public abstract class Repositor...
29021d5d3727b2875ab8d63d191ca3d039f5c595
C#
andreipall/MySQL-Stored-Procedure-Programming
/Ch17/ex17-31.cs
3.09375
3
static void EmployeeReport(int EmployeeId) { MySqlCommand SpCmd = new MySqlCommand("sp_employee_report", myConnection); SpCmd.CommandType = CommandType.StoredProcedure; MySqlParameter Param_empid = SpCmd.Parameters.Add( "in_emp_id", MySqlDbType.Int32); Param_e...
7fcb043df1b3ab1826ca9662a775227f0f8ae5dd
C#
MrWorner/UNITY-Test-task-UI
/TestTask_UI/Assets/Scripts/UI/Builder/MG_ItemBuilder.cs
2.53125
3
using Sirenix.OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TestsTask_UI { public class MG_ItemBuilder : MonoBehaviour { private static MG_ItemBuilder _instance; #region Поля [PropertyOrder(-1), BoxGroup("ТРЕБОВАНИЯ"), Required...
9a22f30868822b63ea69bc3929a06c74db7d2aa2
C#
Sony-NS/SharpMap
/src/Common/SharpMap.Extensions/Layers/MapTransform.cs
2.984375
3
using System.Drawing; using BruTile; namespace SharpMap.Extensions.Layers { class MapTransform { #region Fields float resolution; PointF center; float width; float height; Extent extent; #endregion #region Public Methods public MapTra...
3564c0fd1fdf75751e760cbdfbdf5604f0e8cf05
C#
davidich/CashMachine
/CashMachine.Dal/Repositories/CardRepository.cs
2.9375
3
namespace CashMachine.Dal.Repositories { using System.Data; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; using CashMachine.Domain; using CashMachine.Domain.Abstractions; public partial class CardRepository : ICardRepository { private readonly Cash...
1a1b0ebfb89e0367e7d8dfb672aa297ed19a19cb
C#
Bam-boozled/FaceAPI-Match
/Face_API_Match/Match.cs
2.78125
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Newtonsoft.Json; namespace Face_API_Match { class Match...
a53fcd2e971e6b23dc21b6bd4159f9062e4b1482
C#
shendongnian/download4
/first_version_download2/280229-22779665-61790125-2.cs
2.75
3
using System.IO; using System.Security.Cryptography.X509Certificates; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { var certBytes = File.ReadAllBytes(@"c:\cert.p12"); var p12Pwd = "somepasswo...
9f9a0b0bfa1c8666dc7d975319b08ec8b609a860
C#
yapiMax/Xamarin_Lab
/Lab1609/Lab.Net/Lab.Net/DataRetriever.cs
2.53125
3
using Lab.Data; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; namespace Lab.Net { public class DataRetriever { public DataRetriever() { } public List<User> GetUsers() { using (...
b84508d626e71b6f5351d58f9be4454bee009bf1
C#
mpbill/ExcelDataReader
/MichaelsExcelTester/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Excel; using System.IO; using System.Data; namespace MichaelsExcelTester { class Program { static void Main(string[] args) { string path = @"\\filestore\Teams\P...
5ae87b0fc468b22188fe324e51969f9736eb2cb8
C#
mdrafe549/Rediff_Automation_Testing
/TextFileWriteRead.cs
2.953125
3
 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rediff_minni_project { class TextFileWriteRead { public void DirectoryOperation() { string path = @"C:\Use...
937b18b13aca3be07038f4982f5ff2299c05d54e
C#
GeorgiyIsaev/ITMO.Course2021.CS.WFandWPF
/WPF.Lessons/Lesson04/WPF.Lesson04.Ex05.Notepad1/EnabledControls.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; 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; using System.Windows.Navigation; using System.Wi...
1145cc2a996672ff80d12e24c22518311b61f7ee
C#
xoofx/ClangSharp
/ClangSharp.Test/VirtualFileOverlay.cs
2.5625
3
using System; using System.Runtime.InteropServices; using Xunit; namespace ClangSharp.Test { // NOTE: To make those tests work on both Windows and *nix, // begin any absolute path with "$ROOT$", which the TestVFO infra will replace // with either "C:" (Windows) or nothing (*nix) so that clang u...
d50cdf4a9d2e8e38622cec59afeee8bb27587805
C#
nareshkumar66675/Investor
/Portfolio/Dashboard.cs
2.546875
3
using Portfolio.Database.Portfolio; using Portfolio.FinanceFeed; using Portfolio.Portfolio; using Portfolio.Util; 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.Window...
49adbf41c9e25af1439fe9e360f369ea1b3261c2
C#
Klaysb/sd_1718v
/1º Trabalho/SDChat/BrokerClientInterface/IBrokerClient.cs
2.625
3
using GroupImpl; using MessageImpl; namespace BrokerClientInterface { public interface IBrokerClient { /// <summary> /// Register a group. /// </summary> /// <param name="group">The object representing the group.</param> void RegisterGroup(Group group); /// <su...
cfd73ac901bb2a434f05ed794ff148c482e3e9c3
C#
KetchupOnMyKetchup/LearnCSharpBase
/LearnCSharp/Basics-Part2/ProjectsSolutions/03BlackJackSln/DeckSln.cs
3.609375
4
using System; using System.Collections.Generic; using System.Text; namespace LearnCSharp.Basics_Part2.Projects.BlackJack { /// <summary> /// Initializes 52 standard deck of cards /// </summary> public class DeckSln { private static readonly string[] _cardSuits = new string[] { "Spades", "H...
a3ed20ce28f0389f59e296c8a710aac188279279
C#
Daykn/DaurenOrd
/Final/streamreaderwriter2/streamreaderwriter2/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace streamreaderwriter2 { class Program { static void Main(string[] args) { DirectoryInfo path = new DirectoryInfo(@"papka"); forea...
991f33ad9a51b31abe08f0bfcb97fee9712d5656
C#
kubilayeldemir/QuickTest
/QuickTest.SeleniumDriver/QuickTest.SeleniumDriver/SeleniumEngine/TestRunner.cs
2.515625
3
using DataAccess; using DataAccess.Interfaces; using DataAccess.Models; using DataAccess.Models.Enums; using DataAccess.Repositories; using OpenQA.Selenium; using QuickTest.SeleniumDriver.SeleniumEngine.Command; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadin...
f810ade7343b681cb43ac02119abdf37c5adb492
C#
sdfarrar/flocking
/Assets/Scripts/Behavior Scripts/AlignmentBehavior.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // The AlignmentBehavior will attempt to align all agents in the same direction [CreateAssetMenu(menuName = "Flock/Behaviors/Alignment")] public class AlignmentBehavior : FilteredFlockBehavior { public override Vector2 CalculateMove(F...
4eb8158ae8ee03b65cb91ca076b635ba6d8ddacb
C#
DevChatter/2018-06-23_RPG-Combat-Kata
/RpgCombat/UnitTests/IsAnAllyShould.cs
3.125
3
using RpgCombat; using System.Collections.Generic; using Xunit; namespace UnitTests { public class IsAnAllyShould { [Fact] public void ReturnTrue_GivenCharactersInSameFaction() { var faction = new Faction(); var (character1, character2) = GetTes...
731011df752549f8596022c9c67ede99d36d548e
C#
atatanasov/gijgo-asp-net-examples
/Gijgo.Asp.NET.Examples/Controllers/PlayersGroupingController.cs
2.625
3
using Gijgo.Asp.NET.Examples.Models.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Gijgo.Asp.NET.Examples.Controllers { public class PlayersGroupingController : Controller { public JsonResult Get(string groupBy, string gro...
27d0e3997fbae97afe31f28d1a2d21995602e35d
C#
thebeanogamer/starraid
/Starraid/Assets/Scripts/bulletController.cs
3
3
using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; public class bulletController : MonoBehaviour { // Create variable using which the rigidbody 2d of the player can be accessed private Rigidbody2D rb2d; // Create variable to store desired speed of bullets publ...
c1c78947fbe956cf64bf4156f734651cfe2b9040
C#
shendongnian/download4
/code1/87815-1404777-2774644-2.cs
2.9375
3
~MyClass() { Dispose(false); } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected void Dispose(disposing) { if (!this.disposed) { if (disposing) { // Dispose managed resources here....
c6e7be2122c7db7cb83653f4dde9f8772b699e3c
C#
Serghii/Rig
/Rig/Rig/Telegram/TeleCommand/ShowDifficultyTCmd.cs
2.53125
3
using System; using System.Linq; namespace Rig.Telegram.TeleCommand { class ShowDifficultyTCmd : TCommandBase, ITCommand { public ShowDifficultyTCmd(ITCommandService srv) : base(srv) { } public TCmdType Type => TCmdType.showDifficulty; public override string Na...
dc9cbe7d93ee793e1f15ceec1091854123730bb1
C#
MicrosoftLearnStudentAmbassadorsPatras/WesternUnityGame2018
/Assets/scripts/EnemySpawn.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawn : MonoBehaviour { public Transform[] enemySpawns; public GameObject enemy; // Use this for initialization void Start () { Spawn(); } private void Spawn() { int i = 0; ...
8bd3f955a887d7ba1d544b33aaeb733efdca39c2
C#
trilokkrothapalli/chatapi
/ChatAPI/Chat.Data/GenericRepository/ApplicationRepository.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Chat.Data.GenericRepository.Interface; using Chat.Data.Models.Interface; using Microsoft.EntityFrameworkCore; namespace Chat.Data.GenericRepository { public class ApplicationReposi...
264048d9fd6ff529488f9ff94915012f46bd3647
C#
ThaoNV1995/WebBanHangDaiPhat
/MayTinhDaiPhat/MayTinhDaiPhat/DAO/NhaPhanPhoiDAO.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using PagedList; using MayTinhDaiPhat.Model; namespace NhapXuat.DAO { public class NhaPhanPhoiDAO { private readonly MayTinhDaiPhatEntities _db = new MayTinhDaiPhatEntities(); //Lấy danh sách nhà phân phối ...
8189b52b11222214a8000066e5c06f9d8beff299
C#
MaxDovere/Swagger
/src/AwesomeBackend/Controllers/RestaurantsController.cs
2.65625
3
using AwesomeBackend.BusinessLayer.Services; using AwesomeBackend.Common.Models.Requests; using AwesomeBackend.Common.Models.Responses; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace AwesomeBackend.Control...
e16b566d096b69a24009cf93ee087af1d20e61e2
C#
arnovb-github/CmcLibNet
/CmcLibNet.Export/AdoNetRowWriter.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Data; using Vovin.CmcLibNet; using Vovin.CmcLibNet.Database; namespace Vovin.CmcLibNet.Export { /// <summary> /// Takes a complete cursor row of Commence data and puts the values into their corresponding DataSet tables. /// As...
1c6d77fcdfe751cf2fce640cf65fa985322ccd15
C#
Robert8034/Mealz
/Authentication/Services/IUserService.cs
2.8125
3
using Authentication.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Authentication.Services { public interface IUserService { /// <summary> /// Adds a user based on a given Guid, Email and Password from the Userservice ...
2e77484193aaddb9728a9461f4e3fa4d7aac6405
C#
akorolev5/prompter
/AutocompleteClient/AutocompleteClient.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using Prompter.Server; namespace AutocompleteClient { public class AutocompleteClient { private readonly ManualResetEvent connectSynchronizer = new ...
d533ea1c842e25cc25562bb662d2e4f215da9abb
C#
tatjana252/Students
/Students.Domain/Student.cs
2.59375
3
using System; using System.Collections.Generic; namespace Students.Domain { public class Student : IEntity { public int StudentId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public DateTime DateOfBirth { get; set; } public Li...
b8a8716d9581111744c7e61189b9a38a056502f9
C#
diocas/CMOV-Wallet
/WalletApp/WalletApp2/ViewModels/MoneyViewModel.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.IO.IsolatedStorage; using System.Linq; using System.Windows.Controls; using WalletApp.DataAccess; using WalletApp.DataModel; namespace Wa...
6f49a8bb505763733abe858d5a5d742cec1c8cf4
C#
FrankLi08/CC-Project
/TheDream.DAL/Repository/GenericRepository.cs
2.703125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using TheDream.DAL.DAL; using TheDream.Model.Common; namespace TheDream.DAL.Repository { public abstract class GenericRepository<T>:IRepositor...
d6af400bff32287c68c0a2e8b225af38ceb66a2d
C#
BZIvanov/Learning-CSharp
/01.Basics/Practice/02.SecondSteps/LargestElements.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; namespace SecondSteps { class LargestElements { static void Main() { string input = "5 3 4 1"; List<int> numbers = input.Split(' ').Select(int.Parse).ToList(); int n = 3; numbers...
23278e3b9f477da689f6269979e363169b7cd3e9
C#
filmobile/MainRoad
/MainRoadModel/Model/Node.cs
3.125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using MainRoadModel.Helpers; namespace MainRoadModel.Model { /// <summary> /// Graph's node /// </summary> [Serializable] public class Node : IHasNeighbours<Nod...
547d3be3dfe418b79cecf6ac0404a48ed7af9593
C#
SantaXXL/MPLS-Emulation
/Tools/Table Rows/NhlfeTableRow.cs
3.046875
3
 namespace NetworkNodes { /// <summary> /// Reprents an entry in an NHLFE table. /// </summary> public class NHLFETableRow : ITableRow { /// <summary> /// Entry's ID. /// </summary> public int ID { get; set; } /// <summary> /// An action to do: POP/S...
c7e16f85c5bb843a79e3ff976ec01b416a2ab3d4
C#
BanyanBits/Batch0
/Saran/StudentDataBase/StudentDataBase/StudentDatabaseFunction.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StudentDataBase { class StudentDatabaseFunction { string[,] students; int noOfStudentdAdded = 0; public StudentDatabaseFunction(int totalStudents) { ...