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
233bffa8bdfa1184762896fe06efaf430472e379
C#
kolev77/SoftUni-
/C# - Windows Form Applications/KursovaRabota-January-2017/KursovaRabota-January-2017/SearchByEGN.cs
2.703125
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; namespace KursovaRabota_January_2017 { public partial class SearchByEGN : Form ...
1ebe82eadfd016eb289f2298a23f13346627fb96
C#
khoainv/Framework
/FIS.SSD/Framework/SSD.Framework.Shared/BaseJsonEntity.cs
2.65625
3
using System; using Newtonsoft.Json; using SSD.Framework.Exceptions; namespace SSD.Framework { public abstract class BaseJsonEntity<T> where T : class, new() { static object obj = new object(); private static T instance; public static T Instance { get { ...
d61b34ee165a61efeb89bb0d963c221b774c5043
C#
P1nkL1on/CSharpProjects
/MMO/DungStruct/IDrawable.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace DungStruct { public struct DrawMeta{ public Point _where; /// <summary> /// In Rad (-Pi .. + Pi) /// </summary> public float ...
5ea7d2496971f0edbb9dece88130a07ef94b9233
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/arc090/B/2030212.cs
2.84375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ if(M == 0){ Console.WriteLine("Yes"); return; } List<int>[]...
3790fa070602e83750deedf3bf5aab42512c6401
C#
azuric/Sharpkit.Learn
/src/Sharpkit.Learn/Metrics/AverageKind.cs
2.765625
3
// ----------------------------------------------------------------------- // <copyright file="AverageKind.cs" company="Sharpkit.Learn"> // Copyright (c) 2013 Sergey Zyuzin // License: BSD 3 clause // </copyright> // ----------------------------------------------------------------------- namespace Sharpkit.Learn.Me...
29403f70ef3070283d6c0e54a1902fe5fab0695e
C#
Infarh/MathCore
/MathCore/Expressions/ReplaceVisitor.cs
2.578125
3
// ReSharper disable once CheckNamespace namespace System.Linq.Expressions; internal class ReplaceVisitor : ExpressionVisitorEx { private readonly Expression _From; private readonly Expression _To; public ReplaceVisitor(Expression from, Expression to) { _From = from; _To = to; }...
ecaf94d43df66b6bd2efc4cb1d2a1633a82a6f23
C#
adji142/DekstopMaster2
/.svn/pristine/e5/e58c868424a1ce4bc561ffbf92d4fb85fab42185.svn-base
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; namespace ISA.Pin { public class Generator { private static string GetNumbers(string text) { string defNumbers = "47144165"; try { ...
865d51d39cd74195ba2f794db83c09bee6be1964
C#
NotAdam/Lumina
/src/Lumina/Data/Parsing/Tex/Maths.cs
2.84375
3
using System; namespace Lumina.Data.Parsing.Tex { // From DotSquish internal struct Vector3 { public float X, Y, Z; public Vector3( float value ) { X = Y = Z = value; } public Vector3( float x, float y, float z ) { X = x; ...
5712643f6837c50ef45c57f76b86e8c852686b7d
C#
DenisRitchie/ReferenceForEach
/ReferenceForEach/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; using static System.Console; namespace ReferenceForEach { #pragma warning disable CS0169, CS0649 public unsafe struct ReferenceWrapper<TValue> { private readonly void* Pointer; pu...
666812f7794a60a0f317cfca72b6caecf2b35c22
C#
shendongnian/download4
/code9/1646433-46595615-157718318-2.cs
2.640625
3
private void Login() { Task.Run(() => { try { Device.BeginInvokeOnMainThread(() => IsBusy = true); var isvalidemail = GlobalFunctions.IsValidEmail(Email); var IsThereConnection = GlobalFunctions.CheckForInternetConnection(); if (IsThereConnection == false) throw new Exception("You cann...
23b4789535e78d9a862793eccd1c9590d5f07012
C#
kotobanone/SelfImprove
/OracleDBandSQLiteDemo/OracleDBandSQLiteDemo/DesCoder.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Security.Cryptography; namespace OracleDBandSQLiteDemo { class DesCoder { //IV:ECARD_LH=[69,67,65,82,68,45,76,72]={0x45,0x43,0x41,0x52,0x44,0x2D,0x4C,0x48};...
94be9c1b85032178bd3f47fdc6a8a95003f9df66
C#
shendongnian/download4
/latest_version_download2/47034-8102461-18055068-2.cs
3.53125
4
class Puzzle { private List<string> listOfStrings = new List<string>(); private ReaderWriterLockSlim listLock = new ReaderWriterLockSlim(); public void Add(string item) { listLock.EnterWriteLock(); try { listOfStrings....
8ab125326bbaaaa75f51504f1869531ed7fb59c7
C#
hansejas/LogDemo
/Acurenz.Logging/NLogTraceWriter.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Acurenz.Logging { public class NLogTraceWriter: ITraceWriter { private NLog.Logger log; public NLogTraceWriter() { log = NLog.LogManager.GetLogger(...
00925c780002302c7fa62e85bef5b819fdd4279e
C#
duzhenyi/DL
/DL.Utils/Auth/Jwt/JwtHelper.cs
2.625
3
using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; namespace DL.Utils.Auth.Jwt { /// <summary> /// Jwt授权认证 /// </summary> public class JwtHelper { ...
4037be164d80fd2eda4e9ce9e7cb72bc0da73b09
C#
inkimagine/Ghurund
/Editor/Property/PropertyEditor.cs
2.625
3
using Ghurund.Controls.PropertyGrid; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace Ghurund.Editor.Property { public class BooleanPropertyEditor: IPropertyEditor { public FrameworkElement MakeControl(Value property) { CheckBox checkBox = new CheckBo...
f460652ef49851d1314bf8600cbfd135cf898d5e
C#
iv-nav/multipurposeOrm
/Entities/BaseEntity.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using multipurposeOrm.Interfaces; namespace multipurposeOrm.Entities { public class BaseEntity : IEntity { public bool ChangeTracking { get; set; }...
214dc78df8019931e423add1da994ef5835a23e2
C#
GlennZegers/DesignPatterns
/CircuitBuilder/Views/UserInput.cs
2.78125
3
using System; using System.Collections.Generic; using CircuitBuilder.Ports; namespace CircuitBuilder.Views { public class UserInput : IConsoleView { public void Print(List<IPort> ports, Application application) { while (true) { Console.WriteLine(); ...
02d5fd65b06fc369f4e680dd8cb9b2033c7b08c7
C#
VladimirMakarevich/Rhythm
/Rhythm.Domain/Repository/RssRepository.cs
2.734375
3
using Rhythm.Domain.Context; using Rhythm.Domain.Entities; using Rhythm.Domain.Repository.Interfaces; using System.Collections.Generic; using System.Data.Entity; using System.Threading.Tasks; namespace Rhythm.Domain.Repository { public class RssRepository : IRssRepository { DogCodingContext _db; ...
dd8f72aa002fb86c1887dd4f425f46febeb3f449
C#
xeon2007/WSProf
/Projects/Hygiene/src/PDFUserAction.Tests/PasswordDismisser.cs
2.65625
3
using System; using System.Reflection; using System.Threading; namespace Workshare.Policy.Actions { internal class PasswordDismisser { public PasswordDismisser(string password) { ParameterizedThreadStart workerStart = new ParameterizedThreadStart(DismissPasswordDialog); ...
67ed2827523a63d28594ab98502e1d8d020142ed
C#
sktomov/C-OOP-Basics
/DefiningClasses-Exercises/6.CompanyRoster/StartUp.cs
3.671875
4
 using System; using System.Collections.Generic; using System.Linq; public class StartUp { public static void Main() { var numberOfEmployees = int.Parse(Console.ReadLine()); var employees = new List<Employee>(); for (int i = 0; i < numberOfEmployees; i++) { var inputLine = Console.ReadLine().Split(new [...
98de1e9cd698e4324f87ac008fb31dfff7299e9a
C#
VadimChumak/ISMOOPHierarchy
/ISMOOPHierarchy/Client.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ISMOOPHierarchy { public class Client:Person , IPersonInfo , ICloneable , IComparable<Client> { KK card; Account acc; public Client() : base() ...
fb867229390b3a0d552699af0402f5072b10cab8
C#
whquan/RedisMonitorParser.Net
/src/RedisMonitorParser/RawMonitorLine.cs
3.125
3
namespace RedisMonitorParser { /// <summary> /// Represents a raw parsed Redis monitor line. The "raw" here means that /// all elements like timestamp and arguments are in the form of raw strings /// as they came from the monitor line. /// </summary> /// <remarks> /// The example of the inp...
c54cfa0fdf6592021b8f836d25b95228ed127b81
C#
gitwo/FilterDemo
/FilterDemo/DataBase/SampleData.cs
2.703125
3
using FilterDemo.Models; using System.Collections.Generic; namespace FilterDemo.DataBase { public class SampleData { public static List<User> users; public static List<Role> roles; public static List<RoleWithControllerAction> roleWithControllerAndAction; static SampleData() { // 用户初始化 users = new Li...
4f60de2b1702de1ae64150b178e80a8cdca80343
C#
MarjorieMoran-UMG/CodigoConsolaParcial
/Cumpleaños/Program.cs
3.328125
3
using System; namespace Cumpleaños { class Program { static void Main(string[] args) { string resultado = "01406", dia, mes; int cantdenum = resultado.Length; char aceptar = 'x', opcion; const int anio = 365; Console.WriteLine("-----...
e2a3aa46804cf9af7b601ee37dd37dcb1bde2399
C#
Afnoss/ShooterGame
/Scripts/WeaponSwitching.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WeaponSwitching : MonoBehaviour { // Start is called before the first frame update public int selectedWeapon=0; void Start() { //function for selecting the weapon SelectWeapon(); ...
574a18156343130fc412f7884752c8539388db8d
C#
returnanapple/zwg-china-iworld
/zwg-china.backstage.framework/ViewModelBase.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace zwg_china.backstage.framework { /// <summary> /// 视图模型的基类 /// </summary> public abstract class ViewModelBase : ModelBase { #region 私有参数 bool ...
4306fe3b6621efd070faf2305d801057b9fe6a80
C#
Primaski/Primbot-v.2
/Server/Killswitch.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Primbot_v._2; namespace Primbot_v._2.Server { public static class Killswitch { public enum Status { Off, Mute, Kick, Ban } public static Status state = Stat...
493a61fc76f98640590680d4d93be86e4d302c67
C#
fmarcondes08/cart-sample
/KlirTechChallenge/Klir.TechChallenge.Infrastructure/AppDbContext.cs
2.640625
3
using Klir.TechChallenge.Domain.Enums; using Klir.TechChallenge.Domain.Models; using System.Collections.Generic; namespace Klir.TechChallenge.Infrastructure { public static class AppDbContext { public static IEnumerable<Product> Products { get { var item...
13be694cbbd8c82b9059bc4f3b1a5ef74045587e
C#
Nishi-1910/introduction-to-Csharp
/Collections/Stack.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace Collections { class OwnStack { static void Main(string[] args) { Stack st = new Stack(); st.Push('A'); st.P...
2f4e697a76248b0a3d25f88e0f7aadea1ff65be5
C#
fiskusk/Synthesizer_control_PC
/Synthesizer_PC_control/Model/ReadRegister.cs
3.1875
3
using System.Windows.Forms; namespace Synthesizer_PC_control.Model { /// <summary> /// This class is used to handle the read register. /// (readed current VCO, readed ADC, adc mode) /// </summary> public class ReadRegister { /// <summary> /// Enumerable for ADC mode (TEMPERATUR...
6cb9349795b558eaaadcac36973cf94f4bdc863f
C#
zmihaylov/CSharp-PartOne-Homework
/Loops/CalculateGCD/CalculateGCD.cs
4.03125
4
//Write a program that calculates the greatest common divisor (GCD) of given two integers a and b. //Use the Euclidean algorithm (find it in Internet). using System; class CalculateGCD { static void Main() { Console.Write("Enter first number: "); string str = Console.ReadLine(); int fi...
b8f9b6bb3eb9120d876f2aa5af154f59dedfd43f
C#
Ciorro/HlyssUI
/HlyssUI/Styling/StyleClass.cs
3.09375
3
using HlyssUI.Styling.ValuePresets; using System; using System.Collections.Generic; using System.Xml; namespace HlyssUI.Styling { public class StyleClass { private List<StyleValue> _values = new List<StyleValue>(); public StyleState State { get; private set; } public string Name { get;...
9e3a8311de5deadd79fb423974a64b7bcaac7e9a
C#
renatogroffe/CanalDotNET_DevWeek
/CSharp7/ExemploRefReturns/ClasseExemplo.cs
2.890625
3
namespace ExemploRefReturns { public class ClasseExemplo { private int _contador = 0; public void Incrementar() { _contador++; } public int ObterValorContador() { return _contador; } public ref int ObterContador() ...
509c7e431b13f1afd86a53462b72cedaf4086697
C#
mikedmiller1/RacingGame
/Assets/AI/Driver/AIDriver.cs
2.984375
3
using System; using System.Collections.Generic; using System.Threading; using System.Timers; /// <summary> /// A circular holonomic robot driver. /// Runs a real-time adaptive planning (RAMP) algorithm to reach goals. /// Adapts in real-time to avoid obstacles and other drivers. /// </summary> public class AIDriver :...
a08982d3000096d24f02aaa2d632a6d62d2c48e2
C#
erina-alx/unirx_extension
/Assets/Plugins/UniRxExtensions/Tests/Editor/Observable.ExecuteAsync.Test.cs
2.546875
3
using System.IO; using NUnit.Framework; using UniRx; namespace UniRxExtensions.Tests { // ReSharper disable once InconsistentNaming [TestFixture] internal class Observable_ExecuteAsync_Test { [Test] public void Test_Action() { var next = false; ...
43372d624f2831dd1d001207aca7fc7f36f618e4
C#
elifaydiin/ReCapProject2
/Business/ValidationRules/FluentValidation/BrandValidator.cs
2.734375
3
using Entities.Concrete; using FluentValidation; using System; using System.Collections.Generic; using System.Text; namespace Business.ValidationRules.FluentValidation { public class BrandValidator : AbstractValidator<Brand> { public BrandValidator() { RuleFor(c => c.BrandName).Min...
25904e38fca37c77d89724cbab0a9a50fcd67db2
C#
megafeebas/Q1-ITI415-MultiAssignment-UI
/Assets/Scripts/sCollection.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class sCollection : MonoBehaviour { // Start is called before the first frame update private int objects = 4; public Text countText; void Start() { countText.text = "Count: " + obje...
7a3c798edf762ca2e932339c125470ea71d7d8d1
C#
FuzzySlipper/Framework
/Assets/Framework/Systems/Pathfinding/Pathfinder.cs
2.65625
3
#define AStarPathfinding using System; using UnityEngine; using System.Collections; using System.Collections.Generic; using Priority_Queue; namespace PixelComrades { public interface IPathfinder { PathfindingResult Run(PathfindingRequest request); } public abstract class AbstractPathfinder { ...
268885a2219cfaf052437d6efc60a20f08bff194
C#
ZePilOt/Memoria
/Assembly-CSharp/FF9/FF9MIX_DATA.cs
2.671875
3
using System; using Memoria.Prime.CSV; namespace FF9 { public class FF9MIX_DATA : ICsvEntry { private const Int32 SynthesisItemCount = 2; public String Comment; public Int32 Id; public Byte Shops; public UInt16 Price; public Byte Result; public Byte[] ...
e304b9cd9bb769cdad3e230d70af80a6f7cad5f5
C#
albertut/gearsynth
/rules/Original Rules/Iteration1/gearparamruleswhy.cs
2.53125
3
using System; using System.Collections.Generic; using GraphSynth; using GraphSynth.Representation; namespace GraphSynth.ParamRules { public partial class ParamRules { /* here are parametric rules written as part of the ruleSet. * these are compiled at runtime into a .dll indicated in...
9f0a9054cfa3bcebf212f06fe5e60096471c6812
C#
g0194776/KAE_DotnetCore
/src/0.BFL/KJFramework/ILeasable.cs
3.03125
3
using System; namespace KJFramework { /// <summary> /// ɿصԪӿڣṩصĻ /// </summary> public interface ILeasable { #region Members. /// <summary> /// ȡһֵֵʾ˵ǰĻǷѾ״̬ /// </summary> bool IsDead { get; } /// <summary> /// ȡڴʱ /// </s...
e578a9ea29c28756265558f8898c25bd5a54e968
C#
DynaStudios/Slaysher
/SlaysherServer/Pattern~/Pattern.cs
2.8125
3
using System; using System.Collections.Generic; using SlaysherServer.Database; namespace SlaysherServer.Pattern { internal class PatternType { internal int _dbId; public string _name; } internal class Pattern { public PatternType Type { get; set; } public int Tex...
8c94660afa5b0c1ad96eafba279fe4e22c1edc5a
C#
shendongnian/download4
/code5/882962-21916014-58546333-4.cs
2.875
3
public static Task<List<SyndicationItem>> Execute(string link) { WebClient wc = new WebClient(); TaskCompletionSource<List<SyndicationItem>> tcs = new TaskCompletionSource<List<SyndicationItem>>(); wc.DownloadStringCompleted += (s, e) => { if (e.Error == null) ...
54c88bcc2fee6ad793142f340850101ced517342
C#
ydk831/portfolio
/SSG_DEPT_PJT/NEW_PJT_Library/Library/RestAPIClientLibrary/RestAPIClient.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using MessageLibrary; namespace RestAPIClientLibrary { /// <summary> /// RestAPIClient는 실제 웹서버와 연동 될 ...
0f91c29cb0764e09538d2e9b4d216a6f46a970c7
C#
kasiawwww/MailSenderApi
/MailSenderApi/Controllers/MailController.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MailSenderApi.Models; using Microsoft.AspNetCore.Mvc; namespace MailSenderApi.Controllers { [Route("api/[controller]")] [ApiController] public class MailController : ControllerBase { private ...
f2d79ac67e838ddbc98be93db9322c00a9d59ddf
C#
lazyninjacat/mylevelup
/Assets/Scripts/Slot.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine.EventSystems; using UnityEngine; public class Slot : MonoBehaviour , IDropHandler { private ScrambleHelper helper; private bool snap = true; public GameObject letter { get { // If letter has a child return it otherwise return n...
4c839f98f0936295d4421b9a1499fe1694ce8195
C#
LRih/Bandwidth-Meter
/src/BandwidthUsage.cs
3.40625
3
using System; namespace BandwidthMeter { public struct BandwidthUsage { //===================================================================== VARIABLES public readonly long Download; public readonly long Upload; //=============================================================...
a25c6e73ee421cfc17feb680fcdbce00067d343e
C#
teltonchan/BaseClassAbstractionExample
/ConsoleApp1/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { ConcreteSubtype c = new ConcreteSubtype(); c.Alpha(); c.Bravo(); ...
b3554dcd23553934d7379de34d3afc0a83ad153f
C#
RedMindZ/DocxToTxt
/DocxToTxt/TextRendering/NumberingLevelCounter.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DocxToTxt.TextRendering { public class NumberingLevelCounter { private int _counter = 1; public int InitialNumber { get; set; } = 1; public int ResetIndex { ge...
82eb2892f82c04a70c4893e53e5416044d9005f5
C#
jtomaylla/6R
/AppDAL/dto/seguridad/UsuarioDTO.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace pe.com.seg.dal.dto { public class UsuarioDTO { //Propiedades private int _IdUsuario; private string _LoginUsuario; private string _NombreUsuario; private string _Clave; private stri...
88fe9f9c9e40ef7f1372561942ed7bf45f090ef8
C#
peter2001950-001/MyExamsBg
/MyExams.TestProcessing/RandomString.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyExams.TestProcessing { public class RandomString { private static readonly object padlock = new object(); private static RandomString instance = null; privat...
7d1cc6c1bc265e8bbe9a2b76c6436972cb9bc700
C#
vb2509/DunkPrototypeSource
/DunkPrototype/Assets/Scripts/Basket.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using System.Text; [RequireComponent(typeof(BoxCollider2D))] public class Basket : MonoBehaviour { public Vector2 horizontal = new Vector2(-500, 500); //The lowest and highest coordinate values in the X axis value is picke...
bf70b0835bc645265a0ebc5e053883164bc00f2d
C#
Yurik322/TaskTracking
/src/BLL/Services/ReportService.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using AutoMapper; using BLL.EtitiesDTO.Report; using BLL.Interfaces; using DAL.Entities; using DAL.Interfaces; using System.Linq; namespace BLL.Services { /// <summary> /// Class for report services. /// </sum...
5e50cdf65fe9f6e111b0913a4abbbcf5b9eb602c
C#
HashemSrojy/PrimitiveTypes
/SW.PrimitiveTypes/Patterns/ValueObjects/Dimensions.cs
3.265625
3
using System; using System.Collections.Generic; using System.Text; namespace SW.PrimitiveTypes { public class Dimensions : IEquatable<Dimensions> { public bool Equals(Dimensions other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) r...
96141f7ac7312aa198148685047a47c23c92d479
C#
eric2013264/Spreadsheet_App
/SpreadsheetEngine/Cell.cs
3.09375
3
// Eric Chen 11381898 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; namespace Spreadsheet_EChen { public abstract class Cell : INotifyPropertyChanged { protected string m_Text = "", m_Value...
7f96874bde9574f78438be73f338418054e276af
C#
Karabonga/TheBasement
/RetroEngine/Sprite.cs
2.609375
3
using SharpDX; using SharpDX.Direct2D1; namespace RetroEngine { abstract class Sprite : GameObject { private Animation animation; public Sprite(Animation animation, Vector3 pos) :base(pos, animation.Textures[0]) { this.animation = animation; } ...
d06c84132fe9ca19a77e0d4a3e9586194c2d7f21
C#
shendongnian/download4
/code3/461379-10440653-24014957-1.cs
2.78125
3
DataSet ds = new DataSet(); for (int i = 0; i < dt.Rows.Count; i++) { row = dt.Rows[i]; db.getComboxedCombinedRSS( row[0].ToString(), ds); } GridView1.DataSource = ds; GridView1.DataBind(); public void getComboxedCombinedRSS(...
7673e7c67cbadf07d96a637a279e971f582b29ea
C#
alexisferreyra/utnemallreloaded
/Main/Server/BusinessLogic/IGroup.cs
2.515625
3
using UtnEmall.Server.EntityModel; using System.Collections.ObjectModel; using UtnEmall.Server.Base; namespace UtnEmall.Server.BusinessLogic { [System.ServiceModel.ServiceContract] /// <summary> /// The <c>IGroup</c> business contract to process GroupEntity, /// saving, updating, deleting and validatin...
d9854b596045531421d8898eacfc07a0485b7be6
C#
Zeratul352/Graphics_lab_2
/Form2.cs
2.9375
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 Graphics_lab_2 { public partial class Form2 : Form { private static Bitmap Hel...
f516cef19321231c9f9586d1857332250d518f1d
C#
Ranjyue/Unity_HC_TC_2d_210703_Learn
/ROIA_prac_KIDclass/Assets/Scripts/CameraControl.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// vlܪa /// </summary> public class CameraControl : MonoBehaviour { #region [Header("lܳt"), Range(0, 100)] public float speed = 10; [Header("nlܪW")] public string nameTarget; [Header("k")] public V...
677ba9ccae7d12c353c0c3bd3901b0937940e54e
C#
WebappAllenKuo/CSAsync
/CSharp非同步程式設計/等候單一工作中發生例外狀況/Program.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 等候單一工作中發生例外狀況 { /// <summary> /// 這個專案針對單一非同步工作,若非同步工作內有異常發生的時候,使用 TPL方式與 await 關鍵字,其針對例外異常處理的方式 /// 使用 task.Wait() 方式來 Block 等候非同步工作完成,此時,若非同步工作內有異常發生,則會丟出 AggregateException ...
b7d32fa97201ebba3590d6473f0826141cc43161
C#
shendongnian/download4
/code11/1976354-60321353-215383827-2.cs
3
3
class Test_Model : INotifyPropertyChanged { private string col1; private string col2; public string Col1 { get { return col1; } set { ...
d0bc22d32d7f5572cc6df9aa5237afd8732f3f0d
C#
Freddy89/Kyrsuch
/Kyrsuch/Controllers/AdminController.cs
2.53125
3
using Kyrsuch.Domain.Abstract; using Kyrsuch.Domain.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Kyrsuch.Controllers { public class AdminController : Controller { IProductRepository repository; public AdminContr...
504c536691ae5090166da1bd3fff5776b68bc646
C#
dorianpc/ObserverPattern
/Unsubscriber.cs
3.125
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; namespace ObserverPattern { public class Unsubscriber : IDisposable { private BlockingCollection<IObserver<ICollection<WeatherInfo>>> _observers; private IObserver<ICollection<WeatherInfo>> _observer; ...
b73c9536e528a24c23a066c370d8e5c54efebc8b
C#
AnalogIO/analog-core
/coffeecard/CoffeeCard.MobilePay.GenerateApi/Program.cs
2.734375
3
using System; using System.IO; using System.Threading.Tasks; using NSwag; using NSwag.CodeGeneration.CSharp; namespace CoffeeCard.MobilePay.GenerateApi { /// <summary> /// Generate MobilePay Api client from OpenApi specification files in the 'OpenApiSpecs' directory /// and stores the C# files in 'CoffeeC...
07f5e87e8f5c1a947403b7f9806a6e0ca74c093f
C#
Miltt/Console
/tests/Common/Extensions/RandomExtensionsTests.cs
2.640625
3
using System; using Cnsl.Common.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests.Common.Extensions { [TestClass] public class RandomExtensionsTests { [TestMethod] public void NextLongTest() { const long minValue = long.MinValue; ...
40e91cf6e8e9c4d10aff449ee5ea258a3ba6ef57
C#
BlueChilli/ChilliSource.Core.Extensions
/src/ChilliSource.Core.Extensions/Attributes/OrderAttribute.cs
2.796875
3
using System; namespace ChilliSource.Core.Extensions { /// <summary> /// Describes a custom order attribute in an Enum value. /// e.g : /// public enum ResponseToEvent /// { /// [Order(1)] /// Going, /// [Order(3)] /// NotGoing, /// [Order(2)] /// Maybe /// } /// ...
29440b56e70455e95aa3386156ae46de8fa36d87
C#
ridgew/DataSpecTester
/Gwsoft.DataSpec/ESPDataBase.cs
2.53125
3
using System; using System.IO; using System.Reflection; namespace Gwsoft.DataSpec { /// <summary> /// 基于ESP协议的网络数据传输基类(自身无传输属性配置) /// </summary> [Serializable] public abstract class ESPDataBase : IByteTransfer { /// <summary> /// 初始化 <see cref="ESPDataBase"/> class. ///...
c0a54a199d54e0ec4793d15015f043fcc52e38a6
C#
Shihab7505/Crystal-Dungeon-Source
/Assets/Scripts/Health.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Health : MonoBehaviour { public int health; public LoaderScene loaderScene; public int numOfHearts; public int livesRemaining; public Image[] hearts; public Sprite fullHeart; public S...
9de456be77bd8905d9efcb30917801c4c356f719
C#
ztimofeev/Programming_Fundamentals_SoftUni-repo
/Ext_14_RegEx/WordCounter/WordEncounter.cs
3.609375
4
using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace WordEncounter { public class WordEncounter { public static void Main() { var patternSentence = @"^[A-Z].*[\.\?\!]$"; List<string> result = new List<string>(); ...
977066985fc2a8c6611db8bd98be7a363b53315f
C#
lanrof/tumblr
/Tumblr.WP/Tumblr.WP/ViewModels/BlogPostDetailsViewModel.cs
2.53125
3
using Caliburn.Micro; using Newtonsoft.Json; using System; using Tumblr.Model; namespace Tumblr.WP.ViewModels { public class BlogPostDetailsViewModel : PropertyChangedBase { #region fields private readonly INavigationService _navigationService; private Post _post; priva...
b8e5345697f5b00fea212671191354fbf819f98f
C#
YHiniger/ManagedX.Input
/code/RawInput/KeyboardConnectedEventArgs.cs
2.625
3
namespace ManagedX.Input { /// <summary>Arguments for the <see cref="InputDeviceManager.KeyboardConnected"/> event.</summary> public sealed class KeyboardConnectedEventArgs : System.EventArgs { private readonly Keyboard keyboard; internal KeyboardConnectedEventArgs( Keyboard keyboard ) : bas...
5a6a01314fd3bddb14a7abf64d62b04f92c2a00c
C#
sergienko4/FactoryPatterns
/Invoice/Builds/Build.cs
3.125
3
using Invoce.Enum; using Invoce.Interface; using System; namespace Invoce { public abstract class Build : IPrint { public long Amount; public BuildType BuildType; public DateTime Date; public DateTime PayUnTill { get; private set; } public Build(BuildType type, long am...
2e366cfd601964987f836c35dbe5e49beae390e4
C#
vbezshchasniy/Match_3
/Match_3/Assets/Scripts/FillGrid.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FillGrid : MonoBehaviour { GameObject[] Candies; public float CandiesWidth = 0.5f; public float CandiesHeight = 0.5f; public int Xsize; public int Ysize; public float MoveDuration = 0.1f; public flo...
b4266a8cf7d8cc06f276c17bc76996db99cd6a56
C#
amgad1982/Information-Security-Project
/WebChatApp/ChatApp/Core/ViewModels/MessageViewModel.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using System.Threading.Tasks; using ChatApp.Core.Models; namespace ChatApp.Core.ViewModels { public cl...
7cb16c9d26d805c15bda7b2a2198deabd1e2b79c
C#
Mdtcy/Inventory-in-unity
/Assets/Scripts/ItemDataBase.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 存储所有的item的数据库 /// </summary> public class ItemDataBase : MonoBehaviour { public List<Item> items = new List<Item>(); private void Awake() { BuildDatabase(); } public Item GetItem(int id) {...
08b1c082a4d21ba3664a50487cbd7efaad1be5ae
C#
XingXing2019/LeetCode
/Design/LeetCode 281 - ZigzagIterator/ZigzagIterator/ZigzagIterator/Program.cs
3.890625
4
using System; using System.Collections.Generic; namespace ZigzagIterator { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } public class ZigzagIterator { private List<int> nums; private int p; publi...
af4682c1133570cd9bd802e5eb994dd9eb7ff4b6
C#
waiscodes/100DaysOfCode
/CSharp-letter-remover-practice/Program.cs
4.03125
4
using System; namespace c_letter_remover_practice_waiscodes { class Program { static void Main(string[] args) { /* Title: Purpose: Author: Birm Wais Date of last edit: Aug 12 2020 */ ...
9d2c4c97b614a187582ec1e07f3b12598626edd4
C#
AmateurLabs/InCuboids
/InCuboid/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace InCuboid { class Program { static void Main(string[] args) { Port entry = new Port(0); Cuboid cube0 = new Cuboid(CuboidType.Cube); Cuboid cube1 = new Cuboid(CuboidType.Cub...
ea1bce68ab21d9982fad497642da23aecfcda224
C#
data-team-uhn/PhenoPad-UWP
/PhenoPad/HWRService/NotePhraseControl.xaml.cs
2.53125
3
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using PhenoPad.HWRService; using Windows.UI; using Windows.UI.Xaml.Controls; using Windows.UI.Core; using Windows.UI.Xaml.Media; using System; using Windows.Foundation; using System.Text.RegularExpressions; using PhenoPad.PhenotypeService; ...
6db62810033bdd2690f68aebd84fb2f389414390
C#
juan-cuellar/UCSalones
/UCS.App/UCS.App.Persistencia/AppRepositorio/RepositorioSalon.cs
2.53125
3
using System.Collections.Generic; using System.Linq; using UCS.App.Dominio; using System; using Microsoft.EntityFrameworkCore; namespace UCS.App.Persistencia.AppRepositorio { public class RepositorioSalon : IRepositorioSalon { private readonly AppContext _appContext; public RepositorioSalon(Ap...
f703bf13cf07c7ae1ee4017e3edce65b37f346d5
C#
pvasek/nsprockets
/src/NSprockets/DirectiveParser.cs
2.90625
3
using System.Collections.Generic; using System.IO; using NSprockets.Abstract; namespace NSprockets { public class DirectiveParser { private readonly string _lineStart; public static DirectiveParser CssParser { get; private set; } public static DirectiveParser JsParser { get; p...
01da48ea697678be1685d9d0e4f20060e4e82ba7
C#
MKhairyDev/DSAndAlgorithms
/DSAndAlgorithms/Stack/SimpleTextEditor.cs
3.78125
4
using System; using System.Collections.Generic; using System.Text; namespace DSAndAlgorithms.Stack { /// <summary> /* In this challenge, you must implement a simple text editor. Initially, your editor contains an empty string, . You must perform operations of the following types: append - Append strin...
7826ac31a7272e40de060f20234b54cd143b3e60
C#
Dankoy/C-sharp-B
/Task4_WF_VS2015/11-SelfMade/Form1.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.Threading.Tasks; using System.Windows.Forms; namespace _11_SelfMade { public partial class Form1 : Form { private Form2 form2; ...
fef3444c42615c013228b0492002e394a6613370
C#
JamesK829/SaveOnLunch
/James/James/ViewModels/Account/vRegisterVM.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using James.Models; using System.Data.Entity; namespace James.ViewModels { public class vRegisterVM { [Required(ErrorMessage = "Please Enter Your Email")] [String...
a224585933bdadcb2d5e43d18799ef52892c6b9e
C#
hjgode/rdesktopce_rdp5
/RDPman/OpenFileDialog.cs
2.6875
3
/* Copyright (c) 2008, Harry Jennerway http://www.lime49.com/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of con...
84a63ab10749547f9f587b66ec13abe2514d0895
C#
fasteddys/Birdie.Tesseract
/tvn-cosine.ai/tvn-cosine.ai/svm/SVMFactory.cs
2.953125
3
using tvn.cosine.collections; using tvn.cosine.exceptions; using tvn.cosine.text; namespace tvn.cosine.ai.svm { public static class SVMFactory { public static Problem LoadSVMFile(string filename, Parameter param) { System.IO.StreamReader fp = new System.IO.StreamReader(filename); ...
51608d9875690d7f7fe2855f51dc490cd138ad0e
C#
miafelicio/HROADS-M
/API/Senai_HROADS_WebApi/Senai_HROADS_WebApi/Interfaces/ITipoUsuarioRepository.cs
2.6875
3
using Senai_HROADS_WebApi.Domains; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Senai_HROADS_WebApi.Interfaces { /// <summary> /// Interface responsávelo pelo TipoUsuarioRepository /// </summary> interface ITipoUsuarioRepository { ...
2cacf025764b5f8fb90f484f476987198feb6a6f
C#
shendongnian/download4
/first_version_download2/126511-14911143-36066593-2.cs
3.140625
3
public abstract class Beverage { protected string m_description = "Unknown Beverage"; public virtual string GetDescription() { return m_description; } public abstract double Cost(); } public abstract class CondimentDecorator : Beverage { } ...
0571ca513b5dc55d414d87dce34ce6f3507b94ae
C#
blackkeydestiny/dotnetCoreFX
/src/System.Memory/tests/ReadOnlySpan/TrimManyCharacters.cs
2.859375
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Xunit; namespace System.SpanTests { public static partial class ReadOnlySpanTests { [Fact] ...
1566be6f0272d30876ca2174eb55b813a988b1af
C#
VidhyaSharath/ExpenseTracker
/ExpTracker/ExpTracker/Model/Item.cs
2.90625
3
using System; using System.Reflection; using System.Collections.Generic; using System.IO; using System.Text; using Xamarin.Forms; namespace ExpTracker.Model { public enum ItemCategory { BillsandUtilities, Entertainment, FoodandDining, Transport, HealthCare, ...
3ff5311a7572122582f585c80f44cd68f1518593
C#
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet
/src/Microsoft.IdentityModel.Tokens/Utility.cs
2.890625
3
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using Microsoft.IdentityModel.Logging; namespace Mic...
9a0a59728191a3c07ebe7abdaaa197468752f2aa
C#
OAndreae/CSharp-Tutorials
/C# Beginner/1.7 Working with text/Working with text/BuildingStrings/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BuildingStrings { class Program { static void Main(string[] args) { Console.WriteLine(56.456f.ToString("C")); var builder = new StringBuilder("...
d8b1458390b9372d3ef467e52de5dcfa78cbf5e4
C#
ClementRoosDev/CompetitionJudo
/CompetitionJudo.Data/Donnees/Groupe.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using System.ComponentModel; namespace CompetitionJudo.Data { public class Groupe : INotifyPropertyChanged { public ObservableCollection<Competiteu...
6f99bc900efba7b5ead462d69448c711a9886789
C#
thankuever/ConsoleApp3
/ConsoleApp3/Money.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { public struct Money { public int Value { get; private set; } private Money(int money) { this.Value = money; } public ...
7ec26d5bfda8bc6faf2d164e5609b2fd267d568a
C#
shendongnian/download4
/first_version_download2/250357-19874235-51099453-6.cs
2.5625
3
con.Open(); SqlCeTransaction tx = conn.BeginTransaction(); SqlCeCommand cmd1 = con.CreateCommand(); cmd1.Transaction = tx; for (int i = 0; i < table.Rows.Count; i++) { cmd1.CommandText = "Insert into Master values('" + table.Rows[i].ItemArray[0].ToString() + "')"; cmd1.Ex...
010bf6bb1aaa0aa8a0f3f81a5443beb1024b5c1f
C#
bgiot/mqexplorerplus
/src/Dotc.Common/UrlFormatProvider.cs
2.90625
3
using System; namespace Dotc.Common { public class UrlFormatProvider : IFormatProvider { private readonly UrlFormatter _formatter = new UrlFormatter(); public object GetFormat(Type formatType) { return formatType == typeof(ICustomFormatter) ? _formatter : null; } ...
88dac9f956cac76155dfb17ba9ff34ac5746d86c
C#
SpringerHealthcare/RPW
/SpringHealthOne/Models/FilterSearchResults.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SpringHealthOne.Models { public class FilterSearchResults { public List<String> filtername { get; set; } public List<int> filtercount { get; set; } public FilterSearchResults(List<String> fi...
e8cc9b7c09b2c6ade445616971d14b3ad858a6d1
C#
mrLordi/parallelPrograming
/C#/ConsoleApplication1/ConsoleApplication1/Program.cs
2.875
3
using System; using System.Threading; ///////////////////////////////////////////////////////////// ///// Lab 2. C# ///// ///// A = sort(d*B + e*C*(MO*MK)) ///// ///// Denys Vodotiiets ///// ///// IP-42 ...
481291b97a44fcad9c8bdcae35efbf04c9d8c472
C#
LukasKez/OPP-tankai
/Client/Assets/PowerUp/PowerUp.cs
2.78125
3
using Client; using System.Drawing; /** * @(#) PowerUp.cs */ namespace PowerUp { public class PowerUpBase : GameObject { protected float speed = 100; public PowerUpBase(float x, float y, float w, float h) : base(new Transform(x, y, w, h)) { isShadowCaster = true; ...