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 |
|---|---|---|---|---|---|---|
4ec2edb0d19fe8c61721d8848bc13b8edadd2d91 | C# | sainitripti/S2-Bootcamp-PIC | /DataStructures/Program.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataStructures
{
class Program
{
static void Main(string[] args)
{
DynamicArray numbers = new DynamicArray();
for (int i = 0; i < 15; i++)
... |
f82957d4d7c18bced004e631965f24f921b8d873 | C# | legudale/EHReplayADL | /FileWatermarkStorage.cs | 2.765625 | 3 | using Newtonsoft.Json;
using System;
using System.IO;
namespace EHReplayADL
{
internal class FileWatermarkStorage : IWatermarkStorage
{
public void SaveWatermarkForPartition(int partitionId, Watermark watermark)
{
var fileName = FilenameForPartition(partitionId);
var js... |
5e7af993937c2d33042ad3ca122e96be794d81e7 | C# | mlobin/171-gravifield | /171-gravifield/FastMath.cs | 3.03125 | 3 | using System;
namespace _171_gravifield
{
public class FastMath
{
private static int ATAN2_BITS = 7;
private static int ATAN2_BITS2 = ATAN2_BITS << 1;
private static int ATAN2_MASK = ~(-1 << ATAN2_BITS2);
private static int ATAN2_COUNT = ATAN2_MASK + 1;
private static ... |
1d8892b433e3b70a02c7f3a91eb9b1c399d9280a | C# | dmswart/Personal-Projects | /ImageManipulation/ScratchRenderer/OctahedronUnit.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DMSLib;
using System.Drawing;
namespace ScratchRenderer
{
public class OctahedronUnit : Renderer
{
// It goes: A B C
// D O E
// F G H
Point3D O, A, B, C, D, ... |
bcf4620ebf3cb89e77717ac167343e647febc1aa | C# | smartTigerCode98/abstract_class | /App/AverageSalaryCalculator.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Classes.Interfaces;
namespace App
{
public class AverageSalaryCalculator : IAverageSalaryCalculator
{
public decimal CalculateAverageForType<T>(IEnumerable<IUniversityWorker> users) where T : IUniversityWorker
{
return users.OfType<T>().... |
446e68c83f3727078659a89df5006e79026c00c4 | C# | y3lousso/MathPhysProjetFinal | /Assets/Scripts/MathsUtility/MyVector3.cs | 3.015625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class MyVector3
{
public static MyVector3 Zero = NewZero();
public static MyVector3 One = NewOne();
public static MyVector3 Up = new MyVector3(0, 1, 0);
public static MyVector3 Left = new MyVector3(1, 0,... |
c64bd8cd01412c6f822c79a6112fcaeaf8e9dd9e | C# | ksci/Patterns_Command | /CommandGUI/CommandPattern/CommandPattern/Databases/DataBase.cs | 3.15625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CommandPattern.Databases
{
public class DataBase
{
public Dictionary<string, string> _data { get; set; }
publi... |
6ec64d0902e88721caf84be7bfc4fafc602d59e1 | C# | NAXAM/tangle-.net | /Tangle.Net/Tangle.Net.Mam/Merkle/MerkleTree.cs | 2.90625 | 3 | namespace Tangle.Net.Mam.Merkle
{
using System.Collections.Generic;
using Tangle.Net.Cryptography;
/// <summary>
/// The merkle tree.
/// </summary>
public class MerkleTree
{
#region Public Properties
/// <summary>
/// Gets or sets the root.
/// </summary>
public MerkleNode Root { ... |
8b4790a61f7ae4840824106dafc13d52ca02c7cd | C# | ViniciusConsultor/geansoft | /Gean/Gean/Gean.Library/Exceptions/GeanException.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace Gean.Exceptions
{
/// <summary>
/// Gean.Library的的基础异常类,所有的异常从本类派生
/// </summary>
[global::System.Serializable]
public class GeanException : ApplicationException
{
... |
83d0f73a100b0d2931471df0373b26683839774a | C# | twilightgod/PlayLeetcode | /0929/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
namespace _0929
{
public class Solution
{
public int NumUniqueEmails(string[] emails)
{
var emailSet = new HashSet<string>();
foreach (var email in emails)
{
var atPos = email.IndexOf('@');
... |
9c67b17536f779cae845687654100683f49f0be8 | C# | mli2805/WebListener | /BalisWpf/DataGridBehaviors/ScrollToBottomOnAddBehavior.cs | 2.765625 | 3 | using System.Collections.Specialized;
using System.Windows.Controls;
using System.Windows.Interactivity;
namespace BalisWpf
{
class ScrollToBottomOnAddBehavior : Behavior<DataGrid>
{
protected override void OnAttached()
{
INotifyCollectionChanged itemCollection = AssociatedObject.I... |
d0d9037075725036dc6c212a867e84a623453956 | C# | njimenez/AkkaProjects | /WinTail/Actors/WinTailSupervisor.cs | 2.578125 | 3 | using Akka.Actor;
using System;
using System.IO;
using WinTail.Messages;
using WinTail.ViewModels;
namespace WinTail.Actors
{
public class WinTailSupervisor : ReceiveActor
{
private IActorRef fileEnumerator;
private IActorRef validator;
private readonly MainWindowViewModel m_vm;
... |
63fd5ff9161aa9779431f8e8af6944f3ce44dcce | C# | deedeedextor/Software-University | /C#Advanced/C#OOP/InterfacesAndAbstractionsLE/BorderConstrol/Buyer.cs | 2.6875 | 3 | namespace BorderConstrol
{
using System;
using System.Collections.Generic;
using System.Text;
public abstract class Buyer : LivingCreature, IBuyer
{
public Buyer(string birthDate, string name)
: base(birthDate, name)
{
}
public int Food { get; protecte... |
d09aaaa5e3d6e3c6d00d5efbfb2973c3e3c1fa6e | C# | shendongnian/download4 | /code1/7781-126374-179909-2.cs | 3.40625 | 3 | namespace ConsoleApplication2
{
using System;
using System.Collections.Generic;
using System.Collections;
class B
{
}
interface IEditable
{
void StartEdit();
void StopEdit();
}
class EditContex... |
6c34ef82c6318ff5b8e08977002a12b075e37d52 | C# | ancasimon/InheritanceAndComposition | /InheritanceAndComposition/LegoPieces/Torsos/FarmerTorso.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace InheritanceAndComposition.LegoPieces.Torsos
{
class FarmerTorso : Torso
{
public FarmerTorso(Sex sex)
{
Clothing = "Red plaid shirt";
Accessory = "Garden hoe";
ArmType = ArmType.Str... |
9754ee350efea9364f506cbb8429d08a646bb76b | C# | svetlana-juhnevica/NET | /TodoApp/Tasks.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TodoApp
{
class Tasks
{
public List<string> MyTasks;
public Tasks()
{
MyTasks = new List<string>();
}
public void Add()
... |
61b28a9e9ad58269f99b4ea0ca334d1c9f6bcbc8 | C# | buzskiy/csharpbuzskiy | /CSharpHW/1/Program.cs | 3.3125 | 3 | /** 7. Create Hello World console application and print your name there. Colour of your text should be yellow.
*/
using System;
namespace _1
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor=ConsoleColor.Yellow;
var name = "Alex";
... |
410712def28bd50105b31233fb4830317316fd19 | C# | ngs-doo/revenj | /csharp/Client/Revenj.Client.Interface/Patterns/Repositories.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Revenj.DomainPatterns
{
public interface ISearchableRepository<T>
where T : class, ISearchable
{
Task<T[]> Search(ISpecification<T> specification, int? limit, int? offset, IDictionary<string, boo... |
d03ef44c65b8056b032214299f2c391d7d4fd519 | C# | CowanSM/clist | /CList/CList.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CList {
delegate void Func<T>(T item);
public class CList<T> : List<T> {
public CList(int capacity)
: base(capacity) {
}
public CList()
: base() {
}
... |
252ee0cc040d1f683353907e2e5ebb67563caf56 | C# | WKLeee/monogame_zelda | /Commands/PauseCommand.cs | 2.640625 | 3 | using System;
using Sprint_1.Interfaces;
namespace Sprint_1.Commands
{
class PauseCommand : ICommand
{
private readonly Game1 myGame;
private readonly String pause = "Pause";
public PauseCommand(Game1 game)
{
myGame = game;
}
public void Execute()
... |
be4ebad442c40cc2c1df938a86c29e213d5f283c | C# | ahmedbirohaa/C-sharb-course-codes1 | /Lambda Expression التعبير البرمجي الليمدا/Lambda Expression التعبير البرمجي الليمدا/Program.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace Lambda_Expression_التعبير_البرمجي_الليمدا
{
delegate int mynuber(int mynumber);
class Program
{
static int myxnumer = 3;
static void Ma... |
df16d27117ccaa762fe6354e0a0180ab486c18c9 | C# | SatsuiBird/SatsuiInputDemo | /DemoMVVM/ViewModels/MainViewModel.cs | 2.765625 | 3 | using System;
using System.ComponentModel;
using System.Collections.ObjectModel;
using SatsuiInput;
using DemoMVVM.Models;
namespace DemoMVVM.ViewModels
{
public class MainViewModel : INotifyPropertyChanged
{
#region MyActions
private ObservableCollection<MyAction> myActions;
public O... |
731f3b9c4885dd4dc5693b0ac29f3c433dc9e5aa | C# | kathryn-avanade/Project | /Plant/Models/Repos/RepoWrapper.cs | 2.6875 | 3 | using Plant.Data;
using Plant.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Plant.Models.Repos
{
public class RepoWrapper : IRepoWrapper
{
//Dependency injection for 'fake' db
ApplicationDBContext _repoContext;
pu... |
2e60480f72f9aef546bf13cc737458f4be1cc0e6 | C# | Uoh-Scarborough/Pocket-Campus | /PocketCampusClasses/ClassGroup.cs | 2.515625 | 3 |
using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.D... |
3bdc2eee06104966f55c96bb7075d5aed36ee64c | C# | Azure/azure-remote-rendering | /Unity/Showcase/App/Assets/App/Utilities/BufferPool.cs | 2.515625 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Threading;
using UnityEngine;
/// <summary>
/// A pool of T arrays that can be used to serialize data.... |
d0738898130b981c6623dc206ac8214170d8acb6 | C# | seirius/moma-tg | /Assets/scripts/Tiles.cs | 2.734375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
public class Tiles : MonoBehaviour {
public int width;
public int height;
public List<List<Tile>> tiles;
public GameObject tilePrefab;
void Start() {
tiles = new List<List<Tile>>();
for... |
7d19ba051dd9134d6d1a73e4cfa84a9106322adf | C# | Gio93k/Academy | /ProgettoAcademy/BuilderCompleanno.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProgettoAcademy
{
public class BuilderCompleanno : AbstractBuilder
{
// data compleanno , nome utente (?)
private static BuilderCompleanno _instance = null;
pr... |
a25203841d3eb8f2442457366b692d8e0255486e | C# | surangaf/Analysis-Services | /ModelRefresh/Program.cs | 2.75 | 3 | using System;
using Microsoft.AnalysisServices.Tabular;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
namespace AAS_Refresh
{
class Program
{
static void Main(string[] args)
{
try
{
//Set up all the variables needed
... |
90e0c8bff97341e2fb2bd86b2177598e058772ba | C# | ansarifaisal/LIBRARY_MANAGEMENT | /LibraryBackEnd/Controllers/BookController.cs | 2.65625 | 3 | using LibraryBackEnd.Core.Models;
using LibraryBackEnd.Core.Services.Interface;
using System;
using System.Web.Http;
namespace LibraryBackEnd.Controllers
{
[Authorize]
[RoutePrefix("api/book")]
public class BookController : ApiController
{
private IBookService _bookService;
public Boo... |
ef5068bfd0c89c762adebb4a81f1e64806a1d3b0 | C# | Morgend/Geometry.Net | /src/Geometry/QuaternionF.cs | 2.828125 | 3 | /*
* Copyright 2019-2021 Andrey Pokidov <andrey.pokidov@gmail.com>
*
* 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 requ... |
b1432ec32345ef441b6d51354e9c66da5d289a1a | C# | btreier/Week7-Funktsioonid | /UserNameDataTask/Program.cs | 3.65625 | 4 | using System;
namespace UserNameDataTask
{
class Program
{
static void Main(string[] args)
{
//programm küsib kasutajal sisestada oma eesnime
//programm küsib kasutajal sisestada number 1-3
//kui sisestab 1, kuvatakse kasutaja eesnimi tagurpidi
/... |
2e0d42b58299c6b331824cca0343676dd33d7e6e | C# | GoranGit/CSharp-Part-II | /Homework/Matrix/03SequenceNMatrix/SequenceNMatrix.cs | 3.765625 | 4 | using System;
//We are given a matrix of strings of size N x M. Sequences in the matrix we define as sets of several neighbour elements located on the same line, column or diagonal.
//Write a program that finds the longest sequence of equal strings in the matrix.
namespace _03SequenceNMatrix
{
class Program
{
... |
81e73afe936eb9f5a5630044ebf985eb9a63172c | C# | llooiicc9/Agricathon | /DTO/Reservation.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTO
{
public class Reservation
{
//Déclare les champs présents sur la base de donnée
public int IdReservation { get; set; }
public String ClientLastName { get; ... |
537f9c2e059803629fe8e7b42f4f43ff01af5396 | C# | MarcinKruszynski/HoloVision | /HoloVision9/Assets/Scripts/ThrowBall.cs | 2.5625 | 3 | using HoloToolkit.Unity.InputModule;
using UnityEngine;
public class ThrowBall : MonoBehaviour, IInputClickHandler
{
public float ForceMagnitude = 300f;
public void OnInputClicked(InputEventData eventData)
{
Throw();
}
private void Throw()
{
var ball = GameObject.CreatePr... |
d48d3e28e1a9ba141867e94d83ce3dc4e44a426e | C# | shmcgough/rhythm-runner | /RhythmRunner/RhythmRunner/Game/Obstacle.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
namespace RhythmRunner.Game
{
class Obstacle
{
private Texture2D blockSprite;
private Texture2D wallSprite;
private Texture2D ho... |
4ea699de7adbe0d3be27fdd576038c6a8587327c | C# | PMinkova/SoftUni-tasks-and-projects | /C# Programming Basics/10. Nested Conditional Statements - More Exercise/09_Multiplyby2/MultiplyBy2.cs | 3.609375 | 4 | using System;
namespace _09_MultiplyBy2
{
class MultiplyBy2
{
static void Main(string[] args)
{
double n = double.Parse(Console.ReadLine());
double result = 0;
while (n >= 0)
{
result = n * 2;
Console.WriteLine($"... |
058b590cd497693c3000284cc5c0a05a661a55e1 | C# | Golden007Credentials/https-github.com-graphql-dotnet-graphql-dotnet | /src/GraphQL/ValueConverter.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Numerics;
namespace GraphQL
{
public static class ValueConverter
{
private static readonly Dictionary<Type, Dictionary<Type, Func<object, object>>> _valueConversions
= new Dictionary<Type, Dictionary<Ty... |
bd4a78633464716f62bb935a5ef8c0cb0e9d543f | C# | erickrivasgomez/.NET-MVC-Entity | /Training.DTO/User.cs | 2.75 | 3 |
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
namespace Training.DTO
{
public class User
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("fullName")]
[MaxLength(100)]
public string FullName { get; set; }
[Json... |
02cd4f8018e328915fda8824ba35e32cafa07874 | C# | ShiyunLiu/ShiyunLiu.application.HotelManagementSystem | /HotelManagement.Infrastructure/Services/RoomTypeService.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManagement.Core.Entities;
using HotelManagement.Core.Models.Request;
using HotelManagement.Core.Models.Response;
using HotelManagement.Core.RepositoryInterfaces;
using HotelManagement.Core.Ser... |
baebe0550adecb43c21c0096741d4282dc8e6e31 | C# | yakik/rubikCubeSolver | /csharp/Production/utils/ColorHandler.cs | 2.90625 | 3 | namespace utils
{
public class ColorHandler{
static public Color getColor( int intValue) { // Constructor
switch (intValue)
{
case 0:
return Color.FRONTCOLOR;
case 1:
return Color.BACKCOLOR;
case 2:
return... |
aff9edd1b165c056e420deeb459279e1fa2fa6ad | C# | dotnet/ef6 | /src/EntityFramework/Hierarchy/HierarchyId.cs | 2.84375 | 3 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.Hierarchy
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
... |
c39208049f8b4e03227b11ea879b6122be2f0512 | C# | 598235031/Prism | /Prism/ViewModel/NotificationObject.cs | 2.5625 | 3 | using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
namespace Wanghzh.Prism.ViewModel
{
[Obsolete("Please use Prism.Mvvm.BindableBase")]
[Serializable]
public abstract class NotificationObject : INotifyPropertyChanged
{
[field: NonSeri... |
b707f642ef4e9087505325a2084074081b72baac | C# | Jackjet/ECOSingle | /ECO(备份)/DevAccessAPI/EcoDevice.AccessAPI/BankValueEntry.cs | 2.53125 | 3 | using System;
namespace EcoDevice.AccessAPI
{
public class BankValueEntry
{
private int bankNumber = 1;
private string current;
private string voltage;
private string power;
private string powerDissipation;
private BankStatus bankStatus = BankStatus.ON;
public int BankNumber
{
get
{
return t... |
f51edcf5bf5a301677d1cae03390a51f370dc0df | C# | xcasadio/FlowGraph | /FlowSimulator/ProjectManager.cs | 2.578125 | 3 | using System.Xml;
using FlowGraph;
using FlowGraph.Logger;
using FlowSimulator.FlowGraphs;
namespace FlowSimulator
{
internal static class ProjectManager
{
public static void Clear()
{
NamedVariableManager.Instance.Clear();
GraphDataManager.Instance.Clear();
... |
78c4504c37a4948a397a44c36a73609d2cc03d2b | C# | lawrencexfs/go-service-examples | /client-service-demo-csharp/Service/Net/Client.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GameBox.Service.Net
{
public class Client : IClient
{
public int ConnectTimeOut { get; set; }
public IParser Parser { get; set; }
public event Action OnClosed;
public event Action ... |
33e3dabab7f18a5ef954bf14d49ad9266ec3de6e | C# | Alanomari/Lab2 | /Lab2/Program.cs | 3.484375 | 3 | using System;
using ShapeLibrary;
using System.Numerics;
using System.Collections.Generic;
using System.Globalization;
using StringLibrary;
namespace Lab2
{
class Program
{
static void Main(string[] args)
{
var shapeList = new List<Shape>();
float triangleSum =... |
ae06446ea23c795b6ba3cd7d561dfb92f9a0fff8 | C# | ANCHETOO/SoftUni_Projects | /Programming_Basic_with_C#/While_Exercises/Exam_Preparation.cs | 3.484375 | 3 | using System;
namespace Exam_Pep
{
class ExamPreparation
{
static void Main(string[] args)
{
int poorGrades = int.Parse(Console.ReadLine());
string comand = Console.ReadLine();
double mark = 0;
double sum = 0;
string lastProblem = str... |
f256782a963afdedc5bc4fcc233c1035b9d22070 | C# | Ahoerstemeier/tambon | /AHGeo/MaidenheadLocator.cs | 3.015625 | 3 | /*
* Original author: G. Monz (DK7IO), 2011-03-31
* This file is distributed without any warranty.
* http://www.mydarc.de/DK7IO/programmierung/GM.Geodesy/MaidenheadLocator.cs
* */
using System;
using System.Collections.Generic;
namespace De.AHoerstemeier.Geo
{
/// <summary>
/// Converts geograp... |
a74afa76635f0779901b5a419d7de41f7e087e14 | C# | Media-Hub/VNACCS | /DevComponents.DotNetBar.SuperGrid/SuperGrid/Style/Padding.cs | 3.03125 | 3 | using System;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
namespace DevComponents.DotNetBar.SuperGrid.Style
{
///<summary>
/// Padding
///</summary>
[TypeConverter(typeof(PaddingTypeConverter))]
public class Padding : Thickness
{
#region Static dat... |
9e8b40fd2050a9889aacf371f63e6e1c7311ec03 | C# | 2dave/EmailFileParser | /EmailTests/EmailFixture.cs | 3.03125 | 3 | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using System.Reflection;
using EmailApi;
namespace EmailTests
{
public class EmailFixture
{
[Fact]
public void ReadFileCheck()
{
... |
d617d99e7b4c96d1f17856b33f5be2af48a915d8 | C# | quanliang2000/eventbus | /src/Tingle.EventBus/EventTransportNameAttribute.cs | 3.109375 | 3 | using System;
namespace Tingle.EventBus
{
/// <summary>
/// Specify the name of the transport used for this event contract/type, overriding the default one.
/// <br />
/// To specify the name of a custom transport, use <see cref="Transports.TransportNameAttribute"/>.
/// </summary>
[AttributeU... |
a6607d4fabc417355f7b6263e2b4d8311f3ea414 | C# | coelacanth77/C1ExcelSample001 | /C1ExcelSample001/MainWindow.xaml.cs | 2.75 | 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;... |
5794225d89d40b362b71736754e98ea635ef2578 | C# | thored3011/DB_Users | /Form1.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;
using System.Data.OleDb;
using System.Configuration;
namespace DB_Users
{
public partial class Form... |
850d72822bfcbf6601572c132b2e1efd102a1137 | C# | kosmonafta666/C-Fundamentals | /Dictionaries, Lambda and LINQ/Dictionaries-Lab/Count Real Numbers/CountRealNumbres.cs | 3.890625 | 4 | namespace Count_Real_Numbers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class CountRealNumbres
{
public static void Main(string[] args)
{
var list = Console.ReadLine().Split(' ').S... |
4ff1fbc284cf667300a778f9d54403779e83cebe | C# | tmandersson/FastGTD | /Tools/bricks-toolkit/Bricks/Core/DateMonth.cs | 3.046875 | 3 | using System;
namespace Bricks.Core
{
[Serializable]
public class DateMonth
{
private Span span;
private int spanValue;
private Month month = Month.January;
public DateMonth() {}
public DateMonth(Span span)
{
this.span = span;
... |
82e8e41dd35aea4c36de611e51be12950cac128d | C# | ljzms1212/ImageProcessor | /ImageProcessor/ImageProcessor/Core/ImageProcessService.cs | 2.84375 | 3 | using ImageProcessor.Model;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
namespace ImageProcessor.Core
{
/// <summary>
/// 图片处理服务
/// </summary>
public class Im... |
12732022920ed9ac5924dbf17f471eb3f1c5da37 | C# | j00n44th44n/CoolCompiler | /Cool Semantic Check/Visitor/TypeBuilderVisitor.cs | 2.515625 | 3 | using System.Collections.Generic;
using System.Linq;
using CoolCheckSemantic.Scopes;
using CoolCheckSemantic.Visitor.Interfaces;
using CoolGrammar.AST;
using CoolGrammar.AST.Feature;
using CoolGrammar.AST.Util;
using CoolGrammar.Grammar;
using CoolGrammar.Interfaces;
namespace CoolCheckSemantic.Visitor
{
... |
08a82d1ffa61fb6d6ca40b82093809546922825b | C# | benryves/Cogwheel | /Sega/Hardware/Controllers/SC3000Keyboard.cs | 2.703125 | 3 | using System;
namespace BeeDevelopment.Sega8Bit.Hardware.Controllers {
/// <summary>
/// Emulates a SC-3000 keyboard.
/// </summary>
public class SC3000Keyboard {
/// <summary>
/// Defines a key on the <see cref="SC3000Keyboard"/>.
/// </summary>
public enum Keys {
/// <summary>The 1 key.<... |
88e6358cb2dbf73ef8066fdee78a9a301c3ccc27 | C# | Calamario/FunemploymentClient | /Funemployment/Funemployment/Models/PlayerAllAnswersViewModel.cs | 2.53125 | 3 | using Funemployment.Data;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace Funemployment.Models
{
public class PlayerAllAnswersViewModel
{
public Li... |
70e86c14a3a4ead4684506b76b09510e4ae504b1 | C# | idmitrov/CSharp-Part2 | /Methods/LargerThanNeighbours.cs | 4.09375 | 4 | /*
Write a method that checks if
the element at given position in a given array of integers
is larger than its two neighbours (when such exist).
*/
namespace LargerThanNeighbours
{
using System;
class LargerThanNeighbours
{
public static bool IsLargerThanNeighbours(int[] ... |
275523cd551c7427d2252710f4597e70c89c024d | C# | ajkfds/ajkControls | /TreeView/TreeNode.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using ajkControls.Primitive;
namespace ajkControls.TreeView
{
public class TreeNode
{
public List<TreeNode> TreeNodes = new List<TreeNode>();
public bool Is... |
4c788d2dfd46e6037a6ea65aa804a420742ff7a2 | C# | gabrielmacus/videoflux | /videofluxTest/VideoPlayerTest.cs | 2.515625 | 3 | using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using videoflux.components.VideoPlayer;
using System.IO;
using System.Threading;
namespace videofluxTest
{
/// <summary>
/// Descripción resumida de VideoPlayerTest
/// </summary>
[Te... |
dd8d273c5c24555609b824bfbd194772a9958966 | C# | VladimirLevchuk/Operations | /Operations/StringProgress.cs | 2.671875 | 3 | using System;
using JetBrains.Annotations;
namespace Operations
{
public class StringProgress : IOperationProgress
{
private readonly string _message;
public StringProgress([NotNull] string message)
{
if (message == null) throw new ArgumentNullException(nameof(message));
... |
f03b899046f04cc44f0cdef895e80dea8c2c06cc | C# | lainczlukas/Merlin | /Actors/Objects/Switch.cs | 2.859375 | 3 | using Merlin2.Actors.Characters;
using Merlin2d.Game;
using Merlin2d.Game.Actors;
using System;
using System.Collections.Generic;
using System.Text;
namespace Merlin2.Actors.Objects
{
public class Switch : AbstractActor, IObservable, IUsable
{
private Animation animationOn;
private Animation a... |
b988b46b29d10d7f563c31a9f7efcf2aa11f10bf | C# | TranThanhh/Nhom14_GameDoanSo | /WebService_RestfulAPI/TestRestFul/WebServiceC.asmx.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace TestRestFul
{
/// <summary>
/// Summary description for WebServiceC
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.B... |
556f74605fcd186cedd02cfdcbc1a8b77aa3d798 | C# | gillb08/design-patterns | /Singleton/Singleton.cs | 3.734375 | 4 | using MoreLinq.Extensions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace DesignPatterns.Singleton
{
public class Singleton
{
}
#region Safe Singleton Pattern
public interface IDatabase
{
int Get... |
61b7f2c6c43986347ddcf770fd478b0546a90059 | C# | Nachiket-Paranjpe/A-layered-Asp.Net-Mvc | /BusinessAccessLayer/Interface Implementation/ProductsBO.cs | 2.609375 | 3 | using AutoMapper;
using BusinessAccessLayer.Business_Object_Interfaces;
using CrossCuttingLayer.ModelEntities;
using DataAccessLayer;
using DataAccessLayer.Entities;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace BusinessAccessLayer.Interface_Implementation
{
public class ... |
2c571d6f89c05477ffc24e90eae41f04f7476dd7 | C# | yongzhao1/DecompliedDotNetLibraries | /System.Workflow.ComponentModel/System/Workflow/ComponentModel/Design/PointMarkupSerializer.cs | 2.53125 | 3 | namespace System.Workflow.ComponentModel.Design
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Serialization;
internal sealed class PointMarkupSerializer : WorkflowMarkupSeri... |
317df363c7a97fb456772777339adb659d0b0086 | C# | colin-chang/Hystrix | /ColinChang.Hystrix/ServiceCollectionExtension.cs | 2.65625 | 3 | using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace ColinChang.Hystrix
{
public static class ServiceCollectionExtension
{
// 注册"熔断安全"服务
public static IServiceCollection Register... |
10d4403e32794edf23d8623e540c9b0f4f68ae56 | C# | peachpiecompiler/peachpie | /src/Peachpie.CodeAnalysis/CommandLine/CommandLineDiagnosticFormatter.cs | 2.71875 | 3 | using Roslyn.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
namespace Pchp.CodeAnalysis.CommandLine
{
internal sealed class CommandLineDiagnosticFormatter : DiagnosticFormatter
{
private ... |
f4f405e7598e26b8660d4bbeaa0b8af163abd4d3 | C# | AoyamaNaoki/CSharpStudy | /Practice/Practice3/pra3_10.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Practice.Practice3
{
class pra3_10
{
public static void test() {
Console.WriteLine("文字列1を入力");
String str1 = Console.ReadLine();
Console.Wri... |
5abcaabaae6ab26b4bd70f15be7e3fbc7f8da7a4 | C# | envyless/FlappyWorld | /Assets/LS_Chat/Scripts/Server/ChatSever.cs | 2.515625 | 3 | using Google.Protobuf;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UniRx;
using UnityEngine;
using TcpClient = NetCoreServer.TcpClient;
public class ChatSever : MonoBehaviour
{
public static ... |
a92cbfd69c88e67cddac039121764cd168b94263 | C# | fakit/OSM-AutoCAD | /Mustern/core-releases-v1.3/OsmSharp.Osm/Streams/OsmStreamTarget.cs | 2.65625 | 3 | // OsmSharp - OpenStreetMap (OSM) SDK
// Copyright (C) 2015 Abelshausen Ben
//
// This file is part of OsmSharp.
//
// OsmSharp is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the Lice... |
02c8ef5a79930f7d83947b9b614d62c5520c07ff | C# | 2Neo2/Contest9 | /TaskI/Message.cs | 3.015625 | 3 | using System;
public class Message
{
private string text;
private string dateTime;
public Message(string text, string dateTime)
{
this.text = text;
this.dateTime = dateTime;
}
public override string ToString()
{
return $"[{dateTime}] {text}";
}
} |
fa3972b041ee25380a2b3744be3d1db554c7e065 | C# | BellaO-IO/studious-rotary-phone | /ConsoleApp13/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
namespace ConsoleApp13
{
class Program
{
static void Main(string[] args)
{
var myCar = new Car()
{
Make = "Ford",
Model = "focus",
Year = 2021
};
var... |
a9029b9760792a868f3a6e4d95efe022be850a95 | C# | adamjez/CVaS | /src/CVaS.Shared/Core/UnitOfWorkBase.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CVaS.DAL;
namespace CVaS.Shared.Core
{
/// <summary>
/// A base implementation of unit of work object.
/// </summary>
public abstract class UnitOfWorkBase : IUnitOfWork
{
private readonly List<Action> afte... |
7058064211bce342e86b774641cfde4ca7d68c27 | C# | shendongnian/download4 | /first_version_download2/516188-47597170-161874603-6.cs | 3.375 | 3 | string userInput = Console.ReadLine();
int code = SomehowGenerateRandomCode();
string codeString = code.ToString();
// Let's assume that both numbers have 3 digits.
for (int i = 0; i < 3; i++) {
if(userInput[i] == codeString[i]) {
// digits are equal
} else {
... |
346806cb5efbcd59cd638af2a816b3aec2a59369 | C# | StanlyLife/DNC-Authentication | /Legacy/RoleBasedAuth/Controllers/LoginController.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using RoleBasedAuth.Models;
namespace RoleBasedAuth.Controllers {
public class LoginController : Controller {
private ... |
9e73aac5d76ba490a7153032743ff74a40f4fc0a | C# | EleanaAlma/SpaceCraft | /Assets/MyData/scripts/photosphere.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
public class photosphere : MonoBehaviour{
const float nSecond = 5f;
float timer = 0;
bool entered = false;
string scene;
public void SendMessage(string sceneName)... |
a5f7c4a032b7fac38d1378bdfe962d626fe4e9f9 | C# | hvuSyslogic/IronCastle | /src/BouncyCastle.Core/crypto/Xof.cs | 2.828125 | 3 | namespace org.bouncycastle.crypto
{
/// <summary>
/// With FIPS PUB 202 a new kind of message digest was announced which supported extendable output, or variable digest sizes.
/// This interface provides the extra method required to support variable output on an extended digest implementation.
/// </summary>
publ... |
42cd8f24f61addc669cf4ee1714860052079d5c3 | C# | maher940/MazeAR | /Assets/Scripts/RotateMaze.cs | 2.875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateMaze : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKey(KeyCode.D))
{
RotateRight();
... |
39a47b60becf567f5ae37014bda80f1141ddf614 | C# | ICS3UProgrammingTishamI/Assignments | /FallingObjectTishamI/FallingObjectTishamI/FallingObjectsForm.cs | 3.40625 | 3 | /*
* Created by: Tisham Islam
* Created on: 15/02/2019
* Created for: ICS3U Programming
* Assignment #2 - Falling Objects
* This program calculates the distance a rock is from the ground, based on the force exerted by gravity. The user can input the value of time elapsed since the rock was dropped,
*and the pro... |
cddefda35fb389af5357a275662d85b08ce9dcf7 | C# | alexnoddings/UniTrimmed | /C# Dissertation/Extensions/Extensions/KnowledgeExtensions.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using AlexNoddings.Protocols.Core;
using AlexNoddings.Protocols.Runtime.Internal;
namespace AlexNoddings.Protocols.Runtime.Extensions
{
public static partial class KnowledgeExtensions
{
public static IKnowledge Stripped(this IKnowledge... |
5dcbf14c839f25e732d00a8c1f105d677b6c8297 | C# | buddike1112/FlashFileProcessor | /Src/FlashFileProcessor/Interfaces/IValidator.cs | 2.609375 | 3 | using FlashFileProcessor.Service.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace FlashFileProcessor.Service.Interfaces
{
/// <summary>
/// Validator interface
/// </summary>
public interface IValidator
{
/// <summary>
/// Pr... |
929a5fa07158a920247170e63e0efb793824801c | C# | apazureck/AzureCoder-BooksAPI | /BooksAPI.OData/Controllers/BookController.cs | 2.59375 | 3 | using System.Linq;
using BooksAPI.OData.Models;
using Microsoft.AspNet.OData;
using Microsoft.AspNetCore.Mvc;
namespace BooksAPI.OData.Controllers
{
[Produces("application/json")]
public class BookController : ODataController
{
private readonly BooksContext context;
public BookController(... |
2e838a0c1fc28f4c90cfbf93e855c65277b494f7 | C# | normanfernandez/HentaiDownloader | /Utils/PageDownloader.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HentaiDownloader.Model;
using System.IO;
using System.Net;
namespace HentaiDownloader.Utils
{
public class PageDownloader
{
public static WebClient webC... |
4baf0876eaa82c7eca1c9493a49f9228edadf0e6 | C# | c-shimmer/unity-demo-mmo | /ColyseusTechDemo-MMO/Assets/Scripts/Managers/NetworkedEntityFactory.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Security;
using Colyseus.Schema;
using LucidSightTools;
using UnityEngine;
public class NetworkedEntityFactory : MonoBehaviour
{
private static NetworkedEntityFactory instance;
public static NetworkedEntityFactory Instance
{
... |
0900e006649dda6124614ac7bb2cb2f634ecc8ba | C# | joelee2017/HW5_Employee- | /HW5_Employee/HW5_Employee.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.Threading.Tasks;
using System.Windows.Forms;
using ClassLibrary1;
namespace HW5_Employee
{
public partial class HW5_Employee : Form
{
... |
eb014fefa9778d419c474fe2419bfda987cceb3f | C# | AlexisRodrigu/PatronesDeDisenioUnity | /Assets/PatronesDeDisenio/PatronesEstructurales/Decorator/Attack/FireAttackerDecorator.cs | 2.578125 | 3 | using Decorator.Attack;
using Decorator.Damage;
using UnityEngine;
public class FireAttackerDecorator : AttackerDecorator
{
private readonly int _fireDamage;
public FireAttackerDecorator(IAttacker attacker, int fireDamage) : base(attacker)
{
_fireDamage = fireDamage;
}
public override voi... |
77c2972895f137c570d851edc0f67c5a77927d13 | C# | flrlima/query-builder | /Bolado.QueryBuilder.Data/Builder/QueryBuilder.cs | 2.96875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Bolado.QueryBuilder.Data.Builder
{
public class QueryBuilder<TDto>
where TDto : class
{
private readonly IList<string> _properties;
/// <summary>
/// use to build any query
/// </summary>
... |
70383f1916ca8bbfa49982b6295ac23e62cd585b | C# | srzeppa/movies | /ViewModel/SearchMovieViewModel.cs | 2.640625 | 3 | using movies.Command;
using movies.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.UI.Xaml.Controls;
using Window... |
788807d3f9b3f0a024c8a43eb6d12069446228eb | C# | LydiaFritz/CST117_RectangleExample_SP2018 | /FakeProj/Program.cs | 3.078125 | 3 | using System;
//updated code with additional functionality
//Lydia's code
namespace FakeProj
{
class Program
{
static void Main( string[] args )
{
Random rnd = new Random( );
//WHAT WE WANT...
//RectangleManager rm = new RectangleManager( );
/... |
4c4d47beae315c6e689f67e9c634b7ea12b9a4e9 | C# | david322solo/telegram.bot.extensions.logging | /src/Telegram.Bot.Extensions.Logging/TelegramLoggerProvider.cs | 2.59375 | 3 | using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
namespace Telegram.Bot.Extensions.Logging
{
public class TelegramLoggerProvider : ILoggerProvider
{
private readonly ConcurrentDictionary<string, TelegramLogger> _loggers
= new ConcurrentDictionary<strin... |
74672ec6e5e6cb3b8e4ab6fd6ecc219ac2d561f9 | C# | LanderVe/ScalableLockDemo | /ScalableLockDemo/Data/DbInitializer.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ScalableLockDemo.Data
{
public class DbInitializer
{
public static void Initialize(PaymentContext context)
{
context.Database.EnsureCreated();
// Look for any payments.
if (context... |
ea4e92599c8bdb6a42f81abb06665e3c322f6d43 | C# | bowbow42/GlobalGameJam2018 | /Assets/Scripts/GearBehaviour.cs | 2.828125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GearBehaviour : MonoBehaviour {
private bool isTurning = false;
private float rotationVelocity = 1f;
private float StartAngle = 0f;
private float TargetAngle = 0f;
public bool clockwise = false;
// be... |
25f2cf8205ca790fab70869711c5e1088d629ce2 | C# | Clorttoss/BPCCRoguelike2020 | /Assets/Scripts/Item.cs | 2.96875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum ItemType
{
Helmet = 1,
Chestpiece = 2,
Leggings = 3,
Boots = 4,
Weapon = 5,
Necklace = 6,
//Scroll = 7 = "Scroll", //Unimplemented.
//Using the Unspecified as a way to test if an ... |
974062f07cdc01dbc9e14253958edb9d5da938e6 | C# | niconicopoon/VisualStudioPlugin | /MyBookmark/BookmarkComment/ExceptionHandler.cs | 2.5625 | 3 | using System;
namespace MyBookmark
{
internal static class ExceptionHandler
{
public static void Notify(Exception ex, bool showMessage)
{
string message = $"{DateTime.Now}: {ex}";
Console.WriteLine(message);
if (showMessage)
{
UIMessage.Show(message);
... |
285ac6f568457183c8f5305b07df5845d76b9db0 | C# | shendongnian/download4 | /first_version_download2/607152-59446247-211695878-5.cs | 2.515625 | 3 | <!-- -->
public class Document : TextBase
{
public ParagraphGroup[] ParagraphGroups { get; set; } = new ParagraphGroup[0];
public override string Text
{
get => String.Join(ParagraphGroupSeparator, ParagraphGroups.Select(g => g.Text));
set => ParagraphGroups =
... |
85aea5babdaa40d9f0a6a084ce9c0743b4e9f80d | C# | emilie-v/emivog0223-Unity | /_12InputAndMovement/Assets/PlayerController.cs | 2.5625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
public float speed;
private Rigidbody2D rb2d;
[SerializeField] bool translateMovement = false;
[SerializeField] bool forceMovement = false;
[SerializeField] bool velocityM... |
1347d68e231d89b61d651f2f7aa0a3e50c7a347d | C# | Bernardroid/GGJ2019 | /Assets/_GGJ2019/Scripts/Jack/hell_poolbullet.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class hell_poolbullet : MonoBehaviour {
public static hell_poolbullet current;
public GameObject poolshot;
public int poolammo;
public bool willGrow=true;
public List<GameObject> pooledshots;
void Awake()... |