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
0eb64c9a4f205999f7a1d8fc3ac9de3b20ebc9b5
C#
Dotneteer/Seemplest
/Seemplest.BngMvc.Core/Components/Column.cs
3.0625
3
using System; using System.Collections.Generic; using Seemplest.BngMvc.Core.Infrastructure; namespace Seemplest.BngMvc.Core.Components { /// <summary> /// This class represents a Bootstrap column component /// </summary> public class Column: HtmlElementBase<Column>, IColumnWidth { /// <sum...
80c8ae75c98f192938b7192cd15853d8447cdb36
C#
Pathoschild/smapi-mod-dump
/source/Farm Type Manager/FarmTypeManager/Utility/TryGetTypes.cs
2.734375
3
/************************************************* ** ** You're viewing a file in the SMAPI mod dump, which contains a copy of every open-source SMAPI mod ** for queries and analysis. ** ** This is *not* the original file, and not necessarily the latest version. ** Source repository: https://github.com/Esca-MMC/FarmTyp...
d0bbafdd674f612d79cb87f4cb4d9f79cbfa9ff8
C#
Syoxx/Ruthless-Merchant
/Ruthless Merchant/Assets/Advanced Foliage Shader v4/Scripts/TexturePostprocessor AFS/TexturePostprocessor AFS.cs
2.671875
3
// AFS TEXTURPOSTPROCESSOR // textures have to be marked as readable #if UNITY_EDITOR using System; using System.IO; using UnityEditor; using UnityEngine; internal class AFSTexturePostprocessor : AssetPostprocessor { public const string SpecSuffix = "_AfsNTR"; public const string SpecSuffixNew = "_AfsNTS"; p...
3ad91f077f3227f69eaefdd044902cecb5572121
C#
antsteyer/JCDecaux-VelibGateway
/VelibGateway-ClientConsole/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VelibGateway_ClientConsole.VelibServiceReference; namespace VelibGateway_ClientConsole { class Program { static void Main(string[] args) { ServiceClient client = new ServiceClien...
ff07658d618fa5cf17c7f0c2a05aba8768a786b3
C#
tayaverba/CarWebApiTestTask
/CarWebApi/Models/CarRepository.cs
3.03125
3
using Microsoft.Extensions.Options; using MongoDB.Bson; using MongoDB.Driver; using MongoDB.Driver.GridFS; using System; using System.Collections.Generic; namespace CarWebApi.Models { public class CarRepository : IRepository { IGridFSBucket gridFS; // файловое хранилище IMongoCollection<Car...
2fd0fbe5626a65977b9863176d8754432b58c217
C#
Araym87/AdventOfCode
/AdventOfCode2016/Day5/ThreadManagerFirst.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; namespace AdventOfCode2016.Day5 { public class ThreadManagerFirst : ThreadManager { #region Fields private readonly Dictionary<int, char> foundedLetters; #endregion #region Constructor public ThreadM...
7e3da59201bb8fbc0154595027af795f8c3977fd
C#
KovalenkoKirill/DynamicFormatter
/DynamicFormatter/DynamicFormatter/Serializers/StrongTypeFormatter.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using static DynamicFormatter.Extentions.TypeFinder; namespace DynamicFormatter.Serializers { public class StrongTypeFormatter { Dictionary<int, Type> types = new Dictionary<int, Type>(); public byte...
e5b4dbac44616be6ec5cb3e4401cbc3dad672620
C#
shendongnian/download4
/first_version_download2/110347-7614012-16856388-2.cs
3
3
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class RequireAtLeastOneAttribute: ValidationAttribute { /// <summary> /// This identifier is used to group properties together. /// Pick a number and assign it to each of the properties /// among which you wish to require one. /// </summa...
d60afafee055f4f1ad1526654d63de7319fc54e2
C#
JaydenButler/SurvivalGame
/Assets/Scripts/Structs/InventoryItem.cs
2.75
3
using Managers; using UnityEditor; using UnityEngine; namespace Structs { public class InventoryItem { private Item itemInfo; private int quantity; public InventoryItem(Item item) { itemInfo = item; quantity = 1; InventoryManager.Instance.Add...
ee3d15635e558039d7cc8e31271018b172b57633
C#
OysteinBruin/PlcCom
/PlcCom/PlcComUI/Converters/BooleanToWindowStateConverter.cs
2.828125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; namespace PlcComUI.Converters { public class BooleanToWindowStateConverter : IValueConverter { public WindowS...
986c7743f0dd08ae1630c5f3de0384a70b83cbfe
C#
onuchin73/morzeCode
/Program.cs
3.609375
4
using System; using System.Collections.Generic; namespace morzeCode { public class Program { public static IDictionary<string, string> MorseCodeDictionary = new Dictionary<string, string>() { { ".-", "A"}, { "-...", "B"},{ "-.-.", "C"},{ "-..", "D"}, { ".", "E"}, { "..-.", "F"}...
2e856023dd14507219e3ea485d3f6f8272b547fd
C#
mchang16/SwampHacks-2017
/SwampHacks Project/Assets/Scripts/SecondUI.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SecondUI : MonoBehaviour { int score = 0; public Text scoreText; //"Text" tells you what type, like this will only accessing Text Objects. // Use this for initialization void Start () { } // U...
3d56fe2e76e964c1b61b9d0bb03be7bf375926c9
C#
Kaelel/TitanBot
/TitanBot2Core/Services/Database/Extensions/CmdPermExtensions.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TitanBot2.Services.Database.Tables; namespace TitanBot2.Services.Database.Extensions { public class CmdPermExtensions : DatabaseExtension<CmdPerm> { public CmdPermExtensions(BotDatabase db) : base(db...
ae95a9e95b7bda8a6259111543f11959440cf891
C#
yael-renous/ZenLiving
/FengShuiProject/Node.cs
2.96875
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; namespace FengShuiProject { class Node { public Room _room { get; set; } private ...
018f8789c84b48d9c8f1b9a20f663a3ebdcc7829
C#
gethighsamurai/Unity-C-stuff
/Assets/Scripts/Generic Components/FlashColour.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FlashColour : MonoBehaviour { [SerializeField] private SpriteRenderer mySprite; [SerializeField] private Color flashColour; [SerializeField] private int numberOfFlashes; [SerializeField] private float flashDel...
f9c02054a294755d801852c9020fb22dfac76ecf
C#
Layty/wiki
/App/ConsoleApplication1/ConsoleApplication1/Program.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Windows.Forms; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApplication1 { class Program { private static FileStrea...
bb3e6bb94602e49e8f15e05a12c9534c57623b5a
C#
PeterZzzzz/FoodEasyGo
/FoodEasyGoIOS_Unity2017/Assets/__Scripts/Config/Extensions.cs
2.53125
3
using UnityEngine; public static class Extensions { public static Color AppColor1 () { return new Color (255f / 255f, 153f / 255f, 0f, 1f); } public static Color AppColor2 () { return new Color (255f / 255f, 83f / 255f, 13f / 255f, 1f); } public static Color AppColor3 () { ...
dd483e674fbd3b02362a8b94446157914989b0e7
C#
zz155666/QueryExcel
/wpos.components/UserDefined/Button/RibbonColor.cs
2.921875
3
using System; using System.Drawing; namespace smartpos.wpos.App.Components.UserDefined.Button { public class RibbonColor { #region Constructors public RibbonColor(Color color) { red = color.R; green = color.G; blue = color.B; alpha = colo...
ef5b16d014e4cdcf56db0cb04c7c0b37ef35e00f
C#
tmorgner/UnityTutorialSystem
/Assets/Plugins/UnityTutorialSystem/Scripts/UI/Trees/TreeModel.cs
3.0625
3
using System; using System.Collections.Generic; namespace UnityTutorialSystem.UI.Trees { /// <summary> /// An abstract base class for tree model implementations. This class /// provides default implementations for all events. /// </summary> /// <typeparam name="TNode"></typeparam> public a...
0fe260831494662d7c037c366a507aa0b161a898
C#
MishkaSorochinskiy/CustomSiri
/MainWindow.xaml.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Med...
e5444821b86cd0424567185c49d463da373dec61
C#
Drhaax/UDP2.0
/UDPServer2.0/CHUDPClient.cs
2.796875
3
using GameDevWare.Serialization; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; namespace CircleHard { public class CHUDPClient { private IPEndPoint remoteEP; Socket socket; int bufferSize = 1024; public CHUDPClient() ...
a9f3426d1545bd51fb32f16b4d14f0cae9b3327c
C#
Donovancm/ClassificationDS
/ClassificationDS/FileReader.cs
3.28125
3
using ClassificationDS.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassificationDS { public class FileReader { public static Dictionary<int, Tuple<Person, int>> Population { get; set; } ...
9190caeac1a79f49ae01fd47b9c52e34ae399098
C#
hthang369/UltilitiesTool
/FlakeDesktop/frmFlake.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace FlakeDesktop { public partial class frmFlake : Form { private int m_nTimer = 0...
362f4cdb119248d21166a03d6730f30922f79ab6
C#
A-Fitz/Chat-App
/ServerUnitTests/MessageTests.cs
2.515625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Server; namespace ServerUnitTests { [TestClass] public class MessageTests { [TestMethod] public void TestMessage() { Message message = new Message(0, "Hello World!", "SEND"); Assert.AreEqual(0, message...
a48d0885943423a9ea6d6c5b7eaab15cba77affc
C#
vodevil/RobotRules
/BlueCurve.Search.RobotRules/V1/RobotRules/Exception/RobotException.cs
2.71875
3
using System; namespace RobotRules.Exception { /// <summary> /// The base class for exceptions thrown when an error occurs that is related to Internet robots. /// </summary> public abstract class RobotException : ApplicationException { public RobotException() { } ...
88c0a5c288e1f4a81afac0defb6219ec9ba1a07f
C#
yangyang01/Hrbu
/Source/Teaching/Hrbu.Teaching.Utility/Extension/StringExtensions.cs
3.125
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace Hrbu.Teaching.Utility { public static class StringExtensions { internal const string TRUE = "TRUE"; internal const string FALSE = "FAL...
76da372ae94f4c737e3f38cddcce8266e55a5659
C#
vertxxyz/NUtilities
/Editor/Controls/HelpBox/HelpBox.cs
2.515625
3
using System; using System.Collections.Generic; using UnityEngine.UIElements; using Vertx.Extensions; namespace Vertx.Controls { public class HelpBox : VisualElement { public const string uSSClassName = "helpBox"; public const string uSSLabelClassName = "helpBoxLabel"; public const string infoUssClassName = "...
5d14da3590b35d354edd55c88fd982600ac02e98
C#
BostonPublicSchools/MonitorTool
/Solutions/Wolfpack.Core.WebServices/Strategies/Steps/CleanupMessagesStep.cs
2.71875
3
using System.Linq; using Wolfpack.Core.Interfaces; using Wolfpack.Core.Interfaces.Entities; using Wolfpack.Core.WebServices.Interfaces.Entities; namespace Wolfpack.Core.WebServices.Strategies.Steps { /// <summary> /// This step will collect all unsent messages and add them to the queue /// </summary> p...
4bdb13b8ff05d7ad0706f2d841ea8ec30fa42e9b
C#
nirzaf/WebAPIWithBlazor
/App.ApplicationLogic/AuthenticationUseCases.cs
2.515625
3
using MyApp.Repository; using System.Threading.Tasks; namespace MyApp.ApplicationLogic { public class AuthenticationUseCases : IAuthenticationUseCases { private readonly IAuthenticationRepository authenticationRepository; private readonly ITokenRepository tokenRepository; public Authe...
9ad5ccf67304b461b4b474aea754f7026339baf9
C#
avadacayo/Hush
/Source/Client/Model/Category.cs
2.671875
3
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Security.Permissions; namespace Hush.Client.Model { [Serializable] class Category : ISerializable { private DateTime _Created; private String _ID; private String _Name; privat...
f3db133bb434e19b387d7dcb18e424a3e927cea0
C#
mimipaskova/TelerikCSharpSecond
/Arrays/06NElementsKNumbersSum/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _06NElementsKNumbersSum { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int K = int.Parse(Console.Rea...
3a5f5aba0b6acfec3ef22113889775ea6c90f4e7
C#
YanSliaptsou/GadgetsShop
/GadgetsShop/Controllers/OrderController.cs
2.703125
3
using GadgetsShop.Data; using GadgetsShop.Data.Interfaces; using GadgetsShop.Data.Models; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GadgetsShop.Controllers { /// <summary> /// This class provides an order's contro...
e9439ed5f01ab115263299aba5046b22170b1c00
C#
lisandropodesta/lit.net
/Lit.Common/DataType/TypeBinding.cs
2.90625
3
using System; using System.Collections.Generic; using System.Reflection; namespace Lit.DataType { /// <summary> /// Type binding. /// </summary> /// <typeparam name="TA">Property attributes class</typeparam> public class TypeBinding<TA> : TypeBinding<IAttrPropertyBinding<TA>, TA> where TA : class ...
98076fcd99162c986b24c86f13d30f10787839ac
C#
lhwright/DanceDanceDev
/Assets/Scripts/CurtainManager.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CurtainManager : MonoBehaviour { public float Speed; public Vector3 open_pos; public Vector3 closed_pos; private Vector3 end_pos; private bool open = false; private bool moving = false; private boo...
0123c3664d93d259ec794f2571972faf2bc4d547
C#
shendongnian/download4
/code4/653094-15547562-37838555-2.cs
2.609375
3
static void Main(string[] args) { var psi = new ProcessStartInfo("cmd.exe") { RedirectStandardInput = true, RedirectStandardOutput = false, UseShellExecute = false }; var p = new Process { StartInfo = psi }; p.Start(); ...
f327d021ccc3d9a3411371e740e0a1a51982ffce
C#
node-net/Node.Net
/Node.Net/JsonRPC/Responder.cs
2.515625
3
using System; using System.Collections.Generic; using System.IO; namespace Node.Net.JsonRPC { public sealed class Responder : IResponder { public string Respond(string request) { return IResponderExtension.Respond(this, request); } public Stream Respond(Stream requ...
57a075482207d332bd9b643346706c385e05dc01
C#
ElijahJohnson5/Simple-Music-Bot
/EliBot/Services/AudioService.cs
2.765625
3
using System.Collections.Concurrent; using System.Diagnostics; using System.Threading.Tasks; using Discord; using Discord.Audio; using System.Collections.Generic; using YoutubeSearch; using System; using Discord.WebSocket; namespace EliBot.Services { /// <summary> /// Class that handles the audio of the bot ...
c039e0b3fcb0d88453d0e05527e11f28f281b4e3
C#
chenSanWriteCode/TeamTickets
/.svn/pristine/e1/e1ac97543233ae05ae3b4e7820bbda65ec024c0d.svn-base
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TeamTickets { public partial class PhoneNumForm : Form ...
7a5e046b56d8a85a3372bb0c8404c840dfb4f5a9
C#
Dakicksoft/ekm.mobile
/src/Ekm.Mobile/Extensions/HttpClientExtensions.cs
2.953125
3
using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json; namespace Ekm.Mobile.Extensions { public static class HttpClientExtensions { public static Task<HttpResponseMessage> PostAsJsonAsync<T>(th...
51dd0bf26eeeaf22136147efffaaa19ff228f14e
C#
Martin142214/.NET-Core-API-Tennis-Project
/Bussiness layer/RepServices/ImplementedServices/TournamentService.cs
2.515625
3
using AutoMapper; using Bussiness_layer.Models.AddedModels; using Bussiness_layer.Models.CreateModels; using Bussiness_layer.Models.EditModels; using Bussiness_layer.Repositories.Interfaces; using Bussiness_layer.RepServices.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Li...
b6b7ab76e61588d80c5da9fc016ba0541c9b0d88
C#
sono8stream/AtPractice
/AtTest/ForYellow/ARC_047_C.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ForYellow { class ARC_047_C { static void ain(string[] args) { var sw = new System.IO.StreamWriter(OpenStandard...
2e88adb278792d7ce3a3ceacd1cef3016aa74c16
C#
happyhbf/UnityMathReference
/Assets/Intersections/RayIntersectAxis/RayIntersectAxisDemo.cs
2.578125
3
using UnityEngine; using System.Collections; public class RayIntersectAxisDemo : MonoBehaviour { void Update() { Vector3 p1; Vector3 rayOriginX = new Vector3(-.5f, -.5f, -.5f); Vector3 rayDirX = new Vector3(.75f, .2f, .5f).normalized; Debug.DrawLine(rayOriginX, rayOriginX + (rayDirX*5), Color.green, 0, fal...
a2208966524a56c7e5a85f5d7c7f7c7c4915433a
C#
mnaoumov/AlgoSolving
/Task0421_Maximum_XOR_of_Two_Numbers_in_an_Array/Tests.cs
2.71875
3
using NUnit.Framework; namespace AlgoSolving.Task0421_Maximum_XOR_of_Two_Numbers_in_an_Array { public class Tests { [Test] public void AcceptanceTest1() { Assert.That(new Solution().FindMaximumXOR(new[] { 3, 10, 5, 25, 2, 8 }), Is.EqualTo(28)); } } }
31dd568139678c654ca64fdf4dba301c27abff63
C#
wellschutz/LearnigCSharp
/CursoCSharp/Array/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Array { class Program { static void Main(string[] args) { string[] nome; nome = new string[7]; nome[0] = "Wellington"; ...
32918e29c4d9556c9c01aad0c181168aaa046841
C#
blockspacer/fps-netcode
/Assets/Scripts/Server/PlayerSimulationAdjuster.cs
2.625
3
using UnityEngine; using System; using System.Collections.Generic; // Keeps track of how far ahead / behind clients are and notifies them // when they need to adjust. public class PlayerSimulationAdjuster { private ServerSimulation.Handler handler; // The last time we sent an RPC to the player to adjust...
d16feacdd5012cd2b255dcc649c8c3f7aeae3882
C#
quyenbc/BTDB
/BTDB/KVDBLayer/ReaderWriters/PositionLessStreamReader.cs
2.859375
3
using BTDB.StreamLayer; namespace BTDB.KVDBLayer.ReaderWriters { public class PositionLessStreamReader : AbstractBufferedReader { readonly IPositionLessStream _stream; readonly ulong _valueSize; ulong _ofs; public PositionLessStreamReader(IPositionLessStream stream) { ...
4cce506bf695bbb77386b69c0521b9c3f2a5467a
C#
Cimpress/coam-sample-csharp
/iam_sample_csharp/Auth0TokenFetcher.cs
2.78125
3
using RestSharp; namespace coam_sample_csharp { public class Auth0TokenFetcher { private string clientId; private string clientSecret; public Auth0TokenFetcher(string clientId, string clientSecret) { this.clientId = clientId; this.clientSecret = clientSecret; } public string GetToken() { va...
b0c9e6ba7ddd991475a76cf7f32333dab752b0ff
C#
PhuongUyen171/Restaurant-management-software
/doAnDotNet/doAnDotNet/Ban.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace doAnDotNet { public class Ban { public int _maBan; public int _maKV; public int? _maPD; public string _tinhTrang; public int ...
5986554b137db8579539a4415ca49098ebdf899e
C#
chircancristi/LaboratorDOTNET
/lab4/Lab4/Lab4/AplicationContext.cs
2.671875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace Lab4 { public class AplicationContext : DbContext { public AplicationContext() { Database.EnsureCreated(); } public DbSet<Employee> Employee...
bc6cbcf162babffc97cb169dc8da6568d2ff886f
C#
1907931256/wangliang
/BZGUI V1.0_20180511/BZGUI/Module/Data/ProduceData.cs
2.609375
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using System.Xml.Serialization; namespace BZGUI { public...
03a36cc8652d509263b969cfb8306cd5f84a09a1
C#
efraimpolla/C-WebGoal
/Agenda.Core/Agendas/AgendaManager.cs
3.140625
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Abp.Domain.Repositories; namespace Agenda.Agendas { public class AgendaManager : IAgendaManager { #region Implementation of IAgendaManager /// <summary> /// insere na arvore //...
e58eb8ef970e4069204004e9670f3f5b41325694
C#
otto-krause/guias-de-ejercicios-AbigailVictoriaMedinaBruno
/Guia 2/E3/Figurita.cs
2.828125
3
namespace E3 { public class Figurita { private string nombre; public string Nombre { get => nombre; set => nombre = value; } private string posicion; public string Posicion { get => posicion; set => posicion = value; } private string pais; public string Pais { ge...
94b02e1731a9ee949a9337fc66d8806a88e05dc9
C#
ShmiLyIrving/IRAP
/Sources/Global/IRAP.Global/Entities/AppFileInfo.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using System.IO; using System.Diagnostics; namespace IRAP.Global { public class AppFileInfo { private Version currentVersion = new Version("0.0.0.0"); private string file...
7a71d7dbd6987c72095cadf33f3b8d4804d42226
C#
GlebUstenko/Shading
/Cg1Model/VisualizableShape.cs
3.3125
3
using System; using System.Collections.Generic; using System.Drawing; namespace Cg1Model { public abstract class VisualizableShape : Shape { protected VisualizableShape(IEnumerable<Vector> points) : this(SelectPointsToArray(points)) { } protected VisualizableShape(Vector[] po...
65dac16b0c3b2375d10fdb94bb330bd2d34c8521
C#
bartdebever/GD-GTO
/MyProject/Assets/Scripts/ShopScript.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace Assets.Scripts { public class ShopScript : MonoBehaviour { public GameObject Block; public List<ItemScript> Items; public GameObject Pickup; //TEMPORARY ...
ce25938017f5fcb9a81752f2773f3bdd74fe78b9
C#
XINCGer/Unity3DTraining
/SomeTest/ThreadDemo/TaskDemo/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TaskDemo { class Program { static void Main(string[] args) { // Task创建 //var task = new Task(() => //{ // Console.Wri...
7f1000fb8552f14b7fb2a14aed50273d7f007584
C#
diocaponi/Estudos
/C#/Logica_Programacao/Estrutura_Condicional/EX3/EX3/EX3/Program.cs
3.671875
4
using System; namespace EX3 { class Program { static void Main(string[] args) { Console.Write("Digite dois números inteiros [A B]: "); string[] valores = Console.ReadLine().Split(' '); int A = int.Parse(valores[0]); int B = int.Parse(v...
d9b601c6d40c2f63700f651a69c4e4dfefc19c97
C#
shendongnian/download4
/code2/294178-6094620-13194695-2.cs
3.28125
3
private static void Third() { try { throw new SystemException("ERROR HERE!"); } catch (Exception ex) { // I WILL LOG THE EXCEPTION object "EX" here ! but ex.StackTrace is truncated! StackT...
b9ab9173575d04ca3aa030217074055e264079b2
C#
adamnnagy/alternate-realities
/projects/alejandra/VR Week 1 Assignment/Assets/OneStar.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class OneStar : MonoBehaviour { float xpos = 0; float ypos = 0; float zpos = 0; float radius = 2; public float speed = 10f; GameObject[] stars_vertices; // Use this for initialization void Start () { stars_vertices = n...
c2908dce84a3a86cc94c24140e41102e147bef99
C#
bazzzinger1/Xamarin
/XamarinLayoutsApp/XamarinLayoutsApp/XamarinLayoutsApp/Views/RelativePage2.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xamarin.Forms; namespace XamarinLayoutsApp.Views { public class RelativePage2 : ContentPage { public RelativePage2() { RelativeLayout relativeLayout = new RelativeLayout(); Box...
b7f3b689f2602846fe1a917f360dc2bd595e7d1a
C#
eduardoschwartz/GTI_MVC
/GTI_Desktop/Forms/Documento_Detalhe.cs
2.640625
3
using GTI_Bll.Classes; using GTI_Desktop.Classes; using GTI_Models.Models; using System; using System.Collections.Generic; using System.Windows.Forms; namespace GTI_Desktop.Forms { public partial class Documento_Detalhe : Form { string _connection = gtiCore.Connection_Name(); int _numero; ...
b4b2a1fd7bbe89628d85dd9380111e259f9db506
C#
iliantrifonov/TelerikAcademy
/OOP/7.ParticleSystem/ParticleSystem/ChickenParticle.cs
3.125
3
using System; using System.Collections.Generic; namespace ParticleSystem { //3.Create a ChickenParticle class. The ChickenParticle class moves like a ChaoticParticle, but randomly stops at different positions for several simulation ticks and, for each of those stops, creates (lays) a new ChickenParticle. You are ...
1a412c3299a370818b0488101fc5f98632cc45ef
C#
anodern/route-making-tool
/route-making-tool/MbdFile.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace BusDriverFile { abstract class Origin { public NodeBoundData dataHead; public uint flag; public byte distance; public abstract void Read(BinaryReader br); } class Node { pu...
9562c3fce3d6fc4269fa3a555b394c6d84345684
C#
sakapon/Samples-2014
/KinectSample/FaceTrackingConsole/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FaceTrackingConsole { class Program { static void Main(string[] args) { var tracker = new SkeletonFaceTracker(); var isTracked = false; ...
0e4f56923353cb9f0d281457f13e67585eec0398
C#
Jazastry/SoftUni
/DataBasesApplications/02-Entity-Framework-CodeFirst/Homework-Entity-CodeFirst/StudentSystemA.Data/Migrations/Configuration.cs
2.8125
3
namespace StudentSystemA.Data.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; using StudentSystem.Data; using StudentSystem.Model; public sealed class Configuration : DbMigrationsConfiguration<StudentSystemDBContext> { ...
a876534bc49c1655acc069af3486acf46542ddf7
C#
tjvezina/AdventOfCode
/Framework/BinaryMinHeap.cs
3.515625
4
using System; using System.Collections.Generic; namespace AdventOfCode { public class BinaryMinHeap<T> { private IComparer<T> _comparer; private List<T> data = new List<T>(); public BinaryMinHeap(IComparer<T> comparer = null) { _comparer = comparer ?? Comparer<T>.De...
e62d3ae6aa6778162ad806f7052ec41425d806fc
C#
afetaghayeva/Game_Project
/Game_Project/Program.cs
2.703125
3
using System; using Game_Project.Concrete; using Game_Project.Entities; namespace Game_Project { class Program { static void Main(string[] args) { Player player1 = new Player { Id = 1, FirstName = "Afet", LastName = "Agaye...
af491e98a06e1195ac0372ff16c1d5cc7342c66c
C#
adrinamin/playground
/source/cSharpCoding/src/RandomCodeSnippets/Program.cs
3
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ExamPreparation { public class Program { private static Stopwatch _execTimer ...
810f5bc804a01e3c0806a6e0e9c9a0e1efcdbc9c
C#
tpeczek/Codility
/Delta 2011.cs
3.453125
3
using System; //Delta 2011 (based on 'Partition with Duplicate Elements' section from following paper http://www.cs.cornell.edu/~wdtseng/icpc/notes/dp3.pdf) class Solution { public int solution(int[] A) { //This is where result will be stored int result = 0; //Sanity check if (A !=...
e2aefe8fd2efa9d1e119ec70481082d5a8ba7dc8
C#
lightningviper/lightningstools
/src/AnalogDevices/DeviceCommands/SetOffsetDAC1Command.cs
2.53125
3
namespace AnalogDevices.DeviceCommands { internal interface ISetOffsetDAC1 { void SetOffsetDAC1(ushort value); } internal class SetOffsetDAC1Command : ISetOffsetDAC1 { private readonly IDenseDacEvalBoard _evalBoard; private readonly ILockFactory _lockFactory; ...
1c6db81edf885f2b17fe483097896bc70b95113a
C#
mevoronin/OfficeLib
/OfficeLibs/Excel/Worksheets.cs
3.046875
3
using System.Reflection; namespace OfficeLibs.Excel { /// <summary> /// Summary description for Worksheets /// </summary> public class Worksheets { private object worksheets; public Worksheet get_Worksheet(int index) { return new Worksheet(worksheets.GetType().I...
919e8b242f048f43324fb391069b6f73b402691a
C#
V-B/SurveySolutionsClient
/src/SurveySolutionsClient/JsonConverters/GuidJsonConverter.cs
2.875
3
using System; using System.Text.Json; using System.Text.Json.Serialization; namespace SurveySolutionsClient.JsonConverters { internal class GuidJsonConverter : JsonConverter<Guid> { public override Guid Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { ...
70e901e959eb5e63ce3a055614256cb674f20eb0
C#
justas-d/discord-roleplay-dice
/Program.cs
2.921875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.ExceptionServices; using System.Text; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.Modules; using Newtonsoft.Json; namespace droll { class Config { public Conf...
25b14fd0614180eada138c0cd51af900289a228d
C#
pmarflee/tdd-katas
/tdd-katas/Katas.Tests/Minesweeper/FieldParserTests.cs
2.71875
3
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using Katas.Core.Minesweeper; using Xunit; using Xunit.Extensions; namespace Katas.Tests.Minesweeper { public class FieldParserTests { private readonly ...
dec28963a38faf0a8dce22c7ca89e849a67bd883
C#
monemonesi/TDD_Katas
/NET Framework/StringCalculatorKata/StringCalculatorKata.Tests/StringCalculatorTest.cs
3.265625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StringCalculatorKata.Tests { [TestFixture] public class StringCalculatorTest { [Test] public void Add_WhenEmptyReturnZero() { ...
fbc86991b4a134540dff768df6920fe51cc8bf8f
C#
armembedded/BleClient
/ServiceBusClient/BleAppServiceBus.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServiceBusClientLib; using BLESDK.Model; using System.IO; using System.Runtime.Serialization.Json; namespace BLESDK { public class BleAppServiceBus { private ServiceBusClient _clie...
b4f7c5bdafd7c1e56ed4cdfacf3b273f5825cfe5
C#
abonisl/Game2.0
/Game2.0/Player.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Game1.Physics; namespace Game2._0 { class Player { // Collision ...
b16545dc9f27e78dad368f0ef2d6725b6f3a1ff6
C#
edouard-chevalier/advent-of-code-2019
/Day2bis/Program.cs
3.046875
3
using System; using System.Linq; namespace Day2bis { class Program { static string input = @"1,12,2,3,1,1,2,3,1,3,4,3,1,5,0,3,2,6,1,19,1,19,5,23,2,10,23,27,2,27,13,31,1,10,31,35,1,35,9,39,2,39,13,43,1,43,5,47,1,47,6,51,2,6,51,55,1,5,55,59,2,9,59,63,2,6,63,67,1,13,67,71,1,9,71,75,2,13,75,79,1,79,10,83,2,83,9,87,...
8b71f1ac7e6c7d1be13183bafe24e9ea4c8a0531
C#
shendongnian/download4
/first_version_download2/188680-14362219-34551399-1.cs
2.921875
3
Bitmap b = new Bitmap(30, 30); using (Graphics g = Graphics.FromImage(b)) { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None; g.Clear(Color.Black); g.FillPolygon(Brushes.White, new Point[] { new Point(5,5), new Point(20,20), new Point(...
8c78c97b0c310b1f7d129ee266bcbfcdc34cad33
C#
iuribrindeiro/asp-net-core-ddd
/Logger/Services/LoggerService.cs
2.6875
3
using System; using Domain.Services.Interfaces; using Serilog; namespace Logger.Services { public class LoggerService : ILoggerService { private readonly ILogger _logger; public LoggerService(ILogger logger) => _logger = logger; public void LogError(Exception exception, strin...
6c82e7aa6c246e872582f6b414e1a4957e20e373
C#
DennisseCannobbio/OnBreakDuocUC
/OnBreak.Test/ClientTest.cs
2.640625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OnBreak.Negocios; namespace OnBreak.Test { [TestClass] public class ClientTest { [TestMethod] public void CreateClientTest() { bool expected = true; Cliente cli = new Cliente() ...
ec40d60b848b76363f06fc9bd6436104c9646868
C#
bonahona/BonaVirtualGamePad
/BonaVirtualGamePad/BonaVirtualGamePad.SharedPortable/GamePadNode.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; namespace BonaVirtualGamePad.Shared { public delegate void ServerGeneralEvent(GamePadClient client, ClientServerInformation server); public delegate void ServerDiscoveredEvent(GamePadClient client, ClientSe...
68a2fa35e46bd5946659cc18cddb5e70ae763209
C#
Ivolekov/SoftUni_3.0
/01.C#_Fundamentals/03.C#-OOP-Advanced/01. CSharp-OOP-Advanced-Interfaces-And-Abstraction/Exercises/Interfaces/07.FoodShortage/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using _07.FoodShortage.Models; namespace _07.FoodShortage { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List...
e5193b0fb02b23daae370ad2da05538a163eaa02
C#
pashkas/rpgorganizer_desctop
/Sample/Model/expConverter.cs
2.953125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="expConverter.cs" company=""> // // </copyright> // <summary> // The exp converter. // </summary> // --------------------------------------------------------------------------...
0b56de412f62cd3fc86a16037c15a82ce36ca4eb
C#
urbanairship/urbanairship-xamarin
/SampleApp/SampleApp/MessageCenterViewController.xaml.cs
2.515625
3
using System; using Xamarin.Forms; using UrbanAirship.NETStandard; using UrbanAirship.NETStandard.MessageCenter; namespace SampleApp { public partial class MessageCenterViewController : ContentPage { public MessageCenterViewController() { InitializeComponent(); } ...
782d6b10b7b872deb542469eaa21c73e64616118
C#
Daniel15/JSPool
/src/JSPool/Exceptions/JsPoolExhaustedException.cs
2.546875
3
/* * Copyright (c) 2014 Daniel Lo Nigro (Daniel15) * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ using System; #if !NETSTANDARD1_3 using System.Runtime.Serialization; #endif namespace JSPool.Exceptions { /// <summary> ...
008bb509b57ab65b11db791f041130a7de9df0b5
C#
MortenChristiansen/DDDTools.SpecGen
/DDDTools.SpecGen/Spec/AssemblyHelper.cs
2.78125
3
using DDDTools.SpecGen.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace DDDTools.SpecGen.Spec { static class AssemblyHelper { public static T GetAssemblyAttribute<T>(this Assembly assembly...
524ea2c1a8b81cdb87a07ba1269be1a607c0e769
C#
Gordei-Kuznetsov/3dObstacleGame
/Assets/Scripts/TimerHandler.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TimerHandler : MonoBehaviour { float currentTime = 0f; bool timerRunning = true; public Text scoreText; public Text finishText; private void Update() { if(timerRunning) { ...
74de47e5147e29097cab22b8eb84c038b3346db5
C#
hoserdude/buche-dot-net
/Buche/Logger.cs
2.828125
3
using System; namespace Buche { public enum LogLevel { Fatal, Error, Warn, Info, Debug } /// <summary> /// Interface that mimics ILog from Log4Net, so we can use something else if we want, and we can add our /// own value added additional functionality...
b274ebc264876278c3427cf97dd2c36bd59e4522
C#
artemgur/sem
/Sem/ResourcesPaths.cs
2.8125
3
using System.IO; using System.Linq; namespace Sem { public static class ResourcesPaths { public static string GetPersonPhotoPath(object s) => GetPath((int) s, "PeoplePhotos"); public static string GetArticleImagePath(object s) => GetPath((int) s, "ArticleImages"); public static string GetUserImagesPath(obje...
65e131a3678cb69a1748139e74b63a20c989f856
C#
programmiertier/Aufbau02
/Gärtnerei_Console/Gärtnerei_Console/Gehoelz.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gärtnerei_Console { public abstract class Gehoelz { private String art; private int pflanzjahr; private float preis; public String getArt() { return ar...
ed16047e391c9e8a2fb34224ed60cdeeeb2d4d25
C#
MaksOlbert/testing
/Newa/Assets/Scripts/hello_word.cs
3.046875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class hello_word : MonoBehaviour { // metoda / funkcja = krotki kawalek kody ktory ma za zadanie wykonac jakies // metody -> dzialaja na obiektach // funkcje -> jezyk struc // string / int/ float/ doublr/ long /char/...
768fe216b915f063d9dd7442f2fa00a911f3da9b
C#
leandrosg-canoas/Algoritmos
/A1 - Variaveis/Exemplos/Porcentagem.cs
3.1875
3
using System; class MainClass { public static void Main (string[] args) { float porcento; Console.Write("Digite um valor: "); porcento = float.Parse( Console.ReadLine() ); porcento /= 100; Console.WriteLine("Porcentagem: " + porcento); } }
bb6070c50e3857491f56ad3f65c07b6c02521b65
C#
acceptdead/iGAMEv.com
/BasicClient2/Program.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using net_x; using net_x.reactor; namespace BasicClient { public class JxConfig { public static readonly int JXSESSION_BUFFER_SIZE = 512; // 세션 버퍼 사이즈 public static readonly int JXSESSION_CONNE...
65b46e5d2791c6b318f2d7280cf0c13e0563b14c
C#
Prashant-Jonny/DOOP.ec
/DDS-RTPS/RTPS/Messages/Submessages/Elements/SerializedDataFragment.cs
2.6875
3
 namespace Rtps.Messages.Submessages.Elements { /// <summary> /// SerializedDataFragment contains the serialized representation of a data-object that /// has been fragmented. Like for unfragmented SerializedData, the RTPS protocol does /// not interpret the fragmented serialized data-stream. Therefor...
6a4daae445a6e1eed3b682e1e2ef8106c3728ed2
C#
wdzhou/HB3ALibrary
/UBMatrix/UBMatrix/ubutility.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace DAS.UBMatrix { /// <summary> /// Class to store UB matrix candidates for future processing /// </summary> public class UBStorage { #region private property MotorIncidentAngles[] mRawInciden...
245150350712094ff6cd270567bbb9e95ed447ec
C#
ChrisAttwood/ProjectPD
/SpaceShot/Assets/Scripts/Properties/Pushable.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Pushable :MonoBehaviour, ITakeDamage { public void TakeDamage(Vector2 source, float radius, int amount) { Rigidbody2D rigidbody2D = GetComponent<Rigidbody2D>(); if(rigidbody2D != null) { ...
641c06b213b5e856264aa9209594695442956099
C#
Jazastry/SoftUni
/OOP/02-StaticMambers-Namespades-Names/Homework-Static-Members-Namespaces/Geometry/Geometry3D/DistanceCalculator3D.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Geometry3DA { public class DistanceCalculator { public static double CalculateTheDistanceTwoPoints(Point3D a, Point3D b) { double result = 0; ...
467fd5d007eed44dabe94b48e4c9ed4bcf81a3fd
C#
slawer/devicemanager
/DeviceManager_3/Interface/MainForm.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DeviceManager { public partial class MainForm : Form { delegate void setterStatusComPort(); setterSt...
be0f6fb2a37ea80a25ce1e50430c3115315df7a9
C#
phucpdph10868/EOS
/EOS Client/NAudio/NAudio/Wave/Asio/ASIODriverExt.cs
2.5625
3
using System; namespace NAudio.Wave.Asio { /// <summary> /// ASIODriverExt is a simplified version of the ASIODriver. It provides an easier /// way to access the capabilities of the Driver and implement the callbacks necessary /// for feeding the driver. /// Implementation inspired from Rob Philpot's with a man...