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 |
|---|---|---|---|---|---|---|
d093e1527e22dd2533f9b14920d8f4fa2154aff4 | C# | ArkadiuszStanislawLega/SWAM | /SWAM/Converters/VisibilityReverseConverter.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SWAM.Converters
{
public class VisibilityReverseConverter : BaseValueConverter<VisibilityReverseConverter>
{
public override object Convert(object v... |
b2192d1147cec8014d9b248f521f82a7184da483 | C# | stoyans/Telerik | /Programming/High-Quality Programming Code/05.UsingStatementsLoops/02.RefactorTheStatement/Program.cs | 3.59375 | 4 | namespace RefactorTheStatement
{
using System;
public class Program
{
public static void Main()
{
Potato potato = new Potato();
//...
if (potato != null)
{
if (!potato.HasNotBeenPeeled && !potato.IsRotten)
{
... |
9fe0340d912d4e4f9aa87f465fa834f30e9ee698 | C# | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/abc120/D/4631521.cs | 3.484375 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder
{
public class UnionFind
{
int[] par;
int[] size;
public UnionFind(int N)
{
par = new int[N];
size = new int[N];
for (int i = 0; i < N; i++)
... |
120a591e6db7c9b89b9828492695c2c6ac478216 | C# | InJulyX/web-api | /Web.Model/AjaxResult.cs | 2.5625 | 3 | namespace Web.Model
{
public class AjaxResult<T>
{
public int code { get; set; }
public string message { get; set; }
public T data { get; set; }
public int? total { get; set; }
private static AjaxResult<T> Message(int code, string message, int? total, T data)
{
... |
60641cde9e511f5ff0c32aee44eb15237f763ef1 | C# | isurridge/BLRepository | /LearningTreatz.Data/Repositories/ReviewRepository.cs | 2.65625 | 3 | using LearningTreatz.Core;
using LearningTreatz.Data.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningTreatz.Data.Repositories
{
public class ReviewRepository : IDisposable
{
private RestaurantEntities ... |
992681c0c9f33efc53a98ef94ba79fa3cc46cc66 | C# | shendongnian/download4 | /code7/1212606-32252691-98362066-6.cs | 2.796875 | 3 | public async Task<Address[]> GetAddresses() {
var client = new HttpClient {BaseAddress = new Uri(_settingsService.GetHost())};
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var base64 = Convert.ToBase64String(System.Text.ASC... |
a557ca32fbd5deffbfaa2384f39688bcef6826c9 | C# | rahulballal/automapperprototype | /AutomapperPrototype/Controllers/ValuesController.cs | 2.6875 | 3 | using System.Collections.Generic;
using System.Web.Http;
using AutomapperPrototype.Domain;
using AutomapperPrototype.ViewModel;
using AutoMapper;
namespace AutomapperPrototype.Controllers
{
public class ValuesController : ApiController
{
// Can mock the mapping now
private readonly IMappingEng... |
a1876d4c9dd7422a91fcce9e221dc6967ec1cdbb | C# | jiro74/ArcGISRuntimeBook | /Chapter6/Models/Model.cs | 2.796875 | 3 | using System;
namespace Chapter6.Models
{
public class Model
{
private string tilePackage = "";
private string mapPackage = "";
private string gdb = "";
public Model() { }
public string TilePackage
{
get { return this.tilePackage; }
se... |
4344490d313674bca7d8c9f8e77577ebd3dfd8a4 | C# | abilean/Doughroids | /Assets/scripts/InvulnerableAfterHitHealth.cs | 2.875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InvulnerableAfterHitHealth : StandardHealth {
/// <summary>
/// How long the object is invulnerable after getting hit
/// </summary>
[SerializeField]
[Tooltip("How long the object if invul... |
db524d6c587fdf7d23aac28634d15c80e7fa4208 | C# | latticework/njali | /src/Jali.Serve/Secure/DefaultAuthorizor.cs | 2.765625 | 3 | using System;
using System.Threading.Tasks;
namespace Jali.Secure
{
/// <summary>
/// A utility that provides application claims based on the current http request and the current
/// message security context. This implementation provides no authorizations.
/// </summary>
public class Defau... |
6ddbf79017bf3555b69ea6ce5f3535b6ac6bf045 | C# | nielsf-dev/poc | /poc-netcore/LoggingWeb/TestController.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using LoggingWeb.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Serilog;
namespace LoggingWeb
{
public class TestController : Controller
{
... |
80463d27a5297a1e9ca285cc06dcdc64418af0c8 | C# | GeorgePotts/AzAnt | /AzAnt.cs | 2.75 | 3 | using System;
using System.IO;
using System.Linq;
namespace AzAnt
{
class AzAnt
{
private readonly AzAntArgs _Args = null;
public AzAnt(AzAntArgs args)
{
_Args = args;
}
private void LogInfo(string str)
{
Console.WriteLin... |
0011892559b9b63ec46e49df408a5b3a516c586c | C# | kwalker360/FloatingPointTextBox | /FloatingPointTextBox.cs | 3 | 3 | // FloatingPointTextBox
//
// Author: Ken Walker, Bridge360 (http://bridge360.com)
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
namespace Bridge360
{
/// <summary>
/// A control that can be used to edit a floating point value when bound to a <se... |
64f9ede7729b5f9e6f759dad562e348784919759 | C# | NPerederiy/do-diez-7-new-features | /Tuples/Program.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
namespace Tuples
{
class Program
{
static void Main(string[] args)
{
var range = GetRange(new int[] {1, 23, 3, 5, 0, 13, 21});
Console.WriteLine($"Max: { range.Max }\nMin: { range.Min }");
// delay
... |
ede7fc70e9644f968a0b90a9af52b37bd69e8459 | C# | todor-enikov/TelerikAcademy | /C Sharp OOP - 2016/03. ExtensionMethodsDelegatesLambdaLINQ/01. StringBuilder.Substring/SubstringTesting.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Substring
{
class SubstringTesting
{
public static void Main()
{
string text = "Ebasi qkiq tekst brato!";
string textFromString = text.Substring... |
3e17f762de81857e114b8f8f3f88ad4085584c7f | C# | shendongnian/download4 | /first_version_download2/203443-15661300-38154555-2.cs | 2.71875 | 3 | public static bool operator true(YourClass x)
{
return whateveryouwant || somethingelse;
}
public static bool operator false(YourClass x)
{
return blah != 1 || x.Value != 5;
}
|
06ee92e8abb31c4e970730b3166d03f3a657e28f | C# | SHNecro/ShanghaiJAR | /MapEditor/Models/Elements/Events/BattleEvent.cs | 2.640625 | 3 | using MapEditor.Core;
using MapEditor.ExtensionMethods;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
namespace MapEditor.Models.Elements.Events
{
public class BattleEvent : EventBase, ITranslatedModel
{
private RandomEncounter encounter;
... |
b238ba74094fd04b12caeae192587594e66f58f6 | C# | shekohex/coshield | /Shield/Main.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
namespace Shield
{
public class Main
{
private string baseURL = "https://my-back-end-demo.000webhostapp.com/hacks.php?gethacks=true";
publ... |
899ec147da35aa21a4222fa5001ee823b12e3341 | C# | yenagetorp/NiceC-exercise | /Andras lösningar/DungeonsOfDoomAvNIls/DungeonsOfDoom.Core/Items/Potion.cs | 2.96875 | 3 | using DungeonsOfDoom.Core.Characters;
using System;
using System.Collections.Generic;
using System.Text;
namespace DungeonsOfDoom.Core.Items
{
public class Potion : Item
{
public Potion(string name, int bonus) : base(name, bonus)
{
}
/// <summary>
/// Adds Health bonus... |
5a07d8561384647572db9c9762eb17c3e0619733 | C# | kefsizoff/CSharp-Basics | /Lecture 4 - Operators-Expressions-and-Statements/04.homeworks/2/PointInsideCircleOutsideRectangle/PointInsideCircleOutsideRectangle.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PointInsideCircleOutsideRectangle
{
class PointInsideCircleOutsideRectangle
{
static void Main(string[] args)
{
double x = double.Parse(Console.ReadLine());... |
6085a99aa14bf3b421d5838fb1b93dffc879a5ea | C# | dillishrestha/WpfConverters | /DotNetProjects.WPF.Converters/DotNetProjects.WPF.Converters/ExtensionMethods/ListBoxExtension.cs | 3.0625 | 3 | using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace DotNetProjects.WPF.Converters.ExtensionMethods
{
/// <summary>
/// Extensions to set and get a ListBox's first visible item.
///
/// Author: Dominik Schmidt (www.dominikschmidt.net)
/// </summary>
public ... |
991f25c309edc1ecf47c885e2ec9796e18b07785 | C# | danbystrom/VisionQuest | /src/factor10.VisionQuest/Actions/MoveCameraToPositionAction.cs | 2.578125 | 3 | using System;
using System.Linq;
using factor10.VisionThing;
using factor10.VisionThing.CameraStuff;
using SharpDX;
using SharpDX.Toolkit;
namespace factor10.VisionQuest.Actions
{
public class MoveCameraToPositionAction : IAction
{
private readonly Vector3 _toPosition;
private readonly Vector3... |
8c5282ba7098f5c74b1af373990ce61a2c16f7a3 | C# | shendongnian/download4 | /code8/1475362-40414229-130784645-2.cs | 3.390625 | 3 | //examples
class Program
{
static void Main(string[] args)
{
//Your original example
var items = new List<int> { 0, 1, 5, 7 };
var gap = items.FindFirstGap();
Console.WriteLine(gap); //shows 2
... |
501257060166c63cdd2012b06d639bdaf0a1e714 | C# | podgito/AmazonIntervals | /AmazonianDates/Interval.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AmazonianDates
{
/// <summary>
/// Represents a time interval between one point in time and another
/// </summary>
public class Interval
{
public DateTime FromDateT... |
f1c08f3c6c7855b8af26a3002e441219350e07cd | C# | alexdick86/Xamarin.OneDrive.Connector | /sources/CloudDrive.Connector.LocalDrive/Platforms/Android/Storage.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Xamarin.CloudDrive.Connector
{
internal class LocalDriveStorage : IStorage
{
public Task<string[]> GetStorageList()
{
var externalStorages = GetStorageList_FromProcMounts();
i... |
bf3366b7d87d19d6662d49c1006b391411bee3ef | C# | firstcrazydeveloper/Temprory | /PACE/WebApi/src/SqlCodeGenerator/Attributes/StoredAsAttribute.cs | 2.625 | 3 | using System;
namespace SqlCodeGenerator.Attributes
{
/// <inheritdoc />
/// <summary>
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public sealed class StoredAsAttribute : Attribute
{
/// <summary>
///
/// </summary>
publi... |
02acf246f0c6dc5faeb64fc44b85d721343c1b97 | C# | shendongnian/download4 | /first_version_download2/66159-4114357-8658458-1.cs | 2.609375 | 3 | for(int i=0;i<gridview.rows.count-1;i++)
{
//some operation;
if (!aFunction(param1,param2)) continue;
}
public bool aFunction(param1,param2)
{
//some operation;
if (!Regex.IsMatch(RechargeText, "successfully"))
{
RechargeStatus = "Failed";
... |
3a661557b7a3e6fdaec14c2dff73636c71730773 | C# | ppedvAG/190617_DotNETArch_CGN | /BV/ppedv.BV.Data.EF/EFUniversalRepository.cs | 2.671875 | 3 | using ppedv.BV.Domain;
using ppedv.BV.Domain.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ppedv.BV.Data.EF
{
public class EFUniversalRepository<T> : IUniversalRepository<T> where T : Entity
{
public EFUniversalRepository(EFContext context)... |
006e449e53b3ba10b80429403b55e6e0a7f3cf59 | C# | captainjono/rxns | /src/Rxns/Reliability/Retry/RetryPolicyState.cs | 2.890625 | 3 | using System;
namespace Rxns.Reliability.Retry
{
internal class RetryPolicyState : IRetryPolicyState
{
private readonly Action<Exception, long, Context> _onRetry;
private readonly Context _context;
private long _count = 0;
public RetryPolicyState(Action<Exception, long, Contex... |
81cc52b18efde1c815065eb6f7710dfc75b51697 | C# | dlee0113/murachs_c-_2015 | /Exercise solutions/Chapter 14/Ex 14-1 CustomerMaintenance/CustomerMaintenance/WholesaleCustomer.cs | 3.203125 | 3 | using System;
namespace CustomerMaintenance
{
public class WholesaleCustomer : Customer
{
private string company;
public WholesaleCustomer()
{
}
public WholesaleCustomer(string lastName, string firstName,
string email, string company) : base(lastName, firstName, email)
... |
060ef8f2c1bc67b783ff94c30c0347ab8ba8f52d | C# | MildMania/ggj2017 | /Assets/_Scripts/Utilities/UtilitiesPhysics.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
static partial class Utilities
{
public static bool BoundsIntersectXAxis(Bounds bound1, Bounds bound2)
{
Bounds bound1New = new Bounds(new Vector3(bound1.center.x, 0.0f, 0.0f), new Vector3(bound1.size.x, 1f, 0.1f));
... |
ca0953ca500c1ea4b35d6b09c077c5c6c3ef869a | C# | milen-vm/Algorithms | /CombinatorialAlgorithms/PermutationsIteratively/PermutationsIteratively.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class PermutationsIteratively
{
static void Main()
{
Console.Write("n: ");
int n = int.Parse(Console.ReadLine());
int[] perm = Enumerable.Range(1, n).ToArra... |
63941bdd5346a1bfc02a255b23af3776e3aedde3 | C# | IvanSlaev/CSharp-Fundamentals | /ConsoleInAndOut/FibonacciNumbers/FibonacciNumbers.cs | 3.78125 | 4 | using System;
namespace FibonacciNumbers
{
class FibonacciNumbers
{
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
long number = 0;
long[] numbers = new long[N];
for (var i = 0; i < N; i++)
{
... |
124ec52e23ed5ee09a09d5bf99e46ae840106250 | C# | shendongnian/download4 | /code2/215276-4179517-8801599-1.cs | 2.96875 | 3 | public static string WrapEachElementWith
( string input,
params Func<string, string>[] func )
{
foreach (var f in func.Reverse())
input = f(input);
return input;
}
|
8e95e59b838047d27ad4fa2591f63c666901b733 | C# | Stunitz/FolhaDePagamento | /FolhaDePagamento/FolhaDePagamento/DAL/FolhaDAO.cs | 2.703125 | 3 | using FolhaDePagamento.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FolhaDePagamento.DAL
{
class FolhaDAO
{
private static List<Folha> folhas = new List<Folha>();
public static bool AdicionarF... |
3700db95e2226d2860e55fccee986dd95d98ddd3 | C# | tangliangj/tang | /Dormitoryss/DAL/RepairDAL.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace DAL
{
/// <summary>
/// 对象操作类:维修信息表
/// </summary>
public class RepairDAL
{
//根据给定条件查询维修信息
public List<Model.Repair... |
6cd4b9569dc1624b533919dce029b70ae6e0edeb | C# | acenelio/xadrezconsole | /XadrezConsole/JogoDeXadrez/Torre.cs | 2.90625 | 3 | using ProfessorNelioAlves.JogoDeTabuleiro;
namespace ProfessorNelioAlves.JogoDeXadrez {
class Torre : Peca {
public Torre(Cor cor, Tabuleiro tab) {
this.cor = cor;
this.tab = tab;
posicao = null;
}
public override string ToString() {
return... |
8911d5034db4bf16e520f324ad88ff5472a60089 | C# | aBothe/D_Parser | /DParser2/Resolver/ASTScanner/Util/StringCharValuesEnumerable.cs | 2.671875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using D_Parser.Resolver.ExpressionSemantics;
namespace D_Parser.Resolver.ASTScanner.Util
{
class StringCharValuesEnumerable : IEnumerable<ISymbolValue>
{
private readonly PrimitiveType charType;
private readonly String enumeratee;
publ... |
b22b31cfae711f2a25809f2a7d9845195b30bdd7 | C# | SimonArmstrong/From-Shadow | /Assets/Scripts/SwingComponent.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SwingComponent : MonoBehaviour {
public float damage;
public float critChance;
public float critMultiplier;
public float swingForce;
public float swingStep;
public float stunDuration;
float baseDamage;
float baseCritC... |
6fa2421101748071405df01f021f2981cfbff6de | C# | TovaBecker/HKR-Laboration-4 | /Task1-Shape/Shape.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task1_Shape
{
class Shape
{
//Two fields for the coordinates
protected int _xCoord = 0;
protected int _yCoord = 0;
public Shape(int xCoord, int yCoord)... |
a4dd3f2e00b5e89c51aee5e9e35c6e35d1e1512c | C# | ProESM/AIS | /Infrastructure/Page.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Infrastructure
{
/// <summary>
/// Информация о странице.
/// </summary>
public class Page
{
/// <summary>
/// Все элементы.
/// </summary>
... |
383c687b66229a49f06fd0c5d20526ca81f866ec | C# | AlejandroDiBattista/CursoCSharp2 | /Demo04/Mensajes.cs | 3.078125 | 3 | using System;
namespace Demo4{
public class Mensajes {
public static void Bienvienda(){
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Clear();
Console.WriteLine("\nBienvenido\n");
}
public static void Despedida(){
Console.Foregro... |
b67901682d43d181f734307318b7ef7eb3c1493a | C# | delxavier/MyChatServiceDemo | /MyChat.Service/Hosting/MyChatServiceHostFactory.cs | 2.625 | 3 | //-----------------------------------------------------------------------
// <copyright file="MyChatServiceHostFactory.cs">
// Copyright (c) 2018. All Rights reserved.
// </copyright>
// <summary>
// Customize instantiation of WCF service.
// This is required to manage log initialization and cleanup when service ... |
6e8bc0317383ebf12bd59d546533b8b7da4b6658 | C# | zbrozekp/OOD2_Project | /Pipeline_Network/Merger.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pipeline_Network
{
class Merger
{
Pipeline input1;
Pipeline input2;
Pipeline output;
public double calculateFlow()
{
double... |
49d6ceff3c246be9b56dc6a6ca707f71373d1267 | C# | hb3659/RPG_Project | /HB_Project_RPG/Assets/Scripts/Characters/ObjectPooling/ObjectPooler.cs | 2.8125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
[Serializable]
public class ObjectPoolItems
{
public int amountToPool;
//
public GameObject objectToPool;
public bool shouldExpand;
}
public class ObjectPooler : MonoBehaviour
{
privat... |
7e86d6a5e6caa7944b19ab2bd9f6b37cf915726f | C# | VictorJohan/Ejercicio1AplicadaII | /BLL/EstudiantesBLL.cs | 2.921875 | 3 | using System;
using System.Linq;
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore;
using Ejercicio1AplicadaII.Models;
namespace Ejercicio1AplicadaII.BLL
{
public class EstudiantesBLL{
public static bool Guardar(Estudiantes estudiante)
{
if(!Existe(estudiante.EstudianteId)){
return ... |
c0922995c5e3326c9614a502bbdaa988f31b44fd | C# | akon47/SimpleTcp | /SimpleTcp/Client/BaseTcpClient.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using SimpleTcp.Utils;
namespace SimpleTcp.Client
{
public abstract class BaseTcpClient : IDisposable
{
#region Properties
... |
ea334e30e123815697c64c164365a4967bf6155c | C# | aritrarc/problems | /Greedy/MinimumAbsoluteDifference(E).cs | 3.78125 | 4 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace nsGreedy
{
//Given an array of integers, find and print the minimum absolute difference between any two elements in the array.
public class MinimumAbsoluteDifference
{
public static void Getminim... |
78e8a2398199e5dedea41435adbc9d3a05253284 | C# | Spanyardie/MindYourMoodWeb | /Controllers/ActivitiesController.cs | 2.5625 | 3 | using AutoMapper;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using MindYourMoodWeb.DTOs;
using MindYourMoodWeb.Entities;
using MindYourMoodWeb.Interfaces;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
namespace MindYourMoodWeb.Cont... |
05969492136ef436fac68dd31bb6768e7686285f | C# | shendongnian/download4 | /latest_version_download2/220578-48010861-163626879-2.cs | 2.59375 | 3 | //Optionally do a hide(); here.
AddCustomer customer = new AddCustomer();
DialogResult result = customer.ShowDialog();
if(result == DialogResult.OK)
{
var name = customer.Name;
//More properties or whatever here.
}
//The properties would still be accessible here, too.
|
10b1ece9f726f11a1ca13068d5357280fb1d29e2 | C# | MananKapoor27/people-portal-backend-newDevelopment | /PeoplePortalServices/Services/ReportingManagerService.cs | 2.625 | 3 | using PeoplePortalDataAccessLayer.Interfaces;
using PeoplePortalDomainLayer.Entities.Dto.EmployeeDto;
using PeoplePortalDomainLayer.Entities.Dto.ProjectDto;
using PeoplePortalDomainLayer.Entities.Dto.ProjectManagementDto;
using PeoplePortalDomainLayer.Entities.Dto.ReportingManagerDto;
using PeoplePortalDomainLayer.Ent... |
298272841f541093893d687ba97db3dc0c226b09 | C# | denisVirtuteDei/AirplaneDB | /Cursed1/ManagmentTables/Class2.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Collections.ObjectModel;
namespace Cursed1.ManagmentTables
{
public class TicketTable : INotifyPropertyChanged
{
... |
024a57bc7c1b3b0d3e2dfa9e75ac12c1952c8a48 | C# | hl10502/WCM | /WCM/ConVPX/Core/ThreadWrapperBase.cs | 2.671875 | 3 | namespace WCM.ConVPX.Core
{
using System;
using System.Threading;
public abstract class ThreadWrapperBase
{
private int cancelCheckInterval = 5;
private TimeSpan cancelWaitTime = TimeSpan.Zero;
private Guid id = Guid.NewGuid();
protected int progress;
... |
5270ad1e10a6974169b12aeb7a7733ad8c905d64 | C# | shahanmol99/.net-repo | /C#/CustomAnnotationApp/CustomAnnotationApp/Program.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace CustomAnnotationApp
{
class Program
{
static void Main(string[] args)
{
DoReflection(typeof(RandomClass));
}
priva... |
b1d973c87016c63a4fbc166a9aa8210c737bee5d | C# | tuulingo/Mobiilirakenduste-loomine | /MvvmTutorial/MvvmTutorial/MvvmTutorial/ViewModels/LanguageViewModel.cs | 2.953125 | 3 | using MvvmTutorial.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Xamarin.Forms;
namespace MvvmTutorial
{
public class LanguageViewModel : BindableObject
{
public event PropertyChangedEventHandler PropertyChanged;
protected void O... |
b1730ef0dfbd1bc770975cd5ca037fc203ef2d48 | C# | Viniciusfernandes01/simple-jwt | /JwtExample/Controllers/HomeController.cs | 2.546875 | 3 | using JwtExample.Domain.Interfaces;
using JwtExample.Domain.Repositories;
using Microsoft.AspNetCore.Mvc;
namespace JwtExample.Controllers
{
[ApiController]
[Route("/api/[controller]")]
public class HomeController : Controller
{
private readonly ITokenService _tokenService;
public Hom... |
c8b3a34c3980637430f737a14b166d8403bc85c9 | C# | polenzdakota/Unity-Robot-Project | /UnityRobotProj/Assets/Scripts/Actions/MainMoveForward.cs | 2.65625 | 3 | using UnityEngine;
using System.Collections;
/// <summary>
/// Moves the main robot forward.
/// </summary>
public class MainMoveForward : MonoBehaviour, IActions {
//public GameObject mainRobot;
private GameObject mainRobot;
private Vector3 initialPos;
// Use this for initialization
void Start () {
//mainRob... |
6eebb057885ff89751aaaa4bb59290c3fec09971 | C# | kumarSahu-1527/card-game | /Helpers/GameMaster.cs | 3.421875 | 3 | using CardGame.Helpers.ExtensionMethods;
using CardGame.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CardGame.Helpers
{
/// <summary>
/// Handles all game behaviours
/// </summary>
public class GameMaster
{
/// <summa... |
33b42a9a727507581fc95724f4ef789415928627 | C# | mecha-rm/GDW_Y3-PJT | /Assets/Scripts/Tutorial/TutorialLogger.cs | 2.59375 | 3 | using UnityEngine;
// logs tutorial information
// this is just to seperate the tutorial from the main content.
public class TutorialLogger : MetricsLogger
{
// gets the time from the timer text
// comment this out if you don't want to view previously stored values
// Start is called before the ... |
b6fc77ed8857030d75e93ced04638dd42d0049d4 | C# | YoanaKaloyanova/PU-Intro-with-CSharp | /Course projects/Workbench/Task4/STD1A/_1701681009_Lusian_Manolov.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task4.STD1A
{
public static class _1701681009_Lusian_Manolov
{
public static void DisplayTriangleUsingStars_87D()
{
for (int figureHeight = 1; figureHeight ... |
5952ea841c03844ab408395c8376cf371f3c13db | C# | NightAngel47/Space-Uber | /SpaceUber/Assets/Scripts/Radio/RadioPanelToggle.cs | 2.53125 | 3 | /* RadioManager.cs
* Frank Calabrese
* 2/2/21
* contains a method to allow the player to move the radio panel in and out of view
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RadioPanelToggle : MonoBehaviour
{
public bool isVisible;
private RectTransform l... |
fc8b2f0c80306d236dc6299c9a305c33dd8d2275 | C# | sergey-brutsky/mi-home | /MiHomeLib/Devices/DoorWindowSensor.cs | 2.828125 | 3 | using System;
using Newtonsoft.Json.Linq;
namespace MiHomeLib.Devices
{
public class DoorWindowSensor : MiHomeDevice
{
public const string TypeKey = "magnet";
public event EventHandler OnOpen;
public event EventHandler OnClose;
public event EventHandler NotClosedFor1Minute;
... |
15e0d574764de016cd51f16ae9da5947c0fdba7b | C# | opensource-emr/hospital-management-emr | /Code/Websites/DanpheEMR/Services/Fraction/DesignationService.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using DanpheEMR.DalLayer;
using DanpheEMR.Core.Configuration;
using Microsoft.Extensions.Options;
using DanpheEMR.ServerModel;
namespace DanpheEMR.Services
{
public class DesignationService : IDesignationService
{
public FractionDbCont... |
37ce527469b110d7e6870c4524ebfd730eb479c6 | C# | LebedevMA/ITOI | /course/course-itoi/course-itoi/Form1.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace course_itoi
{
public partial class Form1 : Form
{
public string input1;
... |
e0592cdee4657c499da2f52e9993ac6bd0bc28ea | C# | viktor-zaika/Mobile-RSS-Reader | /Mobile-RSS-Reader/Mobile_RSS_Reader/Parsers/HtmlArticleParser.cs | 3.078125 | 3 | using System.Linq;
namespace Mobile_RSS_Reader.Parsers
{
/// <summary>
/// Allow to extract article content from html page.
/// </summary>
public class HtmlArticleParser : IArticleParser
{
/// <summary>
/// Extract article content which is surrounded by article tags.
///... |
3b2692949f25d45048cc588f6efe1d198c64f5c7 | C# | HaKDMoDz/InVision | /Karel/Controller/Karel.cs | 2.765625 | 3 | using System;
using System.Threading;
using InVision.GameMath;
using Karel.Flow;
namespace Karel.Controller
{
public class Karel
{
/// <summary>
/// Gets the karel robot.
/// </summary>
/// <value>The karel robot.</value>
private static KarelRobot KarelRobot
{
get { return KarelGameFlow.World.Karel; ... |
ce6067f5095951424b8c61d5e7421a5b1d900452 | C# | CleAurora/DesafioPizzariaSenai | /Usuario.cs | 3.0625 | 3 | using System;
namespace DesafioPizzaria1
{
public class Usuario
{
public string Id {get; set;}
public string Nome {get; set;}
public string Email {get; set;}
public string Senha {get; set;}
public DateTime Data {get; set;}
//Fazer um método para validar email (c... |
f7b45a819a2e28060989479d6c954a4c62848f19 | C# | akunalic1/Grupa8-A3 | /Net core projekat/OOAD-Projekat/OOAD-Projekat/Data/Questions/QuestionRecommendation.cs | 2.65625 | 3 | using Microsoft.EntityFrameworkCore;
using OOAD_Projekat.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OOAD_Projekat.Data.Questions
{
public class QuestionRecommendation : IQuestionRecommendation
{
private readonly ApplicationDbConte... |
bacde87a2f4f1e076642d255f565f944c0a8eea0 | C# | StevenDavid/win403-testharness | /src/testharness/Models/DataConnectionViewModel.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
namespace TestHarness.Models
{
public class DataConnectionViewModel
{
public int Calls { get; set; }
public string ElapsedTime { get; set; }
public string ElapsedTimeMilli { get; set; }
public string IPAddress { get; set; }
... |
6d82d1c15e454389f89df69d29bc95efcb33a812 | C# | Uwazurike/Today-at-the-zoo-project | /Today at the zoo project/Today at the zoo project/Hippo.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Today_at_the_zoo_project
{
public class Hippo: Mammals
{
#region variables
private bool livesInWater;
private bool attacksHumans;
#endregion
#re... |
e04444249d50fdcd927929b7cb5dfe6a2a68c7b5 | C# | tivtag/Atom | /Source/Atom.Scripting/IScriptContainer.cs | 2.5625 | 3 |
namespace Atom.Scripting
{
using System.Collections.Generic;
/// <summary>
/// Represents a container of multiple executable <seealso cref="IScript"/>s.
/// </summary>
public interface IScriptContainer : ICollection<IScript>
{
/// <summary>
/// Executes all <seealso cref="IScr... |
f5f85430ca373b201b842654013866c9cf27d75e | C# | Junior91323/RockPaperScissors | /Models/Team.cs | 3.15625 | 3 | using RockPaperScissors.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RockPaperScissors.Models
{
public class Team : ITeam
{
List<IPlayer> _Players;
string _Name;
int _Count = 0;
public... |
ebd343e4569721fa5389c66ad45a336745095fa5 | C# | MilenaKolbina/Game | /New_Game/Game.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace New_Game
{
public enum Players
{
Not,
Cross,
Zero
}
pu... |
aa8601f219a4650f35e4844a8432c002a6d684b9 | C# | jiaozilong/Space_Radiation | /Space_Radiation/Neuron_network_2.cs | 2.859375 | 3 | /********************************************************************
created: 2020/12/03
created: 3:12:2020 12:54
filename: Neuron_network_2.cs
file path: Space_Radiation
file base: Neuron_network
file ext: cs
author: Kaguya
purpose: 神经网络框架,适用于多输入
********************************************************... |
0a77ec993e0bc013ad599a1e466960c0caa0dad1 | C# | lsoft/CHD | /CHD.Service/ArgProcessor/ArgExtractor.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace CHD.Service.ArgProcessor
{
public sealed class ArgExtractor
{
private readonly string[] _args;
public ArgExtractor(
params string[] args)
{
_args = args ?? new string[0];
... |
805f6ba2a7c0e0ded9d0a141aa457be89ad6e37b | C# | nkgautam/60-second-dev | /2021-05-30 asp.net dependency injection/CarRepo.cs | 2.828125 | 3 | using Microsoft.AspNetCore.Http;
public class CarRepo
{
private readonly IHttpContextAccessor _httpContextAccessor;
public CarRepo(IHttpContextAccessor httpContextAccessor)
=> _httpContextAccessor = httpContextAccessor;
public string GetCarModel()
{
var httpContext = _httpContextA... |
2143b6de95064bb6e3b3bf02647be47b4b4a5544 | C# | shendongnian/download4 | /first_version_download2/57709-3501708-7301655-2.cs | 2.765625 | 3 | public class RunStateController
{
public RunState CurrentState { get; private set; }
public void Start()
{
// reset everything
Run();
}
public void Run()
{
State = new RunningState();
// do the running code here
... |
47206d56015a99a6d8faec7b375bf02cff4a2ad7 | C# | portilha/hackrank | /Sorting/BigSorting.cs | 3.65625 | 4 | using NUnit.Framework;
using System;
using System.Collections.Generic;
namespace Sorting
{
[TestFixture()]
public class BigSorting
{
static string[] bigSorting(string[] arr)
{
System.Collections.Generic.IComparer<string> a = new StringBigIntegerComparer();
Array.Sor... |
26c537ade9a8be365c3fe0be9edf9913b0dff2c4 | C# | msamuel47/TP3-TETRIS | /TP3Etu/TP3/Form principale (jeu).cs | 2.75 | 3 | using System;
using System.Drawing;
using System.Windows.Forms;
using WMPLib;
using System.Threading;
namespace TP3
{
public partial class FenetreDeJeu : Form
{
WindowsMediaPlayer mediaPlayer = new WindowsMediaPlayer();
#region Variable de jeu
// Initialisation des variables partagée... |
265d3fac4eae332c73f7b465f54c4c1ef31e3c24 | C# | GameModeler/Tests | /DataBase/Tests/DataBaseInitilization.cs | 2.828125 | 3 | using DataBase.Database;
using DataBase.Database.DbContexts.Interfaces;
using DataBase.Database.DbSettings;
using DataBase.Database.DbSettings.DbClasses;
using DataBase.Database.Repositories.Interfaces;
using DataBase.Database.Utils;
using System.Collections.Generic;
using Tests.DataBase.Entities;
namespace Tests.Dat... |
7ee33873199ece11b871e13026675906a9441df4 | C# | ThrosturX/windshield | /Windshield/Models/Games/Hearts/Trick.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Windshield.Common;
namespace Windshield.Models.Games
{
public class Trick : List<KeyValuePair<HPlayer, Card>>
{
public Suit leader { get; set; }
public HPlayer claimer { get; set; }
public int points { get; ... |
4134051212c9a021600ae11233872432a3885a92 | C# | RaushanThakurSpok/NewRepoforSpeechReport | /Amcom.SDC.BaseServices/Utilities/Feeder/Parser.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using System.Net;
namespace Utilities.Feeder
{
/// <summary>
///
/// </summary>
public abstract class Parser : Feeder.IParser
{
/// <summary>
/// Gets the default XML reader settin... |
8ae73187d2d55b163675ec479bdfee7439c06194 | C# | idoychinov/Telerik_Academy_Homework | /OOP/AcademyPopcorn/AcademyPopcorn/EngineWithPlayerShooter.cs | 3.421875 | 3 | using System;
using System.Reflection;
using System.Linq;
namespace AcademyPopcorn
{
// Problem 4. Inherit the Engine class. Create a method ShootPlayerRacket. Leave it empty for now.
public class EngineWithPlayerShooter : Engine
{
public EngineWithPlayerShooter(IRenderer renderer, IUser... |
dabcb748a13a2e48795e5892689ea92ba02fa50f | C# | kasa4565/DesignPatterns | /04Prototype/Students/2018/meggert/DeepClone3/DeepClone3/Marka.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Protype2
{
public class Marka
{
public string Nazwa { get; set; }
public Samochod samochod { get; set; }
public Marka()
{
samochod = new S... |
30f04f643d7f6fa32ec06911a765c8047c2d8fe4 | C# | Epi-Info/Epi-Info-Community-Edition | /Epi.ImportExport/Epi2000/ProjectAnalyzer.cs | 2.5625 | 3 | using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Epi;
using Epi.Core;
using Epi.Data;
using Epi.ImportExport;
namespace Epi.ImportExport.Epi2000
{
/// <summary>
/// The project analyzer will check the vali... |
80b2f2c0d0b8978e9dde8597b023bc1a36a2b44d | C# | 1j01/node-ahk | /IronAHK/Rusty/Core/Environment.cs | 2.984375 | 3 | using System;
using System.Windows.Forms;
namespace IronAHK.Rusty
{
partial class Core
{
/// <summary>
/// Waits until the clipboard contains data.
/// </summary>
/// <param name="timeout">If omitted, the command will wait indefinitely.
/// Otherwise, it will wait no lon... |
9d6c9c9e8b3af8d259cc3e2b806df84e2c86b9fc | C# | gevorgyan007/NewRepos | /WpfCarCatalogApp/CatalogModul/ViewModels/CarViewModel.cs | 2.71875 | 3 | using DataAccessLayer.Models;
using WpfShered.Utility;
namespace CatalogModul.ViewModels
{
public class CarViewModel
{
private Car car;
public CarViewModel()
{
}
public CarViewModel(Car car)
{
this.car = car;
this.Make = car.Make;
... |
19b5a09f8f8875fb46b706e08e8f604f89116178 | C# | AlexanderSilvaB/Lemon-Lib | /LemonLib/Devices/Bluetooth/Device.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Bluetooth.Rfcomm;
using Windows.Devices.Enumeration;
namespace LemonLib.Devices.Bluetooth
{
public class Device
{
public enum DataModes { Byte, String };
... |
ad37f8ef030f1657b202317eac72d6ed13b1d73e | C# | kgreen1200/CodeCrusade | /Assets/Scripts/GameScore.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameScore : MonoBehaviour
{
public int scoreDecrement = 10;
public int maxScore = 5000;
public int baseCompletionPoints = 20;
private int levelsCompleted = 0;
private int score;
p... |
81d4fd74abb17ec766fc2e75352d211acb50c95f | C# | albertodyck/ED2_Arboles | /ArbolesBinarios/Program.cs | 2.84375 | 3 | using System;
namespace ArbolesBinarios
{
class Program
{
static void Main(string[] args)
{
ArbolBinarioBusqueda arbol = new ArbolBinarioBusqueda(80);
arbol.InsertarNodo(150);
arbol.InsertarNodo(300);
arbol.InsertarNodo(5);
arbol.Inse... |
a9cad77cf49fc43d21bcaf8952ef9029279dd653 | C# | catalinplacinta/SpecFlow | /Tests/RuntimeTests/AssistTests/TableHelperExtensionMethods/CreateSetWithNullableValuesTests.cs | 2.640625 | 3 | using System;
using System.Globalization;
using System.Linq;
using System.Threading;
using NUnit.Framework;
using FluentAssertions;
using TechTalk.SpecFlow.Assist;
using TechTalk.SpecFlow.RuntimeTests.AssistTests.ExampleEntities;
namespace TechTalk.SpecFlow.RuntimeTests.AssistTests.TableHelperExtensionMethods
{
[... |
fddad8ef925ccc29ac63dc84c7efdc3ef8e39fe7 | C# | beaware1/csharp | /MsTests/Drawing/TransformTests.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace MsTests.Drawing
{
class TransformTests
{
private static String FOLDER_IMAGES = "C:/Projects/Java.SE... |
da3be76426c45aaf249abacd35ee3b918b639795 | C# | wip-/RgbToSpectrum | /Filters/Identity.cs | 3.0625 | 3 | using System.Collections.Generic;
using System.Drawing;
namespace RgbToSpectrum
{
public class Identity : Filter
{
public override double LambdaMin { get {return 300;} }
public override double LambdaMax { get { return 800; } }
public override double LambdaStep { get { return 20; } }
... |
56380859e73b4369c53698ddd0f42515d87a18ac | C# | civilnetworks/vrp | /code/Character/CharacterManager.Creator.cs | 2.890625 | 3 | using Sandbox;
using System.Linq;
using System.Text.Json;
namespace VRP.Character
{
public partial class CharacterManager : VrpManager
{
public const int MAX_NAME_LENGTH = 25;
public const int MIN_NAME_LENGTH = 3;
public static readonly char[] VALID_NAME_CHARACTERS = "-.".ToCharArray();
public const int MIN... |
b4bafc8554d2cf557b3a14b8242bf713e5042da5 | C# | EdwardEndovickiy/labs_C_sharp | /lab5/6CharArray/6CharArray/6CharArray.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharArray
{
class Program
{
static void PrintCharAr(char[] str)
{
for (int i = 0; i < str.Length; i++)
{
Console.Write(str[i]);
... |
d22155830d530a24bdb31ce22d2ac5fe4bfd0419 | C# | bnayae/NET_Framework_IAI | /006 Exercise 7/Exelerator.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace _011_Exercise_7
{
public class Exelerator : IExceleration
{
private const double Limit = 0.3;
private const int StartDelaySec = 1;
publi... |
c62f16cba3870aac0b5571daeaff6c09de29ee7c | C# | ugurgolpinar/MyDictionary | /ConsoleApp2/Program.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
MyList<string> myList = new MyList<string>();
myList.Add("a");
myList.Add("b");
myList.Add("c");
GetValues(myLis... |
7ccc0cd45ac02bbcdc59e8c48396e68fcf66525d | C# | sevdalin/Software-University-SoftUni | /C-sharp-Web-Developer/C# OOP Basics/05. Inheritance/06. Animals/Kitten.cs | 3.125 | 3 | using System;
public class Kitten : Cat, ISound
{
//Kittens are female
public Kitten(string name, int age)
: base(name, age, "Female")
{
}
public override string GetAnimalSound()
{
return "Miau";
}
public override string ToString()
{
return String.Format(... |
f886eba06c4104bd1e32b21474deaea51f22db19 | C# | mkesicki/api2word | /Api2Word/Parser/Postman.cs | 2.796875 | 3 | using RestSharp;
using System;
using System.Collections.Generic;
namespace Api2Word.Parser
{
internal class Postman : IParser
{
public String Name { get; set; }
public String Id { get; set; }
public String Url { get; set; }
private RestClient Client;
private Collectio... |
2e3137be9cf057690005e57fe2d1bdd875a7c405 | C# | ohbokdong/DesignPatternStudy | /week6/ch.Choe/Week6/Week6/JobSceheduler.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Week6
{
class JobSceheduler
{
//public Command CommandQueue;
public Queue... |