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
7c264c075eb0a030bb20eb4598e9ab9cb07e2153
C#
severndweller/ProCSharp
/SimpleCSharpConsoleApp/IssuesWithNonGenericCollections/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace IssuesWithNonGenericCollections { class Program { static void Main(string[] args) { object myBoxedInt; int myInt; ...
52fd022caefd54135417722eab569bb1c602470d
C#
tectronics/filedb-database
/Setup/Files/Samples/Northwind Database/SalesTotals.linq
2.9375
3
<Query Kind="Statements"> </Query> // generate Aggregate totals from Orders var customerOrders = from c in Customers join o in Orders on c.CustomerID equals o.CustomerID into ordersGrp // "into" gives us hierarchical result sequence select new { CustomerId = c.CustomerID, CustomerName = c.Co...
9fd48f2636f0cbdeca87907e119368e7644a9d60
C#
evgenikolev98/TSP_Uprajneniq
/Lab_upr3/zad1/Form4.cs
3.125
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 zad1 { public partial class Form4 : Form { public Form4() { ...
12e405be02f5e44630f9f9c278a8d0f192a15a80
C#
webstorage119/EyeDisposable
/EyeDisposable/Program.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.IO; using System.Diagnostics; using EyeDisposable.Core; using System.Reflection; namespace EyeDisposable { static class Program { static void Usage() { var sel...
794ebfa85b5e8b4cdfdd0835673f180d42ca462e
C#
danielhampikian/GIMM-400
/AI/StateMachineAndBehaviorTree/Assets/BehaviorTreeCustom/SelectorNode.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SelectorNode : Compositor { NodeStatus[] nodeStats; bool allNodesFailed = false; public SelectorNode(BehaviorTreeController btController) : base(btController) {} public override NodeStatus Tick() { ...
68b6402382dfd310fb2cdd1c627b8cd2b6105324
C#
jikoriko/Genus
/RpgEditor/SpriteViewerPanel.cs
2.84375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace RpgEditor { public class SpriteViewerPanel : Panel { private Image Sprite; public SpriteViewerPanel() { ...
58514663f3b1c404a0b03ede18fc9be76d8dc7de
C#
jjassobarba/DependencyInjection
/Game/Program.cs
3.015625
3
using System; using Game.Clases; using Game.Clases.Armas; using Game.Clases.Bindings; using Game.Clases.Personajes; using Game.Clases.Servicios; using Ninject; namespace Game { class Program { static void Main(string[] args) { var module = new Bindings(); var kernel = n...
88633e7d07146ed9cb7a63b075e95dae77834f1e
C#
villdimova/SoftUniCSharpAdvanced
/Recursion/FactorielWithRecursion/Program.cs
3.703125
4
using System; namespace FactorielWithRecursion { class Program { static void Main(string[] args) { decimal num = decimal.Parse(Console.ReadLine()); Console.WriteLine( Factorial(num)); } static decimal Factorial(decimal num) { ...
d9be9f957699785f1b133828883cef42d60036f9
C#
jchinnici/Ya-s-Program
/ChangeCalculatorApp/GetPair.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChangeCalculatorApp { public class GetPair { int[] intarray = new int[] { 1, 4, 2, 3, 3, 6, -1, 7, 5, 1 }; //this.intarray to use this instead of defining public G...
277774e68723182f66928aac373859de6e32da3c
C#
vaclavek/GymVod.PGM-2019-2020
/1. pololetí/Domácí úkoly/Provazník/MergeSort/MergeSort/Program.cs
3.828125
4
using System; namespace Merge { class Program { static int[] MergeSort(int[] arr) { if (arr.Length == 1) return arr; int midpoint = arr.Length / 2; var left = new int[midpoint]; var right = new int[arr.Length - midpoint]; ...
711c444e26b50a239256ac8a1888673c6dd7e6ee
C#
gaozeqian/data-structure
/00-LeetCode/数组/_1365_有多少小于当前数字的数字.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; namespace _00_LeetCode.数组 { /// <summary> /// https://leetcode-cn.com/problems/how-many-numbers-are-smaller-than-the-current-number/ /// </summary> public class _1365_有多少小于当前数字的数字 { public int[] SmallerNumbersThanCurrent(in...
1ea0149fb0284c8f249d76394206f6319d8af0fa
C#
yan6pz/Telerik-Academy
/Telerik-OOP-DefiningClasses/DefiningClass/Test.cs/Program.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Point.cs { public class Program //public to be reachable by every other class in solution { static void Main(string[] args) { Path q=new Path(); ...
b0b95038a5a9269904db9ad720766c302e5729aa
C#
cs43/GroupProject
/dxcBookVehicleParkingService/Repo/EmployeeRepo.cs
2.859375
3
using dxcBookVehicleParkingService.Interfaces; using dxcBookVehicleParkingService.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace dxcBookVehicleParkingService.Repo { public class EmployeeRepo : IEmployee { ParkingCon...
833dc2d6c1bd477e603cdb51adf1271bf79e5b40
C#
cmoro98/TraductorDeLenguaje_JS-PL
/ProcesadorDeLenguaje_JS-PL/ProcesadorDeLenguaje_JS-PL/Cuarteto.cs
2.65625
3
namespace ProcesadorDeLenguaje_JS_PL { public class Cuarteto { private Operador operador; private Atributo arg1; private Atributo arg2; private Atributo dest; public Cuarteto(Operador operador, Atributo arg1, Atributo arg2, Atributo dest) { this.opera...
4c73dbce605b5e81991b9109380e4e049eca30dc
C#
LYJHub/HW2
/homework2/TestClass.cs
2.671875
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework2 { [TestFixture] public class test { [Test] public void fun1() { StringReader input = new Strin...
d06fe65a837dfa0e8f3c24db69e4f61db77cefbf
C#
irimescu-maria/E-Commerce
/SweetShop.API/Controllers/ShoppingCartController.cs
2.6875
3
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using SweetShop.API.Repository; namespace SweetShop.API.Controllers { [ApiController] [Route("api/[controller]")] public class ShoppingCartController : ControllerBase { private readonly ICakeRepository _cakeRepository; ...
9800aecb720593b80b4583a25a82b5b779dca7f7
C#
bernatvadell/WebApi.Proxy
/WebApi.Proxy/WebApi.Proxy/Attributes/HttpFormatterAttribute.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using System.Text; using System.Threading.Tasks; namespace WebApi.Proxy.Attributes { [AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)] public class HttpFormatterAttribute : Attrib...
54710fe6a42ccf4fc7675f79c96bf168fd7a21ca
C#
RuchirSaxena/DependencyInjectionMVC_UnityFramework
/Dependency_Injection_MVC/Controllers/HomeController.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Dependency_Injection_MVC.Models; namespace Dependency_Injection_MVC.Controllers { public class HomeController : Controller { /* Promblem : The problem with the below approach for i...
ef1679b790c932680387aefcac69c1d1f873a21e
C#
master369/ExternalTasks-EPAM-
/Projects/Task3/Task3.3/Program.cs
2.984375
3
using System; namespace Task3._3 { class Program { static void Main() { // DynamicArray a = new DynamicArray(); // Console.Write("a = "); // foreach (var item in a) // { // Console.Write("{0} ", item); /...
00a4ed1e57bc65ecfe7a2200358a1443e58a0c32
C#
MythZ1225/CSharp-Practice
/346HouseDesign_polymorphism/346HouseDesign_polymorphism/Location.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _346HouseDesign_polymorphism { // Location : 抽象 父類 abstract class Location { // 父類建構子 : 屬性 名字 public Location(string name) { this.name = name; ...
f1cf356b4e5ddcc57a6f55b8c06ebdf45841425a
C#
JohanGl/Outworld-XNA
/System/Framework.Physics/CollisionSystem.cs
2.625
3
using System.Collections.Generic; using Framework.Physics.RigidBodies; using Jitter.LinearMath; namespace Framework.Physics { public class CollisionSystem { private Jitter.World World; private Dictionary<RigidBody, Jitter.Dynamics.RigidBody> WorldItems; private Jitter.Dynamics.RigidBody Body; public Collis...
1875408f6775bd755f21a313725b7286baf0060a
C#
ComancheAk/ColorLinesUnity
/Assets/Scripts/GameBoardManager.cs
2.5625
3
using System; using UnityEngine; public class GameBoardManager : MonoBehaviour { public static GameBoardManager Instance; public GameObject ballSpace; public GameObject gameField; public GameObject ballExample; Vector3 leftTopAngle; float xPadding; float yPadding; publi...
0625cb26c49e80f593750a5b8205a05d5aac9767
C#
diogon1984/LocadoraAPI
/Locadora.Repositorio/Repositorios/BaseRepositorio.cs
2.828125
3
using Locadora.Dominio.Contratos; using Locadora.Repositorio.Contexto; using System.Collections.Generic; using System.Linq; namespace Locadora.Repositorio.Repositorios { public class BaseRepositorio<TEntity> : IBaseRepositorio<TEntity> where TEntity : class { protected readonly LocadoraContexto Conte...
fb7ddfecf379671889884131c44ae053607f5554
C#
210913-USF-NET/P0-Tenzin-Woesel
/StoreBL/BL.cs
2.703125
3
using System; using System.Collections.Generic; using Models; using DL; using System.Text.RegularExpressions; namespace StoreBL { public class BL : IBL { private ICustomerRepo _repo; public BL(ICustomerRepo repo) { _repo = repo; } public List<Customer> Get...
416e052cdc39fd61e3a967d6cd4e179e8a07ed85
C#
bubdm/LinqTee
/LinqTee.Tests/Wyer/SmokeTests.cs
3
3
using System.Linq; using LinqTee.Extensions; using NUnit.Framework; namespace LinqTee.Tests.Wyer { [TestFixture] public class SmokeTests { [Test] public void it_left_tees_and_wyes_without_making_changes() { var actual = Enumerable .Range(1, 10) ...
62d519d063db756fbd51dfed3dbccf003f7da1ab
C#
kie0/CCD
/Hausaufgaben/KW_48/ViewCSVFiles.Tests/Mockups/IoMockup.cs
2.640625
3
using System.Collections.Generic; using ViewCSVFiles.Adapters; namespace ViewCSVFiles.Tests.Mockups { public class IoMockup:IIo { private string[] lines; /// <summary> /// Initialisiert eine neue Instanz der <see cref="T:System.Object"/>-Klasse. /// </summary> public I...
9bca0cc9b81a25ded006733b97ac7c2188a36c96
C#
mlovyuan/BsTpe2019_Csharp
/Hw/hw4/hw4/hw4-2/Palindrome.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace hw4_2 { public class Palindrome { public static bool PalindromeJudge(string input) { var len = input.Length; bool ans; if (len % 2 =...
077ff7f23ea3a6d379ce5adbdd06f36afd6a1aaa
C#
verzhyk/lab3.6
/newLaba1Vlad/D1.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace newLaba1Vlad { public class D1 { private string d1; public D1() { } public D1(string d1) { this.d1 = d1; ...
626bcb4d4eeaf5e4bbb89033fef096ad8d4f24c9
C#
llenroc/Octokit.GraphQL
/Octokit.GraphQL/MentionedEvent.cs
2.515625
3
namespace Octokit.GraphQL { using System.Linq; using System.Linq.Expressions; using Octokit.GraphQL.Core; using Octokit.GraphQL.Core.Builders; /// <summary> /// Represents a 'mentioned' event on a given issue or pull request. /// </summary> public class MentionedEvent : QueryEntity ...
53edd649e1d9b1c9bb79cb6d15b13d7b4e25943e
C#
rainbow23/cSharp
/Dokusyu/7章/PwrOfTwo.cs
3.859375
4
using System; class PwrOfTwo { public int this[int index] { get { if((index >= 0) && (index <16)) return Pwr(index); else return -1; } } int Pwr(int p) { int result = 1; for(int i = 0; i < p; i++) { result *= 2; } return result; } } class UsePwrOfTwo { public static void Main(st...
a6d1b668048d49248677a8169302b57bf53ee9d9
C#
GataullinRR/EX1
/DeviceBase/IOModels/RichResponse.cs
2.921875
3
using Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Utilities; using Utilities.Extensions; namespace DeviceBase.IOModels { enum RichResponseType : ushort { OPERATION_STATUS = 0 } class RichResponse { ...
276d9583af9c2930afc857d852d7c18b89486c01
C#
dimspace/crackhead
/FlickrCache/PhotosetPhoto.cs
3
3
using System; namespace FlickrCache { /// <summary> /// Implement the Equals and GetHashCode method using Id. /// </summary> public partial class PhotosetPhoto { public override bool Equals (object obj) { if (obj == null) return false; if (Referen...
1bcd56b23deeee746dc4b8628a5ff1267c06034a
C#
eamoreno/LR-parser
/LR1Parser/StringExtensions.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LR1Parser { public static class StringExtensions { public static string ToMeta(this string value) { var regexOperators = new[] { "-", "+", ".", "(", ")", "|", "?", "*" }; for...
dced15b69c85360bd5be59e877030d0b605766cd
C#
PacktPublishing/-Learn-WinUI-3.0
/Chapter03/Start/MyMediaCollection/MainPage.xaml.cs
2.640625
3
using System; using System.Collections.Generic; using Microsoft.UI.Xaml.Controls; using MyMediaCollection.Model; using MyMediaCollection.Enums; using Windows.UI.Popups; using System.Linq; namespace MyMediaCollection { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. ...
f250bc572a719f34b64e850a2a851927ed9b96bf
C#
StackSmack007/OOP-Advanced
/Generics - Exercise/05GenericCountMethodString/StartUp.cs
3.125
3
using System; namespace GenericCountMethodString { public class StartUp { static void Main() { var evaluator = new Evaluator<string>(); int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string item = Console.Rea...
2d0aa31c2c0d0ab448d7e82d5db0dac3d21a9e3b
C#
andraguitar/Library-MVCProject-
/DALwhithDapper/DapperRepository/OrderDapRepository.cs
3.03125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using BLL.Entities; using BLL.IRepo; using Dapper; namespace DALwhithDapper.DapperRepository { public class OrderDapRepository : IOrderRepository { private readonly IDbConnection _db; public List<string> Co...
6304a837b2a002702a2fd1c167b6d8370136d9c1
C#
caiquesantosteixeira/MeuBanco
/MeuBanco/frmAdicionarCliente.cs
2.75
3
using JGourmet.UTIL; using MeuBanco.Models; using MeuBanco.Servvices; 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 MeuBanco { public pa...
6e1c27f3367fcf0f8b18a71b3d720dd8d2fde3a7
C#
boogermanus/dotnet
/DesignPatterns/IteratorPattern/ConcreteAggregates/CandyCollection.cs
3.03125
3
using System.Collections.Generic; using IteratorPattern.Aggregates; using IteratorPattern.Iterators; using IteratorPattern.ConcreteIterators; using IteratorPattern.Models; namespace IteratorPattern.ConcreteAggregates { // the Concrete Aggregate public class CandyCollection : ICandyCollection { priv...
d39e4e876277de4ca1e92fcb139cf11f9c7bd1f7
C#
Odonno/Modern-Gitter
/Gitter/Gitter.HtmlToXaml/HtmlToXaml.cs
2.859375
3
using Gitter.HtmlToXaml.Helpers; using HtmlAgilityPack; using System; using System.Collections.Generic; using System.Diagnostics; using Windows.UI.Xaml.Documents; using Windows.UI.Xaml.Input; namespace Gitter.HtmlToXaml { public static class HtmlToXaml { #region Fields public static string Ro...
ba0d6c4a77d7644735ac3e881ef6f5859d5d4377
C#
VolkmarR/T4-Runtime-Templates-Example
/TypeScriptCodeGen/Analyzers/AssemblyLoader.cs
2.71875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace TypeScriptCodeGen.Analyzers { static class AssemblyLoader { static Dictionary<string, Assembly> Dependencies = new Dictionary<string, Assembly>(); static Dictionary<string, st...
4b17b11934ff232152beeed2e02d620877a684bd
C#
devTryer31/Asymptotics_definer
/Tests/ConsoleTestApp/AsymptoticsDefiner.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; namespace ConsoleTestApp { static class AsymptoticsDefiner { public struct TFunc { public Func<double, double> Exec; public string Str; public TFunc(Func<double...
11887ae0a0685c1a28af8d3b12c2b137542a05c4
C#
contensive/aoDistanceLearning
/Server/aoDistanceLearning/Controllers/QuizController.cs
2.515625
3
using Contensive.Addons.DistanceLearning.Models; using Contensive.BaseClasses; using Contensive.Models.Db; using System; using System.Collections.Generic; namespace Contensive.Addons.DistanceLearning.Controllers { public static class QuizController { // //=========================================...
108d6bdc9a46cfd81f64cebdcf2d54600bf39887
C#
tpham93/Kaibo_Crawler
/Classes/ParticleEmitter.cs
2.796875
3
using SharpDX; using SharpDX.Toolkit; using SharpDX.Toolkit.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kaibo_Crawler { class ParticleEmitter { public Vector2 position; int emitsPerSecond; Lis...
ca7bdd56f2b121d330c3104f8671da5e41203937
C#
MMDaemon/Voxel-Editor
/MVCCore/Handlers/InputHandler.cs
2.671875
3
using System.Collections.Generic; using System.Drawing; using System.Linq; using MVCCore.Interfaces; using OpenTK; using OpenTK.Input; namespace MVCCore.Handlers { public class InputHandler { private readonly GameWindow _gameWindow; private readonly List<(Key Key, int KeyAction)> _pressKeyAct...
e422dede93866290a94ff2f3083509b1f62a3c87
C#
isilveira/EntitySearch
/sample/StoreAPI/Core/Application/Categories/Commands/PatchCategory/PatchCategoryCommandHandler.cs
2.5625
3
using MediatR; using Microsoft.EntityFrameworkCore; using StoreAPI.Core.Application.Interfaces.Contexts; using System; using System.Threading; using System.Threading.Tasks; namespace StoreAPI.Core.Application.Categories.Commands.PatchCategory { public class PatchCategoryCommandHandler : IRequestHandler<PatchCateg...
f9d897c4f392963108030420961074271c337cf5
C#
Slitthe/TechnicalTasks
/ExamplesDisplay/Examples/BoxingUnboxingExample.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata; using System.Text; namespace ExamplesDisplay.Examples { public class BoxingUnboxingExample : IExample { public BoxingUnboxingExample() { StartMessage = ""; ; Name = "Box...
2e13484121b886d49ed259f158f5a6575d6de805
C#
CyrillCyrillov/SoftUni-CSharp-Advanced-10-Exam-Preparation
/Openning/Bakery.cs
3.5
4
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace BakeryOpenning { public class Bakery { private List<Employee> data; public Bakery(string name, int capacity) { Name = name; Capacity = capacity; ...
bc234d953ead3f80ff867dabe9b1a272bfd2f6f0
C#
hemantCC/WinformsApplication
/Assignment_WebAPI/Assignment.Service/Implementations/VehicleService.cs
2.921875
3
using Assignment.Entity.Entities.BusinessEntities; using Assignment.Repository.Interfaces; using Assignment.Service.Interfaces; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Assignment.Service.Implementations { public class VehicleService : IVehicleServ...
f6322aae9dc8b22bbf9dc18ee2adb000150cbb68
C#
felipealvin13/classificador-de-texto
/src/comparadores/ComparadorSimples.cs
3.515625
4
using System; using System.Linq; using System.Collections.Generic; using BagOfWords = System.Collections.Generic.IDictionary<string, int>; namespace ClassificadorDeTextos.Comparadores { public class ComparadorSimples { public double CalculaDistancia(BagOfWords bag1, BagOfWords bag2) { ...
56f43bcddb3521f3c542fd5a72cf43da30577f12
C#
saharSpark/Spark.MessengerApi
/Helper/AuthorizationUtils.cs
2.609375
3
using Newtonsoft.Json; using Spark.MessengerApi.Models; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Security.Cryptography; using System.Web; namespace Spark.MessengerApi { public static class AuthorizationUtils { internal static UserDTO...
a1ea0cedf42136a2e3bafacb0ecbb9d1960331b1
C#
shendongnian/download4
/code4/586811-13738986-32811094-2.cs
2.828125
3
public void PopulateGameBoard() { XDocument gameFiles = XDocument.Parse(Properties.Resources.Jeopardy); IEnumerable<string> categories = from category in gameFiles.Descendants("category") select (string)category.Attribute("name"); Label[] cat1HeaderLabel= new...
1aca181dbbd695ced069643dec78edca4c1007c6
C#
JessicaVDD/EnhancedReflection
/Product/Willow.Reflection/Reflection/ReflectionCache.cs
2.671875
3
using System; namespace Willow.Reflection { public class ReflectionCache { private readonly Type _OwnerType; private readonly IAccessorCache _Fields; private readonly IAccessorCache _Properties; private readonly IAccessorCache _StaticFields; private readonly IAccessorCa...
d25de980deb23b6c9ba402b7d0a6b691ab581150
C#
FOUND404F/proyectofinal-DAM
/Prueba/Shop.cs
2.765625
3
/* * NOMBRE Y APELLIDOS..... Raquel Heredia Díaz * CURSO..... 2º Desarrollo de aplicaciones multiplataforma * MODALIDAD..... Trabajo de fin de grado */ using MySql.Data.MySqlClient; using Prueba.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Syste...
a8bd2a12b705d259878109a8cea08c7c5c5e6fa6
C#
thieugiakk-hhp/atb
/GameAttackBees/Function/ShowBees.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GameAttackBees.Bees; namespace GameAttackBees.Function { class ShowBees { public void Output(List<Bees.Bees> Bees, int amount) { int nor = 0; ...
3d3077ac414a2d67ce6edb1c2c1bfe27331e730d
C#
takechup/UnityGameTest
/Assets/Scripts/Scn/Main/Weapon.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Take.Scn.Main { public class Weapon : MonoBehaviour{ // コンストラクタ public Weapon () { } // 初期化 public void Initialize(GameObject aObj) { mHeroObj = aObj; mCount = 0.0f; mIsTimer = false; mWeapon = nul...
3b16ab8d28da2855d9c37d6b290eade87a9aa177
C#
shtwzrd/Rudi
/Game.cs
2.84375
3
using System; using System.Drawing; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Audio; using OpenTK.Audio.OpenAL; using OpenTK.Input; using Rudi; namespace StarterKit { class Game : GameWindow { Renderer renderer; /// <summary>Creates a 800x600 window with t...
30f97f5bac32f9a06aa1a4c1f027e5500ea7f374
C#
jacobsylvan/INFC20
/GymShark/GymShark/Test.cs
2.640625
3
using System; using System.Collections.Generic; using MySql.Data.MySqlClient; namespace GymShark { /* public class Test { <<<<<<< HEAD static void Main(string[] args) { Dal dal = new Dal(); Customer customer = new Customer(); customer = dal.FindCu...
1e0fb7f04cf1f197d1453c68be04733385ad1909
C#
juba97/CSharp
/Function/Function/Program.cs
3.78125
4
using System; namespace Function { class Program { static void Main(string[] args) { int Maxs = MaxNumber(1000, 200); Console.WriteLine($"LargestNumber is - {Maxs}"); double Sum = PrintNumber(10.5, 6.3); Console.WriteLine($"Sum is - {Su...
d56b223000b1fedead74de69da307a4882aae0d5
C#
RedAlertTeach/HackerRankAndCodeWars
/PointsOnALine.cs
2.828125
3
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularE...
d306f0cdf3174135a9b645e8ceba21ac2750ecb3
C#
josevieiradasilvafilho/SigCorp_EfCore
/EfCore/Controler/Pessoa_Crud.cs
2.9375
3
using EfCore.Model; using System; using System.Linq; namespace EfCore.Controler { public class Pessoa_Crud { public Guid Id_ { get; set; } public string Nome_ { get; set; } public string Documento_ { get; set; } public string Email_ { get; set; } public string Tele...
6a68fe26b171d9845320fa2ce4468e602e2495ff
C#
chrisortman/coulda
/vendor/xunit-ca12a1a520db/Main/xunit.extensions/AssumeIdentity/AssumeIdentityAttribute.cs
3.15625
3
using System; using System.Reflection; using System.Security.Principal; using System.Threading; namespace Xunit.Extensions { /// <summary> /// Apply this attribute to your test method to replace the /// <see cref="Thread.CurrentPrincipal"/> with another role. /// </summary> [AttributeUs...
a944b58cd4a04c0ef18a1bc925c572b50fa7493c
C#
LasseTorp/SWT_Gruppe10_AirTraficMonitoring
/SWT_Gruppe10_AirTraficMonitoring/SortTrackData.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; using TransponderReceiver; namespace SWT_Gruppe10_AirTraficMonitoring { public class SortTrackData : ISortTrackData { //Dette skal t...
439686bc7119278a6b1ed18ad931817c2e3e2948
C#
Caliohs/Examen3
/WBL/CompraService.cs
2.5625
3
using BD; using Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WBL { public interface ICompraService { Task<DBEntity> Create(CompraEntity entity); Task<DBEntity> Delete(CompraEntity entity); Task<IEn...
5cf1407d138dce9118feabd5879d05e299ffdf0d
C#
Acoyan/Inventariode-itens-avalia-ao-1
/ConsoleApplication1/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class Itens { public string name; public Itens next = null; public Itens(string name) { this.name = name; } } namespace ConsoleApplication1 { class Program ...
08d2f126899f0313bee8e256265a4402be556397
C#
vitor-giacomelli/ringba-file-statistics
/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text.RegularExpressions; namespace ringba_test { class Program { static void Main(string[] args) { string remoteUri = "https://ringba-test-html.s3-us-west-1.amazonaws...
bc4288bd43f924d5ccec4f85204531811bd8be83
C#
Pranav95/CSE445
/Validate xml Project/Assignment3/Default.aspx.cs
2.734375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Assignment3 { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { } ...
c12b4189d804336c4d0d2e8eef1a16a237133bf7
C#
agatl/Scale-Up
/OMIS675_Lab0/OMIS675_Lab0/Business Layer/BusinessLayer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using OMIS675_Lab0.DataLayer; using System.Data; using System.Web.UI.WebControls; using System.Security.Cryptography; using System.Text; using System.IO; namespace OMIS675_Lab0.Business_Layer { public class BusinessLayer { ...
c57e8c8ee8fc4350ff6fbdc7d71fc0274d915c84
C#
Belorus/EventStream
/EventStream/Senders/DelegateEventSender.cs
2.703125
3
using System; using System.Collections.Generic; using EventStream.Abstractions; namespace EventStream.Senders { public class DelegateEventSender : IEventSender { private readonly Action<IList<Event>, Action<bool>> _eventSendAction; public DelegateEventSender(Action<IList<Event>, Action<bool>>...
cae0a13976116664e97f0ff1e1f8a243c2fc199b
C#
DamianFCode/ConcretarProyect
/Projecto/Concretar.Services/ReunionService.cs
2.53125
3
using Concretar.Entities; using Concretar.Services.Models; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Concretar.Services { public class ReunionService { private readonly ILogger _logger; readonly UnitOfWor...
5541874849e2bf4250fd17bde674a2ac6d33406e
C#
TibzZ/w3d4_csharp102_workshop-paradox
/ArraysAndLists/Program.cs
4.0625
4
using System; using System.Collections.Generic; namespace ArraysAndLists { class Program { static void Main(string[] args) { //Create a list of 5 num, console write it, return count var myNumList = new List<int>() { 1, 2, 3, 4, 5 }; foreach (int...
59032cb600fa1edc67f5ad78db5658ed991b339b
C#
peterlambov/CSharp
/C#Homeworks/C#Part2Homeworks/07TextFiles/Ex02TwoFiles/Concat.cs
3.515625
4
//Write a program that concatenates two text files into another text file. using System; using System.IO; using System.Linq; namespace Ex02TwoFiles //To open the test.txt after executing the program and see the result you can click on "Show all files" //on the top of the Solution Explorer and ...
6cfa342c41eb24e347b6a2d6fd3cba795f91fd87
C#
AbbaraoAnvitha/Joy-bot
/Joy_Bot/Controllers/EchoDialog.cs
2.71875
3
using Microsoft.Bot.Builder.Dialogs; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Threading.Tasks; using Microsoft.Bot.Connector; namespace Joy_Bot.Controllers { [Serializable] public class EchoDialog : IDialog<object> { public async Task StartAs...
7e2f75651b99f5ea98edbbe47e1ecb06475acaff
C#
sammosampson/AppliedMessagingExamples
/src/UnitTesting/Subscriber/ThirdPartyLibrary.cs
2.703125
3
namespace Subscriber { using System; public class ThirdPartyLibrary : IThirdPartyLibrary { public void AddActivity(string tenantId, string policyNumber, string text) { Console.WriteLine($"Adding activity for tenant: {tenantId}, policy: {policyNumber}, with text: {text}"); ...
b7e068d36e0e084d982453777d7a60fea3c89a12
C#
Mingmoon52/ASAM_3D_1023
/3D_RPG/Assets/Script/LreanOperator.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LreanOperator : MonoBehaviour { public int A = 10, B = 3; public int C = 1; public int prop = 1; public int D = 9; public float E = 99.9f , F = 10.5f; public float hp = 100; public bool key; ...
9f77a3296edeb508225d2ea65d1197a4ea8835f3
C#
mm2288/is421calculator
/CalculatorProjectTests/CalculatorTests.cs
2.96875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using CalculatorProject; using System; using System.Collections.Generic; using System.Text; using CalculatorProject.CalculatorFunctions; using CalculatorProject.Models; using System.Reflection; namespace CalculatorProject.Tests { [TestClass()] public class C...
aff508bc5166f104a7085870ac7f571d5a7bb598
C#
mono/coreclr
/src/mscorlib/src/System/Nullable.cs
2.53125
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace System { using System.Globalization; using System.Reflection; using System.Collections.Generic; using System.Runtime; ...
5e0d43f49f2f6c4f1f041e8aefe421a0486664e5
C#
pradeepdhawan/icbc-report-builder
/ReportLib/ReportBuilder/ReportBuilder.cs
2.78125
3
using OfficeOpenXml; using ReportLib.ReportData; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ReportLib { public class ReportBuilder : IReportBuilder { private List<ExcelWorksheet> worksheets; public IExcelTemplate ReportTemp...
56023c3e0343fbdc1353ee08c39edb2881e8440b
C#
sampathnarine/wpf-demos
/Showcase/Diagram Builder/CS/Struct/ConnectorState.cs
2.75
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ConnectorState.cs" company=""> // // </copyright> // <summary> // Customizing the connector appearance using connectorstate class. // </summary> // ---------------------------...
156389d31a27c8b4c41048ab86f2fafef1315458
C#
RafaelSantosBraz/Sistemas-Operacionais
/Scheduler_Project/System_Core/System_Core/Kernel.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; namespace System_Core { public static class Kernel { // cronômetro para controlar o Time Sharing private static Timer clock; // envio dos processos ...
11b83de3a022547ff986d29c2522984c79845f87
C#
kjifw/TAS2015
/Programming/03. OOP/02. DefiningClassesPartII/11. VersionAttribute/VersionAttributeTest.cs
3.625
4
// Problem 11. Version attribute // * Create a [Version] attribute that can be applied to structures, classes, // interfaces, enumerations and methods and holds a version in the format // major.minor (e.g. 2.11). // * Apply the version attribute to a sample class and display its version at runtime. namespace _1...
9bd9821d421e5131e986d2ea86cf5904953edfaf
C#
meridian34/Modul_2_Task_3
/Modul_2_Task_3/Services/Logger.cs
2.828125
3
using System; using Modul_2_Task_3.Model; using Modul_2_Task_3.Model.Enum; using Modul_2_Task_3.Services.Abstract; namespace Modul_2_Task_3.Services { public class Logger : ILoggerService { private readonly IFileService _fileService; private readonly LogConfigData _logConfig; private s...
414dcfcd8893db7ad14c939e519f2ccbf1ac0087
C#
nayutalienx/adboard
/IdentityServer/IdentityServer/ExceptionHandler.cs
2.5625
3
using IdentityServer.Contracts; using IdentityServer.Exceptions; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace IdentityServer { public sealed class ExceptionHandler { private readonly R...
741c4471183689843f81de72f5d438bd12a681df
C#
edwinchukus/sharp_gate_repo
/cod/fishSharp/exception handling/phone.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace fishSharp.exception_handling { public class phone { public void DivideNumber(int a, int b) { try { double an = a / b; ...
98150a6b93ad2201d4e9f6a802942bca46e22e44
C#
thimh/Jaar-2-v2
/MODL3/Van BB/MODL3_Sokoban_Console_refactored/Domain/Maze.cs
3
3
using System; using System.Collections.Generic; namespace Sokoban.Domain { public class Maze { private List<Crate> _crates = new List<Crate>(); public bool IsSolved { get { int numberOfCrates = _crates.Count; int numberOfCratesOn...
d2a39aca7f089e66ac1cfc930cebcc0a54206df2
C#
AdilBayraktar/ReCapProject
/DataAccess/Concrete/EntityFramework/EfCarDal.cs
2.5625
3
using Core.DataAccess.EntityFramework; using DataAccess.Abstracts; using Entities.Concrete; using Entities.DTOs; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace DataAccess.Concrete.EntityFramework { ...
fd8a2475201693059a3d683189fba0507e783e5e
C#
green-fox-academy/arvaianett
/week-06/weekend/Zoo/Zoo/Animal.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace Zoo { public abstract class Animal { public string name; public int age; public Animal(string name) { } public abstract string Greet(); public abstract string WantChild(); ...
9b4ea6444074bc798099fb1899f9ebe760fc8552
C#
Jalsson/SpaceCraft_264
/Assets/RGBColor.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class RGBColor : MonoBehaviour { public Image colorPreviewImage; public Slider[] RGBSliders; public Image[] fillAreaColors; public Image currentPreviewImage; public void ChangeColorSlide...
b1a58b7fa4a438f651322ebf50cb785f52800777
C#
pliekhus/Liekhus.Diagnostics.EventHubListener
/EventHubListener.cs
2.515625
3
using Microsoft.ServiceBus.Messaging; using System; using System.Configuration; using System.Diagnostics; using System.Reflection; using System.Text; namespace Diagnostics.EventHubListener { public class EventHubListener : TraceListener { private EventHubClient _client; public EventHubListene...
ecaa31413ff90f5cc188c1f5f54a9342db807397
C#
EbricenterOrg/Taller
/Taller Mecanico - Modulo Clientes V 3.0/Taller Mecanico/ControlEmpresarial Visual Studio 2010 c#/CONYMA/csTipoServicio.cs
2.640625
3
/*Autor: Cesar Estuardo Flore Escobar *Fecha: 27 Agosto del 2014 *Comentario:*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EBRICENTER { public class csTipoServicio { //Propiedades de Tabla Cliente, campos que se encuentran en la base de datos ...
e52238ec7fe5db3bb1f180fa25e37576baa815fa
C#
fredrhae/automacao_sistema_web
/AutomacaoWeb/AutomacaoWeb/Pages/Pages.cs
2.53125
3
using AutomacaoWeb; using OpenQA.Selenium.Support.PageObjects; namespace AutomacaoWeb { public interface IPage { void Goto(); bool IsAt(); } public abstract class Pages<T> where T : IPage, new() { private static T _instance = default(T); public static T Instance...
c2819bbde97e0faf3a00e912dacececfe72a9894
C#
programmiertier/OperationOverLoad_ConsoleApplication
/OperationOverLoad_ConsoleApplication/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace OperationOverLoad_ConsoleApplication { class Program { static void Main(string[] args) { Rechteck blumenbeet = new Rechteck(10,...
3a1a25e6d71e8cc33b57c59d17afc2d477770269
C#
bluemaplelu/Common
/Common/InMemoryCache.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Caching; using System.Web; namespace QHW.Common { public class InMemoryCache { public static TValue Get<TValue>(string cacheKey) where TValue : class { TValue item = MemoryCache.Defa...
54b946449ef4f474ce5d1a3a4795a8a4bf373a4f
C#
xewelus/GitCharsetConverter
/src/Converter/Ude/UTF8Prober.cs
2.59375
3
namespace Ude.Core { public sealed class UTF8Prober : CharsetProber { public UTF8Prober() { this.numOfMBChar = 0; this.codingSM = new CodingStateMachine(new UTF8SMModel()); this.Reset(); } private static readonly float ONE_CHAR_PROB = 0.50f; private readonly CodingStateMachine codingSM; private ...
22b45e2b112f2030dc52d1d17a47c759ed3da343
C#
biagiopietro/CompanyAPI
/Services/JobService.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Interfaces; using Microsoft.EntityFrameworkCore; using Models; namespace Services { public class JobService : IJobService { private readonly CompanyContext _dbContext; public JobService(Compa...
007ac5110952456ceff3163c8735954d2ff64569
C#
lekhasy/NetHealth
/NetHealth.DataCollector/NetPingResultProducer.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; namespace NetHealth.DataCollector { public class NetPingResultProducer { readonly NetPing netPing; List<NetPingEntry> pingResultBuffer = new List<NetPingEntry>(); public string HostName { get ...
3e5efa9ccbef6072ccb5fae2c1c1efd2c893bfcb
C#
andywhitfield/EasyPlayer
/EasyPlayer/Shell/WindowPersistence.cs
2.546875
3
using System; using System.Linq; using System.Windows; using System.Xml.Linq; using Caliburn.Micro; using EasyPlayer.Persistence; namespace EasyPlayer.Shell { static class WindowPersistence { private static readonly ILog log = LogManager.GetLog(typeof(WindowPersistence)); private const string ...
e35f4c5d41d2f9a96d05fde00fe9896baa0a7f9a
C#
Tinsae/.NET-Projects
/DieRollRandom.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp9 { class Program { static void Main(string[] args) { Random rnd = new Random(); int die1 = 0; int die2 = 0; in...
b6550e7e72e286e56e175e312225d39fc90c3282
C#
zoro83/HomeWork
/SecondStage.OOP/ConsoleApp2test/Program.cs
3.9375
4
using System; namespace Events { class Program { public delegate double ResultOfNumbers(double x, double y); class Calculator { public event ResultOfNumbers NumbersOf; public void EventInvoke(double x, double y) { NumbersOf.Invoke(...
0eb5541dc99f44b4f3af9eaa8acfe73879843b1b
C#
Malcolmnixon/Chompies
/Shared/Chompies.Shared.Tests/SerializeWorld.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; namespace Chompies.Shared.Tests { [TestClass] public class SerializeWorld { [TestMethod] public void SerializeDeserializeTest() { ...
b2a99dcfd1a0f462d6bb95f2d102bbcb62fd71d8
C#
thmihnea/cs-utils
/Collection.cs
3.390625
3
using System; using System.Collections.Generic; namespace Collections { interface Collection<E> { int getSize(); bool isEmpty(); bool contains(object obj); E[] toArray(); bool add(E element); bool remove(object obj); boo...