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 |
|---|---|---|---|---|---|---|
ca90f199e8c4fbfdca5f8220d33a3bdc6b18d95c | C# | lumberjackchester/HammerCreekBrewery | /HammerCreekBrewing.Models/UnitOfWork.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using HammerCreekBrewing.Data.Models;
using System.Threading.Tasks;
namespace HammerCreekBrewing.Data
{
public class UnitOfWork : IUnitOfWork, IDisposable
{
private readonly IDictionary<Type, object> _repositories;
public UnitOfWork(HCBContext... |
3c03ab350970a645408bc407cfcf7cac5ce0ba14 | C# | suzdorf/spublisher | /SPublisher.DBManagement/DataProviders/MySqlDataProvider.cs | 2.578125 | 3 | using System.Collections.Generic;
using MySql.Data.MySqlClient;
using SPublisher.Core;
using SPublisher.Core.DbManagement;
using SPublisher.DBManagement.Models;
namespace SPublisher.DBManagement.DataProviders
{
public class MySqlDataProvider : ISqlServerDataProvider
{
private readonly IConnectionAcces... |
c67647964f91a1c25b8539cb672bc397a3d4f698 | C# | david-evip/TodoWebApp | /Layers/Repositories/RepositoryBase.cs | 2.921875 | 3 | using Entities;
using Layers.IRepositories;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Layers
{
public class RepositoryBase<T> : IRepositoryBase<T> where T : class
{
protected RepositoryContext RepositoryContext { get; set; }
... |
28a815352857d4b5559e45d96e2f33234f6eae23 | C# | shendongnian/download4 | /code8/1350876-36488368-115167177-2.cs | 3.328125 | 3 | public string replace(string input)
{
StringBuilder sb = new StringBuilder();
Dictionary<char, char> map = new Dictionary<char, char>();
map.Add('2', '₂');
map.Add('3', '₃');
map.Add('4', '₄');
map.Add('5', '₅');
map.Add... |
3808dec575facf5aa2c3cf112f40941ffc18f7c2 | C# | markand911/movieChallenge | /WebJetAPI/API/Provider/FilmWorldProvider.cs | 2.703125 | 3 | using API.Interface;
using API.Models;
using AutoMapper;
using Newtonsoft.Json;
using System.Threading.Tasks;
namespace API.Provider
{
public class FilmWorldProvider : IMovieProvider
{
private readonly IMapper _mapper;
private readonly IProviderHelper _providerHelper;
public FilmWorldP... |
c3ea3d0809673c9ce2d7053e0b952984d5889f81 | C# | StormDevelopmentSoftware/Lana | /Lana/Entities/Lavalink/TrackInfo.cs | 2.828125 | 3 | using System;
using DSharpPlus.Entities;
using DSharpPlus.Lavalink;
namespace Lana.Entities.Lavalink
{
public class TrackInfo : IEquatable<TrackInfo>
{
public TrackInfo(DiscordChannel chn, DiscordUser usr, LavalinkTrack track)
{
this.Channel = chn;
this.User = usr;
this.Track = track;
}
public Dis... |
7f9aa30fbdf8fd4a1383cfe96117fa08848694d7 | C# | shendongnian/download4 | /first_version_download2/258883-20633899-53821057-2.cs | 2.84375 | 3 | public class MembershipSetting
{
/// <summary>
/// Gets or sets the name of the setting.
/// </summary>
public string SettingName { get; set; }
/// <summary>
/// Gets or sets the setting value.
/// </summary>
public string SettingValue { get; ... |
4de87a2c8eee46181d4d63a175255d2e4c347b47 | C# | xszaboj/euler | /23_Abundant/Abundant/AbundantNumbers.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Abundant
{
public class AbundantNumbers
{
public List<int> GetDivisiorsOfNumber(int number)
{
List<int> divisiors = new List<int>();
for (int i ... |
6b6077c3a84fc58902e20a5a60191c90cc69ee19 | C# | 2kingmartians/Astron-End | /Astron End/Assets/AT SCRIPTS/Inventory/EquipManager.cs | 2.703125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EquipManager : MonoBehaviour {
#region Singleton
public static EquipManager instance;
private void Awake()
{
if(instance != null)
{
Debug.LogError("There is more than 1 equipmentMa... |
7298d931301eb1854146d90dbd5c900e91eb1a80 | C# | burakpols/ReCapProjectCamp | /DataAccess/Concrete/InMemory/InMemoryCarDal.cs | 2.953125 | 3 | using DataAccess.Abstract;
using Entities.Concrete;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace DataAccess.Concrete.InMemory
{
public class InMemoryCarDal : ICarDal
{
private List<Car> _carList;
public InMemory... |
92552b98d8153cb39ffe98c0b6f91b9eea08663e | C# | gelanq/BeerTap-V2.0 | /MyBeerTap.BusinessServices/TapServices.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;
using AutoMapper;
using MyBeerTap.BusinessServices;
using MyBeerTap.Data.Models;
using MyBeerTap.Data.UnitOfWork;
using MyBeerTap.Model;
namespace MyBeerTap.Services
{
pub... |
b91f2dade8b39cbbce9ff216c5b10374d2891338 | C# | thomasnilsson/winprog2016 | /Diagram_WinProg2016/Diagram_WinProg2016/Commands/AddClassCommand.cs | 2.5625 | 3 | using Diagram_WinProg2016.Model;
using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Diagram_WinProg2016.Commands
{
//
// Class used to add ClassBox's to the Grid
... |
51dfc9a86f5e86a4bd69fe4fe57f543fd4a759e4 | C# | MarceloCorreaADS/BeginReality | /GameLibrary/GameLibrary/Utils/TurnManager.cs | 2.65625 | 3 | using System;
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
using Character;
namespace Utils {
public class TurnManager : MonoBehaviour {
public List<String> moves;
public String teamTurn;
public bool turnActive;
[SerializeField]
public List<... |
89cf64dd214918a8687a8d3f5425c66504079a7b | C# | cjmaier2/LoLinfo | /LoLInfo/LoLInfo/Views/SummonerSearchView.xaml.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using LoLInfo.ViewModels;
using Xamarin.Forms;
namespace LoLInfo.Views
{
public class SummonerSearchViewBase : BaseView<SummonerSearchViewModel> { }
public partial class SummonerSearchView : SummonerSearchViewBase
{
public SummonerSearchView()
... |
e73a1a8159aeadc22157a7f8529c9f04bd2c411c | C# | nielsgolstein/Patterns | /StatePattern/StatePattern/StatePattern/States/BaseState.cs | 3.359375 | 3 | namespace StatePattern.StatePattern.States.StateTypes
{
public class BaseState<TObjectType>
{
/// <summary>
/// Sets the new state end exits the old one (if exists)
/// </summary>
/// <param name="newState">The new state we want to enter</param>
/// <param name="... |
ebc99a30899f3ddf0b391a963899e1675eadf711 | C# | tralezab/Barotrauma | /Barotrauma/BarotraumaClient/Source/Characters/Jobs/JobPrefab.cs | 2.59375 | 3 | using Microsoft.Xna.Framework;
namespace Barotrauma
{
partial class JobPrefab
{
public GUIFrame CreateInfoFrame()
{
int width = 500, height = 400;
GUIFrame backFrame = new GUIFrame(Rectangle.Empty, Color.Black * 0.5f);
backFrame.Padding = Vector4.Zero;
... |
329da18b801faffdfd4495284c61281e6ffdd77b | C# | 727175929/.net_study | /C#语法学习/DateTime转化String等/DateTime/Program.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DateTime1
{
class Program
{
static void Main(string[] args)
{
String a = "2017/9/15 12:00";
Console.WriteLine("Strin... |
7134d63ccd3f5042448cf956b845d81109ea9bbf | C# | czcz1024/czlib | /CZLib/CZLib.Config/THZConfigBase.cs | 3.09375 | 3 | namespace CZLib.Config
{
using System;
using System.Linq.Expressions;
/// <summary>
/// 自定义配置基类
/// </summary>
/// <typeparam name="T"></typeparam>
public abstract class THZConfigBase<T> : Singleton<T>
{
/// <summary>
/// 检测是否已经创建配置
/// </summary>
... |
9f51f882c2efd67f8227ff3d70579d78822074fc | C# | punkcpp/FNP | /PatternMining/SubgraphIsomorphism.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PatternMining
{
class SubgraphIsomorphism
{
public Graph g1;
public Graph g2;
public int R;
public List<int>[] Nodes1;
public List<int>[] Nodes2;
public int[] Map;
... |
de697b766e942b8095c4fe08ce0234d9b339a2dc | C# | dkwkekzz/Test | /SpeakingLanguage/old/Services/NWorkspace/PageLoader.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpeakingLanguage.Command.NWorkspace
{
class PageLoader
{
private WorkerPool _pool;
private PageStreamer _pageStreamer;
public PageLoader(WorkerPool pool, Book ... |
7fde0ecb7bc302f4965acb195ab1544e8a214ee0 | C# | ojmakhura/andromda | /andromda-etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/SchemaExport/SchemaExport.cs | 2.734375 | 3 | //
// SchemaExport
//
#region Using Statements
using System;
using System.IO;
using System.Configuration;
using NHibernate;
using AndroMDA.NHibernateSupport;
#endregion
namespace ${wizard.solution.name}.SchemaExport
{
class Program
{
public static void Main(string[] args)
{
// Initialize Log4Net
log4... |
a306e37314547a19338e854028dd0d64734ca4d0 | C# | karthikpandiyan/at | /JCI.CAM.Provisioning.Core/Utilities/ConfigurationHelper.cs | 2.609375 | 3 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConfigurationHelper.cs" company="Microsoft">
// Copyright (c) 2014. All rights reserved.
// </copyright>
// <summary>
// Helper class to read from the Config files
// </summary... |
6968a168fe8b9d5173ca7ca28b0193b472e56ad4 | C# | llenroc/datastructures | /DataStructures/Exercises/AlgoExpert/AlgoExpertFindThreeLargestNumbers.cs | 3.640625 | 4 | namespace DataStructures.Exercises.AlgoExpert
{
public class AlgoExpertFindThreeLargestNumbers
{
public AlgoExpertFindThreeLargestNumbers()
{
var results = FindThreeLargestNumbers(new[] { 141, 1, 17, -7, -17, -27, 18, 541, 8, 7, 7 });
}
public int[] FindThreeLargest... |
5c74dcb00079584536a49443a6f9777e2ab34b08 | C# | mssogamosog/OOPChallenge | /OOPChallenge/Address.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOPChallenge
{
public class Address
{
private int id;
private string lineOne;
private string lineTwo;
private string city;
private string countr... |
5bef88a39893430a839ad0d2faabdeab45d95bd6 | C# | ExterminatorX99/DissonanceEngine | /Src/Core/Structures/Vector3.cs | 2.96875 | 3 | using System;
using System.Runtime.InteropServices;
namespace Dissonance.Engine
{
public struct Vector3
{
public const float kEpsilon = 0.00001F;
public const float kEpsilonNormalSqrt = 1e-15F;
public static readonly int SizeInBytes = Marshal.SizeOf(typeof(Vector3));
public static readonly Vector3 Zero = de... |
f962ce501e0eb049f1ae96339d548e50af809444 | C# | JachuPL/TicketReservation | /Application/TicketReservation.Application/Reservations/Implementations/ReservationsQuerier.cs | 2.59375 | 3 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TicketReservation.Application.Common.Database;
using TicketReservation.Application.Reservations.Interfaces;
using TicketReservation.Application.Reservations.Models;
using TicketRe... |
b565c993232203fd9455cfd407d91f016417c315 | C# | norbertkadar/Lab5_Movie | /Lab3Movie/Models/MoviesDbSeeder.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Lab3Movie.Models
{
public class MoviesDbSeeder
{
public static void Initialize(MoviesDbContext context)
{
context.Database.EnsureCreated();
// Look for any movies... |
34801c3f7f803f50ad5fa3482f10a9931f796264 | C# | georg-jung/FluentDegiro | /FluentDegiro/Infrastructure/ApiMethodBuilder.cs | 2.6875 | 3 | using FluentDegiro.Abstractions.Infrastructure;
using FluentDegiro.Infrastructure.Extensions;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Net.Http;
using System.Text;
namespace FluentDegiro.Infrastructure
{
/// <summary>
/// Builder-style implementation of the abstract A... |
b02e27106d204d363808a676bbb34edbbf7a04e0 | C# | shendongnian/download4 | /code7/1268275-33938352-105032784-4.cs | 2.515625 | 3 | private void panel1_Paint(object sender, PaintEventArgs e)
{
var hs = (HatchStyle[])Enum.GetValues(typeof(HatchStyle));
for (int i = 0; i < hs.Length; i++)
using (HatchBrush hbr = new HatchBrush(hs[i], Color.GreenYellow))
using (HatchBrush hbr2 = new HatchBrush(h... |
5a2d9c939da7a3db21414a26404ed3507b2c2194 | C# | olivergrimes/GameOfLife | /GameOfLife/NeighbourState.cs | 3.53125 | 4 | using System;
namespace GameOfLife
{
public class NeighbourState : INeighbourState
{
private readonly bool[,] _currentState;
private readonly int _x;
private readonly int _y;
public NeighbourState(bool[,] currentState, int x, int y)
{
_currentState = curren... |
938c82f153ad6e36cc51e3d66ecd30f6b41bdff0 | C# | DanielaPopova/TelerikAcademy_Homeworks | /Unit Testing/Workshop - Academy/Academy/Core/Providers/CommandParser.cs | 3.1875 | 3 | using Academy.Commands.Contracts;
using Academy.Core.Contracts;
using Academy.Core.Factories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Academy.Core.Providers
{
public class CommandParser : IParser
{
public ICommand ParseCommand(string fullCo... |
2186ccf432ce1644fc19d06d29014a84449d247b | C# | arkadiusz-gorecki/3D-Shape-Editor | /Camera.cs | 2.796875 | 3 | using _3DShapeEditor.Shapes;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace _3DShapeEditor
{
public class Camera: MatrixOperations
{
public float Fov ... |
eeadf00a2541d586e369e1cb86b3abd56886cf92 | C# | migellemertens/C-Sharp-Essentials-TIN | /h06/Exercise06/MainWindow.xaml.cs | 3.078125 | 3 | using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace Exercise06
{
public partial class MainWindow : Window
{
private DispatcherTimer timer = new DispatcherTimer();
private Rectangle _secondsRectangle;
pri... |
7e72a0ffec116565b3ee9502e7e6e7299a874846 | C# | KATESTYLES333/LabsOnCSharp | /Delegate1/Delegate1/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Delegate1
{
public class del<RetType> where RetType : new()
{
private List<Func<RetType>> methods = new List<Func<RetType>>();
public del(Func<RetType> fMethod)
... |
b2ac304fdc09141f6031d31253658aa14d79c19c | C# | tropensturm/-BET-.Playground | /]BET[.Playground.Core/Assembly.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Reflection;
namespace _BET_.Playground.Core
{
public static class AssemblyLocator
{
public static Dictionary<string, Assembly> assemblies;
public static void Init(AppDomain domain)
{
assemblies = new Dictionary<s... |
1436e81d4c3eaf2fa212616b1bac3484b4faad87 | C# | cvele89/TaxiDispatcher | /TaxiDispatcher.App/Scheduler.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
namespace TaxiDispatcher.App
{
public enum RideType
{
City,
InterCity
}
public class Scheduler
{
protected static TaxiCompany taxiCompany_Naxi = new TaxiCompany { CompanyName = "Naxi", PriceModifier = 10 };
protected ... |
41a5852bca611f295defc84d074beefccbf88f90 | C# | notpatrick/MyQuizMobile | /MyQuizMobile/MyQuizMobile/MyQuizMobile/Converters/DateTimeConverter.cs | 2.5625 | 3 | using System;
using System.Globalization;
using Xamarin.Forms;
namespace MyQuizMobile {
public class DateTimeConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value != null ? DateTime.Parse(value.ToString()).TimeOfDay : new T... |
ee3f360369d3f98846a8e7fae8b9d20efaa37558 | C# | mwhelanj/TaxNumberValidation | /TaxFileNumberValidationApp/Services/ValidationService.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TaxFileNumberValidationApp
{
public class ValidationService : IValidationService
{
public bool ValidateTFN(string tfn)
{
//validate only digits
if (!IsNumeric(tfn... |
7af7c527f4d4e8e4414b6da52a6e36cbfc9d2475 | C# | kevindavis-gd/BinaryConverter | /Binary Calculator/MainForm.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics.Tracing;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Binary_Calculator
{
public partial class ma... |
f92de80f636c4c14159617d0810b124ae14783dd | C# | jamessantiago/GetNet | /src/getnet.web/ExtensionMethods.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using System.Net;
using getnet.Model;
using Newtonsoft.Json;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.... |
a1747a71d6183a8731590031efd391ef0e4fa1f2 | C# | HearthSim/Hearthstone-Deck-Tracker | /Hearthstone Deck Tracker/Utility/RegistryHelper.cs | 2.671875 | 3 | using System;
using System.Windows;
using Hearthstone_Deck_Tracker.Utility.Logging;
using Microsoft.Win32;
namespace Hearthstone_Deck_Tracker.Utility
{
public static class RegistryHelper
{
private const string KeyName = "Hearthstone Deck Tracker";
private static string _executablePath = Application.ResourceAssem... |
1d9f40e1738597e9daa6547af2f328eba3b59b7e | C# | charlesj/Archimedes | /app/Archimedes.Common/Extensions/TimeSpanExtensions.cs | 2.984375 | 3 | namespace Archimedes.Common.Extensions
{
using System;
public static class TimeSpanExtensions
{
public static int InMilliseconds(this TimeSpan ts)
{
return (int)ts.TotalMilliseconds;
}
public static DateTime Ago(this TimeSpan ts)
{
return DateTime.Now - ts;
}
public static DateTime FromNow(th... |
415cc890c709eb82022cfa8f1797e5592a48813a | C# | lizhen325/MIT-Data-Structures-And-Algorithms | /MIT/InsertionSortAndMergeSort/InsertionSortAndMergeSort/InsertionSort.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InsertionSortAndMergeSort
{
public class InsertionSort
{
public static int[] InsertionSorting(int[] nums)
{
for(int i=1; i<nums.Length; i++)
{
... |
1abc79d859142455778b903970c5ffbcf5c9438e | C# | govmeeting/govmeeting | /src/Application/Configuration_Lib/BuildConfig.cs | 2.53125 | 3 | using GM.Utilities;
using Microsoft.Extensions.Configuration;
using System.IO;
namespace GM.Application.Configuration
{
public static class BuildConfig
{
public static void Build(IConfigurationBuilder config, string environment)
{
// The SECRETS" folder is outside of our Github rep... |
b66eabc4df3e0fa90577341faace1c89343e75ef | C# | Dominoz251/Checkers | /Warcaby/Pages/Gameplay/GameplayWindow.xaml.cs | 2.640625 | 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;... |
a913f3baad94a6e65b9a75a5ad0cbd88edd4a89f | C# | dungnguyentien0409/competitive-programming | /C#/940. Distinct Subsequences II.cs | 3.375 | 3 | // Link: https://leetcode.com/problems/distinct-subsequences-ii/
// Author: Dung Nguyen Tien (Chris)
public class Solution {
public int DistinctSubseqII(string S) {
// dp[i] is the total of subset from S having the len i
var dp = createDP(S);
var last = createLast();
int max = 10000... |
86d0ed8bd13f4a5d45e0ff7a0234467706ee6890 | C# | RobsonAdorno/TrabalhoBiblioteca | /Biblioteca/Biblioteca/DAL/VendedorDAO.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Biblioteca.Model;
namespace Biblioteca.DAL
{
class VendedorDAO
{
private static Context ctx = SingletonContext.GetInstance();
public static Vendedor BuscarVendedorPorCPF(V... |
7159a4b1cd0cdbb1272c67a39f9f40a0c9a1fdda | C# | InvaderZim85/AppzManagerV4 | /AppzManagerV4/Business/FormManager.cs | 2.546875 | 3 | using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using AppzManagerV4.DataObjects;
using AppzManagerV4.Forms;
using AppzManagerV4.Global;
using TAFactory.IconPack;
namespace AppzManagerV4.Business
{
public static class FormManager
{
... |
bce825ddea730d8c2fd29acd4952d66a4409a91b | C# | 92-Theo/demo-xamarin | /signalr-chat/SignalRChatDemo/Sample.WebSocket/Models/EventArgs.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Net.WebSockets;
using System.Text;
namespace Sample.WebSocket.Models
{
public class ReceivedMessageEventArgs : System.EventArgs
{
public string IP { get; set; }
public string Message { get; set; }
public override string ToSt... |
db1f93e30a92f090fd1a3142adeb78a485144f6c | C# | jaskarans-optimus/Induction | /Dot Net Induction/Design Patterns/MVC/MVCusingWinForms/MVCusingWinForms/Models/SystemModel.cs | 2.828125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MVCusingWinForms.Views;
namespace MVCusingWinForms.Models
{
public class SystemModel
{
private ArrayList views = new ArrayList();
public SystemModel(string name, float minRam, fl... |
ce84e58e39f2acf114e11ca990f4d3e9a8c7d03d | C# | RattsDen/Brainfarm | /BrainfarmService/LoginTokenManager.cs | 2.953125 | 3 | using BrainfarmService.Data;
using JWT;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Web;
namespace BrainfarmService
{
/*
* This class handles the generation and validation of JSON Web Tokens (JWTs)
* used to validate th... |
091db9b13bc9aad70720a67671c433d0d10de5df | C# | static-motion/Softuni | /Algorithms-Exam-Preparation/Sticks/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Sticks
{
class Program
{
static void Main()
{
int sticks = int.Parse(Console.ReadLine());
int stickPlacings = int.Parse(Console.ReadLine());
Dictionary<int, HashSet<int>> reverseGra... |
e221ff809827d9842ea6fcdfb9bff0e8f9a78b51 | C# | henriTai/TrafficSystem | /Scripts/WaypointTool/TrafficAIScripts/StraightRoadTrafficLightUpdater.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A patch script for unfinished traffic light / crosswalk system. Attach this script to a straight road-object with
/// crosswalks and traffic lights. This simply handles updating traffic light controller (which is us... |
ac203ac039ef072cfbb875ef5b557cf6f637a41d | C# | Opiumtm/DvachBrowser3 | /DvachBrowser3.Core/Engines/Common/HttpPostEngineOperationBase.cs | 2.65625 | 3 | using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Windows.Web.Http;
namespace DvachBrowser3.Engines
{
/// <summary>
/// Операция движка HTTP POST.
/// </summary>
/// <typeparam name="T">Тип результата.</typeparam>
/// <typeparam name="TParam">Тип п... |
acd6bc093d6e336288a7645c226652c9b883ed14 | C# | sermetk/XFOouiSignalRSample | /OouiSignalRSample/Behaviors/ListViewScrollBehavior.cs | 2.578125 | 3 | using System.Linq;
using Xamarin.Forms;
namespace OouiSignalRSample.Behaviors
{
public class ListViewScrollBehaviour : Behavior<ListView>
{
protected override void OnAttachedTo(ListView bindable)
{
base.OnAttachedTo(bindable);
bindable.ItemAppearing += OnItemAppearing;
... |
1c6ae9c84ce5a9f2530b748ce043b89b634b3efc | C# | penma/sdbprof | /sdbprof/AssemblyInfo.cs | 2.75 | 3 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace sdbprof
{
class AssemblyInfo
{
public String name;
public String location;
/* TODO more fields? */
public String GoodFilename
{
get
{
... |
bb9e05413caa8ca8994c4b2a6e0601be64259879 | C# | fasteddys/Birdie.Tesseract | /tvn-cosine.ai/tvn-cosine.ai/environment/wumpusworld/WumpusCave.cs | 3.09375 | 3 | using tvn.cosine.collections;
using tvn.cosine.collections.api;
using tvn.cosine.exceptions;
namespace tvn.cosine.ai.environment.wumpusworld
{
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 236.<br>
* <br>
* The <b>wumpus world</b> is a cave consisting of rooms connected by
... |
f15fcdd866e38fc7be37d3713de9e5345a4d1754 | C# | sumtotal-services/OAuth2ODataSample | /OAuth2ODataSample/B2BGrantOauth.cs | 2.71875 | 3 | using Newtonsoft.Json;
using System;
using System.Configuration;
using System.IO;
using System.Net;
namespace OAuth2ODataSample
{
//Reads configuration settings from App.Config.
//Contains methods relating to obtaining an Access Token via the Client Credential grant type.
public class B2BGrantOauth
{
// Pro... |
9bdc441fde431a580d095c8085a01549a893a237 | C# | shendongnian/download4 | /code6/1080073-28374134-83235531-2.cs | 2.796875 | 3 | private class AsyncExceptionHandlingInterceptor : IInterceptor
{
private static readonly MethodInfo handleAsyncMethodInfo = typeof(AsyncExceptionHandlingInterceptor).GetMethod("HandleAsyncWithResult", BindingFlags.Instance | BindingFlags.NonPublic);
private readonly IExceptionHan... |
49cf849832b10683aa36c7c94c06539541c86aec | C# | houssemDevs/msdn-code-gallery-community-a-c | /C Sharp (C#) Jigsaw Puzzle Game/[C#]-C Sharp (C#) Jigsaw Puzzle Game/C#/Jigsaw1/Code/GameSettings.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace MinThantSin.OpenSourceGames
{
public static class GameSettings
{
public static readonly string BACKGROUND_PICTURE_NAME = "background_tile.bmp";
public static readonly int MIN_PIECE_WIDTH = 5... |
5b2a5e73ab5eb8c7219e49b79f4fc83e6dfa0f45 | C# | KieranBond/swiftsuspenders-sharp | /src/swiftsuspenders/mapping/MappingId.cs | 2.78125 | 3 | using System;
namespace SwiftSuspenders.Mapping
{
public struct MappingId
{
private Type _type;
private object _key;
public Type type
{
get
{
return _type;
}
}
public object key
{
get
{
return _key;
}
}
public MappingId (Type type, object key)
{
_type = type;... |
96970e0817de28e463dfb23b1dfbc40b1b6a0fb1 | C# | caofangsheng93/JsonDataWithJquery | /JsonDataWithJqueryReview/Controllers/BlogController.cs | 2.890625 | 3 | using JsonDataWithJqueryReview.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace JsonDataWithJqueryReview.Controllers
{
public class BlogController : Controller
{
private EFDataContext db;
public BlogController()
... |
a1badcb2b1be71c5d288a28f559ae0e96b3bb8a5 | C# | yamachi4416/ChatApp | /src/ChatApp/Services/GMailSender.cs | 2.9375 | 3 | using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace ChatApp.Services
{
public class MailOptions
{
public string Host { get; set; }
public int Port { get; set; }
public string Email { get; set; }
p... |
d613d41a9b49676b0cc256cc0446791dc70c439e | C# | jacksonrakena/human-date-parser | /HumanDateParser/Tokenisation/Tokens/LiteralDayOfWeekToken.cs | 3.078125 | 3 | using System;
namespace HumanDateParser.Tokenisation.Tokens
{
internal class LiteralDayOfWeekToken : IParseToken
{
public DayOfWeek DayOfWeek { get; }
internal LiteralDayOfWeekToken(DayOfWeek dayOfWeek)
{
DayOfWeek = dayOfWeek;
}
public static DayOfWeek? P... |
a203d487551edd38fb7a705eb4e9afb34c472a3a | C# | OrPolyzos/interactive-systems | /Assets/MazeGame/Scripts/MazeManager.cs | 2.625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityStandardAssets.Characters.FirstPerson;
public class MazeManager : MonoBehaviour
{
public string sceneName;
public GameObject timeCanvas;
public G... |
1818d53d06115d3634c16d58beb714482c3d2a12 | C# | jp701/College_Event_Management_Portal | /College_Event_Management_Portal_CE084/CoreApplication2/Models/SQLRegEventRepository.cs | 2.703125 | 3 | using CoreApplication2.Data;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CoreApplication2.Models
{
public class SQLRegEventRepository:IRegEventRepository
{
private readonly ApplicationDbContext context;... |
d2c37e403aa647f8fe8c23dbc181f2fc2c6bae52 | C# | j-karls/P4-CrawlProgrammingLanguage | /src/libcompiler/CrawlCompilerConfiguration.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
namespace libcompiler
{
public class CrawlCompilerConfiguration
{
//TODO: Non insane way of having this be a tuple of (path, Stream)
public List<string> Files { get; } = new List<string>();
public List<string> Assemblies { get; } = new L... |
81d9dcd2dc238df7a6214c82f30eefd798fdaf41 | C# | Houheshuai/SDWxPro | /SDWxPro.Tool/CsvUtil.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Odbc;
using System.Linq;
using System.Text;
namespace SDWxPro.Tool
{
public class CsvUtil
{
/// <summary>
/// 读取CSV文件内容
/// </summary>
/// <param name="filePath">文件路径,如:F:\\data\\</param>
... |
a0f2e77ccd5ca3ace6a67b3e0296f9d1753c3098 | C# | mizg/ConsoleAppl_Day6_Lab | /ConsoleAppl_Day6_Lab/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleAppl_Day6_Lab
{
class Program
{
static void Main(string[] args)
{
string str = "";
List<Ninjas> squad = new List<Ninjas>();
... |
0379a53622bd86d4906c9ad1b9a63044a1f3c700 | C# | sethjdev/FunctionsLab | /FunctionsLab/Program.cs | 3.359375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FunctionsLab
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("What Level Manager Are You?");
var managerLevel = Console.Re... |
f97928c8d2037b9d572efeefc733f3befbdfd4ae | C# | JJauss/Katas | /NET452Katas/NET452Katas/ExcelToNumber/ExcelToNumber.cs | 3.03125 | 3 | using System;
using System.Linq;
namespace NET452Katas.ExcelToNumber
{
public class ExcelToNumber
{
public static long TitleToNumber(string title) {
string titleReverse = new string(title.Reverse().ToArray());
long sum = 0;
for (int index = 0; index < titleReverse.Length; index++) {
int number = tit... |
27b6e956b9a3aec5b7062d196fcde360d8ceb52d | C# | ibensonr/ticketsystem | /TicketSystem/src/BusinessServices/UserServices.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using BusinessEntities;
using DataModel;
using DataModel.UnitOfWork;
namespace BusinessServices
{
public class UserServices : IUserServices
{
private readonly UnitOfWor... |
fc319cf650dcadf681f33b6a9925638e32e13594 | C# | guih2127/praticas-de-programacao | /listas/lista04matrizes/exercicio03/exercicio03/Program.cs | 3.765625 | 4 | using System;
namespace exercicio03
{
class Program
{
static void Main(string[] args)
{
int[,] myArray = new int[2, 3];
int maiorNumero = 0;
int menorNumero = 100000;
string posicaoMenor = "";
string posicaoMaior = "";
fo... |
537b482455c6ae29e2c01bc2fdc9912ce99c4cfe | C# | ariusbronte-portfolio/web-wallet | /src/WebWallet.Domain/Enums/Currency.cs | 2.9375 | 3 | using System.Diagnostics.CodeAnalysis;
// The number of currencies is deliberately reduced.
namespace WebWallet.Domain.Enums
{
/// <summary>
/// The codes and qualifiers of the currency.
/// </summary>
/// <remarks>ISO-4217</remarks>
[SuppressMessage("ReSharper", "InconsistentNaming")]
[Su... |
509f561c7c943797e293b2bb2435422f40e5c3aa | C# | SinxHe/Sinx.UnitTest | /Sinx.Refactor.Tests/03 MovieRental Refactor - 多态代替条件/Movie03.cs | 2.859375 | 3 | namespace Sinx.Refactor.Tests
{
internal class Movie03
{
public const int CHILDRENS = 2;
public const int REGULAR = 0;
public const int NEW_RELEASE = 1;
private Price03 _priceCode;
public int PriceCode
{
get => _priceCode.GetPriceCode();
set
{
switch (va... |
c05f20285caadabe2c6b24f1e8d65225f1081ec5 | C# | EduardoCma/Canada-game | /UTIMA_TENTATIVA/Assets/scripts/Dialog.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Dialog : MonoBehaviour {
public Text textDisplay;
public string[] sentences;
private int index;
public float typeSpeed;
public GameObject objective;
public GameObject image;
... |
b145ca2cfd3d565b6c86365c4add0740c22e7a0b | C# | inkton/sample.wppod | /Client/WPPodManager/WPPodManager/WPPodManager/Views/MenuItemPage.xaml.cs | 2.65625 | 3 | using System;
using Xamarin.Forms;
using WPPod.Models;
namespace WPPodManager.Views
{
public partial class MenuItemPage : ContentPage
{
public WPPod.Models.MenuItem Item { get; set; }
public MenuItemPage()
{
InitializeComponent();
Item = new WPPod.Models.MenuI... |
ad29e4196ec49fc6445780d8606deb36ba078c0f | C# | RumeysaBukecik/Calismalar | /DersNotlari/For detaylı/ConsoleApplication25/Program.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication25
{
enum KurumTipi : byte { Devlet, Özel, Vakıf }
enum OzelKursAlanı : byte { Yazılım, Muhasebe, YabancıDil, Ehliyet, Yüzme }
class Eg... |
209ae86fc338aca96be7215ad5af48f9092a1769 | C# | szymonk663/SZPNUW | /Base/SZPNUW.Base/Utils/Extensions.cs | 2.546875 | 3 | using Microsoft.AspNetCore.Mvc.ModelBinding;
using System.Net;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Force.DeepCloner;
using System.Security.Principal;
namespace SZPNUW.Base
{
public static class Extensions
{
public static string GetFirstError(this... |
0674fd04834ae52e9e112c4fb55ed185ca007a87 | C# | Serega-SPb/Test_tasks | /GZipTest/GZipTest/FileHelper.cs | 3.015625 | 3 | using System;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using System.Threading;
namespace GZipTest
{
public class FileHelper
{
private Logger _logger = Logger.Instance;
private Thread _readingThread;
private Thread _writeingThread;
private int _amountBlocks;
private bool _... |
113a928cdadeee30fe983ca82cead4f43ba8726f | C# | dobrinsky/AngularDefault | /RaportareOTR/CommonCode/Validation/CodesValidationMethods.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SIGAD.CommonCode.Validation
{
public class CodesValidationMethods
{
public static bool VerificaCod(string input)
{
bool rezultatValidareCod = true;
if (input == "... |
0e085a82412ef9be696621b1827e16fb09935e68 | C# | ancantho/Espera | /Espera/Espera.Core/YoutubeSong.cs | 2.671875 | 3 | using Espera.Core.Audio;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using YoutubeExtractor;
using AudioType = Espera.Core.Audio.AudioType;
namespace Espera.Core
{
public sealed class YoutubeSong : Song
{
private readonly bool isStreaming;
... |
8c55e3d6cf713165eb63552c7024ed10b4f420b0 | C# | rozabto/HotelReservation | /src/Infrastructure/Common/CheckoutService.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using Application.Common.Interfaces;
namespace Infrastructure.Common
{
public class CheckoutService : ICheckoutService
{
private static readonly char[] HEXADECIMAL = { '0', '1', '2'... |
12206add4d3cd3b43df9142b180bbb1458471f52 | C# | genI3/TaskListAppTest | /src/Converters/StringIsNullOrWhiteSpaceToVisibiltyConverter.cs | 2.921875 | 3 | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace TaskListAppTest.Converters
{
/// <summary>
/// Конвертирует объект <see cref="string"/>
/// в состояние отображения элемента <see cref="Visibility"/>.
/// Реализует интерфейс <seealso cref="IValueConve... |
de88c82aa93c80096861496afecce5f9fcfab146 | C# | JoeJoeWalters/TNDStudios.Web.Blogs.Core | /TNDStudios.Web.Blogs/ViewModels/Properties/BlogViewDisplaySettings.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace TNDStudios.Web.Blogs.Core.ViewModels
{
/// <summary>
/// Enumeration to indicate the viewport size
/// </summary>
public enum BlogViewSize
{
ExtraSmall = 0,
Small = 1,
Medium = 2,
Large = 3... |
294beed90d7b0145503e8e0580f17da455cdde95 | C# | Alex-D-Green/Translator | /Translator/TranslatorBase.cs | 3.078125 | 3 | using System;
using System.Text;
using System.Threading.Tasks;
using Translator.CommonData;
namespace Translator
{
/// <summary>
/// An abstract translator.
/// </summary>
internal abstract class TranslatorBase
{
/// <summary>
/// Translation service name.
/// </summary>
... |
37577d907dc888607ee3556ecf099dee7f878405 | C# | domoticz/domoticz-xamarin | /NL.HNOGames.Domoticz/NL.HNOGames.Domoticz/Helpers/UsefulBits.cs | 2.921875 | 3 | using Plugin.DeviceInfo;
using System;
using System.Text;
using System.Text.RegularExpressions;
using Xamarin.Forms;
namespace NL.HNOGames.Domoticz.Helpers
{
/// <summary>
/// Defines the <see cref="UsefulBits" />
/// </summary>
public static class UsefulBits
{
#region Public
/// ... |
018e93a6568ad849d94133501ee52534ce7906b6 | C# | robotron2084/eat-sleep-rave-repeat | /ESRR/Assets/GameJamStarterKit/Core/Scripts/Utility/TimeSince.cs | 3.0625 | 3 | using UnityEngine;
// https://garry.tv/2018/01/16/timesince/
namespace GameJamStarterKit
{
/// <summary>
/// Measures time since this struct was initialized. Implicitly converts to a float.
/// <para>Example: TimeSince timeSinceStart = 0f will measure the time since the moment timeSinceStart was initializ... |
9a889477bcd5153620f294911b0e12e378fd8838 | C# | StasStrezh/EYTestTask1 | /EYTask1/Merging.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace EYTask1
{
public class Merging
{
public static int counter = 0;
public static void MergeFiles(string comb)
{
... |
d63736008306500a3faa1f43f46ce21d69ec96cd | C# | AmireddyAjaykumar/HackerRank | /HackerRank/IntroToChallenges.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HackerRank
{
public static class IntroToChallenges
{
static int introTutorial(int V, int[] arr)
{
for (int i = 0; i < arr.Length; i++)
{
... |
8c7841a1d9415853b5cf5f41a456d8c3bd8e37c5 | C# | LykkeCity/bitcoinservice | /src/LkeServices/Helpers/Retry.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Common.Log;
namespace LkeServices.Helpers
{
public class Retry
{
public static async Task<T> Try<T>(Func<Task<T>> action, Func<Exception, bool> exceptionFilter, int tryCount, ILog logger)
{
... |
f8022056fc70ee2f1e9480851b65fa13e5f510a1 | C# | chelseamgp01/Array | /2 Demension.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2Demesion
{
class Program
{
static void Main(string[] args)
{
double[,] temperture = new double[,]
{
{12.50,10.45... |
bf2624ea513a5f762f7ee076b1589863a553a5d3 | C# | allsources/WordAutoComplete | /WordAutoComplete/Classes/Word.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WordAutoComplete.Classes
{
/// <summary>
/// Represents a word object.
/// </summary>
public class Word
{
#region "Public members"
/// <summary>
/// A word.
/// </summary>
public string Value... |
bf43b152a5fffc6eded21247900a9ccb1e33f8b4 | C# | didatzi/TechModule | /Ex_DataTypesAndVariables/P14_IntegerToHexAndBinary/P14_IntegerToHexAndBinary.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace P14_IntegerToHexAndBinary
{
class P14_IntegerToHexAndBinary
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
stri... |
eeba6c2cf434b95ec0e0f503666494e8f2cb12b6 | C# | shendongnian/download4 | /first_version_download2/69481-4366607-9207796-2.cs | 2.734375 | 3 | for (
int i = 0;
i < argsin.Length;
i++
)
{
Console.WriteLine("Argument: {0}", argsin[i]);
}
Console.ReadLine();
return -1;
|
4e757082ff7852bd0e73cb1b150e3bf5a6db53d6 | C# | hahorro/bleakwind-buffet | /Data/Menu.cs | 2.828125 | 3 | /*
* Author: Hans Ahorro
* Class name: Menu.cs
* Purpose: Static class used to represent the menu of items
*/
using System;
// using System.Reflection;
using System.Collections.Generic;
using BleakwindBuffet.Data.Entrees;
using BleakwindBuffet.Data.Sides;
using BleakwindBuffet.Data.Drinks;
using BleakwindBuffet.D... |
587e3d6f95f390d295bd797688407f73786001d3 | C# | AkiraTakahashi0906/KGroupWorkSystem | /KGroupWorkSystem.Infrastructure/SQLServer/SQLServerHelper.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KGroupWorkSystem.Infrastructure.SQLServer
{
internal static class SQLServerHelper
{
internal readonly static string ConnectionString;
stati... |
76d0dd6ae0fd9c15f89e28d8dcf356348eed585a | C# | VirginiaPereiro/Csharp_ej6_Empleados | /EmpleoEF/RepositorioEmpleados.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EmpleoEF.Model;
namespace EmpleoEF
{
public class RepositorioEmpleados
{
private EmpleoEntities db = new EmpleoEntities();
public void Alta(Empleado emple)
{
... |
b0287bdf703f39e10a63f543f195033a02b35d5d | C# | ansabha2612datastructures/Tutort_DSA | /ClassAssignments/PairSum.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassAssignments
{
class PairSum
{
bool isSumPair(int[] arr, int target)
{
int diff = 0;
HashSet<int> h = new HashSet<int>();
int le... |
10b3b726b2b89338a2824ebe212307cc4c535692 | C# | shikimiya/Unity-SDP | /Assets/Scripts/SDP/time_description.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
namespace sdp
{
// TimeDescriptionは、セッションの開始時刻と停止時刻、
// およびスケジュールされたセッションの繰り返し間隔と期間を指定するために使用される、
// セッション記述の「t =」、「r =」フィールドを記述します。
public class TimeDescription
{
// t=<start-time> <stop-time>
// https://tools.ietf.org/html/rfc4566#s... |