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
16b5cf570f536a628270c4efa0521e9fe2cd26fa
C#
thuananh0611/project_1
/project_1/project_1/Entities/SP.cs
2.84375
3
using System; using System.Collections.Generic; using System.Text; namespace project_1.Entities { public class SP { //khai báo các thông tin liên quan đến dịch vụ #region Các thành phần dữ liệu private int manv; private int masp; private string tensp; private do...
6107b414d29363940280200400bd37fe91ec72f4
C#
JayedHoshen/c_sharp-practic
/second/multidimentionArray.cs
4.1875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace multidimentionalArray { class multiArray { static void Main(string[] args) { int i, j; // declaring multidimentional array string[,] Books = new string[3, 3]; for ...
79b1fcd68943bb9304ac588f12029e8d05f1863e
C#
ronaldoxgh/breakaleg
/Breakaleg.Core/Models/IfCode.cs
2.6875
3
using Breakaleg.Core.Dynamic; namespace Breakaleg.Core.Models { public class IfCode : CodePiece { public ExprPiece Condition; public CodeBlock Then; public CodeBlock Else; public override ExitResult Run(NameContext context) { if (Condition.EvalBo...
04db716d38756279ef9e9f0eca2e44bfa78b975e
C#
NataliiaOsintseva/Patterns
/ComputerFactory/Warehouse/ComputersWarehouse/AsusComputer.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ComputerFactory.Warehouse.ComponentsWarehouse; using ComputerFactory.Warehouse.ComponentsWarehouse.BIOS; using ComputerFactory.Warehouse.ComponentsWarehouse.CPU; using ComputerFactory.Warehouse.Com...
4454034bbee8c300c1d6789742a5adb50393d2b3
C#
vlad72-1/SIGame_megalab2020
/Rocket/Rocket.cs
2.75
3
using SIGameLibrary; using System; using System.Drawing; using System.Runtime.InteropServices; using System.Threading; namespace Rocket { [ProgId("SIGame.Component.Rocket"), Guid("792D8170-D68B-4CC0-8100-7CF280BC0789"), ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IRocket))] [Co...
b720c344bc2c9ff9c245ec70dc357cb45bb24454
C#
steamhunter/TotL
/PathFinder/fightHandler.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PathFinder.Character; namespace PathFinder { public class FightHandler { //public static CharacterEnemyBase[] enemylist = new CharacterEnemyBase[8]; public static List<CharacterEnemyBase> enemyList ...
c41482e51ea7aadb72603096258a7275d4b95b58
C#
WizMe-M/Calculator
/MainWindow.xaml.cs
2.765625
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;...
9625ec36238c6c247dff35c7eeb87c8e7dcf0a83
C#
mikkeldamm/boligf
/Boligf/Boligf.Api/Models/View/AssociationAddress.cs
2.59375
3
using Boligf.Api.Domain.Events; using System.Collections.Generic; namespace Boligf.Api.Models.View { public class AssociationAddress { public string Id { get; set; } public string StreetAddress { get; set; } public string No { get; set; } public string Floor { get; set; } public string Door { get; set; } ...
bc11166944f34ce67cde94807eb8619faf3b6c75
C#
kil98q/Zaaien-en-Oogsten
/Assets/_Scripts/SeasonClock.cs
2.640625
3
using UnityEngine; using System.Collections; public class SeasonClock : MonoBehaviour { private float _movePointer = (360f / 60f /1000f); [SerializeField] private Transform _pointer; [SerializeField] private float _speed =1f; private float lastTick = 0; private float totalms = 0; // Update is c...
66c0b1a511013048aaf6e4d0bf04f3d7f22577d8
C#
kingex1124/Algorithm
/LeetCode/LeetCode/Tree/BinarySearchTree/Q257BinaryTreePaths.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCode.LeetCode.Tree { public class Q257BinaryTreePaths { public Q257BinaryTreePaths() { } /// <summary> /// 九章遞迴解法 /// List DFT ...
b3330c570e8ffa3384a0eaeb42dc9fa6580e321a
C#
stefanNaumov/CourierManager
/TeamAlexandrite/.svn/pristine/84/84ac76ebc4652050dd7ec6853abc3d16d49aae41.svn-base
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CourierManager { public class InvalidIDNumberException : ApplicationException { private readonly string iDNumber; public string IDNumber { ...
7e4825be62637c1d26da50cf6f13e065b8de585c
C#
MilPredo/BringMe
/Assets/Resources/Scripts/Powerup/Punch.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace RummageBattle { public class Punch : Powerup { [SerializeField] private float damage = 10; [SerializeField] private float duration = 1f; private float currentDuration = 0; //public IDamageable<...
750f7d07314a8f339d8d74e4a28f3dee8af61e92
C#
lemish/HackerRank
/HackerRank/StacksAndQueues/BalancedBrackets.cs
3.734375
4
using System.Collections.Generic; using System.Linq; namespace HackerRank.StacksAndQueues { /// <summary> /// Balanced Brackets /// <see href="https://www.hackerrank.com/challenges/balanced-brackets/"/> /// </summary> public class BalancedBrackets { public static string IsBalanced(stri...
284b050e876da2dd9f48e51ebe5c6a7216a51c65
C#
sowrd299/GlowPillow
/Assets/Scripts/StatsReader.cs
3.375
3
using System.IO; using System.Collections.Generic; using UnityEngine; static class StatsReader { public static Dictionary<string,float[]> ReadStats(string url) { /*reads the given (csv) file formated: * * lineName,val0,val1,val2... * * and then returns the ...
3a03f1c6d577695859ed005069c673fcc3a13127
C#
FeedHedgehog/ModernUIApp1
/ModernUI.Common.Infrastructure/Configuration/IConfiguration.cs
2.515625
3
namespace ModernUI.Common.Infrastructure.Configuration { using System.Collections.Generic; /// <summary> /// 配置信息 /// </summary> public interface IConfiguration { /// <summary> /// 关联的文件路径 /// </summary> string FilePath { get; set; } /// <summary> ...
48a9a882b1ef8189fc6a5ff50c7dd9b0ee4f6d4c
C#
IvanPudev/TelerikAcademy
/C#/OOP/OOPFundamentalPrinciplesPart1/Animals/TomCat.cs
2.828125
3
using System; using System.Linq; namespace Animals { class TomCat : Cat { public TomCat(string name, short age, Enum.Gender sex = Enum.Gender.Male) : base(name, age, sex) { } } }
68d1b3b28e99e6e9eae266e0ab16742eb90be747
C#
ooleoole/hyperway
/Mx.Tools/Objects.cs
2.9375
3
namespace Mx.Tools { public class Objects { public static int HashSet(object[] a) { if (a == null) return 0; int result = 1; foreach (object element in a) { result = 31 * result + (element?.GetHashCode() ?? 0); ...
3d015f1271e3e70657f2408bf3f16a881c66d528
C#
carojaspaz/Solid
/Solid/D/ApiService.cs
2.5625
3
using System; namespace Solid.Principles.D { public class ApiService : IService { public void getData(string entity){ Console.WriteLine("Consultar Datos Api: {0}", entity); } } }
fe44b242e3ec8647bcea2a75808b895b3df1c1d7
C#
xjc90s/Bogus
/Source/Benchmark/PR300_BenchDecimal.cs
2.8125
3
using System; using System.Threading; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Jobs; using Bogus; namespace Benchmark { [SimpleJob(RuntimeMoniker.NetCoreApp31), SimpleJob(RuntimeMoniker.Net471)] [MarkdownExporter, MemoryDiagnoser, RPlotExporter] public class PR300_BenchDecimal { priva...
9f23d4e1e915cae6d30a1dd9a40a72a1720fb73c
C#
PraveshGG/GetApiApp
/GetApiApp/MainPage.xaml.cs
2.90625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using System.Net.Http; using Newtonsoft.Json; using GetApiApp.Models; using SQLite; namespace GetApiApp { // Learn more about making custom code vi...
74e37e698accd659f9b92a03b0f28085399943df
C#
nebosite/talisman
/src/WindowsClient/Helpers/OutlookHelper.cs
2.546875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Office.Interop.Outlook; namespace Talisman { // -------------------------------------------------------------------------- /// <summary> ...
e241e59995390ba12c8ceba754dd8c50c331a1d1
C#
RocketBoy86/LowPolyBowling
/Assets/Scripts/BallStartPosController.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using System.Timers; using UnityEngine; public class BallStartPosController : MonoBehaviour { public Transform ballStartPosTransform; public Rigidbody ballStartPosRigidbody; private Vector3 movePos; private Quaternion startAngle; // St...
e61d358e97a64cc82f39ca55490af0ef55b7901d
C#
petercoker/coding-with-mosh
/mosh-csharp-basic/mosh-csharp-basic/working_with_text/exercise with working with text/exercise 3.cs
3.765625
4
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace mosh_csharp_basic.working_with_text.exercise_with_working_with_text { public class exercise_3 { public void Ex3() { //3 - Write a program and ask the user to enter a t...
bca729dc9c14efa1424cce04eee66804e7cf821a
C#
jeowf/pong-multiplayer-unity
/Pong/Assets/Scenes/Paddle.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum PlayerType { PLAYER_1, PLAYER_2 } public class Paddle : MonoBehaviour { public PlayerType player; public float limit = 3.7f; public float speed = 1f; private float _inputY = 0f; void Start() ...
7c87ab636e7e41e1700d5e688919f92fb07febfe
C#
Hasidi/Anticipatory_Troubleshooting
/AnticipatoryTroubleShooting/SurvivalFunctions/EllipseCurve.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AnticipatoryTroubleShooting.SurvivalFunctions { class EllipseCurve : SurvivalFunction { double _a; public EllipseCurve(double aFactor) { _a = aFact...
624698f5fec77bf96e294af84bfca7712f4ac6f7
C#
cjpleasant88/MSSA
/EX_2C_Recursive_Methods/Ex 2C Recursive.cs
3.828125
4
using System; namespace EX_2C_Recursive_Methods { class Program { static void Main(string[] args) { Console.WriteLine("\n\tHomeWorkProgram.EX_2C_Recursive_Methods.Program.cs"); WhichPart(); } //Determines which Part of the homework to run between the a...
74828f2d52eea032f546803a8e43822e25204266
C#
hughfernandez/MVVMHello
/MVVMHello/ViewModels/MainWindowViewModel.cs
2.84375
3
using MVVMHello.DAL; using MVVMHello.Models; using System.Collections.Generic; using System.Windows.Input; namespace MVVMHello.ViewModels { public class MainWindowViewModel : ViewModelBase { #region Properties private List<Customer> customers; public List<Customer> Customers ...
602a5f5d05cdc516b6bdb514d29e53024f608a68
C#
bmjoy/Immortal
/Assets/ootii/Framework_v1/Code/Collections/DictionaryExt.cs
3.625
4
using System; using System.Collections.Generic; namespace com.ootii.Collections { /// <summary> /// Extension for the standard dictionary that allows us to add functions /// </summary> public static class DictionaryExt { /// <summary> /// Search the dictionary based on value and re...
e3b9d0c98df8c045d800189f014b3805fffc5e4c
C#
tipson007/project002
/GoogleMini/GoogleMinusMinus/GoogleMinusMinus/HTMLProcessing/HTMLProcessor.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using HtmlAgilityPack; namespace GoogleMini.HTMLProcessing { public class HTMLProcessor { private string pageUri; private Lazy<Task<HtmlDocument>> document; ...
81fd0afd05df8d94bc344458c460d93f2d4899a7
C#
arguzmx/pika-gd
/Infraestructura/PIKA.Infraestructura.Comun/Seguridad/MascaraPermisos.cs
2.53125
3
using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; using System.Xml.Serialization; namespace PIKA.Infraestructura.Comun.Seguridad { public class MascaraPermisos { public const int PDenegarAcceso = 1; public const int PLeer = 2; pu...
54714f92e422d87841110620c507eb2b9c12d4d6
C#
ninjacoder88/software-fundamentals
/06-Graphs/01-Graphs/WeightedGraph/Program.cs
3.015625
3
using System; namespace WeightedGraph { public class Program { public static void Main(string[] args) { Vertex a = new Vertex() { Name = "A" }; Vertex b = new Vertex() { Name = "B" }; Vertex c = new Vertex() { Name = "C" }; Vertex d = new Vertex(...
e1d6aca45803e59c210d6f75bc2e9c01654c923f
C#
SeNeReKo/LibNLPCommon_CSharp
/simpletokenizing/TokenPatternBuilder.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using LibNLPCSharp.util; namespace LibNLPCSharp.simpletokenizing { public partial class TokenPatternBuilder { //////////////////////////////////////////////////////////////// // Constants //////////////...
cc68a9f593266016ea0bac9c92f5957963008290
C#
krassy11/TheGaragePayment
/source/TheGaragePayment/WebApiTest/Controllers/ValuesController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Web.Http; namespace WebApiTest.Controllers { [AllowAnonymous] public class ValuesController : ApiController { // ...
14cc1cc45580886f41fbac932ffa3793c905a2a6
C#
georgidelchev/CSharp-Programming-Advanced
/02 - [CSharp OOP]/16 - [Unit Testing - Lab]/AxeTests.cs
2.796875
3
using System; using NUnit.Framework; [TestFixture] public class AxeTests { private const int AXE_STARTING_ATTACK = 100; private const int UNBROKEN_AXE_STARTING_DURABILITY = 200; private const int BROKEN_AXE_STARTING_DURABILITY = 0; private const int DUMMY_STARTING_HEALTH = 100; private const int D...
860014cbf379c72ba037f94e20b5d76bdec4358f
C#
technomoney/BVT2-rev2017_3
/Assets/_Heathen Engineering/SystemsCore/Framework/Scriptable/DoubleReference.cs
3.015625
3
using System; namespace HeathenEngineering.Scriptable { [Serializable] public class DoubleReference : VariableReference<double> { public double ConstantValue; public DoubleVariable Variable; public DoubleReference(double value) { Mode = VariableReferenceType.Co...
a2f8acdbcbc3983448691d0651ba3996ab47acbd
C#
protodroid-IB/TheEdgeLord
/Assets/Scripts/LightBeamController.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LightBeamController : MonoBehaviour { public float maxDistance = 10; public float beamWidth = 0.5f; public Color initialColor; private enum ColorState { Red, Orange, Blue, Green, Yellow, Purple }; [SerializeField]...
aa0e1de104fb9cfe48aca1b20d930974af02db89
C#
TraceLD/BetterSsmp
/Ssmp/Extensions/NetworkStreamExtensions.cs
2.953125
3
using System.Net.Sockets; using System.Threading.Tasks; using System; using System.IO; namespace Ssmp.Extensions { public static class NetworkStreamExtensions { public static async Task<int> ReadBufferLength(this NetworkStream ns, byte[] buffer) { var index = 0; while (...
1514086923c9be672567209169348b368c1ae21d
C#
jb1361/Class-files-repo
/C311 Programming languages/Hw8/HW6/divideException.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; public class divideException : Exception { string field; public divideException() { field = "Cannot Divide By 0"; } public string toString() { return field; } }
728051819e26c340c3651e6708907dc525eb5518
C#
aimeesophia/advent-of-code-2020
/Day02/Program.cs
3.09375
3
using System; using System.Collections.Generic; using Day02.Enums; namespace Day02 { class Program { static void Main() { var passwordDatabaseList = GetPasswordDatabaseList(); var numberOfValidMinMaxAmountOfRequiredCharacterPasswords = PasswordValidator.Validate(Valida...
7a9b8f32b590d3880107826d6aaba955badb6dd7
C#
omikad/omikad-stuff
/ProblemSets/ProblemSets/Services/StringHelper.cs
3.5
4
using System; using System.Collections.Generic; namespace ProblemSets.Services { public static class StringHelper { public static string Join<T>(this string separator, IEnumerable<T> values) { return string.Join(separator, values); } public static string CommonPrefix(this string s1, string s2) { if...
c58150d20702a314fd3e8dc2780f5ad79520163d
C#
OpenLocalizationTestOrg/ECMA2YamlTestRepo2
/fulldocset/add/codesnippet/CSharp/p-system.drawing.graphic_1_1.cs
3.015625
3
private void ChangePageScaleAndTranslateTransform(PaintEventArgs e) { // Create a rectangle. Rectangle rectangle1 = new Rectangle(20, 20, 50, 100); // Draw its outline. e.Graphics.DrawRectangle(Pens.SlateBlue, rectangle1); // Change the page scale. e.Graphics...
b844edf402796a9390f6985a23f76fbeb7fcb3ac
C#
rockcs1992/PLATE-X
/DAL/ServerOrderService.cs
2.515625
3
using System; using System.Data; using System.Text; using System.Data.SqlClient; namespace DAL { /// <summary> /// ݷ:ServerOrderService /// </summary> public partial class ServerOrderService { public ServerOrderService() {} #region BasicMethod /// <summary> /// Ƿڸü¼ /// </summary> public bool Exist...
09a60a3fa779d0c05423260df332f9bb3630640b
C#
DennisCorvers/ByteStream
/ByteStream/ByteStream/Mananged/ByteWriter.cs
3.140625
3
using ByteStream.Interfaces; using ByteStream.Utils; using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; namespace ByteStream.Mananged { public struct ByteWriter : IWriter { private const int DEFAULTSIZE = 64; #pragma warning disable IDE0032 ...
07177b96cdd96e9101f72a8ca95c2fa362e93ffb
C#
sensoguyz-realsense-hackathon/extension-generator
/RealSense/ViewModel/MainWindowViewModel.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Input; using System.Xml.Serialization; using GeneratorLibrary; using Newtonsoft.Json; using RealSense.Commands; using OpenFileDialog = Mi...
68bff3e376b05a94f554ea50242dec8f67c0c3d1
C#
sibbl/advent-of-code-2020
/AdventOfCode2020/Day12/Solution12.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AdventOfCode2020.Day12 { public static class Solution12 { private static Task<IEnumerable<string>> ReadInputAsync() => InputReader.ReadLinesAsync("Day12/input.txt"); private record Instr...
bfa0d3c68b3389f3b2c7781db06b7cdd5d9f86e7
C#
jahanzaib4587/ATM_Project
/LogicLayers/UserMenuItems.cs
2.96875
3
using DataAccessLayer; using ObjectModel; using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace LogicLayers { public class UserMenuItems { readonly parentInput p; readonly List<UserObj> list; public DateTime today; public User...
8102fc51718f6998d9fa3e2752e8374a7610ec0a
C#
rainchan/weitao
/WT.Services/WT.Services.AccessToken/trunk/src/WT.Services.AccessToken.Repository/WeiXinAccessTokenRepository.cs
2.6875
3
using System; using WT.Services.AccessToken.Models; namespace WT.Services.AccessToken.Repository { class WeiXinAccessTokenRepository : CacheRepository<WeiXinAccessTokenItem> { private const string CacheKey = "LocalWeiXinAccessTokenItem"; /// <summary> /// 缓存时间(分钟) ...
d9592a6fe594795977bc91c6051b12cfdd4f882c
C#
ExoMemphiz/Testing_Framework
/Testing_Framework/DataHandling/VigoHandling.cs
2.5625
3
using System; using VigoInterfaceMTA; namespace Testing_Framework.DataHandling { public class VigoHandling { private static VigoInterface vigo; public static String GetValueAsString(String fullID) { return GetValueAsString(fullID, ""); } public static String GetValu...
959af47f81691ca14c355d26f463f0508cb52b0a
C#
jbraulio85/dotnet-test-kalum2021
/ModelsView/CarrerasTecnicasViewModel.cs
2.59375
3
using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Windows.Input; using kalum2021.Models; using kalum2021.Views; using MahApps.Metro.Controls.Dialogs; using System.Linq; using kalum2021.DataContext; namespace kalum2021.ModelsView { public class CarrerasTecnicasViewModel :...
53279a5311f28ac076bc4dbc9aac8fb12fe493fe
C#
qimolin/logic-engineering
/logic-engineering/Operators/Implication.cs
2.859375
3
using System.Collections.Generic; namespace logic_engineering { public class Implication : PropNode { public Implication() { this.Value = '>'; } public override bool Evaluate(Dictionary<char, bool> cases) { bool left = Left.Evaluate(cases); ...
2e5c8bab5a1c6458642ecce8984858e4c598c52c
C#
LogoFX/logofx-client-mvvm-viewmodel-extensions
/src/LogoFX.Client.Mvvm.ViewModel.Extensions/IPagingViewModel.cs
2.8125
3
namespace LogoFX.Client.Mvvm.ViewModel.Extensions { /// <summary> /// Represents paging view model, i.e. an object that can display a collection of view models in pages. /// </summary> public interface IPagingViewModel { /// <summary> /// Gets or sets the total pages count. ...
ba5d8a60ccd0538f88299cfc642776ee9ed66fb5
C#
tookindie/CSharpPlayersGuideSolutions
/Level38-LambdaExpressions/TheLambdaSieve/Program.cs
4.09375
4
using System; Console.Write("Which filter do you want to use? (1=Even, 2=Positive, 3=MultipleOfTen) "); int choice = Convert.ToInt32(Console.ReadLine()); Sieve sieve = choice switch { 1 => new Sieve(n => n % 2 == 0), 2 => new Sieve(n => n > 0), 3 => new Sieve(n => n % 10 == 0) }; while (true) { Cons...
84de591cbfd862fe7c3de4d4a3d702884467c4eb
C#
starkos/industrious-redux
/Industrious.Redux/MockStore.cs
2.90625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Industrious.Redux.Internals; namespace Industrious.Redux { /// <summary> /// A mock version of the store to assist with testing. Captures, but does /// not dispatch, incoming actions, and enables simulation of store chan...
5114debb883ba5380281f105bcb528768e7a18b8
C#
dredix/photorganiser
/FileUtils.cs
3.03125
3
using System; using System.IO; using System.Windows.Media.Imaging; namespace photorganiser { public static class FileUtils { // http://stackoverflow.com/a/2281704/1014 public static DateTime? GetDateTakenFromImage(FileInfo file) { try { ...
a49a2e2dd9c430e7226f5cbb90720aacd40c522d
C#
atrodriguez88/Secretaria
/Secretaria/DXWindowsApplication1/Clases/Carrera.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.OleDb; using System.Data; using System.Drawing; namespace DXWindowsApplication1 { class Carrera { private int IdCArrera; private string nombre; private ...
667ab3e64a07274a5bd7c1f2535f5f73a287150d
C#
benjamine/PiroPiro
/PiroPiro.Selenium/SeleniumElement.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PiroPiro.Contract; using OpenQA.Selenium; using SizSelCsZzz; namespace PiroPiro.Selenium { public class SeleniumElement : Element { private IWebElement element; private SeleniumBrowser Sele...
63475619dc9f74cf629e9f1a71744b4bcba0f046
C#
touseefbsb/ComboBoxToEnumBug
/App1/App1/IdToIndexConverter.cs
2.515625
3
using System; using Windows.UI.Xaml.Data; namespace App1 { public class IdToIndexConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) => System.Convert.ToInt32(value) - 1; //not needed for one way data binding public obj...
b478f6a835d07b6c135b9834fa0459b21bc1226f
C#
sono8stream/AtPractice
/AtTest/CodeForces/1363/D.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.CodeForces._1363 { class D { static void ain(string[] args) { //var sw = new System.IO.StreamWriter(OpenStandar...
1f1430792dd461d953115466d7834788e974ed50
C#
DaneVinson/Chameleon
/Chameleon.WinApp.Host/Program.cs
2.59375
3
using Microsoft.Owin.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Chameleon.WinApp.Host { internal class Program { static void Main(string[] args) { string baseAddr...
b077685d0e8f591c32902205df24c4ec9f8cd67d
C#
Hajdulord/Szakdolgozat
/Assets/Scripts/Misc/PlayMusic.cs
2.8125
3
using UnityEngine; namespace HMF.Thesis.Misc { /// Class for starting ans stoping the music when in range. public class PlayMusic : MonoBehaviour { [SerializeField] private AudioSource _source = null; ///< Reference to the audioSource. /// If the player is in range starts plaing music. ...
cb0c93a450f1a10c8ad44bb8d8c3480879f8aebf
C#
Grosadi/Prog4_2048
/OENIK_PROG4_2019_1_ZNN2DN_UKCWGN/OENIK_PROG4_2019_1_ZNN2DN_UKCWGN/HighScoreVM.cs
2.671875
3
// <copyright file="HighScoreVM.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace OENIK_PROG4_2019_1_ZNN2DN_UKCWGN { using System.Collections.ObjectModel; using _2048.Data; using _2048.Repository; using GalaSoft.MvvmLight; /// <su...
dfd4fe917160e560b7e2d2705bba776defe88a0f
C#
mnffy/kadastr
/Project/Cadastral/Controllers/LandController.cs
2.546875
3
using Cadastral.DAO; using Cadastral.DataModel; using Cadastral.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace Cadastral.Controllers { public class LandController : Controller { private Cadastra...
12b2c7632daa26fcd2e58e0dc43b5194e97377b0
C#
marouen-lamiri/Concentration
/Assets/Code/Card.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Card : MonoBehaviour { public int m_value; public bool m_color; bool m_shown = false; public bool isCard( GameObject obj ) { return obj.transform.position == transform.position; } public bool isShown...
cdefb608ef08cf126f775e4e4ad475b4c3de10bb
C#
McXmart/AutoMapperDemo
/AutoMapperDemo/AutoMapperDemo/AutoMapperDemo/Convert.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper; using AutoMapperDemo.Utils; namespace AutoMapperDemo { public class Convert { static void Main(string[] args) //static void Main2(string[] args) ...
a571ccfa8b21ed4eda3a50e40c9af96f97a26841
C#
sangvvlan/hrm
/Business/Business/CHAMCONGBusiness.cs
2.59375
3
using System.Data; using DataObject; using Data; namespace Business { public class CHAMCONGBusiness { public int Insert(CHAMCONG ObjCHAMCONG) { DataCHAMCONG objData = new DataCHAMCONG(); return objData.DataInsertCHAMCONG(ObjCHAMCONG); } public int Update(CHAMCONG ObjCHAMCONG) { DataCHAMCONG objDa...
4880f81bf52e6b78b8f8ed63380b075018ef6741
C#
Burgyn/MMLib
/MMLib.RapidPrototyping/Generators/PersonGenerator.cs
2.875
3
using MMLib.RapidPrototyping.Generators.Repositories; using MMLib.RapidPrototyping.Models; using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Text; using System.Threading.Tasks; using MMLib.Extensions; namespace MMLib.RapidPrototyping.Generato...
ad7429ceb803c7a83e5952f669156ad43f73faa9
C#
Adventure4Life/Test-Adventure-V2
/TestAdventure/TestAdventure/_Debug/Debugging.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestAdventure { static class DeBugging { public static void TestSomething() { Console.WriteLine(CommandDictonary.GetCommandList().Count); foreac...
0b01c4af2e47e4caa9acfa8ca7e25930983a6034
C#
wenderson1/ShopCrud
/Controllers/HomeController.cs
2.734375
3
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Shop.Data; using Shop.Models; namespace Shop.Controllers { [Route("v1")] public class HomeController : ControllerBase { [HttpGet] [Route("")] public async Task<ActionResult<dynamic>>Get([FromServices] DataC...
36beca8385978dc0f4f41118e7aff3dd8bcff0d1
C#
BlackDragonBE/MissleBall
/Assets/BlackDragonBE/Scripts/DragonLib/Patterns/ObservableValue.cs
3.578125
4
using System; // Example Usage: // A class: public ObservableValue<int> Health = new ObservableValue<int>(100); // Other class: MyClass.Health.OnValueChanged += HealthChanged; /// <summary> /// A generic value that can be observed. /// The OnValueChanged Action gets invoked every time this value gets changed. /// </...
3acc6a123fa49843fb08919666e63d18241e0123
C#
Ed-Fi-Exchange-OSS/Credential-Manager
/Ed-Fi.Credential.Business.Common/BaseBusiness.cs
2.765625
3
using System.Collections.Generic; using System.Linq; using Ed_Fi.Credential.Data; namespace Ed_Fi.Credential.Business { public interface IBusiness { } public interface IBaseBusiness<TEntity> : IBusiness where TEntity : class { IEnumerable<TEntity> Read(); void Create(strin...
7fda06f7ac2ab00f20fb59ee503231d9c97d0263
C#
ARLM-Attic/linq2web
/Source/CodeGenerator/AST/Expression/TernaryExpr.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace linqtoweb.CodeGenerator.AST { /*public class IfExpression:Expression { }*/ /// <summary> /// expr ? expr : expr /// </summary> public class TernaryCon...
ed1599bbc7e1d6bdb1608423a6b7a186f0480161
C#
terry-u16/AtCoder
/Yorukatsu054/Yorukatsu054/Yorukatsu054/Questions/QuestionC.cs
3.015625
3
using Yorukatsu054.Questions; using Yorukatsu054.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu054.Questions { /// <summary> /// https://atcoder.jp/contests/abc149/tasks/abc149_d /// </summary> public class Questio...
dd520689393303b6e25696ae8cedf5640cbf0093
C#
VitaliiAndreev/WarThunder_PresetRandomizer
/Client.Wpf/Controls/UpDownBattleRatingPairControl.xaml.cs
2.75
3
using Core.DataBase.WarThunder.Enumerations; using Core.DataBase.WarThunder.Objects.Interfaces; using Core.Enumerations; using Core.Objects; using System; using System.Windows; using System.Windows.Controls; namespace Client.Wpf.Controls { /// <summary> Interaction logic for UpDownBattleRatingPairControl.xaml. </...
3c7ec7ba9284f7475543cf712f06c708195b09a4
C#
dzimchuk/power-video-player
/Players/WindowsForms/AdvancedUI/ToolBarManager/ToolBar.cs
2.640625
3
using System; using System.Windows.Forms; namespace Dzimchuk.AUI { /// <summary> /// This class automaticly sets Appearance to Flat and Divider to false; /// </summary> public class ToolBar : System.Windows.Forms.ToolBar { public ToolBar(string strTitle) { Text = strTitle; Appearance = Tool...
cc755dc8832d017433aacedfea132d3e351d2d68
C#
teknofest-2021/dijidom-database-webapi
/Operations/MeasurementOperations/Queries/GetAllMeasurementByPlantID/GetAllMeasurementByPlantIDQuery.cs
2.515625
3
using System.Linq; using System.Collections.Generic; using dijidom_database_webapi.Data; namespace dijidom_database_webapi.Operations.MeasurementOperations.Queries.GetAllMeasurementByPlantID { public class GetAllMeasurementByPlantIDQuery { private readonly IDijiDomDBContext _dbContext; public ...
36014acbb903a3048b8cfb2c78ff20ef1a6ce798
C#
ASHIQ40788/BinaryTree
/BinaryTree.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BinarySearchTree { public class MyBinaryTree<T> where T : IComparable { public T nodeData { get; set; } public MyBinaryTree<T> leftTree { get; set; } public MyB...
c44b2fff2169728ae99aff8f62a35f2638ae5043
C#
8BitSensei/Augur
/Augur/Services/PrinterService.cs
2.921875
3
using LiteDB; using LiteDbTest.Interfaces; using LiteDbTest.Models; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace LiteDbTest { public class PrinterService : IPrinterService { private LiteDatabase _db; private IDataService _dataService; p...
f526f9e59d5fab243ec48f0789cb2f69f5eb3051
C#
shendongnian/download4
/code7/1167578-30884715-93008888-2.cs
3.046875
3
public class MyTypeConverter : TypeConverter { public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType != typeof(string)) return base.ConvertTo(context, culture, value, destination...
fb97fbd40ccd7750297ff80a1343073da93abd24
C#
cj1024/OneDriveTestApp
/OneDriveExtentions/Converters/ByteCountToStringConverter.cs
3.078125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Windows.Data; namespace OneDriveExtentions.Converters { public class ByteCountToStringConverter : IValueConverter { private static readonly IList<string> UnitList = new[] { "Byte", "KB", "MB", "GB", "TB", "PB" };...
6cefa751c698981f01f3041a81c07b7c1cad11e7
C#
frankdarkluo/csharphomework
/homework1/1.4/1.4/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1._4 { class Program { static void Main(string[] args) { Console.Write("a="); string a = Console.ReadLine(); Console.Write("b="); ...
591c437b26f9e25ee28c9931770d6733287cc1a2
C#
jeff-dias/SalesProcessor
/SalesProcessor/Util/Log.cs
2.625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SalesProcessor.Util { public class Log { private readonly string _file; private readonly string _folder; public Log() { _f...
42b9ca3fb6d108f7684288f931109f44a261f127
C#
KyleADOlson/CombatManager
/CombatManagerCore/ExportData.cs
2.625
3
/* * ExportData.cs * * Copyright (C) 2010-2012 Kyle Olson, kyle@kyleolson.com * * This program 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 License, or (at your optio...
4139fb42bd255507d20a101ddcec077e97791e7a
C#
IonutPutinica/allSDJProjects
/Database/Controllers/ValuesController.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace Database.Controllers { [Route("api/people")] [ApiController] public class ValuesController : ControllerBase { private MotherloadContext people; pu...
0c73217cfe920f3dd3a9951944d2740c1589d478
C#
XavierSbert/spdvi
/BasicControlWinForms/act4b/Form1.cs
2.8125
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 act4b { public partial class Form1 : Form { public Form1() { ...
d1077c5afbe1e402920da245bba0826d3cec308b
C#
alveraboquet/CryptoExchangeApi
/Common.Contracts/Extensions.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Common.Contracts { public static class Extensions { public static string FormatAs(this string format, params object[] args) { return string.Format(format, args); ...
1f47a3833357e1915a16aacddf6eea0c4320aa67
C#
eyaldar/ChocolateStore
/src/ChocolateStore/PackageCacher.cs
2.5625
3
using System; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using Ionic.Zip; using System.Xml.Linq; using System.Dynamic; using System.Collections.Generic; namespace ChocolateStore { class PackageCacher { private const s...
badc9f6c27188bc4983bd44d87de324aa6bc69cc
C#
Dragomir2020/Plant-Warfare-Unity
/PlantWarfare/Assets/Scripts/General/MusicManager.cs
2.875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MusicManager : MonoBehaviour { /// <summary> /// Array of the Audio Clips for each level. /// </summary> public AudioClip[] levelMusicChangeArray; /// <summary> /// The audio source used to play the audio clip. /// </s...
9a526212343d6fa1c1c4277c30aae47aa6c24e65
C#
MarquesBruno/ClientBook
/ClientBook/Repositorio/CompraRepositorio.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using ClientBook.Banco; using ClientBook.Entidade; namespace ClientBook.Repositorio { public class CompraRepositorio { private static DataBase GetDataBase() ...
42bee396e70efd3e278ac8b7e73d364fad1d8d7f
C#
HedinRakot/Zierer
/ProfiCraftsman/ProfiCraftsman/ProfiCraftsman.Lib/Data/AdditionalCostTypesMapping.cs
2.625
3
using ProfiCraftsman.Contracts.Entities; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace ProfiCraftsman.Lib.Data { /// <summary> /// Mappping table dbo.AdditionalCostTypes to entity <see cref="AdditionalCostTypes"/> /// </summary> internal ...
18b23591d7c86f19fcd9f31db66ea04a7aae03e6
C#
francescozoccheddu/VGD
/Assets/Scripts/Gameplay/Action/LifeHistory.cs
2.78125
3
using System.Linq; using UnityEngine; using Wheeled.Core.Utils; namespace Wheeled.Gameplay.Action { public interface IReadOnlyLifeHistory { int? GetHealthOrNull(double _time); void GetLastDeathInfo(double _time, out DamageNode? _outDeath, out DamageNode? _outExplosion); } public stat...
8ee88b7b77f8fc7be86dd5968147e5e401ece38e
C#
nhthuc/CoCaRoAI
/CoCaRo/BanCo.cs
2.734375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CoCaRo { class BanCo { private int _sodong; private int _socot; public int Socot { get { ...
c90fe37d72d479639e546ecc4e14db28d0788122
C#
YasakaShun/TaskTimer
/TaskTimer/MainGraph.xaml.cs
2.75
3
using System; using System.Globalization; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Input; using System.Windows.Media; using System.Windows.Shapes; namespace TaskTimer { /// <summary> /// MainGraph.xaml の相互作用ロジック /// </summary> public partial class Mai...
592bf2db29610f97e709d72968efc0bbd8efacad
C#
ma7ko/vizuelnoProgramiranje
/mojaPacman/WindowsFormsApp3/Form1.cs
2.515625
3
using WindowsFormsApp3.Properties; 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 WindowsFormsApp3 { public partial class ...
ff1df37e926eb78d024b098e605084595063732b
C#
VertexShader/junction
/Tests/test_framework_and_libraries.cs
2.5625
3
using NUnit.Framework; using Should; namespace Tests { [TestFixture] class test_framework_and_libraries { [Test] public void should_always_work() { const string someValue = "stuff"; Assert.AreEqual("stuff", someValue, "NUnit is working."); } ...
9a08aaa9c2d3f8107f878a33401e0c98b662ff9b
C#
gmlan/Middlewares
/Infrastructure/Com.Gmlan.Middlewares.MongoDB/Model/MongoDBConfig.cs
2.6875
3
namespace Com.Gmlan.Middlewares.MongoDB.Model { public class MongoDbConfig { /// <summary> /// Default parameterless constructor /// </summary> public MongoDbConfig() { } /// <summary> /// Constructor for MongoDbConfig /// </summ...
16e9fde92856a704fe9d4f16b3a6ccca6df3949f
C#
zoha-shobbar/URL-Shortener
/ShortenerURL/Repository/ShortUrlRepository.cs
2.828125
3
using MongoDB.Bson; using MongoDB.Driver; using ShortenerModel; using System; using System.Collections.Generic; using System.Text; namespace Repository { public class ShortUrlRepository : IShortUrlRepository { private readonly IMongoCollection<ShortURLModel> _mongoCollection; public ShortUrl...
646e4de050c3794ee1c734145d93e3f93bb332da
C#
rnwood/smtp4dev
/Rnwood.Smtp4dev/CommandLineParser.cs
2.578125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using CommandLiners; using Mono.Options; namespace Rnwood.Smtp4dev { public static class CommandLineParser { public static MapOptions<CommandLineOptions> TryParseCommandLine(IEnumerable<string> args, bool isDesktopApp) ...
32de205ed69e088b93f8c042b09fc1e84ef699c9
C#
rauldoblem/Tac
/Tac.SnippetTests/BasicInputOutput.cs
2.578125
3
using System; using System.Linq; using System.Collections.Generic; using System.Text; using Tac.Backend.Public; using Tac.Model; using Tac.Model.Instantiated; using Tac.Syntaz_Model_Interpeter; using Tac.Syntaz_Model_Interpeter.Run_Time_Objects; using Xunit; using static Tac.Backend.Public.AssemblyBuilder; using Proto...
88937d67e3b7cfe88a1aa414df54e99b3de24022
C#
Inforward/Web
/Bespoke.Model/User.cs
2.6875
3
using System; using System.Collections.Generic; namespace Bespoke.Models { public class User : EntityBase { public string Email { get; set; } public string PasswordHash { get; set; } public string PasswordSalt { get; set; } public string FirstName { get; set; } public st...
bb440da9b2a8ddd98d9eaba7dec7d83cd06fe6d1
C#
JanDvorakCZ/RaEd
/Projekt/SeparateColor.cs
3.28125
3
using System.ComponentModel; using System.Drawing; using System.Runtime.CompilerServices; namespace RoP_RaEd { class SeparateColor : INotifyPropertyChanged { private byte _a, _r, _g, _b; public event PropertyChangedEventHandler PropertyChanged; public byte A { get...