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
797f6a354399e43708ad5f3433ec98cf88f6d346
C#
DHelen/CSharpTrainingMain
/CSharpTranining/1_ConsoleAppAndIfStatements/IfElseSwitch.cs
3.5
4
using System; using System.Collections.Generic; using System.Text; namespace CSharpTranining._1_ConsoleAppAndIfStatements { public class IfElseSwitch { private const string Question1 = "Hello! What is your name?"; private const string Question2 = "How old are you?"; private const strin...
3e50c327665ddc63677f073743707fee0f38c996
C#
nivlac-calvin/StockInventory
/Assets/Asset_InvoiceDO/Script/ProjectRecords_Manager.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; using System.IO; using System.Xml.Serialization; using System.Xml; public struct ProjectRecordsDetails{ public string projectName; public List<string> projectItem_List; }; public class ProjectRecords_Manager : MonoBe...
b5ae637ea414c9c7b1fd9d4426c4ed8329cf0123
C#
juliaYamamoto/AllAround
/AllAround/Assets/_Scripts/PlayerController.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { //Movement private float horizontalInput; private float verticalInput; public float speed; //Game Controller public GameController gameController; private void Up...
75dff6958469b0fe7a96efa26950462d0a552b16
C#
AnastasiyaShuklina/EPAM_Ext_Lab_Q4_2017_Shuklina_Anastasiya_
/HMT_01/Task01/EquationsOfFigures.cs
3.484375
3
namespace Task01 { using System; internal class EquationsOfFigures { internal bool result; public bool FigureA(double x, double y) { return result = Math.Pow(x, 2) + Math.Pow(y, 2) <= 1; } public bool FigureB(double x, double y) { r...
3ef5e9b16b514ed86165578e52744254bb9d46c0
C#
Saleslogix/SLXMigration
/src/Forms/BuilderMappingByEqualityAttribute.cs
2.515625
3
using System; using System.Collections.Generic; using System.Diagnostics; namespace Sage.SalesLogix.Migration.Forms { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public sealed class BuilderMappingByEqualityAttribute : BuilderMappingAttribute { private readonly string _key; ...
d3b3a03eb69a5c8d941976610ff1189d9ed7903c
C#
lineCode/ArchiveGit
/VxCharts/VxChartsLibrary/TransformAnimationBase.cs
2.578125
3
using System; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; namespace ClassLibrary { public enum Direction2D { X, Y, XY } internal class ScaleAnimation : TransformAnimationBase { public ScaleAnimation() { DelayForward = 0; DelayReverse = 0; SecondsForward = 0...
2eca7e30089b1efeaa59451df2ea0b7db098a1d7
C#
nowsathns/aspcore_demo
/HelloCore/Controllers/TodoController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using HelloCore.Models; namespace HelloCore.Controllers { public class TodoController : Controller { private IRepository _repo; public TodoController(IRepository re...
8a2b239a75af22fb3c671b3cdff8aa1ee778b6c2
C#
thegreatpl/GGJ2020
/Assets/Scripts/Entities/AI/EnemyController.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { GameManager GameManager; public Movement Movement; public int SightRange = 10; int _wanderChange = 0; // Start is called before the first frame update void Start...
c197a753e1889417a580b8c30f06fcc65ccd0a20
C#
jsrhtc/Dmm_GoldIGDClient
/Assets/Scripts/Runtime/Dmm/PokerLogic/Poker.cs
3.1875
3
namespace Dmm.PokerLogic { /// <summary> /// 牌对象。 /// </summary> public class Poker { public const byte NullPoker = 250; public int Number { get; private set; } public int NumType { get; private set; } public int SuitType { get; private set; } ...
af61e2709774c102dcdad6c629fa8e7a947ab9fc
C#
vallenti/SoftUni
/Softuni-CSharp/CSharp-part-2/Exceptions/ReadNumbers/ReadNumbers.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReadNumbers { class ReadNumbers { static int counter = 1; static int ReadNumber(int start, int end) { int num=0; while (counter <= 10) ...
c51984f0767091206cbb5d139e9994587b54674a
C#
khanziaullah/Employee
/Employee.Presenter/EmployeePresenter.cs
2.59375
3
using Employee.ViewModels; using Employee.View; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Employee.PresentationLogic; namespace Employee.Presenter { public class EmployeePresenter : IEmployeePresenter { IEmployeeView view; ...
b40b80a5183003de837ab963510a2c679c094dc8
C#
gonzabl/C-sharp-for-Unity
/Resueltos/E17Resuelto.cs
3.25
3
using UnityEngine; using System.Collections; // ¡AVISO! No mires la solucion antes de intentar resolverlo por ti mismo. // Si no, este curso no tendra tanto efecto como deberia. // Los ejercicios sin hacer estan en la carpeta "Ejercicios". :) public class E17Resuelto : MonoBehaviour { // Ejercicios capitulo 17. M...
a5f38c47f6d128e532a6a1d3a656ddce6b74df78
C#
Vali0/Archer
/TelerikKindergarten/TelerikKindergarten.ConsoleClient/SqlManipulator.cs
2.5625
3
namespace TelerikKindergarten.ConsoleClient { using System; using System.Collections.Generic; using System.Linq; using TelerikKindergarten.Data; using TelerikKindergarten.ReportModels; using TelerikKindergarten.SQL.Model; public class SqlManipulator { private ITele...
167f9b1e413ce20a0d2c55f59465af009562ec7b
C#
agc93/unsave
/src/UnSave/Serialization/VectorPropertySerializer.cs
2.5625
3
using System; using System.IO; using UnSave.Types; namespace UnSave.Serialization { public class VectorPropertySerializer : UnrealPropertySerializer<UEVectorStructProperty> { public IUnrealProperty DeserializeStruct(BinaryReader reader) { var prop = new UEVectorStructProperty(); ...
3efd6292c922dccd8207ac511cb77faf993ceff5
C#
SivaprakasamPalanisamy/CSExercises
/CSExercises/Ex01-06/Ex03.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSExercises { public class Ex03 { public static void Main(string[] args) { Console.WriteLine("Please enter a Double Precision Number"); string x...
a827e0be2ac33e3afdee5b80afad86862b1f4840
C#
ilyas-incubasys/Restaurant_Api
/Restaurant_API/RestuarantApp_API/Migrations/Configuration.cs
2.515625
3
namespace RestuarantApp_API.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; using RestuarantApp_API.Models; using System.Collections.Generic; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; ...
57d70645d48a6e47684a5d726d8440b1d6b661b4
C#
soopercool101/BrawlCrate
/BrawlLib/Internal/BrawlExDropDownLists.cs
2.609375
3
using BrawlLib.CustomLists; using System; using System.ComponentModel; using System.Globalization; using System.Linq; namespace BrawlLib.Internal { public class FranchiseIcon { public int ID { get; private set; } public string Name { get; private set; } public FranchiseIcon(int id, st...
229a6aeb54e997b3bc50a28ce2f1168a389f16b2
C#
Caue13087/API_PETS
/PET_API/Repositories/RacaRepositories.cs
2.6875
3
using API_Pets.Context; using PET_API.Domains; using PET_API.Interfaces; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace PET_API.Repository { public class RacaRepositories : IRaca { PetsContext conexao = new PetsC...
debd2d6ffa06bcded7ff2816dc7d13fa8a516df9
C#
EbrahimBGA/TeeSharp
/TeeSharp.Common/src/config/BaseConfig.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using TeeSharp.Core; namespace TeeSharp.Common.Config { public abstract class BaseConfig : BaseInterface, IEnumerable<KeyValuePair<string, ConfigVariable>> { public virtual ConfigVariable this[string key] => Variables[key]; protected...
8c83cb27313f83ddbb701b35056f8bd0dd498391
C#
DuncanButler/SpecSalad
/Tests/Acceptance/SpecSalad.features/Roles/SpecifiedRole.cs
3
3
using System.Collections; using System.Collections.Generic; using NUnit.Framework; namespace SpecSalad.features.Roles { public class SpecifiedRole : ApplicationRole { public SpecifiedRole() { TheAnswer = 0; } int TheAnswer { get { ...
896c3104a478aa1a44cec18267846be69792339b
C#
Marx02/TowerDefense
/Assets/EsbenTing/MakeGrid.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class MakeGrid : MonoBehaviour { private float x; private float z; private int gridCount = 30; // Start is called before the first frame update void Start() { x = this.GetComponent<Rende...
fce26d836ad3e9dd22e3940a6c080ecb135efad1
C#
hc183/CarParkDemoServer
/AbcCorp.CarPark.Domain.Repositories/ParkingRateRepository.cs
2.59375
3
using AbcCorp.CarPark.Domain.Entities; using AbcCorp.CarPark.Domain.Interfaces; using AbcCorp.CarPark.Infrastructure.Data; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; namespace AbcCorp.CarPark.Domain.Repositories { public class ParkingRateRepository : IParkingRateRepo...
476ec0ebff8f15558e33222f5393ed53cd9f53fc
C#
leeckey/Card
/Assets/Script/Battle/Skill/Skill101.cs
2.515625
3
using UnityEngine; using System.Collections; /// <summary> /// 冰弹:使一张或者多张卡牌受到100点伤害,30%概率下一回合无法行动 /// </summary> public class Skill101 : BaseSkill { // 伤害值 int damage; // 中buff的概率 int rate; public Skill101(CardFighter card, SkillData skillData, int[] skillParam) : base(card, skillData, skillParam) { } ...
a0c607f4d0530804559d9bdc49f62523bda74cb6
C#
Jenocn/GameCommonLibrary
/src/Message/MessageCenter.cs
2.84375
3
/* By Jenocn https://jenocn.github.io/ */ using System.Collections.Generic; namespace GCL { /// <summary> /// 消息中心,一个全局消息派发器 /// </summary> public static class MessageCenter { public static MessageDispatcher messageDispatcher { get { return _messageDispatcher; } } private static MessageDispatcher _messageD...
7a34faefb667d368491154e1510683458b7e6daa
C#
Sagar-Jaybhay/Lab2-DataTypes
/Lab26-ExceptionHandling/Program.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace Lab26_ExceptionHandling { class Program { static void Main(string[] args) { try { ...
37a6eb85c7d20b256089354f7ca7c0bc354df540
C#
Vorfall/Epam0.1
/Task_1_Tests/RectangleTests.cs
2.90625
3
using System; using Xunit; using Task1; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task_1_Tests { public class RectangleTests { [Fact] public void GetAreaRectangle1() { var sidesList = new List<double> { 6...
a15aab6aca7e13d50a75bc12213eae3a84d34e44
C#
nicolasbailly1/Hive4Net
/Hive4Net/Datasets/TypeDesc.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Thrift.Protocols; using Thrift.Protocols.Entities; using Thrift.Protocols.Utilities; namespace Hive4Net.Datasets { [Serializable] public partial class TypeDesc : TBase { ...
e4d28e25efd504f5d15fbc24924add80d68f839f
C#
davidyush/CSharp
/Less5/Less5_exc3_Yushkov.cs
3.578125
4
using System; namespace Something { class Program { static void Main(string[] args) { WorkersSalary hour = new HourlySalaryWorker(13); WorkersSalary month = new FixedSalaryWorker(20000); Console.WriteLine(hour.SalaryPerMonth()); Conso...
ac132881f6d4b6f3ae7173c4b26db75aeaf3abc9
C#
GoogleCloudPlatform/google-cloud-visualstudio
/GoogleCloudExtension/GoogleCloudExtension/Utils/StringFormatUtils.cs
2.96875
3
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
b700ead994123c44d69189ef8f4096a441cf0d70
C#
engimaxp/SecurityUtility
/SecurityUtility/SecurityKeyGenerates.cs
2.71875
3
using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.Pkcs; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Generators; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Pkcs; using Org.BouncyCastle.X509; using System; using System.Collections.Generic; u...
b7af82182431d4f0628d09de503d9ebf0c9b4842
C#
lindseylove54/TankWars
/TankWars/GameController/GameController.cs
2.859375
3
using NetworkUtil; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Drawing; using System.Text.RegularExpressions; using System.Windows.Forms; /// <summary> /// Author: Tyler Amy, Lindsey Loveland /// Date: 11/23/2020 /// </summary> namespace TankWars {...
44dcc9ae3e4529b54302d4ded08e1640810867c5
C#
1993-smite/MergeRep
/MergeProject/MergeLibTest/TestDeepCopy.cs
2.921875
3
using MergeLib; using NUnit.Framework; using System; namespace MergeLibTest { public class TestDeepCopy { [Serializable] public class Simple { public int Id; public string Name; } [Test] [TestCase(1,"Name 1")] [TestCase(int.MinVa...
9a9ce30ef3fcf2c2bffc153e45aff9b5c10a309c
C#
nishanthah/RideShareRepository
/GoogleApiClient/Helpers/GoogleDirectionsApiUrlBuilder.cs
3
3
using GoogleApiClient.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GoogleApiClient.Helpers { public class GoogleDirectionsApiUrlBuilder { public const string BASE_URL_WITH_WAYPOINTS = "https://maps.googleapi...
c7651a5b4ea636702c1ef912532e1665d74a8afe
C#
beppe9000/ecc
/store/WebService/Otp/OtpServer.cs
2.578125
3
/*``The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this software. If not, it can be * retrieved via the world wide web at ...
e2657b2feba5798cdfa0e14c465df68e336a96cd
C#
fkavum/simpleSample
/Assets/Scripts/ObjectPool.cs
2.875
3
using System.Collections.Generic; using UnityEngine; public class ObjectPool : MonoBehaviour { public static ObjectPool instance; public List<GameObject> pooledObjects; public GameObject objectToPool; public int amountToPool; void Awake() { instance = this; } // Start is...
f4215509b1552c7cd81e4e65bf2e8f110e745059
C#
LifelongLearner13/unit2_studio_interfaces_solution
/SpinningDiscs/LP.cs
3.25
3
using System; namespace SpinningDiscs { public class LP : StorageDisk, IDisc, IDigitalStorage { public LP(string name, string type, double diameter, int capacity) : base(name, type, diameter, capacity) { } public void ReadData() { if (Contents.Count == 0) ...
ed6ec66b95f9bc0ef2902831b6a1ba1534a91fac
C#
kumarprince2254/Data-Structures-Assignment-1
/ConsoleApp1/ConsoleApp1/Program.cs
3.3125
3
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Node run = new Node(); Node.CreateLinkedList(); run.Transvers(); run.Transversback(); Console.Read(); } } cla...
3f8d63387370b8eed730674ee00b80bae2667918
C#
dotnet/iot
/src/devices/Ssd13xx/Commands/Ssd1306Commands/SetColumnAddress.cs
2.734375
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace Iot.Device.Ssd13xx.Commands.Ssd1306Commands { /// <summary> /// Represents SetColumnAddress /// </summary> public class SetColumnAddress : I...
19fa6862e763ff1d3c434f286e98dbe941e85f28
C#
richbryant/bonsai
/Bonsai.Vision/Flip.cs
2.875
3
using System; using System.Linq; using System.Reactive.Linq; using OpenCV.Net; using System.ComponentModel; namespace Bonsai.Vision { [Description("Flips the input image around vertical, horizontal or both axes.")] public class Flip : Transform<IplImage, IplImage> { [Description("Specif...
4ad20d3eab90dc4190432d35517370476c09e138
C#
kris994/Dan_LVI_Kristina_Garcia_Francisco
/Dan_LVI_Kristina_Garcia_Francisco/Model/HTMLClass.cs
3.28125
3
using System; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace Dan_LVI_Kristina_Garcia_Francisco.Model { /// <summary> /// Class that works with html files /// </summary> class HTMLClass { /// <summary> /// Gets thehtml file from the website ...
dd44b4c2ea50994137e39c9137d3429dc79ea776
C#
garthtee/list-sites
/GarthToland.ListSites/Program.cs
2.78125
3
using Autofac; using GarthToland.ListSites.Services; using Newtonsoft.Json; using System; using System.IO; namespace GarthToland.ListSites { class Program { private static void Main(string[] args) { var settings = LoadSettings(); IContainer container = null; ...
d27ea27f4331adb64ec90d0a9c787eea17759f58
C#
Draco18s/Advent-of-Code-2020
/Vector2Int.cs
2.734375
3
namespace Advent_of_Code_2020 { internal struct Vector2Int { public int x; public int y; public Vector2Int(int _x, int _y) { x = _x; y = _y; } public override string ToString() { return "(" + x + "," + y + ")"; } } }
5a68201a68804eceb9d30751a742867a25665193
C#
NatePicsou/Traffic-Simulation
/Traffic_Simulation/MainWindow.xaml.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; ...
8e190681d7ce89f1cdb838aa9ce877f09d34e268
C#
phatboyg/FeatherVane
/src/FeatherVane/SourceVanes/DelayedRetrySourceVane.cs
2.5625
3
// Copyright 2012-2013 Chris Patterson // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file // except in compliance with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
3edfc26f4f1bc5039318370d638de63875b9fad7
C#
Alexluna/visionc-
/leerControl/leerControl/Form1.cs
2.875
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 leerControl { public partial class Form1 : Form { public Form1() { InitializeComponent()...
82dd1ad2bb7d68ed51b514fee37e7dfba16d889c
C#
M4th3m4tic4l/wow-emulator-archive
/iWoW - 04.2006/Database/MemberValues/IndexMemberValue.cs
2.78125
3
using System; using WoWDaemon.Common.Attributes; namespace WoWDaemon.Database.MemberValues { public class IndexMemberValue : MemberValue { MemberValue m_memberValue; int m_index; public IndexMemberValue(MemberValue memberValue, int index) { m_memberValue = memberValue; m_index = index; } ...
4eacc3a6646e3f44454bdbed2b98f379d835fe1b
C#
assafrot/BoxesManager
/BoxesManger/DataStructers/Generics/BST.cs
3.34375
3
using System; namespace BoxesManger.DataStructers.Generics { class BST<T> where T : IComparable<T> { public BST() { Root = null; } public Node Root { get; private set; } public Node LastUpdate { get; private set; } public void Add(T value) {...
16f63679e718e20b61ebd354f623f9c77793ed06
C#
fguner/DividendProject
/Program.cs
2.609375
3
using System; using HtmlAgilityPack; using Newtonsoft.Json; using System.Net; using System.Text; using System.Linq; using System.Collections.Generic; using MongoDB.Bson; using MongoDB.Driver; namespace DividendProject { class Program { static void Main(string[] args) { List<St...
20d550851bb044b0d23067d59efd15055f2a32bc
C#
lvseouren/2D-Tilemap-Features
/Assets/Scripts/Bullet/BulletPool.cs
2.578125
3
using UnityEngine; using System.Collections; using Boo.Lang; using System.Collections.Generic; public class BulletPool { static BulletPool instance; Queue<Bullet> bullets = new Queue<Bullet>(); public static BulletPool Instance { get { if (instance == null) { ...
63c71897048ec9f630fb1ceb1750bda0db49c232
C#
Bunsheni/ComicViewer
/ComicViewer/ComicViewer/CtModels/CtWordList.cs
2.71875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; namespace ComicViewer.CtModels { public class CtWordList : CtModelList { public CtWordList() : base() { } public CtWordList(List<CtWord> models) { for...
f723e88a43f0935b0126b6d087146014319b490c
C#
StardustDL/Algorithms-in-CSharp
/test/Test.Core/RandomExtensions.cs
2.9375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System; using StardustDL.Algorithms; namespace Test.Core { [TestClass] public class RandomExtensions { readonly Random rand = new Random(); [TestMethod] public void Generator() { ...
f4d1c148fd61f66792cb569dd9a6f4e54b754aed
C#
douglasfigsouza/Gesprog
/Gesprog/Models/HorariosRepository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Gesprog.Models { public class HorariosRepository { DbGesprog context; List<HORARIOS> ListaDeHorarios; public HorariosRepository() { this.context = new DbGesprog(); ...
f7e501ebafcead51785e2ae325fdaa19293be758
C#
khakobjanyan/CoffeeMachine
/CoffeeMachine/Products.cs
3.203125
3
using Microsoft.Data.Sqlite; using System; using System.Collections.Generic; using System.Text; using System.Configuration; using CoffeeMachine.DTO; using System.Linq; using System.Diagnostics; namespace CoffeeMachine { class Products { /// <summary> /// Returns the product list from Data Base...
0823c77f68591680314d19f0975fdf24544e5c62
C#
nagaoo0/Voxel
/Assets/SCRIPTS/Terrain/MeshColliderRegion.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class MeshColliderRegion { static Dictionary<Chunk, MeshCollider> chunkcolliderMap = new Dictionary<Chunk, MeshCollider>(); static Queue<MeshCollider> colliderPool = new Queue<MeshCollider>(); static GameObject pa...
68d2a16ad094180c4c713a4286108a0b437990fc
C#
MahmoudKhleif/GroceryStore
/GroceryStoreApp/pl/Product_Add.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 GroceryStoreApp.pl { public partial class Product_Add : Form { GorceryStoreEnt...
a59ed159381db6fcba60e8ae067376013e129bf3
C#
sfarn/Intemmediate-Gamedev-Midterm
/Midterm Unity/Assets/Scripts/Beetorial.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.SceneManagement; public class Beetorial : MonoBehaviour { public TextMeshProUGUI dialogue; public GameObject beetorial; public GameObject textbox; private void Update() { ...
1902a598d335e6c890e28796e6489e1c4b20e074
C#
yonglehou/Bigio
/UnitTests/Bigio Tests/BigArray Tests/Support Classes Tests/BlockStructureTests.cs
2.6875
3
using System; using Bigio.BigArray.Managers; using Bigio.BigArray.Support_Classes.BlockCollection; using Bigio.BigArray.Support_Classes.BlockStructure; using Bigio.Common.Classes; using NUnit.Framework; using UnitTests.Managers; namespace UnitTests.Bigio_Tests.BigArray_Tests.Support_Classes_Tests { [Tes...
7353054c84788074d426991f77477fb757dce3e7
C#
jasonbergener/ISTA-220
/Exercises/Week5GradedExercise/Week5GradedExercise/Program.cs
3.765625
4
using System; /* * Author: Jason Bergener * Description: The instructions were to use arrays to return the winning bets * that result in each possible outcome of the roulette wheel. */ namespace Week5GradedExercise { class Program { private static Table table = new Table(); // made the ...
aee6a38aa4ca069b745e67cdb60984337c108941
C#
taro55/CacheableContentResult
/CacheableContentResult/CacheableContentResult.cs
2.5625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.Mvc; namespace Toolbelt.Web { public class CacheableContentResult : ActionResult { private enum CacheHint { None, Hit, Miss ...
829f510eb1379503cd72a4accf5655dc913899d9
C#
ytyaru/CSharp.PatternMatching.BestPractice.20191102154755
/src/PatternMatch/Code3.cs
3.234375
3
using System; namespace PatternMatch { class Code3 { public void Run() { Console.WriteLine("===== Code3 ====="); Console.WriteLine(Best(new Point(1,2))); Console.WriteLine(Bad(new Point(1,2))); Console.WriteLine(Bad2(null)); }...
f9a0d305c7ec9c61636004f720795c44147cb06d
C#
MarizzaM/ExerciseDay
/exercise_22.cs
3.109375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ExerciseDay { class Program { //static ManualResetEvent host = new ManualResetEvent(false); static AutoResetEvent host...
3848276f15e076d082c63cd5b42acd2920e16d1e
C#
smith-kyle/all-my-favorite-bands
/BandName/Model/WebPost.cs
2.859375
3
using System; using System.Net; using System.IO; using System.Xml; using System.Threading.Tasks; using System.Net.Http; using System.Collections.Generic; using System.Collections.ObjectModel; namespace BandName { public class WebPost { /* Password removed from open source version*/ private string password = "ia...
0e2f69bb12b334022d9ecad7095ac69b5f55c595
C#
userpaulo123/logica
/exercicios/todoList/Program.cs
3.140625
3
using System; using System.IO; using System.Collections.Generic; namespace todolist { class Program { static int Main(string[] args) { List<string> todoList= new List<string>(); string fileName = "todo.csv"; string filePath = ".//" + fileName; ...
a2eb9d8598652a9274db525178eff860b67e9a37
C#
Sufflavus/OoadExamples
/01_RickStore/Source/StoreBusinessLogic/Extensions/EnumExtensions.cs
2.984375
3
using System; namespace RickStore.StoreBusinessLogic.Extensions { public static class EnumExtensions { public static T GetAttributeOfType<T>(this Enum enumValue) where T : System.Attribute { var type = enumValue.GetType(); var memInfo = type.GetMember(enumValue...
97fa24bf97c4581c33ed6a1d95919ad7727ad86d
C#
dj-soft/GraphLibrary
/GraphLib/Components/SyntaxEditor.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using System.ComponentModel; using System.Collections; using Parsing = Asol.Tools.WorkScheduler.Data.Parsing; namespace Asol.Tools.WorkScheduler.Components { #regio...
faacf7b6da2edb1bfa4e7dfbb354c3ea53ce5c1b
C#
SuperMegaGiperProger/Tracer
/example/Sleeper2.cs
2.671875
3
using System; using tracer; namespace example { public class Sleeper2 { private ITracer _tracer; public Sleeper2(ITracer tracer) => _tracer = tracer; public void sleep2(int millisecondsTimeout) { _tracer.StartTrace(); System.Threading.Thread.Slee...
9a3c0ca2fc2f6196f6d02923a1ef7105624acc24
C#
gogowaten/20180226forMyBlog
/WPF色一覧/MainWindow.xaml.cs
2.6875
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...
160bd5db504187d9da83291d54336af5e59c57e7
C#
laroqued/MikeDane
/ObjectMethods/Student.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ObjectMethods { class Student { //create attributes public string name; public string major; public double gpa; //Constructor public S...
af165a189e5db8c63ef596367f17f6737684f251
C#
asdfgasdfsafgsdfa/BoostBotAttackAlgorithms
/RandomDeploy/RandomDeploy.cs
2.9375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Threading.Tasks; using CoC_Bot; using CoC_Bot.API; using Shared; [assembly: Addon("RandomDeploy", "Randomly scatter troops across the screen", "Eric Lindsey")] namespace RandomDeploy { [AttackAlgorithm("Random D...
56b425fffdb2bd771dbbfe7d46c720cfbc6e5dfe
C#
loredanasilaghi/Tema1
/Tema1UnitTests/Problema1.cs
3.3125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; namespace Tema1UnitTests { [TestClass] public class Problema1 { [TestMethod] public void TestProblem1a() { int m = 6; int n = 6; int a = 4; ...
eafb1b63b9d107989ffbf4b2ba0a81e860229710
C#
curiouslearning/Norad-Eduapp4syria
/Antura/EA4S_Antura_U3D/Assets/_games/TakeMeHome/_scripts/TakeMeHomeIntroductionState.cs
2.734375
3
namespace EA4S.TakeMeHome { public class TakeMeHomeIntroductionState : IGameState { TakeMeHomeGame game; public TakeMeHomeIntroductionState(TakeMeHomeGame game) { this.game = game; } public void EnterState() { game.IncrementRound(); if (game.currentRound > 6) { game...
989a67afc67ba82c2e4385354672af96fb156e0a
C#
Wysnan/EIMOnline
/EIMOnline/Wysnan.EIMOnline.MVC/Wysnan.EIMOnline.Business/Framework/Cache/Cache_Message.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Wysnan.EIMOnline.Common.Framework; using Wysnan.EIMOnline.Business.Framework.Cache; namespace Wysnan.EIMOnline.Business.Framework.Cache { public sealed class Cache_Message : ICache { static readonly Cache_Messa...
59996b627c4a3b242850be1d634aa77b9b4769d8
C#
KLKln/ContactsKlein
/ContactsKlein/Models/ContactContext.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Mvc; namespace ContactsKlein.Models { public class ContactContext : DbContext { public ContactContext(DbContextOptions<ContactContext> option...
e8b7c1c2d0862f65f083e60515b3d8c762b5a3d2
C#
tonyjt/ProjectManagementSite
/Code/PMS/DataAccess/PMSDBDataAccess/ProjectDAL.cs
2.78125
3
using PMS.Model; using PMS.PMSDBDataAccess.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.Data.Entity; namespace PMS.PMSDBDataAccess { public class ProjectDAL { public...
58d067b3bd740aaf22eaa6743141196d74a1c4f5
C#
gamkedo-la/grimsnap
/Assets/Scripts/TestScripts/PlayerInput.cs
2.96875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Can to change how this works to a singleton that takes a more generic input later if necessary public class PlayerInput : MonoBehaviour { //This will contain more inputs for things like abilities, healing etc. For now Left click can...
665f1117501a977f5ce7c85a376f62791ffee980
C#
zaze97/www
/Assets/WWW/上传/HttpWrapper.cs
2.78125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class HttpWrapper : MonoBehaviour { /// <summary> /// 请求数据 /// </summary> /// <param name="url">链接</param> /// <param name="onSuccess">成功事件</param> /// <param name=...
f4bd40659770806e8f2354e76ccaffc0181bdeb1
C#
BudimirDavor/CsharpSchool
/PR_8_1.CS
3.4375
3
using System; public class Test { public static void Main() { string[] RedniBrojevi1 = new string[] {"First", "Second", "Third", "Fourth", "Fifth"}; Array.Sort(RedniBrojevi1); for(int i=0; i < RedniBrojevi1.Length;i++) Console.Write(RedniBrojevi1[i] + " "); Console.WriteLine(); Array R...
494a9e2add229a0d5f6c9928f754f1bff901f4e6
C#
miguel2323/WebFarmacia
/WebFarmacia.Web/Data/Repository.cs
3.0625
3
 namespace WebFarmacia.Web.Data { using Entities; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public class Repository : IRepository { private readonly DataContext context; // aqui vamos a inyectar la conexion a la base de datos pu...
454806c1ab14a442427833df21163f22ad7720dd
C#
gitter-badger/OKHOSTING.Sql
/src/PCL/OKHOSTING.Sql/CommandParameter.cs
2.984375
3
using OKHOSTING.Data.Validation; using System; namespace OKHOSTING.Sql { /// <summary> /// Represents a generic command parameter to be used on command executions /// </summary> public class CommandParameter { public CommandParameter() { } public CommandParameter(object value): this(value, null) { }...
e42a3d58128efdf35a3cf552f63821fa2a2db2df
C#
narusevic/ComparisonShoppingEngine
/CSE/CSE/Form1.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using CSE.BackEnd; namespace CSE { public partial class Form1 : Form { L...
fe42ff395a57e64488862abcf359c43001fc2b2d
C#
Khokran/SoftUni_Homeworks
/Entity_Framework_1/MyCarSystem/Data/Queries/CarQueries.cs
2.671875
3
using Microsoft.EntityFrameworkCore; using MyCarSystem.Results; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyCarSystem.Data.Queries { public class CarQueries { public static Func<CarDbContext, IEnumerable<ResultModel>> ToResult = EF.Comp...
7673c5b1b22781496eeca1853df90245a0ed765b
C#
eway-crm/CruiseControl.NET
/project/Remote/Events/CancelProjectEventArgs.cs
2.609375
3
using System; namespace ThoughtWorks.CruiseControl.Remote.Events { /// <summary> /// Event args for allowing a project-based event to be canceled. /// </summary> public class CancelProjectEventArgs : ProjectEventArgs { private bool isCanceled/* = false*/; /// <summary> ...
8d3763ef221d512262829df12ba55d6c5ddfbbcd
C#
cmg7063/IGME105-106
/IGME 106/Graphs + Graph Searching/Graphs/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Graphs { class Program { static void Main(string[] args) { AdjacencyList adjList = new AdjacencyList(); string start = "MASTER BEDROOM"; ...
e4658154c4749b9a718d27ee89095d60ceb3bef6
C#
lovemyselfbest/FoodSys
/4_SourceCode/FoodSys.Entity/Entity/SysDate.cs
2.515625
3
using System; namespace FoodSys.Entity { /// <summary> /// 系统日期表,记录某一天是否是节假日、周末。 /// </summary> public class SysDate_Validation { /// <summary> /// /// Length : /// </summary> public virtual System.Guid ID { get; set; } /// <summary> ...
9c5ce6484c09203d54ef1bd102bd933cfa3ebb93
C#
chrystianmote/ASP.NET-AulasWeb
/ASP.NET Full/Aula14/ControlesAvancados/ControlesAvancados/UsandoCalendar.aspx.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawing; namespace ControlesAvancados { public partial class UsandoCalendar : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e...
df07bcbf088443aae4f48fa218574c08ab6d7c14
C#
vidget/7_9_15_ExperIT_Loops1
/Program.cs
3.921875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _7_9_15_ExperIT_Loops1 { class Program { static void Main(string[] args) { for(int x=1; x<=100;x++) { //che...
00f880365b1c76089eb21f1fcba699a0586a5e6f
C#
crvici-u-treningu/Sharpness
/Pong/Ball.cs
3.09375
3
using System; using System.Collections.Generic; using System.Text; using Sharpness; namespace Pong { class Ball : IGameObject { double ballX, ballY; double speedX, speedY; public void Config(ref Config config) { ballX = 320; ballY = 240; spee...
3a69bfbdbaa0dd061b1f125eb0eecc0d01a5b07c
C#
Toreole/UEGP3_HW_02
/UEGP3Unity_HW2/Assets/Code/PlayerSystem/PlayerController.cs
2.515625
3
using System; using UnityEngine; namespace UEGP3.PlayerSystem { [RequireComponent(typeof(CharacterController))] public class PlayerController : MonoBehaviour { [Header("General Settings")] [Tooltip("The speed with which the player moves forward")] [SerializeField] private float _movementSpeed = 10f; [Header(...
f99c5decd65867ee825e359b8163b4c4b89ddf47
C#
Dozer74/Cube3D
/3DCube/FrmRender.cs
2.75
3
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace Cube3D { public partial class FrmRender : Form { public FrmRender() { InitializeComponent(); } Cube cube; Point drawOrigin; private float tX, ...
7ea6381911883e92b16117d20905c90bd135af96
C#
TianRongsheng/-
/15_AsyncSamples/DownloadFile/Program.cs
2.78125
3
using System; using System.Net; using static System.Net.Mime.MediaTypeNames; namespace DownloadFile { class Program { static void Main(string[] args) { string url = "http://www.lzzy.net/upload/main/image/2018/09/12/201809121022432155.jpg"; var fileName = FileHandler.Asy...
4c9df09031acc90770d6437f9377828c553a1980
C#
longtn/dino-ac
/AutoClick/Base/ViewModelBase.cs
2.6875
3
using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows.Controls; namespace AC.Base { public abstract class ViewModelBase : INotifyPropertyChanged { public Page Parent { get; private set; } public event PropertyChangedEventHandler PropertyChanged; pub...
c8041bbe62b275da3b7c086c2d49f27455cc0d2c
C#
JordyRutjens/ContainerTransport
/ContainerTransport.Models/Selection.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ContainerTransport; namespace ContainerTransport.Models { public class Selection { public int Place { get; set; } public RowSide Side { get; set; } public bool Cont...
37d684a60c01d0f1a33196552b39f2bc3f651784
C#
polytronicgr/GCodeTools
/JavaConverted/Tour.cs
3.421875
3
using System; using System.Linq; using System.Collections.Generic; using GCodeOptimizer; namespace tsp { /// <summary> /// Tour.java /// Stores a candidate tour /// </summary> public class Tour : ICloneable { // Holds our tour of cities private List<City> tour = new List<City>(); // Cache private doub...
7199bc6d3b30e9ccc9c51be9301695d691f434af
C#
shendongnian/download4
/first_version_download2/411922-36036403-113365062-2.cs
2.578125
3
public class ExtendedCommentFile { private readonly CommentFile _comment; public ExtendedComment(CommentFile comment) { _comment = comment; } public int UserId { get { return _comment.UserId; } set { _comment.UserId = value; } ...
a21aca89eb8e5770e2ea655d7ab590349940aba1
C#
YourGithubTag/DwellingAPI
/DwellingAPI/Controllers/RoomsController.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using DwellingAPI.Model; namespace DwellingAPI.Controllers { [Route("api/[controller]")] [ApiController] pu...
85298495b28fb26ae4c1e41ffbe90f498eab223a
C#
GTANetworkDev/platform
/Shv.NET/source/scripting/PedGroup.cs
2.546875
3
using System; using System.Collections; using System.Collections.Generic; using GTA.Native; namespace GTA { public enum FormationType { Default, Circle1, Circle2, Line } public class PedGroup : PoolObject, IEquatable<PedGroup>, IEnumerable<Ped>, IDisposable { public class Enumerator : IEnumerator<Ped> ...
50beb095e26af46e6dffa985995be66637420855
C#
ArBond/ITStep
/Cs/lessons/lesson8_overloading-inheritance-hw7/hw7_21.09.17/program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace hw7_21._09._17 { class Program { static void Main(string[] args) { Fraction f = new Fraction(3, 4); int a = 10; Fraction f1 = f * a; ...
b24db9861927ca9f55e1614e58c5a73bfd850490
C#
lulzzz/FuzzyLogic.NET
/Source/FuzzyLogic.UnitTests/FuzzificationTests/FuzzyStateTests.cs
2.609375
3
// ------------------------------------------------------------------------------------------------- // <copyright file="FuzzyStateTests.cs" author="Christopher Sellers"> // Copyright (C) 2017. All rights reserved. // https://github.com/cjdsellers/FuzzyLogic // the use of this source code is governed by the Apac...
d237b4accb9c37406a1504e13ac3d44e2ec40da0
C#
wdq/PwgTelegramBot
/PwgTelegramBot/Models/Telegram/CallbackQueryModel.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PwgTelegramBot.Models.Telegram { public class CallbackQueryModel { public string Id { get; set; } public UserModel From { get; set; } public MessageModel Message { get; set; } public ...
9c2c67e94db14099801b1165dc7ac228dd4a6b17
C#
lookitsash/SpaceSim
/SpaceSim/SpaceSim/CustomGraphicsDeviceManager.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace SpaceSim { public class CustomGraphicsDeviceManager : GraphicsDeviceManager { public GameDisplayType GameDisplayType; public int DisplayID { get ...