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
1d4b4964f32af5c67bdc6869eec0fe67ed27d3ae
C#
vchelaru/FlatRedBall
/FRBDK/Glue/GameCommunicationPlugin/GlueControl/ViewModels/TestViewModel.cs
2.6875
3
using FlatRedBall.Glue.MVVM; using System; using System.Collections.Generic; using System.Text; using System.Windows.Media; namespace GameCommunicationPlugin.GlueControl.ViewModels { class TestViewModel : ViewModel { //public int Health //{ // get => Get<int>(); // set =>...
b9c454f2bcd16b3907f43dd0fd8a4305357a5a0b
C#
inin2007/C-Sharp
/w3resource/exercise26.cs
3.734375
4
using System; public class Exercise26 { public static void Main( ) { Console.WriteLine("Sum of the first 500 prime numbers:"); long x = 0; int y = 0; int j = 2; while (y < 500) { if (h(j)) { x += j; ...
3342e158c17b090e3fbbab23fbece031151e7a74
C#
zcstkhk/RhinoInside.NX
/RhinoInside.NX.Extensions/NX/NXOpen/Structs/Quaternion.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NXOpen; namespace RhinoInside.NX.Extensions { public struct Quaternion { #region 字段 public double Q1; public double Q2; public double Q3; public double Q4; public static readonly...
3696ce32cdb702ea56866ff3f19f98b0d8aead4f
C#
ElliotOne/CSharpFull
/_zz_OtherTopics/_08_DynamicKeyword.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _zz_OtherTopics { class _08_DynamicKeyword { void ThisIsMAin() { dynamic value = 0; Console.WriteLine("Value = " + value); value = "...
8fabea6c305b13063541c0a4bd79efe018e8563f
C#
geethasamynathan/INTCDE21ID008
/MVCDemo1/EmployeeRepository.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MVCDemo1.Models { public class EmployeeRepository : IEmployeeRepository { public List<Employee> employees = new List<Employee>(); public EmployeeRepository() { ...
7c226790e91196e69aa76e7d21e0022d155b0fa9
C#
sharewebcode/Web
/CSharp/WPF/Zero_To_FileWrite/WPF_FileContentDelete2/ViewModels/SelectionFileDataSource.cs
2.703125
3
using System.ComponentModel; namespace WPF_FileContentDelete.ViewModels { public class SelectionFileDataSource : INotifyPropertyChanged { private string filePath; private long fileSize; public string FilePath { get { return filePath; } set {...
cc729f9ad90202901ed6a6efe23d17901fd9fdec
C#
kuier/JianZhiOfferCSharp
/5-用两个栈实现队列/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5_用两个栈实现队列 { class Solution { private Stack<int> stack1 = new Stack<int>(); private Stack<int> stack2 = new Stack<int>(); public void push(int node) { ...
dd6401c4c9d82e59f1b314b3f5ba6b490ca57e55
C#
nixonyong911/C-Sharp_Typing_Game
/exampleMenu/Main.cs
2.609375
3
 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Media; using System.IO; namespace exampleMenu { public partial class Menu : Form { private int currentLe...
7d0d7cdb9ff5e4442afaee17cbb8093b8dc464b5
C#
mihov/TelerikAkademy2016
/CSharp-Part-2/03. Methods/11. Adding polynomials/AddingPolynomials.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AddingPolynomials { static void Main() { Console.ReadLine(); int[] firstPolynomial = SplitStrToInt(Console.ReadLine()); int[] secondPolynomial = SplitStrToInt(Conso...
43f2b70ffda3ea2dff01dd1a88254f9510f0ecd8
C#
vermie/AnyMapper
/AnyMapper.Test.Unit/PropertyMapperTests.cs
2.765625
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AnyMapper.Tests.Unit { [TestClass] public class PropertyMapperTests { [TestCleanup] public void Cleanup() { ...
408d09f6f00308217e1866055e09d3899187b2a1
C#
dexterdelandro/Krawl
/Krawl/Krawl/GameArchitecture/GameObject.cs
2.921875
3
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace Krawl.GameArchitecture { public class GameObject {...
67963d511bf88b0f5a05c814e614b0214cd8a765
C#
Nilmaros/wtw-exercise
/WTW/CSVHandler.cs
3.125
3
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using WTW.models; using System.IO; using System.Linq; namespace WTW { public class CSVHandler { private readonly string _inputAddress; private readonly string _outputAddress; private readonly string _...
047ba3f22398ddffac42ea47486ee67867da4ca7
C#
ndrwrbgs/FastLinq
/src/Library/Collection/StayInCollection/Reverse.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Linq { public static partial class FastLinq { public static IReadOnlyCollection<T> Reverse<T>( this IReadOnlyCollection<T> source) { if (...
fd7dddecf14bb21b0fdb9073601a65226457f710
C#
Alltips/gawi-bawi-bo
/frmMain.cs
2.5625
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 가위바위보_게임 { public partial class frmMain : Form { private Random ...
4cc3a3459a968c68e0602bac341d0b2c5e409957
C#
blish-hud/Blish-HUD
/Blish HUD/GameServices/Settings/SettingEntry[T].cs
3.0625
3
using System; using Newtonsoft.Json; namespace Blish_HUD.Settings { public sealed class SettingEntry<T> : SettingEntry { public event EventHandler<ValueChangedEventArgs<T>> SettingChanged; private void OnSettingChanged(ValueChangedEventArgs<T> e) { GameService.Settings.Save(); ...
713d00ba610ccbc30c8ea1854de56e89fa5214de
C#
brittaschulte/unityrealtimeweather
/Assets/Sample/WeatherDataManager.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WeatherDataManager : MonoBehaviour { public void Start() { Invoke("CheckWeather", 3.0f); } private void CheckWeather() { Debug.Log(GetComponent<WeatherScript>().GetCurrentWeatherObject().T...
584d6f4143c881992a5bb80e51810446f3739dd5
C#
Ivanestver/MedicCards
/MedicCards/Forms/Functional/Update.cs
2.71875
3
using System; using System.Drawing; using System.Windows.Forms; namespace MedicCards { public partial class Update : Form { int n; DataGridView data = new DataGridView(); string form = ""; public Update(int _n, DataGridView _data, string _form) { Initialize...
5b51635ad09c3ea42e460486bd75760c2aeac4c3
C#
syrjgc11006/asp.net-demo
/WebService/一个简单的web服务/App_Code/Service.cs
2.6875
3
using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Data.SqlClient; [WebService(Namespace = "http://contoso.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { public Servic...
cfc19954a9ca4ff5fb8e217a797459f5a587bc44
C#
itrofimow/PekaDaily
/Back/Jobs/Jobs/Mongo/MongoContext.cs
2.671875
3
using System; using System.Collections.Concurrent; using Jobs.Models; using MongoDB.Driver; namespace Jobs.Mongo { public class MongoContext { private readonly MongoClient _mongoClient; private readonly MongoUrl _mongoUrl; private readonly ConcurrentDictionary<Type, string> _collection...
ffa9f21acb69f2f6d9aac04a749e31e89f1364f1
C#
Amjadraza26/MySMS
/SMS/LogicKernal/ClassStudents.cs
2.703125
3
using System.Data; namespace LogicKernal { public class ClassStudents { public static DataTable GetAllClassStudents() { try { DataKernal.ClassStudents objClassStudents = new DataKernal.ClassStudents(); return objClassStudents.SelectClassStudents().Tables[0]; } catch (System.Exception ex) ...
48023c8e9445d84a2d3bbe9ca94f60e3b098ad4f
C#
wcatykid/GeoShader
/Main/GeometryTutorLib/UIProblemDrawer.cs
3.140625
3
using System; using System.Collections.Generic; using System.Diagnostics; using GeometryTutorLib.Area_Based_Analyses.Atomizer; using GeometryTutorLib.ConcreteAST; namespace GeometryTutorLib { /// <summary> /// A class that can be used tell the UI to draw problems. /// Follows a variation on the singleton ...
00dd48c93bdce720a4d87787bb862bd52ee6985b
C#
FancisLuo/BasicTechInGame
/9-CheckCollisionCircle/Scripts/CheckCircleRect.cs
2.71875
3
using CheckCollisionRect; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace CheckCollisionCircle { public class CheckCircleRect : MonoBehaviour { [SerializeField] private RectangleTarget rectangleTarget; [SerializeField] private CircleTarget cir...
5a222c56e5b8480d3cd05660646f1e616ec0a8fc
C#
AdmiralCurtiss/ToVPatcher
/Scripts/tools/MAPLIST/MAPLIST/MapList.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MAPLIST { class MapList { public uint Liststart; public uint Textstart; public List<MapName> MapNames; public MapList(byte[] Bytes) { Liststart = Util.SwapEndia...
e369be9afb4e8cf96285638db649f7fc76dd6b9b
C#
CynicalGrey/unity-scripts
/SphereTrigger.cs
2.546875
3
using UnityEngine; using System.Collections; public class SphereTrigger : MonoBehaviour { SphereTrigger sphereWorldOneObj; SphereTrigger sphereWorldTwoObj; // Use this for initialization void Start () { Debug.Log("Sphere Trigger Script"); sphereWorldOneObj = GameObject.Find("sphereWorldOne").GetComponent<S...
38f09bedb8b1116d15dd8735a0eafa7372ba2ce6
C#
szgerg/Swanker
/src/Swanker/Helpers/JsonStringifier.cs
2.90625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.Diagnostics; using Serilog; namespace Swanker.Helpers { internal class JsonStringifier: StringifierBase { private readonly ILogger _logger; private List<Type>...
5c9e376e7ba76ff92eafda73d3c4c54d0f4fe07f
C#
gamingAmee/AppProjekt
/AppProjekt/Repository/GenericRepository.cs
2.609375
3
using Newtonsoft.Json; using Repository.Exceptions; using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace Repository { public class GenericRepository : IGenericRepository { private HttpClient httpClient; HttpClientHandler...
8aa34139180b53777a28e7c8aad6942b258e335e
C#
akshinde45/BackUP
/SecondPractMVC/SecondPractMVC/DEPART.cs
2.625
3
namespace SecondPractMVC { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("DEPART")] public partial class DEPART { [System.Diagnostics.CodeA...
67bbc294a46b8bbeeedb8317c7d32e43587f7785
C#
HelloZhangzy/Exercise
/NET/Console/设计模式/享元模式/享元模式/Program.cs
3.53125
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 享元模式 { class Program { static void Main(string[] args) { IgoChessman black1, black2, black3, white1, white2; IgoChessm...
a5594ff475a84831b926abbb6d72e0f296c1a3ad
C#
DmitryDolzhenkov/TrainYourKnowledge
/ValueTypeCA/Program.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ValueTypeCA { class Program { static void Main(string[] args) { List<Tabalo> listofTabalos = new List<Tabalo>(); ParseListofTabalos(listofTabalo...
698bc19a3a32877513b50fe645513eca3dac9a51
C#
mejborn/Mars-City-Simulator
/People/ScienceField.cs
3
3
using UnityEngine; using System.Collections; public class ScienceField { public Scfield scfield; private Skillset skillset; public Skillset getSkillset(){ return skillset; } public enum Scfield { Scientist, Engineer, Farmer, Tourist, Astronaut }; public ScienceField(Scfield scfield) { instan...
38998b09de8fd6a17be314725fcbc2a99d7684f6
C#
kmycode/mastoom
/Mastoom.Shared/Converters/String2EmojiConverter.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Mastoom.Shared.Converters { public class String2EmojiConverter : SharedConverterBase { private static readonly Dictionary<String, EmojiSharp.Emoji> dic = EmojiSharp.Emoji.All...
5b13515692eef6375e3306169c77f16fb0c08304
C#
fosstheory/PongGlobe
/src/PongGlobe2/Core/Algorithm/RayCastHit.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace PongGlobe.Core.Algorithm { /// <summary> /// Hit到哪个对象且距离对象有多远 /// </summary> /// <typeparam name="T"></typeparam> public struct RayCastHit<T> { public readonly T Item; public read...
929777524cd867eb39403a80628bc13a8487216c
C#
casrou/ChartConverter
/src/ChartConverter.Core/CloneHero/CloneHeroDifficulty.cs
2.75
3
using ChartConverter.Core.BeatSaber; namespace ChartConverter.Core { public enum CloneHeroDifficulty { Unknown, Easy, Medium, Hard, Expert } public static class CloneHeroDifficultyHelper { public static CloneHeroDifficulty GetCloneHeroDifficultyFromBeatSaberDifficulty(BeatSaberDif...
65c71a20badf3ab757f00873480522a8f1a3b2bf
C#
rmichak/it431-sample-trans1
/Trans1/Data/CourseDatabaseInitializer.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using Trans1.Models; namespace Trans1.Data { public class Trans1DBInitializer : DropCreateDatabaseAlways<Trans1Context> { protected override void Seed(Trans1Context context) { ...
06ec9e7e41d3c85bd6b2e416cb914ed443a915b0
C#
jan-leewx/OBJECT-ORIENTED-PROGRAMING
/Rewards.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Media; using System.Windows.Forms; namespace Snake { class Rewards { List<Position> appleList; Board mainBoard; List<Position> enemylist; ...
ce7be6bc64a6aa174096862e076c16fe2cf816c4
C#
ricardosleme/TestBoticario
/Sales.Seller.CashBack/Sales.Seller.CashBack.API/Repository/SalesRepository.cs
2.53125
3
using Microsoft.Extensions.Configuration; using MongoDB.Bson; using MongoDB.Driver; using Sales.Seller.CashBack.API.Repository.Data; using System.Security.Policy; namespace Sales.Seller.CashBack.API.Repository { public class SalesRepository : ISalesRepository { private readonly IDbMongo _dbMongo; ...
2eeca4c01395fc9c3cab98f610c18bfc1a6c5114
C#
petecallaghan/PopulationFitness
/DotNet/PopulationFitness/PopulationFitness/Models/Genes/BitSet/BitSetGenes.cs
2.890625
3
using PopulationFitness.Models.Genes.Cache; using System; namespace PopulationFitness.Models.Genes.BitSet { /** * Extend this to provide different fitness functions that use a bitset * * Created by pete.callaghan on 03/07/2017. */ public abstract class BitSetGenes : IGenes { p...
988751d9ed61aa9e38f5e90a2c69cc113d5a549e
C#
kthanu/Tutorial
/Example_CSharp_Day3/Example_CSharp_Day3/Calculations.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Example_CSharp_Day3 { class Calculations { static double a, b; public static double add(double a, double b) { return a + b; } public static double sub(dou...
3d39276b77544a59f0ce02cc5070eec5c134ebe2
C#
Kerolyov/ProjectCaprica
/Assets/Scripts/Data/Config.cs
2.75
3
using UnityEngine; using System.Collections; namespace Caprica { public static class Config { // Values are coded here for now, but the goal // will be to load in from a config file that is modable. public static int GetInt(string Parameter) { switch (P...
a5b240ea14f9dff400cadb558cbab1b7e1622058
C#
koljagrudinin/OldVkParser
/classlibraryvkontaktechecker/classlibraryvkontaktechecker/WorkClasses/MemoryWorker.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace ClassLibraryVkontakteChecker.WorkClasses { /// <summary> /// Класс, реализующий кеширование на диск /// </summary> class MemoryWorker { int i = ...
a539e1f69d629c33b78a7faee3fbe6b04e1cb03a
C#
Cosmic-Deluxe-Adventure-Limited/CosmicDeluxeAdventureLTD
/CosmicDeluxeAdventure/Model/Trip.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace CosmicDeluxeAdventure.Model { public class Trip { [Required] public int ID { get; set; } public int UserID { get; set; } public int FlightID { get...
ae3006f47286f1dc479fa3a48828e68569c95301
C#
gon93/ShapeApp
/CreateForm.cs
2.6875
3
using System; using System.Data.OleDb; using System.Drawing; using System.Windows.Forms; using LoginLib; namespace ShapeApp1 { public partial class CreateForm : Form { private readonly OleDbConnection _conn; public CreateForm(OleDbConnection conn) { InitializeComponent(); ...
d584a69a0e3e00df1bb288a07259262d1830c3c9
C#
Niconpapas/Cheatsheets
/DelegatesAndEvents/DelegatesAndEvents/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DelegatesAndEvents { class Program { static void Main(string[] args) { //Person newPerson1 = new Person() { FirstName = "Paul", LastName = "McDuck" }; ...
ee86eacb3301dcf073ace42f08e6ee32ff163701
C#
losttech/TypeNum
/samples/Tensors/Program.cs
2.578125
3
namespace Tensors { using System.Diagnostics; using TypeNum; using N39 = TypeNum.Sum<TypeNum.Sum<TypeNum.Sum< TypeNum.N32, TypeNum.N4>, TypeNum.N2>, TypeNum.N1>; class Program { static void Main(string[] args) { var diag1 = new MutableTens...
970b622661a96be31ada46f6cc6985145302b47b
C#
Antonite/EternalChess
/EternalChess/Move.cs
3.359375
3
 namespace EternalChess { class Move { public Location before; public Location after; public string color; public string piece; public string stringMove; public Move(Location before, Location after, string color, string piece) { this.before =...
fb4892a46743c014ab28cfc55487879c4ade0cf7
C#
rock117/file-downloader
/FileDownloader/FileDownloader/NumberUtil.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FileDownloader { public class NumberUtil { public static string toFixed(float num, int len) { return toFixed(num + "", len); } public static string toFixed(double num, i...
905e58a41f124f4d7434a017401b34a0703ffcfa
C#
barnabasMatrai/Threading
/SimpleThreadingDemo/SimpleThreadingDemo/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SimpleThreadingDemo { class Program { static void Main(string[] args) { ThreadStart threadStart = new ThreadStart(Counting); ...
f6d7f8ab7a52a4b908f4417cde502292dc111cb2
C#
mintsticks/lodcooking
/Assets/Scripts/Recipe.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Recipe : MonoBehaviour { public List<string> tasks; public void finishStack() { if(tasks.Contains("stack")) { tasks.Remove("stack"); } } public void finishGrill() { if(tasks...
de6d4deabf725de5637ebddfeaaf0d2347d41a32
C#
gunnersperos/Lockdown
/Lockdown/frmReminders.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Text.Json; using System.Threading.Tasks; using System.Windows.Forms; using System.Threading; namespace Lockdown { public partial class frmReminde...
f24e85c280348b3cf81539cfdc5eeea1d0b468ac
C#
ssh352/cppcode
/DotNet/CSharpForDummies-master/Book 2 Object Oriented Principles/Chapter 8/PassInterface/Program.cs
3.53125
4
// PassInterface - Given an object that implements two interfaces, // IBase and IDerived (which inherits IBase), can you // pass an IDerived object through an IBase parameter? Yes. // Can you add IDerived objects to an IBase collection? Yes. // Can you use polymorphism as you would with classes? No. us...
51ad9c691aa7d2eb2e71aba306504638ddeb5f4b
C#
shendongnian/download4
/code6/1078443-28038756-81949000-2.cs
3.21875
3
public enum SerialSignal { SendSync = 0x33, ReceiveSync = 0x8A, } private static SerialPort _arduinoSerialPort ; /// <summary> /// Polls all serial port and check for our device connected or not /// </summary> /// <returns>True: if our device is connected</re...
bfae48cc65d23efcfe440f30875632594eead694
C#
trbenning/Foundatio
/src/Core/Utility/DataDictionary.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using Foundatio.Extensions; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Foundatio.Utility { public class DataDictionary : Dictionary<string, object> { public DataDictionary() : base(StringComparer.OrdinalIgnoreCase) {} ...
5ebd94537904224d2b560f7e88707f340e97e4fa
C#
fpermeti/coding_school_2021
/misc/DevExpressApp1/WindowsFormsApp4/Form1.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp4 { public partial class Form1 : DevE...
ace8e13574ffbf7d50b9aa8980dcbf6349ca7120
C#
michaelswells/FontAwesomeAttribute
/FontAwesome/FontAwesome.UserEdit.cs
2.609375
3
using System; namespace FontAwesome { /// <summary> /// The unicode values for all FontAwesome icons. /// <para/> /// See https://fontawesome.com/cheatsheet /// <para/> /// This code was automatically generated by FA2CS (https://github.com/michaelswells/fa2cs a modified fork from https://github...
8c9796209be07b440e76fabbb9993918a56ecc2b
C#
ufcpp/BitFields
/experimental/TypeClassBits/LogicalOperators.cs
2.984375
3
namespace TypeClassBits { public struct LogicalOperator8 : ILogicalOperator<byte> { public byte One => 1; public byte As(ulong value) => unchecked((byte)value); public byte Not(byte value) => unchecked((byte)~value); public void And(ref byte x, byte y) => x &= y; ...
0c3d4a035b6d2c7d0899c40dfdc221c61b48fc9a
C#
alonsodev/SSR
/Business.Logic/DraftLawStatusBL.cs
2.65625
3
using Domain.Entities; using Infrastructure.Data; using Infrastructure.Data.Repositories; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Business.Logic { public class DraftLawStatusBL { private s...
d999a43733fb4038ca14d5d09aef7796220cf1df
C#
Ktaliken/Test
/MethodSortArray.cs
3.75
4
using System; namespace ConsoleApp7 { class Program { public static void Main(string[] args) { int[] array = GetArrayFromConsole(); SortArray(array); foreach (int item in array) { Console.WriteLine(item); } ...
aaaa4f88607c842e88e5243dfa207eeff3b885fa
C#
sun-wise-man/Publish-Subscribe
/Receive/Receive.cs
3
3
using System; using RabbitMQ.Client; using RabbitMQ.Client.Events; using System.Text; class ReceiveLogs { public static void Main() { /* Membuat koneksi, dengan host lokal*/ var factory = new ConnectionFactory() { HostName = "localhost" }; using (var connection = factory.CreateConnecti...
4e3d93baf812d49528a7d94704a06055b265b33e
C#
Haricane2000/ZIiNIS
/2semestr/Lab3/ThirdLab/Program.cs
2.921875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ThirdLab { class Program { static string textForEncode = "цввяткоу "; static string secondTextForEncode = "мыкалай"; static string text = ""; ...
cc9ed40235bb47613440b710f40999581cd75d90
C#
hristodobrev/SU
/Advanced C#/Exams/Exam Problems Practice/02. String Matrix Rotation/StringMatrixRotation.cs
3.625
4
using System; using System.Text; using System.Collections.Generic; class StringMatrixRotation { static void Main() { // Input List<string> list = new List<string>(); StringBuilder rotation = new StringBuilder(Console.ReadLine()); string text = Console.ReadLine(); while (...
f495ffda8123fdf5548696459e68139747ee1281
C#
dbcdiogo/SiteCenbrap
/Biblioteca/DB/CategoriaDB.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using Biblioteca.Entidades; namespace Biblioteca.DB { public class CategoriaDB { public void Salvar(Categoria variavel) { try { ...
6ac1ec76b22ece6d72eaea6171069be98b0b86ed
C#
stanislavstoyanov99/SoftUni-Software-Engineering
/DB-with-C#/Exams/Entity Framework Core/01. C# DB Advanced Exam - 07.04.19/Cinema/DataProcessor/Deserializer.cs
2.6875
3
namespace Cinema.DataProcessor { using System; using System.IO; using System.Linq; using System.Text; using System.Xml.Serialization; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using AutoMapper; using Newtonsoft.Json; using Data; using C...
9e3acbe8cd759150333ed213f2c6edfdd588ad5b
C#
MatthewBregg/Assignment1VrforSocialGood
/Assets/Assignment 1/scripts/TriggerIfPlayerEnters.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] abstract public class TriggerIfPlayerEntersAction : MonoBehaviour { public abstract void performEnterAction(Collider platform, Collider other); public abstract void performExitAction(Coll...
528f3bc34d08b0c39530591d8edcecc4e22482c1
C#
gokul-repo/DataStructureAlgorithm
/Leetcode/24_SwapNodesinPairs.cs
3.828125
4
namespace DataStructureAlgorithm.Leetcode { //24. Swap Nodes in Pairs //https://leetcode.com/problems/swap-nodes-in-pairs/ public class SwapNodesinPairs { //Recursion //Time - O(n) //Space - O(n) public ListNode SwapPairs(ListNode head) { if (head == ...
1eea0433f74fb7db17b58b5b3046515f3bc27aa2
C#
mizutoki79/AOJ
/ALDS_InttroductionToAlgorithmsAndDataStructures/ALDS1_3_D_AreasOnTheCross-SectionDiagram.cs
3.28125
3
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class Program{ static void Main(){ string s = Console.ReadLine(); Stack<int> startStk = new Stack<int>(s.Length); //Stack<Tuple<int, int>> areaStk = new Stack<Tu...
318aab4d3cbb8ab8def25fb88ad95892dba41e68
C#
BalanaguYashwanth/C-Sharp
/Arrays.cs
3.53125
4
using System; namespace Arrays { class Numbers { static void Main(string[] args) { var name = new string[3] { "yash","bash","dash"}; Console.WriteLine(name[0]); Console.WriteLine(name[1]); Console.WriteLine(name[2]); var fullname = Stri...
07024565a439c73a176a283ad71657908d8b1548
C#
mbargolani/InterceptorDemo
/TestInterceptor/LogInterceptor.cs
2.859375
3
using System; using System.Reflection; using Castle.DynamicProxy; namespace TestInterceptor { public class LogInterceptor : IInterceptor { public void Intercept(IInvocation invocation) { var method = invocation.GetConcreteMethod(); method = invocation.InvocationTarget....
7960515df9ac9b52dc6456cc12dbbf0c13a0cf0f
C#
David-Hanna/ProjectGunpowder
/Unity/Assets/Scripts/Test/EventTest.cs
2.546875
3
using UnityEngine; using System.Collections; public class EventTest : MonoBehaviour { double timeSinceStart = 0; // Use this for initialization void Start () { GameEventDelegate<TimeEvent> oneOff = OneOffTime; EventManager.Instance.AddSubscriber(oneOff); GameEventDelegate<TimeEvent> ...
c47255f9870281e00090f8f395cdaefd114e445c
C#
mbsky/dotnetmarcheproject
/src/Common/Infrastructure/DotNetMarche.Infrastructure/Caching/NullCache.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DotNetMarche.Infrastructure.Caching { /// <summary> /// null cache implementation. Null Object Pattern. /// </summary> public class NullCache : ICache { #region ICache Members public object Get(obje...
2b6d72c7413299d440c55b4dc627478441615ede
C#
NadyaNikol/PatternVisitor
/ConsoleApp1/ConsoleApp1/Program.cs
2.890625
3
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) { Room room1 = new Room(101); Room room2 = new Room(102); Room room3 ...
4cf5951f580461fd0ea92d40c9c0469f18fcbc13
C#
ParadoxGameConverters/ImperatorToCK3
/ImperatorToCK3.UnitTests/CommonUtils/Genes/GenesDBTests.cs
2.6875
3
using commonItems; using ImperatorToCK3.CommonUtils.Genes; using Xunit; namespace ImperatorToCK3.UnitTests.CommonUtils.Genes; public class GenesDBTests { [Fact] public void GenesDefaultToEmpty() { var reader = new BufferedReader("={}"); var genesDB = new GenesDB(reader); Assert.Empty(genesDB.AccessoryGenes...
4c7bf35be4fad1c25aa9a2a9019745bb0b32e58f
C#
bigiayomide/DontWaste
/Dontwaste.Api.Data/Repositories/CategoryRepository.cs
2.609375
3
using DontWaste.Api.Data.Contracts.IDataRepositories; using DontWaste.Api.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.EntityFrameworkCore; namespace Dontwaste.Api.Data.Repositories { public class CategoryRepository : RepositoryService<Category>, ...
e865267a19c228df438753549352a842cd2a59e0
C#
Ellpeck/Evolvinary
/Main/Worlds/Entities/Paths/SubWaypoint.cs
2.75
3
using System; using Evolvinary.Helper; using Microsoft.Xna.Framework; namespace Evolvinary.Main.Worlds.Entities.Paths{ public class SubWaypoint{ public Vector2 Pos; public SubWaypoint Parent; public int CostFromStart; //The G cost public int CostToEnd; //The H cost public...
8dcee0713cba99042c4e1fc85b7ecca393e3852f
C#
Shouko-Nishimiya/xBrute
/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace xBrute { class Program { [STAThread] static void Main(string[]...
7f53b6d13e40528a7697afd63ec2eb9f64e7ad05
C#
maximgorbachiov/Mentoring-L2
/Multithreading/Tasks/ThreadTasks/Task3/Task3.cs
3.5625
4
using System; using System.Threading.Tasks; namespace ThreadTasks.Task3 { public static class Task3 { public static void RunMatrixMultiplication() { int[][] firstMatrix = CreateMatrix(); int[][] secondMatrix = CreateMatrix(firstMatrix[0].Length, firstMatrix.Length); ...
ee28db15c7734ef75c5ebfbd9abbe56014c6310b
C#
Lupiac/WebServices
/MathsLibrary/ClientSOAP/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ClientSOAP.VelibService; namespace ClientSOAP { ////////////////// Objects used ///////////////////// class Program { /* Private methods */ private static void hel...
35c561d9f6e56c719c06925f889f2ec6803cfa95
C#
Daniguillot/Hanoi
/Torres_de_Hanoi/Pila.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Torres_de_Hanoi { class Pila { public int Size { get { return this.Elementos.Count; } set { Size = value; } } public int Top { ...
70bb6676e643f599fef450ac1e15eecd086fa060
C#
socketlabs/socketlabs-csharp
/Example Projects/dotNetCoreExample/Examples/Basic/Invalid/BasicSendWithInvalidAttachment.cs
2.578125
3
using System; using SocketLabs.InjectionApi; using SocketLabs.InjectionApi.Message; namespace dotNetCoreExample.Examples.Basic.Invalid { public class BasicSendWithInvalidAttachment : IExample { public SendResponse RunExample() { var message = new BasicMessage(); messag...
9a97b4cd3d166c315944bc6f86e97aebaa7e6b39
C#
rabbit33/PRGS_SendingEmails
/Holidays/Holidays/Program.cs
2.546875
3
using System; namespace Holidays { class Program { static void Main() { var request = new HolidayRequest { Employee = new Employee { Name = "Alexandra", Email = "alexandra.popescu@iquestgroup.com", ...
b117e5373631b55e1c18e580eb8aa504aa6f7964
C#
neurohunter/ImageImporter
/src/ImageImporter/FileProcessor/IFileProcessor.cs
2.90625
3
using System.IO; namespace ImageImporter.FileProcessor { /// <summary> /// Processes a specific file kind according to rules specific to it /// </summary> public interface IFileProcessor { /// <summary> /// Process a single file /// </summary> /// <param name="input...
41b3f22fee5ce693bdb83baa5273d580f36d964e
C#
Georadix/Georadix.NET
/src/Georadix.Web/HttpRequestExtensions.cs
3.234375
3
namespace System.Web { using System.Linq; using System.Net; /// <summary> /// Defines methods that extend the <see cref="HttpRequest"/> class. /// </summary> public static class HttpRequestExtensions { private const string ForwardedFor = "X-Forwarded-For"; /// <summary> ...
f0c433ddfecffcff19785429ed95e3b5c721ce18
C#
AndrewGitHabSource/Calculator
/Calc/Calculator.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Calc { class Calculator { private List<float> listValues = new List<float>(); private List<string> listOperators = new List<string>(); public Calculator(List<fl...
7392a8a97386f871c42092ce515752c5de80e6a7
C#
dragosc02/comunityManagement
/ComunityMembers/ComunityMembersModels/MembershipModels/Details/Phone.cs
2.546875
3
using System; using CommunityMembersModels.Contracts; using CommunityModels.MembershipModels.Enums; namespace CommunityModels.MembershipModels.Details { /// <summary>Stores phone information</summary> public class Phone : IModel { /// <summary>Gets or sets the date when the record was created.</...
d7a64b868a9e4f5e3ba3533b91888ac865eac1a7
C#
g-yonchev/TelerikAcademy
/Homeworks/C# OOP/05. OOP Principles Part 02/Exceptions/RangeException.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exceptions { class RangeException<T> : ApplicationException { private T startRange; private T endRange; public RangeException(string message, T start, T end) ...
e4f716551bc8ed23e827328a9a9a8925592bc71e
C#
AndyBrizhak/GB_Arch-Patterns_HW01_Brizhak
/GB_Arch+Patterns_HW01_02/Program.cs
3.546875
4
using System; using System.Collections.Generic; //ДЗ по курсу Архитектуры и шаблоны проектирования на C# Брижак Андрей //2. Реализовать программу из раздела «Повторяющиеся фрагменты кода» с помощью делегата Func. namespace GB_Arch_Patterns_HW01_02 { class Program { public static readonly string _Addr...
9ac3f7aae38d18cd3872de088df63aa6b69dfecf
C#
msruzy/WickedEngine-1
/CameraDemo/CameraDemo/FrameRateComponent.cs
3.015625
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace CameraDemo { /// <summary> /// A real basic frame rate counter. /// </summary> public class FrameRateComponent : DrawableGameComponent { private int drawCount; private float drawTimer; private string drawString = "FPS: "; p...
e0864db124cb2f270ddcb628a34f84c17db251c0
C#
MuraiMisaki/HALProject
/Project_C/Assets/Scripts/SceneManager/SceneManagerCS.cs
2.546875
3
using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; // シーンマネージャを使えるようにする。 public class SceneManagerCS : MonoBehaviour { public string[] nextScene = new string[1]; public string prevScene; public int selectScene; protected GameObject bgmManager; // フェード用 protec...
4d7fcd0818a01bd31730d2829d0c37299908a6aa
C#
tugiss11/AjouraDemo
/Desktop/Ajourakonedemo/Model/GraphVertexClass.cs
2.65625
3
using System; using Esri.ArcGISRuntime.Geometry; namespace ArcGISRuntime.Samples.DesktopViewer.Model { public class GraphVertexClass { public int ID { get; set; } public double? X { get; set; } public double? Y { get; set; } /// <summary> /// Puumäärä dm3 ///...
81920ac95d827f5f3ec7f841614e7d5d871795c5
C#
hirabayashi-k/sample_cs
/VisualStudio2015_Sample/TaskTest/TaskTest/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.Threading.Tasks; using System.Windows.Forms; namespace TaskTest { public partial class Form1 : Form { Task task; bool testfl...
ccfb084e0728da4b4987a31102d07ce4d04cb82b
C#
Shyryp/ProductionManage
/ProductionManagement/Program.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace ProductionManagement { static class Program { /// <summary> /// Главная точка входа для приложения. /// </summary> [STAThread] static v...
3c003e8ff839a66f33d155a0d64eaa5fc3f5c6d4
C#
lawilson5589/geolabvirtualmaps
/VirtualEarth/VELibrary/VEMapEnumerations.cs
2.84375
3
// Author: J.Baltikauskas // This source is subject to the Microsoft Reference License. // See http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx using System; using System.Collections.Generic; using System.Text; namespace VELibrary { /// <summary> /// An enumerat...
72d428b60a089b965a89a3fb4ab22c29ec13fd37
C#
AndrewSherstyuk/C-CourseAdvanced
/_Examples/007_Input_Output/022_StringWriter/Program.cs
3.59375
4
using System; using System.IO; /// <summary> /// StringWriter - обертка над StringBuilder /// </summary> namespace _022_StringWriter { class Program { static void Main() { // StringWriter - обертка над StringBuilder // StringWriter - Реализует объект System.IO.TextWrite...
3f1d7d6a1b3b87c946a8950d188efede50db9473
C#
ElementCraft/GreedySnack-CSharp
/GreedySnack/Utils/Clock.cs
3.375
3
using System; namespace GreedySnack.Utils { /// <summary> /// 时钟计时类 /// </summary> public class Clock { private static DateTime nowTick; private static DateTime preTick; private static TimeSpan passTick; private static double totalTick; /// <summary> ...
1c06ffa2848d55ff19f25f101a7c24ede37fa9a4
C#
kingwaytek/SqlSugar
/NewTest/Demos/Filter.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NewTest.Dao; using Models; using System.Data.SqlClient; using SqlSugar; namespace NewTest.Demos { //过滤器用法 //使用场合(例如:假删除查询,这个时候就可以设置一个过滤器,不需要每次都 .Where(it=>it.IsDelete==true)) public class Filter : IDemos { ...
54662795a840ea702bace9a4908f4f28cc251596
C#
eksotama/Simple.Data.Firebird
/Simple.Data.Firebird/TypeMap.cs
2.609375
3
using System; using System.Collections.Generic; using System.Data; using FirebirdSql.Data.FirebirdClient; namespace Simple.Data.Firebird { public class TypeMap { public static TypeEntry GetTypeEntry(string dataTypeName) { if (!FbTypeToTypeEntry.ContainsKey(dataTypeName)) ...
75685816a6f5dc7c83d5783e5b4057f4551c49cb
C#
NanoFabricFX/dotNext
/src/DotNext.Metaprogramming/Runtime/CompilerServices/AsyncStateMachine.cs
2.578125
3
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; using System.Threading.Tasks; namespace DotNext.Runtime.CompilerServices { /// <summary> /// Provides manual control over asynchronous state ...
4fa404e8059562bb56e41cd617d1a2ec5716d6c7
C#
gopa810/Text2Tree
/OtherProjects/COBOLparser/CobolToCsharp/MainText.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace CobolToCsharp { public class MainText { public class LineRef { public int Index; public string Text; public override string ToString() ...
223c34a7cf1c28bc7250e9ea074f8c21236fab2f
C#
mmpranathi/skinet1
/API/Controllers/ProductsController.cs
2.59375
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Core.Entities; using Core.Interfaces; using Infrastructure.Data; using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace API.Controllers { [ApiController] ...
052b2a5509ad4ad1c3101f4aaaf99a0cfa5d89bc
C#
rusleysantos/spaceways
/services/ManageUser/InsertUser.cs
2.796875
3
using data_source.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using web_spaceways.Models; namespace services.ManageUser { public class InsertUser { /// <summary> /// Metodo responsável por inserir usuário na base de dados. ...
792b280655160229cade56653c76442b61badf39
C#
jessalbesshero/DAR_Jesus
/Lab_3/leer_FIFO.cs
3.1875
3
using System; /*Programa para Leer FIFO*/ public class leer_FIFO { public leer_FIFO() { } int main(void){ int descriptor_archivo; /*Descriptor del FIFO*/ int num_bytes; /*Número de bytes leídos desde el FIFO*/ char buf[PIPE_BUF]; acde_t nodo = 8666; ...