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
20eb33fd892834cfb63b46d4e436c12d1d5fa639
C#
dejanjaredic/TodoApi
/TodoApi/Controllers/StreamController.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace TodoApi.Controllers { [Route("api/[c...
f62cfc3487a4e544a55471f6263b3c207f995541
C#
nguyenq/tesseract
/src/Tesseract/PixArray.cs
2.84375
3
 using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using Tesseract.Internal; namespace Tesseract { /// <summary> /// Represents an array of <see cref="Pix"/>. /// </summary> public class PixArray : DisposableBase, IEnumerable<Pix> { ...
8bcb297cded21097ebc48ac2c83c626b8927a9e5
C#
krisiivanova24/All4
/pyrvi zadachi/students/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace students { class Program { static void Main(string[] args) { int[] arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] arr2 = Co...
2eeca709a8b53f0d0efe0a6e9fde80b9cdaf9e2a
C#
AnnaCzinege/.NET_SI_assignments
/FirstSIWeek/sortstring/src/SortString/StringSorter.cs
3.1875
3
using System; using System.Collections.Generic; using System.Text; namespace SortString { class StringSorter { public void SortString(string String) { string[] Words = String.Split(' '); Array.Sort(Words); string NewString = string.Join(" ", Words); ...
36543ed3376def6370f29ea6802fe8e93c490e22
C#
Amalanto264/grocery-management
/Wpf_GroceryManagement/Wpf_GroceryManagement/App.xaml.cs
2.671875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Wpf_GroceryManagement { /// <summary> /// Interaction logic for App.xaml /// </...
7572ff921c89af78423cd051a9e8fb47b9694e59
C#
publicjoe62/TimerInSharp
/TimerInSharp/Lambda.cs
3.53125
4
using System; namespace TimerInSharp { public class Lambda { delegate int Transformer(int i); public Lambda() { } public static int lambda1() { cout("lambda1"); Transformer sqr = x => x * x; int result = sqr(4); ...
12c2e74b2fa9aec14162faeecfae4ec6a05e784c
C#
Smalldeviltk/open-ones-edu
/Add2N-Console/SourceCode/26CSharp/26_Nguyễn Văn Quyền/Add2N/Program.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Add2N { class Program { static void Main(string[] args) { Console.WriteLine("\n********** Add2N la chuong trinh cong 2 so nguyen duong lon **********"); Console.W...
aaa62e66e402dbd565bbcc9c8f9689749631ca06
C#
gokhancse/Hospital-Program
/HospitalProgram/HospitalProgram/Form1.cs
2.6875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace HospitalProgram { public partial class Form1 : Form { public Form1() { InitializeCompone...
3faea778aac7cc62f8f2055dc004f794ec63c7df
C#
KKowalewski24/dotnet-learn
/Basics/Basics/ProgrammingGuide/SetOperations.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; namespace Basics.ProgrammingGuide { public class SetOperations { /*------------------------ FIELDS REGION ------------------------*/ private readonly string[] _planets = { "Mercury", "Venus", "Venus", "Earth", "Mars",...
90e1497474a0440c434978ebfc9f730b3b14d672
C#
javaDevp/Touha.Winfrom.Demo
/IQueryable.Test/Queryable.cs
2.921875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace MyQueryable.Test { public class Queryable<T> : IQueryable<T>, IQueryable, IEnumerable<T>, IEnumerable { QueryProvider p...
0aed248ceb28be5db37a3d17bddefe6127bf0ebd
C#
JGrzybowski/ChinesePostman
/ChinskiListonosz.Core.Tests/TestMethodsExtension.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace ChinskiListonosz.Core.Tests { public static class TestMethodsExtension { public static void AssertSetlikeEqual<T>(this IEnumerable<T> collectionA, IEnumerable<T> c...
25d7ebe9b4397a91ce82e255bf72cdfa5fc5c592
C#
1059444127/Xian
/ImageViewer/IPresentationImage.cs
2.515625
3
#region License // Copyright (c) 2011, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This software is licensed under the Open Software License v3.0. // For the complete license, see http://www.clearcanvas.ca/OSLv3.0 #endregion using System; using ClearCanvas.ImageViewer.Comm...
068ddcd1c28945de836604cd1854e2debd8fdfeb
C#
Misteric/ChangeRevision
/ChangeRevision/Program.cs
2.78125
3
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Threading; namespace ChangeRevision { internal class Program { private static void Main(string[] args) { try { var process = ne...
7417982ef434712b632732660ca8a7cdfdd4d651
C#
VadzimPapko/c-sharp-htp
/CSharp.Samples.Generics/Program.cs
3
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Json; namespace CSharp.Samples.Generics { class Program { const string _pathToDumpFolder = @"C:\!academy\Demo"; static void Main(string[] args) { ...
9f8f8034bb20bf9174cb614c26bcad0ad7779fcb
C#
Socyl/CorbittWPFP5
/CorbittWPFP5/Sprocket.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CorbittWPFP5 { public abstract class Sprocket { private int numItems; private int numTeeth; private decimal price; public int NumItems { ...
dcf82857593396ed6b0e18ad042ea0ad08540d4f
C#
alexander-storozhenko/fire-chat-console
/FireStoreChatConsole/FireStoreChatConsole/CommandParser.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FireStoreChatConsole { struct ParseObject { public string Action { get; set; } public List<string> Parameters { get; set; } public List<string> Valu...
4aabf1d19d5b5277f9679b275bad27e4cab1562c
C#
rahulchrty/ParkingLot
/src/ParkingLot.Business/Utils/Slot.cs
2.890625
3
using ParkingLot.BusinessInterfaces; namespace ParkingLot.Business { public class Slot : ISlot { public int GetSlotSize(string command) { int slotSize = 0; if (!string.IsNullOrEmpty(command)) { if (command.IndexOf(' ') > -1) {...
d688a5f0858ee4f94c82cc8e8fcac1d5302fbaf0
C#
Bankst/Tools
/FiestaHook/FiestaInjector/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using EasyHook; using System.Threading; using System.Runtime.Remoting; namespace FiestaInjector { public class FiestaHookInterface : MarshalByRefObject { public void IsInstalled(Int32 InClientPID) { ...
27c661ee0d7e2738a7a51f7620f5b25097e22ad4
C#
jessehallam/RiotApi
/Serialization/Json/SecondsToTimeConverter.cs
3.15625
3
using System; using Newtonsoft.Json; namespace RiotApi.Serialization.Json { public class SecondsToTimeConverter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof (TimeSpan); } public override object ReadJson(JsonReader...
a18703a2347fc7a0ea4f04428514295e36572e9d
C#
Cologler/EasyImgur
/EasyImgur/WebClientFactory.cs
2.59375
3
using System.Net; using EasyImgur.Properties; namespace EasyImgur { public class WebClientFactory { public WebClientFactory() { this.ReloadSetting(); } public IWebProxy Proxy { get; set; } public WebClient Create() { var client = new Web...
fd3776454149142d8cdd1f7f54d66aa2b40030cd
C#
nakuldevcpatel/RulesEvaluator
/SimpleRuleEngine/RuleEngine/Implementation/Specifications/LessThan.cs
2.59375
3
using RuleEngine.Abstracts; using RuleEngine.Abstracts.Specification; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RuleEngine.Implementation.Specifications { public class LessThan : NumericSpecificationExpression { public...
d7547f6798a59284bd113c2afe4489b9db492dbe
C#
pmolijn/P2P-Research
/PacketParser/PacketParser/NetworkServiceMetadata.cs
2.828125
3
namespace PacketParser { using System; public class NetworkServiceMetadata { private PacketParser.ApplicationLayerProtocol applicationLayerProtocol; private TrafficMetadata incomingTraffic; private TrafficMetadata outgoingTraffic; private NetworkHost serverHost; pri...
21bbcdf4ff766dfa9c1dce91da132d47e2f5e161
C#
Sajyd/rgbkit
/src/RGBKit.Providers.Aura/AuraDeviceProvider.cs
2.765625
3
using System.Threading; using System.Collections.Generic; using System.Diagnostics; using AuraServiceLib; using RGBKit.Core; namespace RGBKit.Providers.Aura { /// <summary> /// The Aura device provider /// </summary> class AuraDeviceProvider : IDeviceProvider { /// <summary> /// Th...
05f6509996a7c8f6eba3c2e5d2c4ff43f8dcf752
C#
lunactic/RayTracer
/RayTracer/SceneGraph/Ray.cs
3
3
using RayTracer.Structs; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RayTracer.SceneGraph { public class Ray { #region Properties /// <summary> /// Gets the origin in world space. /// </summary> ...
6db872e645bb148de24bf521fb428bee050d3722
C#
golsa-sakura/DesignPatterns
/Project_Design_Pattern/OrderCommand.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; namespace Project_Design_Pattern { public abstract class OrderCommand { public abstract void Execute(List<Flower> order, Flower newFlower, FlowerShop shop); } // Concrete Commands public class Crea...
8a939c28fb8a025a31ee40d29395f37a5c29ef34
C#
shendongnian/download4
/first_version_download2/54119-3235501-6711790-2.cs
3.21875
3
public class Prop { public virtual void Shoot(params IProjectile[] projectiles) { ... } } public class Car : Prop { public override void Shoot(params IProjectile[] projectiles) { foreach (var p in projectiles) { if (!(p is IPaintBall)) { throw new Argu...
7e862365e15ac8ea501441af3b657ec6e3d1436e
C#
johann-gambolputty/robotbastards
/Source/Rb.World/Services/LightingService.cs
2.875
3
using System; using System.Collections.Generic; using Rb.Rendering.Interfaces.Objects.Lights; namespace Rb.World.Services { /// <summary> /// Manages lighting in a scene /// </summary> [Serializable] public class LightingService : ILightingService, ISceneObject { #region ILightingService Members ...
5d35cc1d099905a013caf51b5d3b78f35d9b921e
C#
myfamilycooks/recipemanager
/src/BistroFiftyTwo.Server/Services/UserAccountService.cs
2.59375
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using BistroFiftyTwo.Server.Entities; using BistroFiftyTwo.Server.Repositories; namespace BistroFiftyTwo.Server.Services { public class UserAccountService : IUserAccountService, IDisposable { public UserAccountService(IUserA...
67f65bc684e6c63ca0f0af14a4bcee4e7e3550d4
C#
tlenka/GamePhysic_Unity3D
/Assets/CyberSoldier 1/Elevator.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Elevator : MonoBehaviour { Vector3 startPos; bool shouldGoUp; private void Awake() { startPos = transform.position; } private void OnTriggerStay(Collider other) { shouldGoUp = true...
c9a8f9ba2008ca76e64d763599697ee932dd64a2
C#
Druffel12/Unity-1
/Assets/Scripts/Pick Ups/Growth.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Growth : MonoBehaviour { public float scaleFactor = 2.0f; public float timeToGrow = 3.0f; void OnTriggerEnter(Collider other) { var playerController = other.GetComponent<BallControl>(); if (o...
adf53f577b012453f43b2abbc9fa2c0580b64859
C#
ErtyHackward/sharpdc
/SharpDc/Collections/HubCollection.cs
2.984375
3
// ------------------------------------------------------------- // SharpDc project // written by Vladislav Pozdnyakov (hackward@gmail.com) 2012-2013 // licensed under the LGPL // ------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; ...
4a9aee5372184c893e95ae8938717cf59460dc81
C#
ijrussell/FunctionalCSharp2018
/Linqpad/equality-fsharp.linq
2.78125
3
<Query Kind="FSharpProgram" /> type Currency = Currency of symbol:string * exchangeRate:decimal let usd = Currency ("USD", 0.8m) let usd2 = Currency ("USD", 0.8m) let gbp = Currency ("GBP", 1.0m) (usd = usd2).Dump() (usd = gbp).Dump() type CustomerName = { FirstName: string MiddleName: string option Las...
9f422a3402f4bdfa1986e5a646100c9f3830a92e
C#
korea-doko/Evolve
/Evolve Project/Assets/Scripts/Play/Input/InputManager.cs
2.75
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public enum InputDir { East, West, South, North, None } public class InputManager : MonoBehaviour, IManager { public Vector3 m_buttonDownPos; public float m_screenTouchSensitivity; // 얼마나 이동해야 실제 ...
94dd5e81c33d47732bf3b36171241d83f874942e
C#
MobileDevNik/Assignment
/AssignmentApi/Controllers/EmployeesController.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using AssignmentApi.Models; using AssignmentApi.Data; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Authorization; namespace As...
eefbb4de86749a57fd4b8b271e5a909ab79c78b6
C#
dan990308/StrukturData
/TwoWayMergeSort/twoWayMergeSort/twoWayMergeSort/Program.cs
3.265625
3
/* * Created by SharpDevelop. * User: Danang Saputra * Date: 05/12/2018 * Time: 08.11 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Merge_sort { class Program { ...
f23f9f1059902987f76c8101fdb3418fb669dc7b
C#
mmcsOptimizingCompilers2016/pile
/OptimizingCompilers2016/Library/DepthSpanningTree/DepthSpanningTree.cs
3.09375
3
using System; using System.Collections.Generic; using QuickGraph; using QuickGraph.Graphviz; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OptimizingCompilers2016.Library { public class DepthSpanningTree { public HashSet<BaseBlock> Visited { get; } public Dictionary...
c1470f88eafec39a09f8c02fb48eb1febf238615
C#
alibeirami/MNNLDotNet
/Src/Base/ConnectionLayer/LinearWeightLayer.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using MNNL.Connection; using MNNL.Node; namespace MNNL.ConnectionLayer { public class LinearWeightLayer : IConnectionLayer { public List<INode> InputNodes { get; private set; } public List<INode> OutputNodes { get; private set;...
6bb690a5eee2102bcf20870fab9a163ccd2a7a14
C#
witters9516/C-Sharp-Projects
/Class_Projects/CSC 253/Dungeon Crawler/DungeonCrawl/DungeonCrawl/Form1.cs
2.890625
3
/** * 11/11/2017 * CSC 253 * Shawn Witter, Tanisha Robertson, Dexter Wilder, William Crockett * This is the Dungeon Crawl Game for Part 4. */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threadi...
782641720b02d4e082c66a43fcf640dcf91379f7
C#
Ansheet/MVC-shoppingcart
/OnlineShoppingCart/Controllers/HomeController.cs
2.515625
3
using OnlineShoppingCart.Models.Home; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace OnlineShoppingCart.Controllers { public class HomeController : Controller { HomeIndexViewModel hivm; public HomeController() { ...
764fdb5f688da3ecf39971d3fdf54a927bf77430
C#
meshudn/Software-Service-Engineering
/Marshalling/Task3-Template/Client.cs
3.203125
3
using System; using System.Threading.Tasks; namespace Task3 { public class Client { private readonly Middleware _middleware; public Client(Middleware middleware) { _middleware = middleware; } public async Task Print(string address, double d) { ...
367ced60a41591a54c7084a53436b4bd33a87c93
C#
ayesha1906/Csharp_Advanced
/EventsAndDelegates/EventsAndDelegates/VideoEncoder.cs
3.34375
3
using System; using System.Threading; namespace EventsAndDelegates { public class VideoEventArgs: EventArgs { public Video Video { get; set; } } public class VideoEncoder { // 1.Define delegate // 2.Define an event based on that delegate // 3.Raise the event ...
47a6b52192bf16e769930c193172d57d2a5c67dc
C#
Azmeykov/algorithms-and-datastructures
/HelloWorld/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HelloWorld { class Program { private static int i; static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLi...
99b974b1a00a0ef6d550d6a56e6688aa3d258fc3
C#
NajemSeddiqi/MiniNeuralNet
/MiniNeuralNet/SheetSpecifierWindow.xaml.cs
2.578125
3
using MiniNeuralNet.Helpers; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; namespace MiniNeuralNet { /// <summary> /// Interaction logic for SheetSpecifierWindow.xaml /// </summary> public partial class SheetSpecifierWindow : Window { private List<s...
d5777eacff2c6b522102a317183552efe98461dc
C#
orlandoacosta99/programacion_c-
/ejemplos/recursos 1/MegaCurso.NET17/GestorArchivos/GestorArchivos/fMain.cs
2.609375
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 GestorArchivos { public partial class fMain : Form { private FileManager _Man...
e9c95b56f4561a92ea24e3b1623f4d6c0297cb3c
C#
Nonameghost/UnityWebcamPhotobooth
/Assets/ScreenshotCapture.cs
2.578125
3
using System.IO; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScreenshotCapture : MonoBehaviour { public Camera captureCamera; public RenderTexture renderTexture; public void TakeScreenshot() { StartCoroutine (CaptureScreenshot ()); } IEnumerator CaptureScreen...
e6d495dbd34d294ca6c1b7476d746dd757b47866
C#
traderjeffb/CSharpLibrary
/1.00-if_else_Practice/1.02_Using_Foreach_Loops_with_Arrays/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1._02_Using_Foreach_Loops_with_Arrays { class Program { static void Main(string[] args) { //int[] numbers = { 4, 5, 6, 1, 2, 3, -2, -1, 0 }; /...
b097183c5e3fcfe65128aa53442ea410eb76c1fb
C#
jterhorst/TacoDemoMobile
/HttpClientDemo/TacosPage.cs
2.59375
3
using System; using Xamarin.Forms; using System.Diagnostics; namespace TacoDemo { public class TacosPage : ContentPage { public NavigationPage parentNavigation; public ListView listView = new ListView(); public TacosPage () { var refreshItem = new ToolbarItem { Name = "Refresh", Command = new Co...
63a51512cdf5c3b6e1b899157560a24847b1a23f
C#
kirobame/Workshop-Tool
/Assets/Scripts/Editor/ShapeRecognition/Tangent.cs
3.640625
4
public struct Tangent { public Tangent(int first, int second) { this.first = first; this.second = second; } private int first, second; public bool TryGetFirst(out int index) { if (first != -1) { index = first; return true;...
37da278d8f152adb7ddcaa85f228bc290516101f
C#
shendongnian/download4
/code10/1710867-49301822-169034971-2.cs
2.875
3
public static class Utilities { public static string encryptString(this string str) { System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] data = System.Text.Encoding.ASCII.GetBytes(str); ...
a4940b78d82568315465f4147fd2c3c3dcdc0331
C#
chokudai/TopCoder
/OldSource/InfiniteLab.cs
3.15625
3
using System; using System.Collections; using System.Collections.Generic; using System.Text; public class InfiniteLab { public long getDistance(string[] map, long r1, int c1, long r2, int c2) { } // BEGIN CUT HERE public void run_test(int Case) { if ((Case == -1) || (Case == 0)) test_case_0(); if ((C...
5391840a2c40cecbe24751326b68a2d1dc92203d
C#
jybyun/a
/Question1_CS/Question1/CardUtility.cs
3.25
3
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; class CardUtility { public static string passwordEncryption_SHA256(string strInput) { byte[] hashValue; byte[] byteInput = System.Text.Encoding.UTF8.GetBytes(strInput); string strOutpu...
da053c27aa8bfd3f14211317ee04d220d6b47a97
C#
yahyagungorur/MarsRover
/MarsRover/Managers/RoverManager.cs
3.46875
3
using MarsRover.Enum; using MarsRover.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MarsRover.Managers { public static class RoverManager { public static void Execute(Rover rover, Plateau plateau,string instruction...
3492d51e2a0822e13f42d0369745b3fe5f0396e6
C#
conquerorrrr/RunUO-Ulmeta
/Scripts/Utilities/MethodUtilities.cs
3.0625
3
using System; using System.Collections.Generic; using System.Net; using Server; namespace Genesis.Utilities { /// <summary> /// Group of utility methods for general purpose usage /// </summary> public sealed class MethodUtilities { #region +static string FormatLongTimeSpan( TimeSpan ) /// <summary> /// Form...
40bd89ab87fa51149c77766d4160fdc8dd4c4e5b
C#
androidZ200/Drawing-Rotating
/Drawing Rotating/Circle.cs
3.765625
4
using System; using System.Drawing; namespace Drawing_Rotating { public class Circle { public float Radius { get; set; } public float StartAngle { get; set; } public float CurrentAngle { get; set; } public float SpeedAngle { get; set; } public Circle(float Radius, floa...
7e312641ec19f37bc4980dd28251550038f47af8
C#
klejeune/hugsa
/src/Hugsa/Hugsa.Core/Engine/WordTagging/Dictionaries/VerbDictionary.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Hugsa.Core.Engine.Words; using Hugsa.Core.Engine.Words.Attributes; using Hugsa.Core.Engine.WordTagging; namespace Hugsa.Core.Engine.Dictionaries { class VerbDictionary : IDictionary { ...
cd885b56069fb33efdaa46cd7b85aee363c28385
C#
bencematyasi/WebShopAppBackEnd
/WepShopApp/Controllers/ProductsController.cs
2.796875
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using WebShopApp.Core.Application_Service.Service; using WebShopApp.Core.Entity; namespace WepShopApp.Controllers { [Route("api/[controller]")] [ApiController] ...
3d8a0dfae7d693388f9b0015412ae76b880ef2d6
C#
paucls/katas
/20190915-csharp-dependency-breaking-katas/DependencyBreakingKatas/B/MarketingCampaign.cs
2.703125
3
using System; namespace Dependencies.B { public class MarketingCampaign { public bool IsActive() { return MilliSeconds() % 2 == 0; } protected virtual long MilliSeconds() { return (long) DateTime.Now.TimeOfDay.TotalMilliseconds; } ...
8a9805882ff2882768d9e99c9b179d3a8952e7ee
C#
FlorRadesca/repo1
/Figuras/Rectangulo.cs
2.90625
3
using System; namespace Classes{ public class Rectangulo : Forma { public int Base {get; set;} public int Altura {get; set;} public Rectangulo (int Base, int Altura) { this.Base = Base; this.Altura = Altura; } public overrid...
f427043d8c4d55e40e8f74dbe5d71bd50849b64c
C#
ismarfernandes/hotel-webapi
/src/Hotel.Data/Seeds/RoomSeed.cs
2.59375
3
using System; using Hotel.Data.Interfaces; using Hotel.Domain.Entities; using Microsoft.EntityFrameworkCore; namespace Hotel.Data.Seeds { public class RoomSeed : ISeed { public void Populate(ModelBuilder modelBuilder) { var lastRoom = new Room(1) { Act...
4139caed743871a1aad34c56c467013d42010698
C#
javedahmadkhan/DemoWebAPI
/DemoWebAPIEntities/DataContext/DemoDBContext.cs
2.53125
3
// // Copyright: Copyright (c) // // Description: Demo DB Context Class // // Project: // // Author: Accenture // // Created Date: // using Microsoft.EntityFrameworkCore; namespace Demo.Entities.DataContext { /// <summary> /// This class is used for performing Database context methods /// </summar...
8a63a7b9cb4510ee1303606c224f11b90094b341
C#
sergioSilva94/exercises
/areSimilar.cs
3.765625
4
/*Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays. Given two arrays a and b, check whether they are similar.*/ bool areSimilar(int[] a, int[] b) { int index1 = -1; int index2 = -1; for(int i = 0; i < a.Length; i++) { ...
4cbcf07fe99b5a9d2aec319780dcd482b0688484
C#
Useless-Wizard/Zombie-Prototype
/Test3/Assets/Scripts/Model/Common/Plasma.cs
2.640625
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Plasma : MonoBehaviour { public int maxPlasma = 100; private int curPlasma = 100; public Slider plasmaBar; void Start() { this.curPlasma = this.maxPlasma; } void Update() { if (this.plasmaBar != null) { this.plasmaBar...
ce99b8882ffb1cf5d271ce638647959a89f20647
C#
Blagovest-Todorov/LegendaryFarming
/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; namespace TasksAgain { class Program { static void Main(string[] args) { Dictionary<string, int> materials = new Dictionary<string, int>() { {"shards", 0}, {"fragments", 0}, ...
c8bef60885c0272c57b5c37108f1b04600f234fc
C#
busterwood/Serverless
/Shared.CommandLine/InProcessPipe.cs
2.703125
3
using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace BusterWood.CommandLine { static class InProcessPipe { [DllImport("kernel32.dll")] static extern bool CreatePipe(out IntPtr hRea...
9bb5e4805694d5917b5c5621fca27f24258bd926
C#
fga-eps-mds/2018.1-Reabilitacao-Motora
/Reabilitacao-Motora/Assets/Scripts/Graphs/Label/Label Paciente/CreateLabelPatient.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Linq; using pontosrotulopaciente; /** * Descrever aqui o que essa classe realiza. */ public class CreateLabelPatient : MonoBehaviour { [SerializeField] protected GameObject labelPrefab; string name...
96c89a45f4ddc29d242eb5fb73f2e85b709a734c
C#
takytank/KyoProLib
/projects/TakyTank.KyoProLib.CSharp.V11/SlidingWindowAggregation.cs
2.90625
3
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; namespace TakyTank.KyoProLib.CSharp.V11 { public class SlidingWindowAggregation<T> { private readonly Stack<T> frontAggregates_; private readonly Stack<T> backValues_; private readonly Func<T, ...
ffb3bfb3d3396517a14e229e4d27a53ef39727b2
C#
AdaptiveStep/PizzaPalatsetG1
/DelgruppC - Kassörska/Cashier/Cashier/OrdersOnGoing.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* Autor: @ Grupp 1 * Version @1.0 * jonathan.harlin@icloud.com */ namespace Cashier { /*Denna klass hanterar de pågående ordrarna, den kan lägga till, ta bort samt skriva ut pågående ord...
63e5821f6572e058a141b1137f3e2d29e64bc15e
C#
anderbakk/Knowit-julekalender
/Luke2.cs
3.015625
3
using System; using System.Globalization; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace Knowit_julekalender { public class Luke2 { public float HentLøsning() { var fileContent = File.ReadAllLines("Filer\\Luke2.txt"); var maxEarning...
96895dcab274eb113206caf9b29f49a8b4b2676b
C#
kAmIkAdzE9/InCamp_Test_Task
/InCamp_Test_Task/InCamp_Test_Task/CSVManager.cs
3.328125
3
using Microsoft.VisualBasic.FileIO; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InCamp_Test_Task { class CSVManager { public static List<Employee> readCSV(string path, string delimeter) { ...
55e4561be6200df0d6d4e878fdb667b92aef3bcf
C#
riyanhax/Maui
/src/Core/Maui.Core/Configuration/ConfigurationBase.cs
2.828125
3
using System.Linq; using Blade.Collections; using System; using System.Globalization; namespace Maui.Configuration { public abstract class ConfigurationBase { private string myScope = null; protected ConfigurationSC myConfigSC = null; protected ConfigurationBase( string ns ...
ec68f3f1f43db3b3910e48894ca73b2997e7b13e
C#
exura/Case1-Copy-of-Icy-Towers
/Copy Of Icy Towers/Assets/Scripts/OldScripts/PlayerControl.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerControl : MonoBehaviour { [SerializeField] private GameControl gameControl; public float gravity = -9.8f; public float playerSpeed = 5f; public bool grounded = false; public Transform groundCheck; Vector2 ground...
75b2574ce0a712aea61360319fc1e940f30c7706
C#
PhilipDaniels/BassUtils
/BassUtils/Data/DbDataReaderExtensions.cs
3.421875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Threading.Tasks; using Dawn; namespace BassUtils.Data { /// <summary> /// Extensions to the <seealso cref="DbDataReader"/> class. /// This class allows us to make asynchronous calls which a...
85434ceef589b87f14504fbf8da2e90a8848b714
C#
ravikantzyd/LINQ_Demo
/LINQ_Contains/Program.cs
3.578125
4
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace LINQ_Contains { class Program { static void Main(string[] args) { List<Student> students = new List<Student>() { new Student(){ Id = 1, Na...
2d43e6aa0b1e3e732a8e26bb54cd4205f1cc8367
C#
OneBitSoftware/Socket.IO.NET35
/tests/Unit/TaskTests.cs
2.921875
3
using Socket.IO.NET35.Tasks; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Xunit; namespace Unit { public class TaskTests { Queue<TaskWorker> workerQueue = new Queue<TaskWorker>(); /// <summary...
0fe59d0f4998314a327d06de61491afccca3462e
C#
pct201/migrationtest
/eRims_SonicWeb/App_Code/SONIC_DAL/Project_Management/clsEPM_Schedule.cs
2.53125
3
using System; using System.Data; using Microsoft.Practices.EnterpriseLibrary.Data; using System.Data.Common; namespace ERIMS.DAL { /// <summary> /// Data access class for EPM_Schedule table. /// </summary> public sealed class clsEPM_Schedule { #region Private variables used to...
a28a13065873785a0413336d34370163298c9452
C#
SmiljanaZivolic/XWS-FTN
/Firma/Common/DAO.cs
2.65625
3
using Common.Model; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class DAO { public static void UpdateStanjeRacuna(string racun, double stanje) { using (SqlConnection connection = new...
1e953489503e71576a837f4f5da4d0655650b0ab
C#
maxim-pervushin/FitCalc
/FitCalculator/Source/Max Weight/MaxWeightData.cs
2.5625
3
using System; using System.Runtime.Serialization; namespace FitCalculator { [DataContract] public class MaxWeightData { [DataMember] public float Weight; [DataMember] public int Repeats; public MaxWeightData () { } public override string ToString () { return string.Format ("{0} reps. - {1:0...
2b7f52f17296843a0fa23fcb30c6208b6bb635a5
C#
xiaoxie1116/auroralove_shop
/auroralove_shop/AL.Common/AL.Common.Tools/LocalAppsetting.cs
2.671875
3
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AL.Common.Tools { /// <summary> /// 本地磁盘appsetting操作类 /// </summary> public static class LocalAppset...
90dfe1f5bcc2ea7cc875e750afab428259255ea1
C#
kasim1103/MicroServiceWebAPIAngular
/LeaveRequestAngular/LeaveRequestAngular.Common/Repository/Master/RegencyRepository.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LeaveRequestWebAPI.DataAccess.Model; using LeaveRequestWebAPI.DataAccess.Param; using LeaveRequestWebAPI.DataAccess.Context; namespace LeaveRequestWebAPI.Common.Repository.Master { public clas...
76605b737894f28bc5819790ccffe4ecd7a8d110
C#
henrikfroehling/Trakt.NET
/Source/Lib/Trakt.NET/Objects/Get/Shows/Json/Reader/ShowAirsObjectJsonReader.cs
2.515625
3
namespace TraktNet.Objects.Get.Shows.Json.Reader { using Newtonsoft.Json; using Objects.Json; using System.Threading; using System.Threading.Tasks; internal class ShowAirsObjectJsonReader : AObjectJsonReader<ITraktShowAirs> { public override async Task<ITraktShowAirs> ReadObjectAsync(J...
322a6267e1ba33b6e1615b3210b2c4105ba04370
C#
shendongnian/download4
/first_version_download2/203031-15616161-38031723-2.cs
3.046875
3
using(SqlConnection cn = GetConnection()) { cn.Open(); SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM Customers", cn); DataTable dt = new DataTable(); da.Fill(dt); // At this point dt is filled with datarows extracted from the database in no particular order...
04fe5c86333e6bd091bb4df1fcc41a605642e6d6
C#
CaKlassen/Titanium
/Source/Titanium/Titanium/Titanium/Utilities/SaveUtils.cs
2.734375
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Storage; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml.Serialization; using Titanium.Entities; namespace Titanium.Utilities { public s...
59cbc886adfdb903d595d096b27d6d4508157e40
C#
TilmannBach/sipsorcery-fork
/SIPSorcery.SIP.App/DLR/ScriptLoader.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using log4net; using SIPSorcery.Sys; using Microsoft.Scripting.Hosting; using Microsoft.Scripting; namespace SIPSorcery.SIP.App { /// <summary> /// Loads a script file, compiles it a...
e0bc5bfc278d72bc47f3a7c2c3238dff564258b8
C#
ersanne/ELM-MessageProcessing
/Project/ELMPrototype.Tests/bdo/EmailMessageTest.cs
2.875
3
using System; using System.Linq; using ELMPrototype.bdo; using ELMPrototype.exceptions; using NUnit.Framework; namespace ELMPrototype.Tests { [TestFixture] public class EmailMessageTest { [Test] public void ValidMessageTest() { var rawMessage = new RawMessage("E12345678...
50aa0e7c72cf905dddba92ad6c8a4df3860531de
C#
CaveSystems/cave-io
/Cave.IO/IRingBuffer.cs
3.09375
3
using System.Collections.Generic; namespace Cave.IO; #nullable enable /// <summary>Provides a ring buffer interface for ring buffer implementations.</summary> /// <typeparam name="TValue">Value type.</typeparam> public interface IRingBuffer<TValue> : IRingBufferCursor<TValue> { #region Public Properties //...
476448b789501e88cb825b6901e4eae54e720286
C#
shendongnian/download4
/code6/1089849-28452527-83541395-2.cs
2.65625
3
public abstract class Options{}; public class CopyOptions : Options { } public abstract class Task<T> where T : Options { public string ID {get; set;} public string Name {get; set;} public T Options { get; set; } public abstract void Execute(); } public class...
f913329bd4b70f88fda42b0696f53e5046264312
C#
toyomoly/codevs4-rank52
/codevs4/_old.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace codevs4 { class Unit { public int id; public int x; public int y; public int hp; public int type; public int status; ...
ade7c59fbe1f55ea77eac5d7a7acddd4d7156561
C#
GameJam2016/GameJam2016
/Assets/Joe's Stuff/Scripts/EnemySpawner.cs
2.625
3
using UnityEngine; using System.Collections; [System.Serializable] public class spawnChoice { [SerializeField] public bool spawn; [SerializeField] public int spawnNumber; [SerializeField] public float spawnTime; [SerializeField] public attribute spawnAttribute; [SerializeField] public GameObject [...
1301f338f9623be2e12cf233aa2fff1fb06a166f
C#
buketk/ReCapProject
/Business/Concrete/BrandManager.cs
2.984375
3
using Business.Abstract; using DataAccess.Abstract; using Entities.Concrete; using System; using System.Collections.Generic; using System.Text; namespace Business.Concrete { public class BrandManager : IBrandService { IBrandDal _brandDal; public BrandManager(IBrandDal brandDal) { ...
6fb1e129af1c366e513a815cb6c619fc886099dd
C#
goblinrun/card-game
/Card Games - Initial Solution/GameObjects/Hand.cs
3.765625
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GameObjects { /// <summary> /// Hold the playing cards that have been dealt to a player during a card game. /// </summary> public class Hand : IEnume...
86daa1ede51166ea3e6f9e720c314c7ab853aa13
C#
shlior7/facebook-desktop-app
/BasicFacebookFeatures/StyledButton.cs
2.6875
3
using System; using System.Drawing; using System.Windows.Forms; using System.Drawing.Drawing2D; namespace BasicFacebookFeatures { public class StyledButton : Button { private Color m_clearColor; private Color m_MainColor = Color.DarkSalmon; private Color m_Hovercolor = Color.DarkSalmon...
ccdfa28808adc65eaab7dac4d9fd3cb935dae8cb
C#
mdschweda/globwatch
/src/GlobWatch/Internal/App.cs
3.046875
3
using Microsoft.Extensions.CommandLineUtils; namespace GlobWatch.Internal { /// <summary> /// Encapsulates the console application. /// </summary> internal static class App { /// <summary> /// Gets the current console application. /// </summary> internal s...
d5e6e9a346bece2ac691ef1de8fd64a9d458347b
C#
St0wy/Modules-POO-CSharp
/WFNiche/WFNiche/Dog.cs
3.4375
3
/* * Project : WFNiche * Author : Fabian Huber * Description : Dog with a size and a name that can bark * Version : 1.0 * Date : 08.11.2018 */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WFNiche { [Serializable] public class D...
4e9f976833e404d858714a8cc730686a9d9105a4
C#
cookiesack/SoftUni-Homework
/C#/Data Structures/Stacks and Queues/06. Linked Stack Tests/LinkedStackTests.cs
3.234375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using _05.Linked_Stack; namespace _08.Linked_Stack_Tests { [TestClass] public class LinkedStackTests { [TestMethod] public void BasicPushPopTest() { LinkedStack<int> stack = new LinkedStack<in...
9aab5f319c3c3047fc19ed873046b8428cf0a709
C#
lukaskuzn/PWBFuelBalancer
/GuiUtils.cs
2.546875
3
using System; using UnityEngine; namespace PWBFuelBalancer { public static class GuiUtils { private static GUIStyle _yellowOnHover; public static GUIStyle YellowOnHover { get { if (_yellowOnHover != null) return _yellowOnHover; Texture2D t = new Texture2D(1, 1); t.S...
f18692dbbd82d2dc4087b97cac6d5960a3d2c49a
C#
Ghoul649/Neural.Net
/Neural.Net.Lib/ModelBuilder.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NeuralNetLib { public class ModelBuilder { private int inputSize; private List<LayerInfo> layerInfos = new List<LayerInfo>(); public ModelBuilder(int inputSize)...
f70924d178fed804e002c24851514898f1387d86
C#
902Software/nineotwo.ldap
/nineotwo.ldap.core/Enum/User/Organization.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; namespace nineotwo.ldap.core.Enum.User { public enum OrganizationEnum { TITLE = 0, DEPARTMENT = 1, COMPANY = 2, MANAGER = 3 } public static class OrganizationEnumExtensions { public static s...
2b2ce1d9f6da8f4b8974ce5462f8aede67dda608
C#
cc-setwo/TestTaskSpaceInvaders2021
/SpaceInvaders/Assets/Scripts/Test2.cs
2.875
3
using System; using System.Text.RegularExpressions; using UnityEngine; namespace SpaceInvaders.Game { public class Test2 : MonoBehaviour { public void Start() { Debug.LogError(Solution("00-44 48 5555 8361")); } public string Solution(string phoneNumber) { ...
cb7127211d2eefc48978709394cec31b649d1b32
C#
shendongnian/download4
/code2/369090-7983949-17762548-2.cs
3.546875
4
class Program { static void Main(string[] args) { LoadMarkers(); var location = new Point(45, 45); Marker top = markerAtLocation(new Point(location.X, location.Y + 1)); if (top == null) Console.WriteLine("Top is null"); ...
c2de379922929ccb5dc9d21be78b15bffab48ebf
C#
henk-sandoval/class.cs
/ConectarBDClase.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Ob.Web.Data; using System.Data; using System.Data.SqlClient; using System.Net.Mail; using System.Net; using System.Text; using System.Configuration; class Conexion { //henk public static SqlConnection SqlCon; ...