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
4b6e3eca1ac3a73c8fa3154c751d5f75359cdb1b
C#
YendisFish/Panda-Bear
/PandaBear/CommonStructureLibrary/SQL/ProtectedDB.cs
2.765625
3
using CSL.Encryption; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace CSL.SQL { /// <summary> /// Uses Sqlite to provide a local Key/Value store and logging functionality. /// </summary> public class ProtectedDB :IDisposable ...
8430929c1a24e480f56476e70a3d4adc82646b27
C#
shendongnian/download4
/code2/362322-7820526-17364086-2.cs
2.71875
3
dt = new DataTable(); dt_Property.Columns.Add("Field1"); int i = 0; DataRow row = null; foreach (DataRow r in ds.Tables[0].Rows) { row = dt.NewRow(); row["Field1"] = ds.Tables[0].Rows[i][1]; ...
f864dcce7f45b15fda3e9e81724f98f78aa5ee43
C#
macgibbons/Bloom
/Bloom/Controllers/V1/BrewMethodsController.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Capstone.Models.Data; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Data.SqlClient; using Microsoft.Extensions.Configuration; namespace Capstone.Controllers.V1 { [Route("api/[c...
97179fbf3033236d07e3c7dc04fbbe12b107f5e7
C#
chenqilscy/LinFx
/src/LinFx/Utils/DateTimeUtils.cs
3.1875
3
using System; namespace LinFx.Utils { public static class DateTimeUtils { public static object TimeZone { get; private set; } /// <summary> /// 得到当前的unix时间戳 /// </summary> /// <param name="date">当前时间日期</param> /// <returns></returns> public static doubl...
9a19c166bc56752a8d31ac9992e689f9f9b4e879
C#
zrobi0621/reversi
/Reversi/SQLiteDataAccess.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SQLite; using System.Configuration; using Dapper; namespace Reversi { class SQLiteDataAccess { private static string LoadConnectionString(string id =...
5c2b771875e7232c38938612f2ec14f496025cc8
C#
dillonmrose/Utilities
/Tools/Tools/MachineLearning/LearningModelFactory.cs
2.6875
3
#include "pch.h" using namespace std; unordered_map <wstring, LearningModelType> LearningModelFactory::modelNameToType = { {L"LinearModel", LearningModelType::LinearModelType }, {L"DecisionTree", LearningModelType::DecisionTreeType }, {L"LearningModelEnsemble", LearningModelType::LearningModelEnsembleTyp...
6187a23ffc3ef3d262c3d09d18b323ea9191ae9b
C#
prasad1261997/swabhav-techlabs
/C#/OOP/Exception-App/Exception-App/Account.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Exception_App { class Account { private readonly int accountNumber; private readonly string name; private double balance; private static int count; private const double Minim...
e4214ba4e3adb3a62ce02b12e294612c54429f6d
C#
WojciechKrawczyk/TravelAgency
/Project1/Decorator.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading.Tasks; // Potwierdzam samodzielność powyższej pracy oraz niekorzystanie przeze mnie z niedozwolonych źródeł // <Wojciech> <Krawczyk> namespace TravelAgencies.DataAcc...
be0076a20241e994d6e735ee34a51de234b3c227
C#
HTW-Berlin-CAVE/cave-package
/CaveSampleProject/Packages/de.htw.cave/ThirdParty/KalmanFilterSimple1D/KalmanFilterSimple1D.cs
2.875
3
using System; // based on http://habrahabr.ru/post/140274/ // this is a slightly modified version namespace KalmanFilterSimple { public class KalmanFilterSimple1D { public double X0 { get; private set; } // predicted state public double P0 { get; private set; } // predicted covariance public double F...
519a8b47519a568d25cf051fdccdf53b9de4e8dd
C#
JTLaMarre/JavaBox
/GameAPI/Storage/GameContext.cs
2.71875
3
using GameAPI.Domain.Models; using Microsoft.EntityFrameworkCore; namespace GameAPI.Storage { public class GameContext:DbContext { public DbSet<Game> Game{get;set;} public DbSet<GamePrompts> GamePrompt{get;set;} public DbSet<Prompt> Prompt{get;set;} GameContext(){} public GameContext(DbContext...
b798db7aff539aad6942cf2b8932ef2d27edb3e5
C#
attackgithub/SharpDevelopCodeCompletion
/ICSharpCode.AvalonEdit.CodeCompletion/Indexers/IndexerInsightProvider.cs
2.6875
3
using System.Linq; using ICSharpCode.SharpDevelop.Dom; namespace ICSharpCode.AvalonEdit.CodeCompletion.Indexers { /// <summary> /// Produces MethodInsightItem instances for showing the insight window on indexer calls. /// </summary> public class IndexerInsightProvider : MethodInsightProvider ...
8c4dbbeabcf1032c48cbfd6eb4df11b88d419d2b
C#
Kalishir/GDLCreatureBreeder
/Assets/Scripts/DataModel/CreatureManager.cs
3.03125
3
using UnityEngine; using System.IO; using System.Collections.Generic; public class CreatureManager : MonoBehaviour, System.IDisposable { /* ISSUE: Dictionaries are not serializable in the Unity Editor. TODO: Either 1) Ham this with some basic code that grabs two lists for Keys and Value...
f11fc7502f49347241ff0003ca93315e7725a7fa
C#
hillwah/ODK-DarkEmu
/GameServer/GameLSClient.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Text; using System.Diagnostics; using Core; using Database; using System.Net; namespace GameServer { public class GameLSClient { public NetworkStream netstream; public GameLSClient(TcpCli...
e40cb5099850cc00e37cf5217b44805d7cd6fab6
C#
shendongnian/download4
/code8/1501791-41293451-134456971-4.cs
3.265625
3
int[,] test = new int[4, 3] { {45, 23, 9}, {3, -4, -134}, {67, 53, 32}, {0, 1, 0} }; // test.GetLength(n) will give the length at nth dimension. // test.Length will give total length. (4*3) var colLength = test.GetLength(1); for (int i = 0; i < test.Length - 1...
8e0836f8a16e5773a298944f55caeccf27137a43
C#
SchmobertRitz/SoftwareCityVirtualReality
/Assets/Utils/AnimateThis/FloatModel.cs
2.8125
3
using UnityEngine; using System.Collections; public class FloatModel : MonoBehaviour { public string name; [SerializeField] private float value; public delegate void OnFloatModelValueChanged(FloatModel model); public OnFloatModelValueChanged onFloatModelValueChangedHandler; public void Set...
5b18af621c7d1e9cb8bed167e2d350db819192d0
C#
StefanSinapov/TelerikAcademy
/11. Databases and SQL/15. Processing XML in .NET/13. XSLT Transformation/XslTransformation.cs
3.296875
3
/* * 13. Write a C# program to apply the XSLT * stylesheet transformation on the file * catalog.xml using the class XslTransform. */ namespace _13.XSLT_Transformation { using System; using System.Xml.Xsl; class XslTransformation { private const string XmlFilePath = "../../../01. XML File...
dd035096aa99da4ca024a6bfafa99b28e6e79586
C#
sandeepmvn/classprojectMVC
/Desktop/WebApplication2/WebApplication2/CustomModelBinder/CustomEmployeeBinder.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using WebApplication2.Models; namespace WebApplication2 { public class CustomEmployeeBinder : IModelBinder { public object BindModel(ControllerContext controllerContext, ModelBindingContext bindi...
3e7d3d6596a3e65f65968907a80fb0272c9c5535
C#
mathlander/CsMathematics
/LinearAlgebra/IReadOnlyVector.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CsMathematics.LinearAlgebra { public interface IReadOnlyVector : IEquatable<IVector>, IEquatable<IReadOnlyVector>, IEnumerable<double> { /// <summary> /// Re...
b6b8ef874999391ddf95cb71714e5c32aa429661
C#
andrew-paes/Auge
/Auge/Auge.Repository/Models/Mapping/EnderecoMap.cs
2.65625
3
using Auge.Model.Entities; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace Auge.Repository.Models.Mapping { public class EnderecoMap : EntityTypeConfiguration<Endereco> { public EnderecoMap() { // Primary Key thi...
92c54bc6b7d7404f0861c79efffef423e661074f
C#
halyhuang1991/Tools
/Csharp/Mess/MyIEnumerable.cs
3.484375
3
using System; using System.Collections; using System.Collections.Generic; namespace Csharp.Mess { class Enumeratable1<T> : IEnumerable<T> { private T[] t; public string this[int index] { get { return this[index]; } set { this[index] = value; } } public ...
750f78b7bbeb70bf1c9df3ed12174f26fdd24ed2
C#
qdfly/ZHYD4
/src/SFBR.Device.Api/Application/Queries/RegionQueries.cs
2.5625
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Dapper; namespace SFBR.Device.Api.Application.Queries { public class RegionQueries : IRegionQueries, IDisposable { private readonly IDbConnection _connection; ...
17138cee10f80dd760b1d0cf1d604b283aa143f4
C#
Gurupadagiri/Benaa2018
/Benaa2018.Data.Helpers/TagMasterHelper.cs
2.671875
3
using Benaa2018.Data.Interfaces; using Benaa2018.Data.Model; using Benaa2018.Helper.Interface; using Benaa2018.Helper.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Benaa2018.Helper { public class TagMasterHelper : ITagMasterHelper { ...
6694bb9b16f787854198f35fbdc1125e325fe9de
C#
rakeshkumartiwari/dot.net-console-application
/Question5/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Question5 { class Program { static void Main(string[] args) { //Que.4--write a program to swap min and max element in integer array. //Input: ar...
85771c11383aa0cdfb99bbc073a8a341aa84aac6
C#
shendongnian/download4
/code7/1223011-32556924-99563432-2.cs
2.5625
3
Microsoft.Win32.SystemEvents.SessionSwitch += new Microsoft.Win32.SessionSwitchEventHandler(SystemEvents_SessionSwitch); void SystemEvents_SessionSwitch(object sender, Microsoft.Win32.SessionSwitchEventArgs e) { if (e.Reason == SessionSwitchReason.SessionLock) { //I left my desk } ...
7efc448360a8f1e02a85d38e44a0440bc4c012d8
C#
wesnerm/CompetitiveProgramming
/LeetCode/alien-dictionary.cs
3.203125
3
// 269. Alien Dictionary // https://leetcode.com/problems/alien-dictionary // Hard 23.2% // 638.0417327467339 // Submission: https://leetcode.com/submissions/detail/68312484/ // Runtime: 168 ms // Your runtime beats 7.14 % of csharp submissions. public class Solution { Dictionary<char, HashSet<char>> ...
d3b4a744a0c7dc1975bd6d6414fa94f58f731747
C#
pbakun/ClinicQueuev3
/QueueSystem/WebApp/Helpers/QueueDatabase.cs
2.859375
3
using SQLite; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebApp.Models; using WebApp.Utility; namespace WebApp.DatabaseHelpers { public class QueueDatabase { public static void AddQueue(Queue queue) { using (SQLiteConnecti...
8f014d3b8ee40604cd2801306ff2fa20ace3fd6f
C#
Saylala/kontur-internship-task
/Kontur.GameStats.Server/StatisticsUpdaters/PopularServersUpdater.cs
2.5625
3
using System.Linq; using Kontur.GameStats.Server.Database; using Kontur.GameStats.Server.Models.DatabaseEntries; namespace Kontur.GameStats.Server.StatisticsUpdaters { public class PopularServersUpdater : IStatisticsUpdater { public void Update(MatchInfoEntry infoEntry, DatabaseContext databaseContext...
77809b680f542930dae0e3716bec72688cb5b635
C#
Robert8034/Mealz
/ModerationService/DAL/ModerationCache.cs
2.828125
3
using Microsoft.EntityFrameworkCore; using ModerationService.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ModerationService.DAL { public class ModerationCache : IModerationCache { public List<Report> reports; public List<Re...
01a3f85b94c6c14dd60f7bea737ad62bdca4fa7f
C#
raojala/oop-koti
/labra3_tehtava_4/Vechile.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JAMK.IT { class Vechile { /* Luo Vehicle-luokka seuraavien tietojen mukaisesti: ominaisuudet Name:string Speed:int ...
e61ffeaf0aa4e3f5e7c90db171bd77f95d46b9e5
C#
settamaF/PixelGame
/Assets/Scripts/Utils/Utils.cs
2.859375
3
//****************************************************************************** // Author: Frédéric SETTAMA //****************************************************************************** using UnityEngine; using System.Security.Cryptography; using System.Text; #if UNITY_EDITOR using UnityEditor; #endif //********...
533d23f574e3ba99b487b346f5f0456ff3fc19b0
C#
yanxiaodi/CurrencyExchanger
/YanSoft.CurrencyExchanger/src/YanSoft.CurrencyExchanger.Core/Utils/CurrencyHelper.cs
2.578125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using MvvmCross; using YanSoft.CurrencyExchanger.Core.Common; namespace YanSoft.CurrencyExchanger.Core.Utils { public static class CurrencyHelper { public static string FormatCurrencyAmount(decimal amount, st...
4cdd6ce1462609d757dea0a72b156e154b421d04
C#
adam0309/UnsafeCodePresentation
/PointersPresentation/ColorFilters/UnsafeColorFilter.cs
2.9375
3
using System.Drawing; using System.Drawing.Imaging; using PointersPresentation.Filters.Interfaces; namespace PointersPresentation.Filters.ColorFilters { public unsafe class UnsafeColorFilter: IFilter { public Bitmap FilterImage(Bitmap bitmap) { Rectangle rect = new Rectangle(0, 0, ...
9e2d700331333c16f11e40a9be4d8a5b8a43d58d
C#
yoshuhlnak/IControl
/InputControl/Service/UserService.cs
2.84375
3
using System; namespace InputControl.Service { public class UserService : IUserService { private readonly string _login; public UserService() { string[] cmdLineArgs = Environment.GetCommandLineArgs(); if (cmdLineArgs.Length > 1) _login = cmdLine...
5fce62ac5c56809e3b67d43de4d0b1f43500eeaa
C#
wgimson/MvcBeerStore
/MvcBeerStore/Models/SampleData.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; namespace MvcBeerStore.Models { public class SampleData : DropCreateDatabaseAlways<BeerStoreEntities> { protected override void Seed(BeerStoreEntities context) { var style...
9c1ca6d021606df2a566ac4c7998c17fc3a83fcf
C#
skolarajak/Grupa5_Cas27
/Cas27/Ivica/PrvaGodina.cs
2.625
3
using System; namespace Cas27.Ivica { class PrvaGodina : Udzbenici { public bool Iznajmljena { get; set; } = true; /* * Method overloading: * public void Procitaj(bool DaLiJeIznajmljena) */ new public void Procitaj() { if (Iznajmljena) ...
0b3cd965ad0472cd0df6c7662351fa81535567ac
C#
derek-cap/FodicomTest
/DicomViewer/Models/PixelData.cs
2.828125
3
using Dicom.IO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DicomViewer.Models { public class PixelData { private int _width; private int _height; private int _bpp; private byte[] _data; ...
b1329b04157f4f621669a8b76518e540bf535a51
C#
marksman315/HUTWeb
/HUTWeb/Helpers/HttpHelper.cs
2.921875
3
using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace HUTWeb.Helpers { public static class HttpHelper { public static async Task<string> GetValues(Uri uri) { using (var clien...
1a5457ce989692cbba3f124c85c05067da119ee2
C#
NethermindEth/rocksdb-sharp
/examples/SimpleExampleHighLevel/Program.cs
2.921875
3
using RocksDbSharp; using System; using System.Diagnostics; using System.Text; using System.IO; namespace SimpleExampleHighLevel { class Program { static void Main(string[] args) { string temp = Path.GetTempPath(); string path = Environment.ExpandEnvironmentVariables(Pa...
35dcd80bc3efad18dde171e6c7b25e6d5eae8933
C#
jayabharathiCIT/DICT_Website
/testmaster2/ChangePassword.aspx.cs
2.515625
3
using MySql.Data.MySqlClient; using System; using System.Configuration; using System.Data; namespace DICT_Website { public partial class ChangePassword : System.Web.UI.Page { // string connectionString = @"Server=localhost;Database=dict website;Uid=root;Pwd=1234;"; string strConnString = Con...
fb7c789066bdffc92b703debd22a06b61937405e
C#
pcresswell/authorize
/Subject.cs
3.203125
3
// // Subject.cs // // Author: // peter <pcresswell@gmail.com> // // Copyright (c) 2015 peter // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including witho...
d74d76f354aa238f7aa161a053c598b8e90fc3a6
C#
andersonom/Samples
/dotnet/FW 4.6/SimpleLogin/SimpleLogin.Application/AppServiceBase.cs
2.65625
3
using SimpleLogin.Application; using SimpleLogin.Application.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleLogin.Application { public class AppServiceBase<TEntity> : IDisposable, IAppServiceBase<TEntity> where TEntit...
18bc36229d94d222d3831e2003e83c3aa0dda937
C#
UShandruk/Pub
/Other/PerfomanceLab/Task1/Task1/Model/Square.cs
3.515625
4
using System; namespace Task1.Model { public class Square : Figure { private double side; public Square(double side) { this.side = side; } public override double CalculateArea() { double area = side * side; return Math.Round...
3338b01cda9d0158a69befff917fd6cb46a618ab
C#
abuzaforfagun/ClientManagerPortal.NETCore.Angular
/ClientManagerPortal.NET Core.Angular/API/ClientsController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using ClientManagerPortal.NET_Core.Angular.core.Models; using AutoMapper; using ClientManagerPortal.NET_Core.Angular.Presistance; namespace ClientManagerPor...
1a33bbb4dffe00b4d9816d7a7a4a1596c0d5c9eb
C#
aledsribeiro/TDDNUnit
/TDD/LeilaoTest.cs
2.859375
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Caelum.Leilao { [TestFixture] public class LeilaoTest { [Test] public void DeveReceberUmLance() { Leilao leilao = new Lei...
958c2a67bddeed63bc262474a181e248e19653b2
C#
marinewater/Nager.PublicSuffix
/src/Nager.PublicSuffix/Extensions/DomainDataStructureExtensions.cs
3
3
using System.Collections.Generic; using System.Linq; namespace Nager.PublicSuffix.Extensions { /// <summary> /// <see cref="DomainDataStructure"/> extension methods to create the TLD Tree. /// </summary> public static class DomainDataStructureExtensions { /// <summary> /// Add all ...
2fb67ddd5bf1f5f2063ae8b76ed811566b5ffee0
C#
ArbuzovaTanya/ArbuzovaPatterns
/Observer/Woman.cs
3.6875
4
using System; using System.Collections.Generic; using System.Threading; namespace Observer { public class Woman : IObservable { private readonly WomanInfo _info; private readonly List<IObserver> _observers; public Woman(WomanInfo info) { _info = info; _...
15e22066920fd681952ccc79b82bc414072733ef
C#
yasinayata/CreateTokenApplication
/Encryption/BasicEncryption.cs
2.953125
3
using Models; using System; using System.Collections.Generic; using System.Text; namespace CreateTokenApplication.Encryption { #region BasicEncryption public static class BasicEncryption { #region BasicEncryptDecrypt public static OperationResult BasicEncryptDecrypt(string Data, int Encryp...
7df58dc708f5a0d8de1b7ce7f5305c63e252c345
C#
Emberglo/taskmastercsharp
/Repositories/ListTaskRepository.cs
2.6875
3
using System.Collections.Generic; using System.Data; using Dapper; using taskmastercsharp.Models; namespace taskmastercsharp.Repositories { public class ListTaskRepository { private readonly IDbConnection _db; public ListTaskRepository(IDbConnection db) { _db = db; ...
350ee979df2a2189991a3c8b6ca81d549762e307
C#
vasylynka/CustomerInquiry
/Core.Infrastructure/Dal/Queries/QueryBuilder.cs
2.59375
3
using System; using System.Linq; using System.Linq.Expressions; namespace Core.Infrastructure.Dal.Queries { /// <summary> /// Default query builder, builds query for getting all records /// </summary> /// <typeparam name="TEntity">Entity model type</typeparam> public class QueryBuilder<TEntity> : ...
d0dfec1123ec317bb3489e106854b07adb0031b5
C#
kaykayehnn/BookAnalytics
/BookAnalyticsTests/WordMatcherTests.cs
3.125
3
using _01_BookStatistics; using NUnit.Framework; namespace BookStatisticsTests { public class WordMatcherTests { [Test] public void MatchesEnglishWords() { string text = "word"; string[] expected = { "word" }; string[] actual = WordMatcher.ExtractW...
6f25b4376e9e41260232c6a51af32aaf00e8537d
C#
MaxNagibator/TechDevelopSoft
/SchoolManagement/GUI/GroupsForm.cs
2.578125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Windows.Forms; using SchoolManagement.School; namespace SchoolManagement.GUI { public partial class GroupsForm : Form { public bool IsSelectedMode; public Group SelectedGroup; private ...
c380729e57fc75ac75a23491391dc5f9870d5417
C#
AvetisyanHayk/dotnet.o2
/MyHobbies/Band.cs
3
3
using System; using System.Collections.Generic; using System.Globalization; using System.Text; namespace MyHobbies { public class Band { public const int MIN_JAAR = 1900; public int Jaar { get; set; } public string Naam { get; set; } public List<BandLid> BandLeden { get; set; }...
b492e6a3a123131cc8117d3ae6508d22562c369d
C#
simo897d/MoreKataEx
/MoreKataEx/TwoSum.cs
3.28125
3
using System; using System.Collections.Generic; using System.Text; namespace MoreKataEx { using NUnit.Framework; using System; using System.Linq; public class TwoSumClass { public static int[] TwoSum(int[] numbers, int target) { for (int i = 0; i < numbers.Length; i++) { ...
3e6a87cdbab75847b6fe78376b88dd357c7a0eb4
C#
leewoody/buguva
/Studijos/OS/KernelPrimityves/Operacine sistema/Resources/VirtualMachineResource.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { public class VirtualMachineResource : ResourceElement { private string programName; public string ProgramName { get { return program...
ffb22d7a34039bcd20ef0b498293f16cd9766da9
C#
oscarslaterj/EjericicosCSharp_Part2
/EjerciciosCSharp2/Capitulo 7/Cap7_Ejercicio1.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EjerciciosCSharp2.Capitulo_7 { public class Cap7_Ejercicio1 { public static void CalPromedio() { int num; Console.WriteLine("Ingrese Numero de ...
cdc0df986d663b5e998336a836cc8e8cddd6923d
C#
baccka/ir-project
/ir-project/Stemmer.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Iveonik.Stemmers; namespace ir_project { /// <summary> /// A stemmer class that wraps around the StemmersNET package. /// </summary> public class Stemmer { EnglishStem...
b1c5a293c66ea95bf66c9d0e53b93982e3ec809e
C#
kardelw1409/SOA
/SOAProjects/CurriculumService/Services/EntityCrudService.cs
2.765625
3
using CurriculumService.Context; using CurriculumService.Infrastructure; using CurriculumService.Interfaces; using CurriculumService.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Threading.Tasks; using System.W...
54a4c28873d1f77d570bebdbc5e6c055ea198966
C#
pettijohn/TaskSchedulerEngine
/src/ExponentialBackoffTask.cs
3.015625
3
/* * Task Scheduler Engine * Released under the BSD License * https://github.com/pettijohn/TaskSchedulerEngine */ using System; using System.Threading; namespace TaskSchedulerEngine { /// <summary> /// Exponential backoff retry of a task. Retry interval is baseRetrySeconds*(2^retryCount). /// Passes t...
93fece9fd56a0ccf3a43f9df920499ebc7dadc4b
C#
MohitSethi99/ProbabilityManager
/Assets/DailyBonusSystem/Scripts/BonusItem.cs
2.53125
3
using System; using UnityEngine; [Serializable] public class BonusItem { public string name; [Range(0,100)] public int ProbabilityPercent; public float Angle; public float Percent => (float) ProbabilityPercent / 100; public int CompareTo(object obj) => Percent.CompareTo(((BonusItem) obj).Perc...
03eb6b4354a23bfa7da51265709ad1267b1ae1ac
C#
EASJ2018F/wcf-student-SabreUrn
/StudentService/StudentService/Service1.svc.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace StudentService { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in cod...
1a6238e3b2e6ce5c6d095aa75755dc5d7f5c44e9
C#
okosodovictor/Sample-Asp.net-Web-API
/BEAssignment.Core/Managers/InvoiceManager.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BEAssignment.Core.Business; using BEAssignment.Core.Interfaces.DataAccess; using BEAssignment.Core.Interfaces.Managers; namespace BEAssignment.Core.Managers { public class InvoiceManager : IIn...
be8b0584baa362cde3307c46f1d5d2636fa21e33
C#
IgorNazaryok/C-base-classes
/Generic/Geniric 5/Geniric 5/Program.cs
3.453125
3
using System; namespace Geniric_5 { class Program { static void Main(string[] args) { MyCollection<Car> myList = new MyCollection<Car>(); myList.Add(new Car("AMG", "1993")); myList.Add(new Car("Ford", "2001")); myList.Add(new Car("Tesla", "2016"...
4bcd087464cd295a42b7a7faace573788995b37a
C#
Aysenurugur/Multi_Layer_Architecture_Web_HR_Project
/Services/Services/FileService.cs
2.671875
3
using Core.AbstractUnitOfWork; using Core.Entities; using Core.Services; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Services.Services { public class FileService : IFileService { private readonly IUnitOfWork unitOfWork; ...
743eab10b483248403a7bdb3c19f6e8964e55c88
C#
yuri4029/UWP-Samples
/UWPCallODataServiceDemo/ProductService/ProductService/Migrations/Configuration.cs
3.078125
3
namespace ProductService.Migrations { using Models; using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<ProductService.Models.ProductServiceContext> { public Configuration() ...
288b471d3e91e2d2c3356bce7a96750ccb950ca0
C#
Agilsaav/TFM
/tfm/Assets/Scripts/Gameplay/WaveObject.cs
2.515625
3
using System.Collections; using WavesBehavior; using UnityEngine; //Class not used: Make appear an object when colliding with the main wave. public class WaveObject : MonoBehaviour { MeshRenderer mesh; bool active = false; private void Awake() { mesh = GetComponent<MeshRenderer>(); } ...
76f11871c81ea4563f3cfc73b6e8162c558cd9b2
C#
MartinCarrion/Team9Spotify
/Tic-Tac-Toe/Team9Tic/MainWindow.xaml.cs
2.78125
3
//Team 9 //Martin Carrion //Tristan Osborn 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.Window...
c1066ee64c35fd644a1da77168634f1823e2cbcb
C#
v5100v5100/GVmakerForWin
/Script/Interpreter/LavApp.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Script.Interpreter { public class LavApp { private sbyte[] appData; private int offset; /// <summary> /// 通过一个输入流创建一个LavApp对象 /// </summary> /// <pa...
4dc5c2661111c1c5b2436aeef01135b8087cda6e
C#
ltarne/Game-of-Goofs
/Game_of_Goofs/Assets/Scripts/CameraController.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { //-------------------------------------------------------------- //Primary camera rotation [SerializeField] Vector3 m_PrimaryRotation = new Vector3(50,0,0); //Secondary ...
798c7f5d6a247562bf0cd1ad2667956bd45e6599
C#
RonaldHordijk/DemoSquared
/DemoSquared.Utils/ModelQuery.cs
2.84375
3
using DemoSquared.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoSquared.Utils { // helper functions for getting infromation out the gbxml data structure internal static class ModelQuery { public static Campus GetCampu...
8c91e3172d5b3fcf016e4ed6f192f9b6365d28b1
C#
Cmd-Robotic/GIK2F7-Laboration1-RobertHysingBerg
/Program.cs
3.59375
4
using System; namespace Laboration1 { class Program { static void Main(string[] args) { ///I might've skipped commenting for most of the main program, oh well I suppose that's fine for now... mainUI(); } static void mainUI() { ///Main user interface segm...
0cf0bbbab428651963f363da311e6812cfd1e0e3
C#
NBorba/Aulas_Xamarin
/Program.cs
3.59375
4
using System; namespace PrimeiroProjeto { class MainClass { private const double PI = 3.14; public static void Main(string[] args) { while (true) { Console.WriteLine("Digite abaixo o exercício desejado: "); try { int idExercicio = 0; if (int.TryParse(Console.ReadLine(), out idExer...
8cb5decadacc6e0b5d0fb4937c6cb3792554b33d
C#
thegamefactory/the-world-factory-unity
/Assets/Scripts/Core/Base/Pathfinding/IPathFinder.cs
2.578125
3
namespace TWF { /// <summary> /// A path finder interface. /// Finds paths between the origin and the destinaton, specifying a maximum past cost. /// The maximum past cost is only meaningful in the context of the connection cost between nodes in the searched graph. /// The returned path must be con...
43fca5303a2b56717e87bbbf87fe074aa1d4cfaf
C#
baichuan72f/UITools
/UITools/Assets/Singleton/SingletonPropertyExample.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace HFrameExample { public class SingletonPropertyExample : MonoBehaviour { public class TestSingletonPropertyExample : ISingleton { private TestSingletonPropertyExample() { ...
dac3f91593222b61ca138c2d1afd4dbf84c4467a
C#
MaxDac/gilded-rose-csharp
/csharpcore.tests/BackstagePassesTests.cs
2.65625
3
using System.Collections.Generic; using Xunit; namespace csharpcore { public class BackstagePassesTests { private const string BACKSTAGE_PASSES_NAME = "Backstage passes to a TAFKAL80ETC concert"; [Fact] public void BackstagePassesIncreaseValueBeforeTheConcert() { ...
aef4559f98023700bd3b61ec451541b0146463cf
C#
owenbai101/adproject
/Team4_Ad/logic/Business.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Web; using Team4_Ad.WCF; using System.Web.Security; using System.Collections; namespace Team4_Ad { public class Business { public static string Finditemidbyname(string name) { us...
3c374533af97dea999c66b2e07f52e9764150df6
C#
RuudHagens/Portfolio
/Semester 2/C# projects/IComparable_Student/IComparable_Student/Student.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IComparable_Student { class Student : IComparable<Student> { protected string name; protected string address; protected int number; public string Name ...
de4621ee5a984667265a110b970af58c5249a587
C#
LonelyReaction/Bamss
/Communication/FTP/FTPClient.cs
2.765625
3
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Threading; using System.IO; using System.Net; using BAMSS.Extensions; namespace BAMSS.Communication.FTP { public class FTPClient { private string _serverNam...
6b143d4158aabcac6fd66ecbb9054ab86e686763
C#
kannan-ar/SharreShopping
/src/server/Models/ModelUtility.cs
2.640625
3
namespace server.Models { using System; public class ModelUtility { public const string DateFormat = "dd/MM/yyyy"; public static DateTime GetDateTimeFromUnixTime(Int64 time) { return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(time); } ...
47e185d3614e3ecb94914a75666306a7d55d31e1
C#
DoughBoiKush/RS-Unity-1
/Assets/RS/util/TextureUtils.cs
3.484375
3
using System.Collections.Generic; using UnityEngine; namespace RS { /// <summary> /// Provides utilities relating to unity textures. /// </summary> public static class TextureUtils { /// <summary> /// Flips all pixels in the image horizontally. /// </summary> /// <...
3d675f3cb3c05ce33fe1774896a4528bdeebe5ba
C#
Seqiiu/SPOJ-1
/Spoj.Solver/Solutions/4 - Prince/WILLITST.cs
3.859375
4
using System; // https://www.spoj.com/problems/WILLITST/ #game #math // Determines if the specified algorithm ever stops for a given input. public static class WILLITST { // If the second branch gets hit, the number maps to 3(n + 1) and definitely // has a factor of 3. That means that second branch eventually...
5b8a291504c22cc4f89c3ea404341919881c2270
C#
goranalkovic/FOIapp-UWP
/FOIapp/Classes/CourseItem.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using FOIapp.Annotations; namespace FOIapp.Classes { public class CourseItem : INotifyPropertyChanged { private double...
09ae71edbf6ca07ac34dd7ee27bcd89b2f756396
C#
lehuyhieu10999/C0220I1
/Module2/CoffeeManagement/CoffeeManagement/Services/CofffeeService.cs
3.015625
3
using CoffeeManagement.Models; using System; using System.Collections.Generic; namespace CoffeeManagement.Services { class CofffeeService { public Data data; private string path; private string databasename; private string fullpath => @$"{path}\{databasename}"; public C...
db7cf58befa3360232a83e58ac3042db80bbf4cd
C#
BasicLich/Hooks
/Assets/Scripts/State Machine/State.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class State : MonoBehaviour { protected List<StateComponent> updateComponents = new List<StateComponent>(); protected List<StateComponent> fixedUpdateComponents = new List<StateComponent>(); protected List<StateCompone...
6a49f56341a91c72cee3dc7188f542ad0d8a3f2d
C#
makarevichmatvei/proekt-testPO
/Calc142/Calc142/TwoArgument/Percent.cs
2.59375
3
using System; namespace Calc142 { public class Percent: ITwoArgCalc { public double Calculate(double firstArg, double secondArg) { return (firstArg * secondArg) / 100; } } }
0681fd86b11c9cb5306c73881dae429a6bb9caf0
C#
watfordgnf/Jwt
/test/JsonWebToken.Tests/JsonObjectTests.cs
2.6875
3
using JsonWebToken.Cryptography; using Xunit; namespace JsonWebToken.Tests { public class JsonObjectTests { [InlineData(0)] [InlineData(1)] [InlineData(2)] [InlineData(3)] [InlineData(4)] [InlineData(5)] [InlineData(6)] [Theory] public vo...
0d469596b96595e6bb9a73faf9ddb92f59e768bf
C#
vladar21/Clinic
/Clinic/Appointment.cs
2.703125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Windows.Forms; namespace Clinic { public partial class Appointment : Form { int patientid { set; get; } int docid { set; get; } public Appointment(int id, Dictionary<Int32, String> listD...
52224f824f53ed191dbc48a0e5f8cddfa23d062f
C#
Julia-Alexandrova/teamcity-runas-plugin
/runAs-tool-win32/JetBrains.runAs.IntegrationTests/RunSteps.cs
2.59375
3
namespace JetBrains.runAs.IntegrationTests { using System; using System.Linq; using System.Text.RegularExpressions; using JetBrains.runAs.IntegrationTests.Dsl; using NUnit.Framework; using TechTalk.SpecFlow; using System.Collections.Generic; using TestContext = JetBrains.runAs.IntegrationTests.Dsl.TestCont...
405d22378d426f21673c2d3b4c8d9365653c52e5
C#
ZhouHengYi/HFramework
/H.Front/H.Facade/LanguageHelper.cs
2.515625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; using H.Core.Utility; namespace H.Facade { public class LanguageHelper { private static string GetLanguageType() { string language = CookieManager.GetValue("WebsiteLangu...
0521194fc16e1b97713244e92a60a40306cc88d6
C#
hez2010/SATSP
/NotConverter.cs
2.703125
3
using Avalonia.Data.Converters; using System; using System.Globalization; namespace SATSP { public sealed class NotConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is bool b) return !b; ...
148eb1ea61b13a0cdb9746f3b4fc0f2d72269dc1
C#
Despairon/Physics_Simulation
/Physics_Simulation/ObjFileReader.cs
2.734375
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Physics_Simulation { public static class ObjFileReader { #region private_members private enum Global_State { ...
fd968e771f51725c6c157b4fa1a0c7d723a8617d
C#
6624465/PickC01122018
/Operation.BusinessFactory/InvoiceBO.cs
2.609375
3
using System; using System.Collections.Generic; using Operation.Contract; using Operation.DataFactory; namespace Operation.BusinessFactory { public class InvoiceBO { private InvoiceDAL invoiceDAL; public InvoiceBO() { invoiceDAL = new InvoiceDAL(); } public ...
0d5bd03daba0af6c49dfd5a9ac0c0a97f43e269c
C#
google/or-tools
/ortools/sat/samples/CpSatExample.cs
2.625
3
// Copyright 2010-2022 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
43024661e553db854b9c224f5400b7065a42b8cd
C#
bbonkr/sample-multilingual-content
/src/Sample.MultilingualContent/Infrastructure/SomethingWrongException.cs
2.96875
3
using System; namespace Sample.MultilingualContent { public abstract class SomethingWrongException : Exception { public SomethingWrongException(string message) : base(message) { } public abstract object GetDetails(); } public class SomethingWrongException<T> : SomethingWrongException...
027e2588b49f0251116134b387f8cd383f4102e3
C#
MiguelAlvCar/GameAvocadosWars
/Sound/Effects.cs
2.8125
3
using System; using System.Collections.Generic; using System.Windows.Media; using System.IO; using WpfBasicElements.AbstractClasses; namespace Sound { public class Effects: IEffects { public MediaPlayer AttackEffectsMediaPlayer { get; set; } = new MediaPlayer(); public MediaPlayer DefenseEffec...
7e29ba6ccf9fcae8bbb9141667b86b3dd1de167c
C#
WakeDown/UnitApis
/Code/ApiDataProvider/Models/Stuff/WorkDay.cs
2.796875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using DataProvider.Helpers; namespace DataProvider.Models.Stuff { public class WorkDay { public static HolidayResult CheckIsPreHoliday(DateTime date) { ...
c0c271eb55d3392f1a239c826618b29fba3b6484
C#
christianspecht/bitbucket-backup
/src/BitbucketBackup/GitRepository.cs
2.765625
3
using System; using System.IO; namespace BitbucketBackup { /// <summary> /// Creates and pulls from Git repositories. /// </summary> internal class GitRepository : RepositoryBase { private GitWrapper git; public GitRepository(string remoteUri, string folder) : base(rem...
7adfa72bc6f799ad2cbcb648efdeb1183209a497
C#
route4me/route4me-csharp-sdk
/route4me-csharp-sdk/Route4MeSDKTest/Examples/AddressBookGroup/GetAddressBookGroups.cs
2.578125
3
using Route4MeSDK.DataTypes; using Route4MeSDK.QueryTypes; using System; namespace Route4MeSDK.Examples { public sealed partial class Route4MeExamples { /// <summary> /// Get the address book groups /// </summary> public void GetAddressBookGroups() { var rou...
d58c65938fd19c5ee032e99fab3266c9d75a69d0
C#
Sephiroth/ORMTest
/Linq2DB.Repository/Impl/UserRepository.cs
2.640625
3
using IRepository.Interface; using LinqToDB; using Models; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace Linq2DB.Repository.Impl { public class UserRepository : IRepository<TUserinfo> { public async Task<bool> AddEntity(TUserinfo...
d8bceb7d65f20845a2f847a2458cf5975e402581
C#
michael-wolfenden/Cake.Npx
/src/Cake.Npx/NpxSettings.cs
2.859375
3
using System; using System.Collections.Generic; using Cake.Core; using Cake.Core.IO; using Cake.Core.Tooling; namespace Cake.Npx { /// <summary> /// Npx tool settings. /// </summary> public class NpxSettings : ToolSettings { [Obsolete("Only need for ToolFixture constraint")] public...
4d9e5253c990fe9789a9fc338d0ac6c4c3b69373
C#
Hikimon99/Portfolio
/In-Process Learning C# ASP MVC/Kim_InHo_HW3/Models/CateringOrder.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace Kim_InHo_HW3.Models { public class CateringOrder: Order { //Validations for 2-4 letters and writes error messages [Required] [MaxLengt...